From 108352eee11e26a7825f2d55a76f3e3be43bf0df Mon Sep 17 00:00:00 2001 From: jt <jt@activesoft.com.cn> Date: 星期四, 25 五月 2023 16:28:07 +0800 Subject: [PATCH] test --- pages/modal/ms_classAttr.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/modal/ms_classAttr.vue b/pages/modal/ms_classAttr.vue index 70906dd..74bf329 100644 --- a/pages/modal/ms_classAttr.vue +++ b/pages/modal/ms_classAttr.vue @@ -1103,10 +1103,8 @@ var index ,iindex,dindex=0; for(var i in this.$data.classAttrList){ for(var j in this.$data.classAttrList[i].Attr){ - for(var d in this.$data.classAttrList[i].Attr[j].dictitem){ - if(delvalue[0].Name == this.$data.classAttrList[i].Attr[j].dictitem[d].Name){ - this.$data.classAttrList[i].Attr[j].Value=""; - } + if(delvalue[0].attr == this.$data.classAttrList[i].Attr[j].Name){ + this.$data.classAttrList[i].Attr[j].Value=""; } } } @@ -1116,10 +1114,8 @@ var index ,iindex,dindex=0; for(var i in this.$data.classAttrList){ for(var j in this.$data.classAttrList[i].Attr){ - for(var d in this.$data.classAttrList[i].Attr[j].dictitem){ - if(item[v].Name == this.$data.classAttrList[i].Attr[j].dictitem[d].Name){ - index=i;iindex=j;dindex=d; - } + if(item[v].attr == this.$data.classAttrList[i].Attr[j].Name){ + index=i;iindex=j; } } } @@ -1512,7 +1508,8 @@ }, add(){ uni.showLoading({ - title:"鍔犺浇涓�.." + title:"鍔犺浇涓�..", + mask:true }); var req=[]; var attrlist = this.$data.classAttrList; @@ -1631,6 +1628,7 @@ for (var d = 0; d < ca.dictitem.length; d++) { ca.dictitem[d].label=ca.dictitem[d].CN_S_NAME; ca.dictitem[d].value=ca.dictitem[d].CN_S_NAME; + ca.dictitem[d].attr=ca.Name; if(ca.dictitem[d].CN_C_IS_DEFAULT=='1') ca.Value=ca.dictitem[d].CN_S_NAME; } @@ -1769,6 +1767,7 @@ for (var d = 0; d < ca.dictitem.length; d++) { ca.dictitem[d].label=ca.dictitem[d].CN_S_NAME; ca.dictitem[d].value=ca.dictitem[d].CN_S_NAME; + ca.dictitem[d].attr=ca.Name; if(ca.dictitem[d].CN_C_IS_DEFAULT=='1') ca.Value=ca.dictitem[d].CN_S_NAME; } @@ -2672,7 +2671,8 @@ }, scan_OKDataObjRunCustomEvent(eventID){ uni.showLoading({ - title:"鍔犺浇涓�.." + title:"鍔犺浇涓�..", + mask:true }); var $this = this; var req=[]; -- Gitblit v1.9.1