|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template slot="menuRight">
|
|
|
+ <template slot="menuRight" v-if="query.fileStorageType!==''">
|
|
|
<div>
|
|
|
<el-button type="primary"
|
|
|
icon="el-icon-plus"
|
|
@@ -40,6 +40,9 @@
|
|
|
@click="toadd"></el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <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>
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
|
<!-- 编辑元素表单信息 -->
|
|
|
<el-dialog
|
|
@@ -48,7 +51,7 @@
|
|
|
width="60%" :center='true'
|
|
|
:modal-append-to-body="false"
|
|
|
>
|
|
|
- <div>
|
|
|
+ <div >
|
|
|
<div style="float:right;margin-bottom:20px">
|
|
|
<el-select v-model="optionvalue" placeholder="请选择文件存储类型">
|
|
|
<el-option
|
|
@@ -60,7 +63,6 @@
|
|
|
</el-select>
|
|
|
<!-- <el-button type="primary" @click="allocationSave">保存</el-button> -->
|
|
|
</div>
|
|
|
-
|
|
|
<el-table
|
|
|
:data="MetadataformDatass"
|
|
|
border ref="dialogtable"
|
|
@@ -111,13 +113,17 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {getDetail,getMetadataDetail,metadataSubmit,metadataUpdate, metadataRemove,getAllocationDetail,allocation} from "@/api/tentative/testcollect";
|
|
|
+import {getDetail,getMetadataDetail,metadataSubmit,metadataUpdate, metadataRemove,getAllocationDetail,allocation,cancelAllocation} from "@/api/tentative/testcollect";
|
|
|
import {mapGetters} from "vuex";
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
options: [
|
|
|
+ {
|
|
|
+ value: '',
|
|
|
+ label: '元数据表'
|
|
|
+ },
|
|
|
{
|
|
|
value: 0,
|
|
|
label: '普通'
|
|
@@ -151,7 +157,7 @@ export default {
|
|
|
optionvalue: 0,
|
|
|
form: {},
|
|
|
query: {
|
|
|
- fileStorageType:0,
|
|
|
+ fileStorageType:'',
|
|
|
},
|
|
|
loading: true,
|
|
|
page: {
|
|
@@ -299,7 +305,8 @@ export default {
|
|
|
pageSize:20,
|
|
|
total:0,
|
|
|
current:1,
|
|
|
- }
|
|
|
+ },
|
|
|
+ isShowedit:true
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -307,10 +314,9 @@ export default {
|
|
|
permissionList() {
|
|
|
return {
|
|
|
viewBtn: false,
|
|
|
- //addBtn: this.vaildData(this.permission.imageclassificationconfig_add, false),
|
|
|
- //viewBtn: this.vaildData(this.permission.imageclassificationconfig_view, false),
|
|
|
- //delBtn: this.vaildData(this.permission.imageclassificationconfig_delete, false),
|
|
|
- // editBtn: this.vaildData(this.permission.imageclassificationconfig_edit, false)
|
|
|
+ addBtn: this.isShowedit,
|
|
|
+ delBtn: this.isShowedit,
|
|
|
+ editBtn: this.isShowedit,
|
|
|
};
|
|
|
},
|
|
|
ids() {
|
|
@@ -478,9 +484,15 @@ export default {
|
|
|
},
|
|
|
|
|
|
//切换选项
|
|
|
- queryChange(){
|
|
|
+ queryChange(val){
|
|
|
this.page.currentPage = 1;
|
|
|
this.onLoad(this.page);
|
|
|
+ if(val!==''){
|
|
|
+ this.isShowedit=false
|
|
|
+ }else{
|
|
|
+ this.isShowedit=true
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
setAllocation(){
|
|
@@ -551,6 +563,16 @@ export default {
|
|
|
this.queryChange();
|
|
|
})
|
|
|
this.setMetadataTag=false
|
|
|
+ },
|
|
|
+ //取消捕获
|
|
|
+ cancel(row){
|
|
|
+ cancelAllocation({
|
|
|
+ ids:row.id,
|
|
|
+ type:this.query.fileStorageType
|
|
|
+ }).then(()=>{
|
|
|
+ this.handleCurrentChange(1);
|
|
|
+ this.queryChange();
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
};
|