From c892580371ef4679c858e2da98f71a9345aa3d80 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 08 十二月 2023 10:37:20 +0800
Subject: [PATCH] 代码提交

---
 Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
index 183da7e..e874bdf 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -326,6 +326,7 @@
                 v-loading="loading"
                 :data="ProData"
                 :height="this.tableHeight"
+                :header-cell-style="{background:'#FAFAFA',color:'#505050'}"
                 border
                 style="width: 100%"
                 @select="selectHandle"
@@ -358,13 +359,14 @@
               @blur="saveRows(row)"
             ></el-input>
             <el-input-number v-if="editingRows === row && editShows== item.prop && item.edit == 'number'"
+                             v-show="!AddCellFlag"
                              v-model="row[item.prop]"
                              :style="{width:(item.width-10)+'px'}"
                              controls-position="right"
                              size="small" @blur="saveRows"></el-input-number>
-            <el-select v-if="editingRows === row && editShows== item.prop && item.edit == 'select' " slot="prepend"
+            <el-select v-if="editingRows === row && editShows== item.prop && item.edit == 'select' " slot="prepend" :clearable="true"
                        v-model="row[item.prop]" allow-create default-first-option
-                       filterable
+                       filterable v-show="!AddCellFlag"
                        @blur="selectChangeHandler(item.editConfig,index)">
               <el-option
                 v-for="optionItem in item.data"
@@ -1716,7 +1718,10 @@
             attrTableWidth: 120,
             ts: ""
           })
-          this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)))
+          // 灏嗚嫳鏂囩紪鍙疯浆鎹负灏忓啓
+          let { id, ...res } = this.busineAddList;
+          this.busineAddList = { id: id.toLowerCase(), ...res };
+          this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)));
         }
       })
       this.addVisible = false;
@@ -1850,8 +1855,8 @@
       // 鏂板嚱鏁扮敤浜庢墽琛宐atchAddSave鏂规硶
       const executeBatchAddSave = () => {
         batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => {
-          this.$message.success('淇濆瓨鎴愬姛')
           this.editOpenFlag = false;
+          this.$message.success('淇濆瓨鎴愬姛')
           // 璋冪敤鐖剁粍浠朵慨鏀规寜閽姸鎬�
           this.$emit('editCloseChildren')
           this.AddCellFlag = true;

--
Gitblit v1.9.3