0af91599
monkeyhouyi
弹框请求优化
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
export default {
data() {
return {
systemTypeOptions: [],
areaOptions: [],
systemClassOptions: []
}
},
created() {},
methods: {
async initSystemTypeList() {
let list = this.$store.state.meta.system;
!list && (list = await this.$store.dispatch('getTypeListByCode', 'system'));
|
0af91599
monkeyhouyi
弹框请求优化
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
this.systemTypeOptions = list;
},
async initAreaTypeList() {
let list = this.$store.state.meta.area;
!list && (list = await this.$store.dispatch('getTypeListByCode', 'area'));
this.areaOptions = list;
},
async initSystemClassList(val) {
let list = this.$store.state.meta.systemClass[val];
!list && (list = await this.$store.dispatch('getSystemType', val));
this.systemClassOptions = list;
},
},
}
|