From 94ebac05e5394173de5eac99a2bc87f7a82fd06f Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期日, 13 八月 2023 22:25:23 +0800
Subject: [PATCH] 1、处理basemodel与dataMap里面大小写不一致问题。

---
 Source/UBCS-WEB/src/components/work/BusinessWork.vue |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/work/BusinessWork.vue b/Source/UBCS-WEB/src/components/work/BusinessWork.vue
index b5ca69f..503cf32 100644
--- a/Source/UBCS-WEB/src/components/work/BusinessWork.vue
+++ b/Source/UBCS-WEB/src/components/work/BusinessWork.vue
@@ -106,12 +106,21 @@
     HandlerSave(){
       this.editingRow = null;
       //淇濆瓨
-      batchUpdateCode(this.tableData).then(res => {
-        console.log(res)
-        if(res.data.data.success){
-          this.$message.success("淇濆瓨鎴愬姛");
+      let datas=this.tableData.map(item=> {
+        let newitem = {
+          codeClassifyOid: item.codeclsfid,
+          templateOid: this.templateId,
+          editInProcess: true,
+          data: item,
+          oid:item.oid,
+          ts:item.ts
         }
-
+        return newitem;
+      })
+      batchUpdateCode(datas).then(res => {
+        if(res.data.data.success){
+          this.$message.success("淇敼鎴愬姛");
+        }
       })
     },
     //琛ㄦ牸澶存覆鏌�
@@ -154,7 +163,6 @@
 
             }
             if(editAttr.length>0) {
-              debugger;
               editAttr=editAttr[0]
               columnItem.edit= 'text';//this.columnType[editAttr.edit]
               if (typeof editAttr.editConfig == "string") {

--
Gitblit v1.9.3