生产区域

This commit is contained in:
2022-10-14 09:46:35 +08:00
parent 465fbbf429
commit 4955183745

View File

@@ -93,15 +93,12 @@
/** 生产区域下拉框查询 */ /** 生产区域下拉框查询 */
async _queryProductArea () { async _queryProductArea () {
let res = await queryProductArea() let res = await queryProductArea()
this.options = [...res.rows] this.options = [...res.data]
}, },
/** 查询 */ /** 初始化查询 */
async _queryRawFoil () { async _queryRawFoil () {
if (!this.val1 || !this.val2 || !this.index) { let res = await _queryRawFoil(this.val1, this.val2, this.index)
return this.dataList = [...res.data]
}
let res = await queryRawFoil(this.val1, this.val2, this.options[this.index].value)
this.dataList = [...res.rows]
} }
} }
} }