Ver Fonte

元数据设置分类成功提示

duy há 2 anos atrás
pai
commit
2679903596
1 ficheiros alterados com 9 adições e 3 exclusões
  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=''
     },
     //取消捕获