|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <el-dialog title="批量关联资产" :visible.sync="dialog.linkAssets" width="700px">
|
|
|
+ <el-dialog title="批量关联资产" :visible.sync="dialog.linkAssets" @open="handleOpenReset" width="700px">
|
|
|
<el-row>
|
|
|
<span class="condition-title">设备类型:</span>
|
|
|
<el-select v-model="deviceType" filterable size="small" @change="handleChangeDevice" style="width:350px;">
|
|
@@ -68,6 +68,14 @@ export default {
|
|
|
},
|
|
|
mounted() { },
|
|
|
methods: {
|
|
|
+ //打开弹窗回调,初始化选择
|
|
|
+ handleOpenReset(){
|
|
|
+ this.deviceType = ''
|
|
|
+ this.buildFloor = ['all']
|
|
|
+ this.zone = 'all'
|
|
|
+ this.space = []
|
|
|
+ this.spaceShow = false
|
|
|
+ },
|
|
|
//获取未关联资产的设备或部件类型
|
|
|
getPartsDieType() {
|
|
|
TypePartsDie(res => {
|
|
@@ -159,7 +167,11 @@ export default {
|
|
|
Projection: [ "Code", "Name" ]
|
|
|
}
|
|
|
queryDictionaryHead(params, res => {
|
|
|
- this.zoneList = res.Content
|
|
|
+ this.zoneList = res.Content.filter(item => {
|
|
|
+ if(item.Code != 'Ispace'){
|
|
|
+ return item
|
|
|
+ }
|
|
|
+ })
|
|
|
this.zoneList.unshift({
|
|
|
Name: '全部',
|
|
|
Code: 'all'
|