info.js
1.19 KB
export default {
data() {
return {
systemTypeOptions: [],
areaOptions: [],
systemClassOptions: [],
specialRecordTypeOption: [],
}
},
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;
},
},
}