| | |
| | | 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){ |
| | | if(delvalue[0].attr == this.$data.classAttrList[i].Attr[j].Name){ |
| | | this.$data.classAttrList[i].Attr[j].Value=""; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | 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){ |
| | | if(item[v].attr == this.$data.classAttrList[i].Attr[j].Name){ |
| | | index=i;iindex=j;dindex=d; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | }, |
| | | add(){ |
| | | uni.showLoading({ |
| | | title:"加载中..." |
| | | title:"加载中...", |
| | | mask:true |
| | | }); |
| | | var req=[]; |
| | | var attrlist = this.$data.classAttrList; |
| | |
| | | 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; |
| | | } |
| | |
| | | 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; |
| | | } |
| | |
| | | }, |
| | | scan_OKDataObjRunCustomEvent(eventID){ |
| | | uni.showLoading({ |
| | | title:"加载中..." |
| | | title:"加载中...", |
| | | mask:true |
| | | }); |
| | | var $this = this; |
| | | var req=[]; |