From abe9f2de85ff402a4c989dbc1427807b4e3a59f4 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期四, 06 七月 2023 13:56:17 +0800 Subject: [PATCH] 代码提交 --- Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue index a7232ee..2c7f374 100644 --- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue @@ -199,6 +199,9 @@ code: "", type: "PUBLIC", template: "", + vars:{ + codeClassifyOid:"" + } }, visibleFlow: false, transferData: [], @@ -258,6 +261,7 @@ codeClassifyOid: { handler(newval, oldval) { this.codeClassifyOid = newval; + this.parameter.vars.codeClassifyOid=newval }, deep: true, }, @@ -275,7 +279,9 @@ }else { if (record.templet && typeof (record.templet) == 'string' && !validatenull(record.templet) && record.templet.indexOf("function(row,column)")>-1) { record.formatter = eval("(" + record.templet + ")"); - //function(row,column){return row[column.property]=='true'?'鏄�':'鍚�'} + //function(row,column){return row[column.property]=='true' || row[column.property]=='1'?'鏄�':'鍚�'} + }else if(record.fieldType=="truefalse"){ + record.formatter = function(row,column){return row[column.property]=='true' || row[column.property]=='1'?'鏄�':'鍚�'} } } }) @@ -295,13 +301,6 @@ }, }, methods: { - // 杞崲鏁版嵁true鍜宖alse - formatBoolean(row, column) { - if (column.fieldType === "truefalse") { - return row[column.property] =='true'? "鏄�" : "鍚�"; - } - return row[column.property]; - }, // 鍙戝竷 setHandler() { if (this.selectRow.length <= 0) { @@ -459,6 +458,7 @@ this.$message.warning("缂栫爜鐘舵�佷笉鏄�滅紪杈戜腑鈥�,涓嶅彲缂栬緫"); } else { this.editvisible = true; + this.rowOid = this.selectRow[0]['oid'] } }, //楂樼骇鏌ヨ鎸夐挳 -- Gitblit v1.9.3