Commit 716d8071 authored by mingsoft's avatar mingsoft Committed by mingsoft
Browse files

资源文件更新

parent 23d9bf4f
Showing with 21 additions and 0 deletions
+21 -0
/**
* vue 扩展属性方法
* 表格中的数字需要格式化金钱类型或百分数
*/
(function() {
Vue.prototype.$table = {}
Vue.prototype.$table.moneyFormatter = function (row, column, cellValue, index) {
if (cellValue != undefined) {
return accounting.formatMoney(cellValue, '¥')
} else {
return ''
}
}
Vue.prototype.$table.percentageFormatter = function (row, column, cellValue, index) {
if (cellValue != undefined) {
return cellValue+"%";
} else {
return '-'
}
}
}())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment