优化: 工机具管理-编码设备管理-下拉选择先后顺序

This commit is contained in:
binbin_pan 2024-06-18 09:14:34 +08:00
parent fb0ec7cb81
commit 036c1eb2a5
1 changed files with 5 additions and 0 deletions

View File

@ -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
})