代码更新

This commit is contained in:
ludj
2022-12-02 17:16:27 +08:00
parent 06cd3b453c
commit 1840ceec58
10 changed files with 76 additions and 217 deletions

View File

@@ -50,7 +50,7 @@ function CRUD(options) {
// 主页操作栏显示哪些按钮
optShow: {
add: true,
edit: true,
edit: false,
del: true,
download: false,
reset: true
@@ -160,6 +160,16 @@ function CRUD(options) {
})
})
},
/**
* 格式化是否1-是0-否
*/
formatIsOrNot(row, column) {
if (!row[column.property]) {
return '否'
}
return row[column.property] == '1' ? '是' : '否'
},
/**
* 格式化数据保留0位小数
*/