查找点位接口
This commit is contained in:
@@ -94,7 +94,7 @@
|
|||||||
},
|
},
|
||||||
/** 点位查询1 */
|
/** 点位查询1 */
|
||||||
async _pointSearch1 (a) {
|
async _pointSearch1 (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a, '', '1')
|
||||||
this.options1 = [...res]
|
this.options1 = [...res]
|
||||||
this.options1.map(el => {
|
this.options1.map(el => {
|
||||||
this.$set(el, 'value', el.point_code)
|
this.$set(el, 'value', el.point_code)
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
},
|
},
|
||||||
/** 点位查询2 */
|
/** 点位查询2 */
|
||||||
async _pointSearch2 (a) {
|
async _pointSearch2 (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a, '', '0')
|
||||||
this.options2 = [...res]
|
this.options2 = [...res]
|
||||||
this.options2.map(el => {
|
this.options2.map(el => {
|
||||||
this.$set(el, 'value', el.point_code)
|
this.$set(el, 'value', el.point_code)
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
},
|
},
|
||||||
/** 点位查询 下拉框显示 */
|
/** 点位查询 下拉框显示 */
|
||||||
async _pointSearch (a) {
|
async _pointSearch (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a, '', '1')
|
||||||
this.options1 = [...res]
|
this.options1 = [...res]
|
||||||
this.options1.map(el => {
|
this.options1.map(el => {
|
||||||
this.$set(el, 'value', el.point_code)
|
this.$set(el, 'value', el.point_code)
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
},
|
},
|
||||||
/** 点位查询 下拉框显示 */
|
/** 点位查询 下拉框显示 */
|
||||||
async _pointSearch (a) {
|
async _pointSearch (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a, '', '1')
|
||||||
this.options1 = [...res]
|
this.options1 = [...res]
|
||||||
this.options1.map(el => {
|
this.options1.map(el => {
|
||||||
this.$set(el, 'value', el.point_code)
|
this.$set(el, 'value', el.point_code)
|
||||||
|
|||||||
@@ -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',
|
url:'api/pda/point',
|
||||||
data: {
|
data: {
|
||||||
region_code: rcode,
|
region_code: rcode,
|
||||||
point_code: pcode
|
point_code: pcode,
|
||||||
|
need_emtpy: ne
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user