diff --git a/src/pages/proj/CallCarry.vue b/src/pages/proj/CallCarry.vue index 01ebfbc..5b72739 100644 --- a/src/pages/proj/CallCarry.vue +++ b/src/pages/proj/CallCarry.vue @@ -175,7 +175,7 @@ export default { this.val1 = this.optionNew1[i].label this.val2 = '' this.active2 = '' - this._getPointListByRegion(this.optionNew1[i].value) + this._getPointListByRegion(1, this.optionNew1[i].value) } }, /** ---- */ @@ -212,18 +212,27 @@ export default { this.val3 = this.optionNew3[i].label this.val4 = '' this.active4 = '' - this._getPointListByRegion(this.optionNew3[i].value) + this._getPointListByRegion(2, this.optionNew3[i].value) } }, /** 查询点位 */ - async _getPointListByRegion (code) { + async _getPointListByRegion (t, code) { let res = await getPointListByRegion(code) if (res.code === '1') { - this.option2 = [...res.result] - this.option2.map(el => { - this.$set(el, 'value', el.point_code) - this.$set(el, 'label', el.point_name) - }) + if (t === 1) { + this.option2 = [...res.result] + this.option2.map(el => { + this.$set(el, 'value', el.point_code) + this.$set(el, 'label', el.point_name) + }) + } + if (t === 2) { + this.option4 = [...res.result] + this.option4.map(el => { + this.$set(el, 'value', el.point_code) + this.$set(el, 'label', el.point_name) + }) + } } else { this.Dialog(res.desc) }