Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
716d8071
Commit
716d8071
authored
Dec 30, 2021
by
mingsoft
Committed by
mingsoft
Dec 30, 2021
Browse files
资源文件更新
parent
23d9bf4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/static/plugins/ms/1.0.0/ms.vue.expand.js
0 → 100644
View file @
716d8071
/**
* 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
'
-
'
}
}
}())
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment