代码更新
This commit is contained in:
@@ -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位小数
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user