This commit is contained in:
2023-07-18 09:03:43 +08:00
parent b7b8b5e9f5
commit 8a6b086842

View File

@@ -104,8 +104,12 @@ export default {
} }
}, },
created () { created () {
this._dictall() if (this.options1 === []) {
this._washdevicelist() this._dictall()
}
if (this.options2 === []) {
this._washdevicelist()
}
}, },
methods: { methods: {
// 车间下拉框 // 车间下拉框
@@ -119,7 +123,7 @@ export default {
}, },
// 设备下拉框 // 设备下拉框
async _washdevicelist () { async _washdevicelist () {
let res = await washdevicelist('1535144682756116480') let res = await washdevicelist('1535144552481034240')
if (res.code === 200) { if (res.code === 200) {
this.options2 = [...res.content] this.options2 = [...res.content]
} else { } else {