1、解决默认提供的删除功能异常 2、重构DbKit,解决存在的catalog未设置导致的查询失败

This commit is contained in:
2019-06-13 11:27:22 +08:00
parent 7590f73651
commit 61a90c8591
10 changed files with 85 additions and 39 deletions

View File

@@ -299,7 +299,30 @@
},
dealFieldFmt(bean, colFmt) { //处理字典数据 及 自定义函数处理数据
if (colFmt["fmt"]) {
let v = ""
if (colFmt.inType == "DICT") {
// 取字典值返回
v = bean[colFmt["col"]]
}
else if (colFmt.inType == "INPUT_DAY") {
v = bean[colFmt["col"]]
}
else if (colFmt.inType == "INPUT_TIME") {
v = bean[colFmt["col"]]
}
else if (colFmt.inType == "INPUT_FUNC") {
v = bean[colFmt["col"]]
}
else {
v = bean[colFmt["col"]]
}
return v + " -> "+colFmt.inType
/*if (colFmt["fmt"]) {
let fmt = colFmt["fmt"]
let cate = ""
if (fmt.indexOf("|") > 0) {
@@ -323,7 +346,7 @@
} else {
//console.log(`k-v:${colFmt["col"]}-${bean[colFmt["col"]]}`)
return bean[colFmt["col"]]
}
}*/
},
dealField(bean, field) {
let str = "";