|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <a-modal v-model="visible" title="选择编辑" width="1200px" class="edit-dialog" >
|
|
|
+ <a-modal v-model="visible" title="选择编辑" width="1200px" class="edit-dialog" @cancel="handleCancel">
|
|
|
<template slot="footer">
|
|
|
<a-button key="back" @click="handleCancel">
|
|
|
取消
|
|
@@ -128,7 +128,8 @@
|
|
|
treeData:[],
|
|
|
total:0,
|
|
|
selectedRowKeys :[],
|
|
|
- arrList:[]
|
|
|
+ arrList:[],
|
|
|
+ selectList:[],
|
|
|
}
|
|
|
},
|
|
|
computed:{
|
|
@@ -160,10 +161,17 @@
|
|
|
})
|
|
|
bus.$emit('changeAttachObjectIds',lists)
|
|
|
bus.$emit('updateAttachMsg',lists)
|
|
|
- }, 3000);
|
|
|
+ },1000);
|
|
|
},
|
|
|
handleCancel(e) {
|
|
|
this.visible = false;
|
|
|
+ let arr = [];
|
|
|
+ let lists = [];
|
|
|
+ arr = JSON.parse(JSON.stringify( this.selectList))
|
|
|
+ arr.map(item =>{
|
|
|
+ lists.push({id:item.location||item.assetnum,name:item.wzjc||item.sbjc})
|
|
|
+ })
|
|
|
+ bus.$emit('changeAttachObjectIds',lists)
|
|
|
},
|
|
|
onSearch(value) {
|
|
|
this.queryGlsmsasset()
|
|
@@ -400,6 +408,7 @@
|
|
|
this.selectedRowKeys.push(item.location||item.assetnum)
|
|
|
})
|
|
|
this.arrList = JSON.parse(JSON.stringify(this.attrCards));
|
|
|
+ this.selectList = JSON.parse(JSON.stringify(this.attrCards));
|
|
|
} else{
|
|
|
this.selectedRowKeys = [];
|
|
|
}
|