Pārlūkot izejas kodu

元数据设置分类成功提示

duy 2 gadi atpakaļ
vecāks
revīzija
2679903596
1 mainītis faili ar 9 papildinājumiem un 3 dzēšanām
  1. 9 3
      src/views/tentative/metadata.vue

+ 9 - 3
src/views/tentative/metadata.vue

@@ -106,6 +106,7 @@
         <el-button
           type="primary"
           @click="allocationSave"
+          :loading="saveload"
         >确 定</el-button>
       </span>
     </el-dialog>
@@ -307,7 +308,8 @@ export default {
         total:0,
         current:1,
       },
-      isShowedit:true
+      isShowedit:true,
+      saveload:false
     };
   },
   computed: {
@@ -569,15 +571,19 @@ export default {
       list.forEach((item)=>{
         ids.push(item.id)
       })
-
+      this.saveload=true
       allocation({
         ids:ids.join(','),
         type:this.optionvalue
       }).then(()=>{
+        this.$message.success('操作成功');
+        this.saveload=false
         this.handleCurrentChange(1);
         this.queryChange();
+        this.setMetadataTag=false
+
       })
-      this.setMetadataTag=false
+      
       this.optionvalue=''
     },
     //取消捕获