|
@@ -224,6 +224,7 @@ export default {
|
|
|
this.unitMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_UNIT)
|
|
|
this.sourceTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBTYPE_SOURCETYPE)
|
|
|
this.useTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_UES_TYPE)
|
|
|
+ this.setTree()
|
|
|
querySbPosition().then(res => {
|
|
|
this.sbPositionData = res.data
|
|
|
})
|
|
@@ -270,7 +271,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleOk () {
|
|
|
- this.setTree()
|
|
|
this.$refs.table.refresh()
|
|
|
},
|
|
|
onSelectChange (selectedRowKeys, selectedRows) {
|
|
@@ -296,14 +296,9 @@ export default {
|
|
|
base (record, keys) {
|
|
|
this.visible = true
|
|
|
this.modalTitle = '选择设备'
|
|
|
- if (this.isCreated) {
|
|
|
- if (keys.length === 0) this.$refs.table.clearSelected()
|
|
|
- this.options.rowSelection.type = this.type
|
|
|
- this.handleOk()
|
|
|
- } else {
|
|
|
- // this.tableOption()
|
|
|
- this.isCreated = true
|
|
|
- }
|
|
|
+ if (keys.length === 0) this.$refs.table.clearSelected()
|
|
|
+ this.options.rowSelection.type = this.type
|
|
|
+ this.handleOk()
|
|
|
// this.mySelect(this.selectedRowKeys, this.selectedRows)
|
|
|
},
|
|
|
handleCancel () {
|