info.js
1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
export default {
data() {
return {
systemTypeOptions: [],
areaOptions: [],
systemClassOptions: [],
specialRecordTypeOption: [],
stateOptions: [],
communicationOutOptions: [],
}
},
created() {},
methods: {
async initSystemTypeList() {
let list = this.$store.state.meta.system;
!list && (list = await this.$store.dispatch('getTypeListByCode', 'system'));
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;
},
async initSpecialRecordTypeOption() {
let list = this.$store.state.meta.specialRecordTypeList;
!list && (list = await this.$store.dispatch('getTypeListByCode', 'specialRecordType'));
this.specialRecordTypeOption = list;
},
async initStateTypeOption() {
let list = this.$store.state.meta.stateTypeList;
!list && (list = await this.$store.dispatch('getTypeListByCode', 'stateType'));
this.stateOptions = list;
},
// 外协
async initCommunicationOutOptions() {
let list = this.$store.state.meta.externalAssistanceList;
!list && (list = await this.$store.dispatch("getTypeListByCode", "externalAssistance"));
this.communicationOutOptions = list;
},
},
}