Blame view

src/mixins/info.js 1.19 KB
0af91599   monkeyhouyi   弹框请求优化
1
2
3
4
5
6
  
  export default {
      data() {
          return {
              systemTypeOptions: [],
              areaOptions: [],
5a14192c   monkeyhouyi   1
7
8
              systemClassOptions: [],
              specialRecordTypeOption: [],
0af91599   monkeyhouyi   弹框请求优化
9
10
11
12
13
14
15
          }
      },
      created() {},
      methods: {
          async initSystemTypeList() {
              let list = this.$store.state.meta.system;
              !list && (list = await this.$store.dispatch('getTypeListByCode', 'system'));
0af91599   monkeyhouyi   弹框请求优化
16
17
18
19
20
21
22
23
24
25
26
27
              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;
          },
5a14192c   monkeyhouyi   1
28
29
30
31
32
          async initSpecialRecordTypeOption() {
              let list = this.$store.state.meta.specialRecordTypeList;
              !list && (list = await this.$store.dispatch('getTypeListByCode', 'specialRecordType'));
              this.specialRecordTypeOption = list;
          },
0af91599   monkeyhouyi   弹框请求优化
33
34
35
  
      },
  }