|
@@ -12,6 +12,7 @@
|
|
placeholder="请输入设备名称或设备编号"
|
|
placeholder="请输入设备名称或设备编号"
|
|
show-search
|
|
show-search
|
|
:filterOption="filterOptions"
|
|
:filterOption="filterOptions"
|
|
|
|
+ @change="clearOptions"
|
|
@search="searchDevice"
|
|
@search="searchDevice"
|
|
allowClear>
|
|
allowClear>
|
|
<a-select-option v-for="(item, index) in deviceOptions" :key="index" :value="item.id" :label="item.equipmentname">
|
|
<a-select-option v-for="(item, index) in deviceOptions" :key="index" :value="item.id" :label="item.equipmentname">
|
|
@@ -370,6 +371,10 @@ import Template1 from '../../jeecg/JVxeDemo/layout-demo/Template1.vue'
|
|
filterOptions(input, option) {
|
|
filterOptions(input, option) {
|
|
return this.deviceOptions
|
|
return this.deviceOptions
|
|
},
|
|
},
|
|
|
|
+ // 解决筛选后删除option不回显问题
|
|
|
|
+ clearOptions() {
|
|
|
|
+ this.deviceOptions = this.deviceOptionsAll
|
|
|
|
+ },
|
|
getDataList(){
|
|
getDataList(){
|
|
console.log(111,this.selectData)
|
|
console.log(111,this.selectData)
|
|
this.queryParam.equipmenttreeid = this.selectData.equipmenttreeid
|
|
this.queryParam.equipmenttreeid = this.selectData.equipmenttreeid
|