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,
+ };
+ }))
+ );
+ });
+ },
},
};