|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <template slot="menuRight" v-if="query.fileStorageType!==''">
|
|
|
|
|
|
+ <template slot="menuRight" v-if="query.fileStorageType==''">
|
|
<div>
|
|
<div>
|
|
<el-button type="primary"
|
|
<el-button type="primary"
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
@@ -41,7 +41,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="{type,size,row,index}" slot="menu" v-if="query.fileStorageType!==''">
|
|
<template slot-scope="{type,size,row,index}" slot="menu" v-if="query.fileStorageType!==''">
|
|
- <el-button :size="size" :type="type" @click="cancel(row,index)">取消捕获</el-button>
|
|
|
|
|
|
+ <el-button :size="size" :type="type" @click="cancel(row,index)" :loading="cancelLoad">取消捕获</el-button>
|
|
</template>
|
|
</template>
|
|
</avue-crud>
|
|
</avue-crud>
|
|
<!-- 编辑元素表单信息 -->
|
|
<!-- 编辑元素表单信息 -->
|
|
@@ -309,7 +309,8 @@ export default {
|
|
current:1,
|
|
current:1,
|
|
},
|
|
},
|
|
isShowedit:true,
|
|
isShowedit:true,
|
|
- saveload:false
|
|
|
|
|
|
+ saveload:false,
|
|
|
|
+ cancelLoad:false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -588,10 +589,12 @@ export default {
|
|
},
|
|
},
|
|
//取消捕获
|
|
//取消捕获
|
|
cancel(row){
|
|
cancel(row){
|
|
|
|
+ this.cancelLoad=true
|
|
cancelAllocation({
|
|
cancelAllocation({
|
|
ids:row.id,
|
|
ids:row.id,
|
|
type:this.query.fileStorageType
|
|
type:this.query.fileStorageType
|
|
}).then(()=>{
|
|
}).then(()=>{
|
|
|
|
+ this.cancelLoad=false
|
|
this.handleCurrentChange(1);
|
|
this.handleCurrentChange(1);
|
|
this.queryChange();
|
|
this.queryChange();
|
|
})
|
|
})
|