查找点位接口

This commit is contained in:
2024-08-26 15:32:07 +08:00
parent 36725efaee
commit 3d37e7d557
4 changed files with 7 additions and 6 deletions

View File

@@ -94,7 +94,7 @@
},
/** 点位查询1 */
async _pointSearch1 (a) {
let res = await pointSearch(a)
let res = await pointSearch(a, '', '1')
this.options1 = [...res]
this.options1.map(el => {
this.$set(el, 'value', el.point_code)
@@ -103,7 +103,7 @@
},
/** 点位查询2 */
async _pointSearch2 (a) {
let res = await pointSearch(a)
let res = await pointSearch(a, '', '0')
this.options2 = [...res]
this.options2.map(el => {
this.$set(el, 'value', el.point_code)

View File

@@ -69,7 +69,7 @@
},
/** 点位查询 下拉框显示 */
async _pointSearch (a) {
let res = await pointSearch(a)
let res = await pointSearch(a, '', '1')
this.options1 = [...res]
this.options1.map(el => {
this.$set(el, 'value', el.point_code)

View File

@@ -83,7 +83,7 @@
},
/** 点位查询 下拉框显示 */
async _pointSearch (a) {
let res = await pointSearch(a)
let res = await pointSearch(a, '', '1')
this.options1 = [...res]
this.options1.map(el => {
this.$set(el, 'value', el.point_code)

View File

@@ -10,11 +10,12 @@ export const regionSearch = () => request({
})
// 根据区域查询点位
export const pointSearch = (rcode, pcode) => request({
export const pointSearch = (rcode, pcode, ne) => request({
url:'api/pda/point',
data: {
region_code: rcode,
point_code: pcode
point_code: pcode,
need_emtpy: ne
}
})