From 095c79efb36c7fae5672fa0b2481c6b688cba7eb Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 21 七月 2023 17:32:02 +0800 Subject: [PATCH] 提交代码 --- Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue index 651e7cc..1f42c86 100644 --- a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue +++ b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue @@ -78,7 +78,7 @@ <el-tag>{{ row.attrDataTypeText }}</el-tag> </template> <template slot="menu" slot-scope="{row,index}"> - <el-button icon="el-icon-edit" size="small" type="text" v-if="!row.$cellEdit" @click="cellEditClick(row)">缂栬緫 + <el-button icon="el-icon-edit" size="small" type="text" v-if="!row.$cellEdit" @click="cellEditClick(row,index)">缂栬緫 </el-button> <el-button icon="el-icon-delete" size="small" type="text" v-if="!row.$cellEdit" @click="removeFormAttrTable(row,index)">绉婚櫎 @@ -536,7 +536,7 @@ if (!this.btmType.attributes) { this.btmType.attributes = []; } - console.log(this.attrRef.selectData); + // console.log(this.attrRef.selectData); this.attrRef.selectData.forEach(item => { this.btmType.attributes.push({ id: item.id, @@ -605,15 +605,18 @@ }, // 鍒楄〃缂栬緫 cellEditClick(cell) { - console.log(cell); + // console.log(cell); cell.$cellEdit = true; }, // 鍒楄〃缂栬緫淇濆瓨 - cellEditSave(row) { - this.btmType.attributes[row.$index].name = row.name - this.btmType.attributes[row.$index].defaultValue = row.defaultValue; - this.btmType.attributes[row.$index].description = row.description; + cellEditSave(row,index) { + // console.log("1111111111111111111111") + this.btmType.attributes[index].name = row.name + this.btmType.attributes[index].defaultValue = row.defaultValue; + this.btmType.attributes[index].description = row.description; row.$cellEdit = false; + // console.log(this.btmType.attributes); + this.$refs.attrTable.refreshTable(); }, // 鎵撳紑鐗堟湰瑙勫垯鍙傜収 openRevision() { -- Gitblit v1.9.3