|
@@ -66,10 +66,12 @@
|
|
|
</div>
|
|
|
<el-table
|
|
|
:data="MetadataformDatass"
|
|
|
+ :row-key="selRowKey"
|
|
|
border ref="dialogtable"
|
|
|
style="width: 100%;">
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
|
+ reserve-selection
|
|
|
width="55">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -308,6 +310,7 @@ export default {
|
|
|
data: [],
|
|
|
setMetadataTag:false,
|
|
|
MetadataformDatass:[],
|
|
|
+
|
|
|
|
|
|
page2:{
|
|
|
pageSize:20,
|
|
@@ -485,6 +488,9 @@ export default {
|
|
|
|
|
|
}
|
|
|
this.setMetadataTag=true;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//新增一条数据
|
|
@@ -506,11 +512,20 @@ export default {
|
|
|
},
|
|
|
|
|
|
setAllocation(){
|
|
|
- this.getAllocationList();
|
|
|
+
|
|
|
this.setMetadataTag=true;
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.$refs.dialogtable.clearSelection();
|
|
|
+ })
|
|
|
+ this.getAllocationList();
|
|
|
+ this.optionvalue=''
|
|
|
// this.optionvalue = this.query.fileStorageType;
|
|
|
},
|
|
|
-
|
|
|
+ //为行设置独有key
|
|
|
+ selRowKey(row){
|
|
|
+ // console.log(row);
|
|
|
+ return row.id
|
|
|
+ },
|
|
|
getAllocationList(){
|
|
|
getAllocationDetail(this.page2.current,this.page2.pageSize,{
|
|
|
fileStorage:''
|
|
@@ -527,10 +542,9 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
this.$nextTick(()=>{
|
|
|
checkarr.forEach((ele)=>{
|
|
|
- this.$refs.dialogtable.toggleRowSelection(ele);
|
|
|
+ this.$refs.dialogtable.toggleRowSelection(ele,true);
|
|
|
})
|
|
|
})
|
|
|
})
|
|
@@ -614,6 +628,7 @@ export default {
|
|
|
//回显选择
|
|
|
changeType(val){
|
|
|
this.page2.current = 1;
|
|
|
+ this.$refs.dialogtable.clearSelection();
|
|
|
this.getAllocationList()
|
|
|
|
|
|
}
|