From 0056b2bf68177e7bbb1f8d32dbbb5b0b3b281af1 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 31 七月 2023 11:38:48 +0800 Subject: [PATCH] 主题库属性分组bug --- Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue | 42 ++++++++++++++++++++++++++++++++++-------- 1 files changed, 34 insertions(+), 8 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue index 8f655e7..ac0cd0d 100644 --- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue @@ -371,6 +371,24 @@ deep:true, immediate:true }, + Formlist:{ + handler(newval,oldval){ + if(newval.length === 0){ + this.crudArrayFlag=false + return + } + } + }, + ProData:{ + handler(newval,oldval){ + if(newval){ + this.loading=true; + setTimeout(() => { + this.loading=false + }, 1000); + } + } + }, 'injectOption.classifyInvokeAttr': function(newVal) { console.log('newVal',newVal) if (newVal === "name") { @@ -1448,11 +1466,14 @@ //灞炴�у垎缁勬彁浜� attrHandle() { console.log(this.attrSelectList) - // this.$set(this.attrRow, 'attributeGroup', this.attrModel) - // this.attrSelectList.attributeGroup=this.attrModel this.attrSelectList.forEach(item=>{ item.attributeGroup=this.attrModel }) + if(this.CurrentCell){ + this.$set(this.CurrentCell, 'attributeGroup', this.attrModel) + }else { + this.$set(this.attrSelectList[0], 'attributeGroup', this.attrModel) + } this.attrModel = ""; this.attrVisible = false; }, @@ -1592,6 +1613,9 @@ addsHandler() { batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => { this.$message.success('淇濆瓨鎴愬姛') + this.editOpenFlag=false + }).catch(()=>{ + this.$message.warning('淇濆瓨澶辫触锛岃鏌ョ湅鎺у埗鍙拌緭鍑猴紒') }) }, @@ -1639,8 +1663,8 @@ }else if(column.property == 'verifyRule'){ this.RulesForm.expressionTextt=this.CurrentCell.verifyRule; this.rulesVisible=true; - console.log(this.CurrentCell.verifyRule) - console.log(this.RulesForm.expressionText) + }else if(column.property == 'attributeGroup'){ + this.attrVisible = true; } } }, @@ -1782,8 +1806,10 @@ // noinspection JSCheckFunctionSignatures if(this.CurrentCell){ //濡傛灉鏄寚瀹氬眰璧嬪�间负鏁板瓧 - if(this.CurrentCell.classifyInvokeLevel!== 'min'){ + if(this.injectOption.classifyInvokeLevel!== 'min'){ this.CurrentCell.classifyInvokeLevel=this.injectOption.classifyNumber + }else { + this.CurrentCell.classifyInvokeLevel='min' } //鍏朵綑姝e父璧嬪�� this.CurrentCell.classifyInvokeAttr=this.injectOption.classifyInvokeAttr, @@ -1799,6 +1825,8 @@ //濡傛灉鏄寚瀹氬眰璧嬪�间负鏁板瓧 if(this.injectOption.classifyInvokeLevel !== 'min'){ this.attrSelectList[0].classifyInvokeLevel=this.injectOption.classifyNumber + }else { + this.attrSelectList[0].classifyInvokeLevel='min' } this.$set(this.attrSelectList[0],'classifyInvokeText',data) } @@ -1903,11 +1931,9 @@ sortChange(val) { console.log(val) }, + //寮�鍚紪杈� editOpen(){ this.editOpenFlag=true; - console.log('涓嶇瓑浜�',this.checkStatus) - console.log('绛変簬',this.editOpenFlag) - console.log('绛変簬',this.crudLCStatus) } } } -- Gitblit v1.9.3