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