From 099495ea7e8bc2baf591d7f6f0babe2782df9ad5 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期二, 12 八月 2025 17:46:02 +0800
Subject: [PATCH] 1

---
 src/views/wel/gongkong.vue |   33 ++++++++++++++++-----------------
 1 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/src/views/wel/gongkong.vue b/src/views/wel/gongkong.vue
index 2722c5f..29e604b 100644
--- a/src/views/wel/gongkong.vue
+++ b/src/views/wel/gongkong.vue
@@ -2,7 +2,7 @@
  * @Author: 鏉庡枂(寮�鍙戠粍) lzhe@yxqiche.com
  * @Date: 2025-08-11 09:25:36
  * @LastEditors: 鏉庡枂(寮�鍙戠粍) lzhe@yxqiche.com
- * @LastEditTime: 2025-08-12 17:13:14
+ * @LastEditTime: 2025-08-12 17:43:58
  * @FilePath: /mdmweb/src/views/wel/gongkong.vue
  * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -32,7 +32,7 @@
         </el-table-column>
       </el-table>
       <div class="paginationTree">
-        <el-pagination layout="prev, pager, next" :total="total" @size-change="sizeChange" @current-change="currentChange" />
+        <el-pagination layout="prev, pager, next" :total="fileTotal" @size-change="sizeChange" @current-change="currentChange" />
       </div>
     </div>
   </div>
@@ -64,7 +64,7 @@
       treeData: [],
       current: 1,
       size: 10,
-      total: 0,
+      fileTotal: 0,
       treecFileData: [],
       TreeNode: {},
       fileRow: {},
@@ -76,19 +76,18 @@
   },
   methods: {
     fileDialogComit() {
-      console.log(this.fileRow);
-      // this.loading = true;
-      // axios({
-      //   url: '/blade-mdm/gkw/node/file-content',
-      //   method: 'get',
-      //   params: {id:row.id},
-      // }).then(
-      //   res => {
-      //     this.loading = false;
-      //     this.fileDialogVisible = true;
-      //     this.fileContent = res.data.data.replace(/\n/g, '<br>');
-      //   }
-      // );
+      this.loading = true;
+      axios({
+        url: '/blade-mdm/gkw/node/file-save',
+        method: 'post',
+        params: {id:this.fileRow.id,content: this.fileContent},
+      }).then(
+        res => {
+          this.loading = false;
+          this.fileDialogVisible = false;
+          this.$message.success("鎿嶄綔鎴愬姛");
+        }
+      );
     },
     fileView(row) {
       this.fileOptionTitle = "鏌ョ湅";
@@ -146,7 +145,7 @@
         }).then(
           res => {
             this.treecFileData = res.data.data.records;
-            this.total = res.data.data.total;
+            this.fileTotal = res.data.data.total;
           }
         )
       }else {

--
Gitblit v1.9.3