From 51cfee116cd8910d7ef577e9df1e978528018d38 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Tue, 9 Jan 2024 15:09:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E4=BD=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/proj/CallCarry.vue | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) 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) }