| | |
| | | }); |
| | | }, |
| | | panel_del(index){ |
| | | var $this = this; |
| | | if (this.$data.subPanelList[index].scanCodeVal == this.$data.scanCodeVal) { |
| | | this.$data.scanCodeVal=''; |
| | | } |
| | | this.$data.subPanelList.splice(index, 1); |
| | | if(!this.$data.subPanelList[index].ObjID) |
| | | this.$data.subPanelList.splice(index, 1); |
| | | else{ |
| | | var dataInfo = { |
| | | clsId:this.$data.param.Sub_Cls.ID, |
| | | objId:this.$data.subPanelList[index].ObjID |
| | | }; |
| | | console.log(dataInfo); |
| | | // return; |
| | | uni.showLoading({ title:"加载中..." }); |
| | | this.$store.dispatch('DelObj',dataInfo).then(success=>{ |
| | | console.log(success); |
| | | uni.hideLoading(); |
| | | if (success.code=='00000') { |
| | | $this.$data.subPanelList.splice(index, 1); |
| | | uni.showModal({title:"提示",content:"删除成功!",showCancel:false,confirmText:"取消"}); |
| | | }else{ |
| | | uni.showModal({title:"错误9",content:success.msg,showCancel:false,confirmText:"取消"}); |
| | | } |
| | | }).catch(ex=>{ |
| | | console.log(ex); |
| | | uni.hideLoading(); |
| | | uni.showModal({title:"提示9.1",content:ex.errMsg,showCancel:false,confirmText:"取消"}); |
| | | }); |
| | | } |
| | | }, |
| | | async classGridStyleInfo(clsid,styleName,clsType){ |
| | | var $this = this; |
| | |
| | | if (success.code=='00000') { |
| | | var data = JSON.parse(success.data); |
| | | var actionlist = data.action; |
| | | |
| | | |
| | | if (actionlist) { |
| | | console.log(actionlist); |
| | | for (var ii = 0; ii < actionlist.length; ii++) { |
| | |
| | | for (var i = 0; i < result.length; i++) { |
| | | for (var s = 0; s < $this.$data.subPanelList.length; s++) { |
| | | if($this.$data.subPanelList[s].scanCodeVal == scanCodeVal){ |
| | | if(result[i].attr=="S_ID") |
| | | $this.$data.subPanelList[s].ObjID=result[i].value; |
| | | var _subClassAttr = $this.$data.subPanelList[s].subClassAttr; |
| | | for (var c = 0; c < _subClassAttr.length; c++) { |
| | | var attr = _subClassAttr[c].Attr; |
| | |
| | | for (var i = 0; i < result.length; i++) { |
| | | for (var s = 0; s < $this.$data.subPanelList.length; s++) { |
| | | if($this.$data.subPanelList[s].scanCodeVal == scanCodeVal){ |
| | | if(result[i].attr=="S_ID") |
| | | $this.$data.subPanelList[s].ObjID=result[i].value; |
| | | var _subClassAttr = $this.$data.subPanelList[s].subClassAttr; |
| | | for (var c = 0; c < _subClassAttr.length; c++) { |
| | | var attr = _subClassAttr[c].Attr; |