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 | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
index 2adc176..ac0cd0d 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -1466,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;
},
@@ -1610,6 +1613,9 @@
addsHandler() {
batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => {
this.$message.success('淇濆瓨鎴愬姛')
+ this.editOpenFlag=false
+ }).catch(()=>{
+ this.$message.warning('淇濆瓨澶辫触锛岃鏌ョ湅鎺у埗鍙拌緭鍑猴紒')
})
},
@@ -1657,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;
}
}
},
@@ -1925,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