Преглед изворни кода

Merge branch 'dev' of http://git.izouma.com/licailing/zhirongip into dev

xuqiang пре 4 година
родитељ
комит
1d06d70a00
1 измењених фајлова са 11 додато и 3 уклоњено
  1. 11 3
      src/main/zhi-rong-web/src/views/legal/Expert.vue

+ 11 - 3
src/main/zhi-rong-web/src/views/legal/Expert.vue

@@ -10,7 +10,6 @@
 import { typeOptions, intePropLawStatus } from '../../utils/variables';
 import SortList from '../../components/page/SortList.vue';
 import ManageGride from '../../components/list/ExpertGride.vue';
-import { affiliationOptions } from '../../utils/variables';
 export default {
     components: { SortList, ManageGride },
     created() {
@@ -25,7 +24,7 @@ export default {
             },
             typeOptions,
             intePropLawStatus,
-            affiliationOptions
+            affiliationOptions: []
         };
     },
     computed: {
@@ -54,7 +53,16 @@ export default {
     methods: {
         init() {
             this.$http
-                .post('/setting/byFlag', { flag: 1 })
+                .post('/setting/byFlag', { flag: 15 })
+                .then(res => {
+                    this.affiliationOptions = res.map(item => {
+                        return {
+                            label: item.name,
+                            value: item.id
+                        };
+                    });
+                    return this.$http.post('/setting/byFlag', { flag: 1 });
+                })
                 .then(res => {
                     if (res.length > 0) {
                         this.fieldOptions = res.map(item => {