优化: 工机具管理-编码设备管理-下拉选择先后顺序
This commit is contained in:
parent
fb0ec7cb81
commit
036c1eb2a5
|
|
@ -44,6 +44,7 @@
|
|||
clearable
|
||||
filterable
|
||||
style="width: 240px"
|
||||
:disabled="!queryParams.itemId"
|
||||
@change="selectDevice"
|
||||
>
|
||||
<el-option
|
||||
|
|
@ -60,6 +61,7 @@
|
|||
placeholder="请选择规格型号"
|
||||
clearable
|
||||
filterable
|
||||
:disabled="!queryParams.deviceId"
|
||||
style="width: 240px"
|
||||
>
|
||||
<el-option
|
||||
|
|
@ -638,6 +640,8 @@ export default {
|
|||
//选择物品种类
|
||||
selectItem(id) {
|
||||
console.log(id)
|
||||
this.queryParams.deviceId = ''
|
||||
this.queryParams.typeId = ''
|
||||
getListByMaType({ typeId: id }).then((response) => {
|
||||
this.typeList = response.data
|
||||
})
|
||||
|
|
@ -645,6 +649,7 @@ export default {
|
|||
//选择设备类型
|
||||
selectDevice(id) {
|
||||
console.log(id)
|
||||
this.queryParams.typeId = ''
|
||||
getListByMaType({ typeId: id }).then((response) => {
|
||||
this.modelList = response.data
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue