From 8873575e8815a6cd4f9bb40b183c266fefffd7d9 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 10 Mar 2025 19:14:28 +0800 Subject: [PATCH] no message --- pages/manage/point-reset.vue | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pages/manage/point-reset.vue b/pages/manage/point-reset.vue index 419fc27..54edf15 100644 --- a/pages/manage/point-reset.vue +++ b/pages/manage/point-reset.vue @@ -8,7 +8,7 @@ 起点 - + @@ -16,7 +16,7 @@ 终点 - + @@ -39,24 +39,31 @@ return { title: '', index1: '', - options: [], + options1: [], + options2: [], index2: '', disabled: false }; }, onLoad (options) { this.title = options.title - this._getWastePointList() + this._getWastePointList(1) + this._getWastePointList(2) }, methods: { - async _getWastePointList () { - let res = await getWastePointList() + async _getWastePointList (type) { + let res = await getWastePointList(type) if (res) { res.map(el => { this.$set(el, 'text', el.point_code) this.$set(el, 'value', el.point_code) }) - this.options = [...res] + if (type === 1) { + this.options1 = [...res] + } + if (type === 2) { + this.options2 = [...res] + } } }, async toSure1 () {