From 90bc8df34f290907a3ee01d05a9df5ca62b2cacc Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期三, 05 七月 2023 17:47:39 +0800 Subject: [PATCH] 修改列表展示 --- Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue | 13 +++++-------- 1 files changed, 5 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..9e622e0 100644 --- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue @@ -199,6 +199,7 @@ code: "", type: "PUBLIC", template: "", + codeClassifyOid:"" }, visibleFlow: false, transferData: [], @@ -258,6 +259,7 @@ codeClassifyOid: { handler(newval, oldval) { this.codeClassifyOid = newval; + this.parameter.codeClassifyOid=newval }, deep: true, }, @@ -275,7 +277,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 +299,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) { -- Gitblit v1.9.3