duy 1 月之前
父節點
當前提交
621de2677f
共有 2 個文件被更改,包括 12 次插入9 次删除
  1. 2 4
      src/api/exctab/excelmodel.js
  2. 10 5
      src/views/exctab/exceltab.vue

+ 2 - 4
src/api/exctab/excelmodel.js

@@ -283,12 +283,10 @@ export const downExcelFileModel = (fileId) => {
     })
 }
 //清表模板树节点排序
-export const exctabSort = (ids) => {
+export const exctabSort = (form) => {
     return request({
         url: '/api/blade-manager/exceltab/tab-sort',
         method: 'post',
-        data: {
-            ids,
-        }
+        params: form
     })
 }

+ 10 - 5
src/views/exctab/exceltab.vue

@@ -143,7 +143,7 @@
           <i class="el-icon-view" style="color: #2550A2; margin-right: 10px;"></i>模板信息
         </span>
 
-        <div class="dialog-content">
+        <div class="dialog-content" v-loading="infoLoading">
           <!-- 模板基本信息 -->
           <div class="basic-info">
           <div class="flex">
@@ -166,7 +166,7 @@
                 <div >{{ templateInfo.tableTemplateTypeName||'项目类型' }}</div>
                 <div class="value">
                 <span> 创建信息:</span>
-                  <span>{{ templateInfo.createUser }}</span>
+                  <span>{{ templateInfo.createUserName }}</span>
                   <span class="ml-4">{{templateInfo.createTime  }}</span>
                 </div>
                 
@@ -389,6 +389,8 @@ export default {
       tableTemplateTypeList: [],
       projectList:[],
       infoVisible: false,
+      infoLoading: false,
+
       templateInfo: {
        
       },
@@ -622,13 +624,16 @@ export default {
       // 可重新请求数据
     },
     getExcelInfoData(id){
+      this.infoLoading = true;
        getExcelInfo({id:id}).then((res) => {
              if(res.data.code==200){
                 this.templateInfo = res.data.data;
             }else{
                  this.templateInfo = {}
             }
-    })
+    }).finally(() => {
+            this.infoLoading = false;
+        });
   },
   searchClick(){
      this.onLoad(this.page,this.query);
@@ -669,9 +674,9 @@ handleSort(){
     },
     saveSort(ids){
 
-      
+      let allIds=ids.join(',');
         
-        exctabSort(ids).then((res) => {
+        exctabSort({ids:allIds}).then((res) => {
                     this.sortProLoad= false;
                     if(res.data.code==200){
                         this.$message.success(res.data.msg)