1
李喆(开发组)
2025-08-12 099495ea7e8bc2baf591d7f6f0babe2782df9ad5
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 {