From 27e38f8351d6218d7b4d573b70af0d12540425f7 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Thu, 18 Apr 2024 17:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A6=8F=E8=A2=8B=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E8=AE=B0=E5=BD=95=E7=9A=84=E5=9C=B0=E5=8C=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/luckybag/LuckyBagRecordView.vue | 38 +++++++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/src/views/luckybag/LuckyBagRecordView.vue b/src/views/luckybag/LuckyBagRecordView.vue index 79e535c..7194d14 100644 --- a/src/views/luckybag/LuckyBagRecordView.vue +++ b/src/views/luckybag/LuckyBagRecordView.vue @@ -29,12 +29,12 @@
+ +
-
-
@@ -74,6 +74,7 @@ export default { }, created() { this.$nextTick(function () { + this.initPartition(); this.initData(); }); }, @@ -167,7 +168,38 @@ export default { }); }); - } + }, + initPartition() { + getPartitionInfoList().then(res => { + let data = res.data; + buildSelectOption( + "#sendPartitionId", + null, + [{ + value: '', + text: '全部' + }].concat(data.map((v) => { + return { + value: v.id, + text: v.desc, + }; + })) + ); + buildSelectOption( + "#receivePartitionId", + null, + [{ + value: '', + text: '全部' + }].concat(data.map((v) => { + return { + value: v.id, + text: v.desc, + }; + })) + ); + }); + }, }, };