Browse Source

更新方法

guhongwei 5 years ago
parent
commit
95429da861
3 changed files with 8 additions and 6 deletions
  1. 2 2
      src/views/info/base/auth.vue
  2. 2 3
      src/views/info/base/info.vue
  3. 4 1
      src/views/jobs/jobfair/detail.vue

+ 2 - 2
src/views/info/base/auth.vue

@@ -101,7 +101,7 @@ export default {
     },
   }),
   created() {
-    this.search();
+    this.otherList();
   },
   watch: {
     identitys: {
@@ -126,7 +126,7 @@ export default {
   },
   methods: {
     ...mapActions(['dicOperation']),
-    async search() {
+    async otherList() {
       let result = await this.dicOperation('hylb');
       if (`${result.errcode}` === '0') {
         //给this=>vue的实例下在中的list属性,赋予result。data的值

+ 2 - 3
src/views/info/base/info.vue

@@ -120,7 +120,7 @@ export default {
     scaleList: [],
   }),
   created() {
-    this.search();
+    this.otherList();
   },
   watch: {
     original: {
@@ -138,7 +138,7 @@ export default {
   computed: {},
   methods: {
     ...mapActions(['dicOperation']),
-    async search() {
+    async otherList() {
       let result = await this.dicOperation('dwgm');
       if (`${result.errcode}` === '0') {
         //给this=>vue的实例下在中的list属性,赋予result。data的值
@@ -146,7 +146,6 @@ export default {
       } else {
         this.$message.error(result.errmsg ? result.errmsg : 'error');
       }
-      console.log(result);
     },
     uploadPic() {
       console.log(this.$refs.picUpload.$refs.upload);

+ 4 - 1
src/views/jobs/jobfair/detail.vue

@@ -175,6 +175,7 @@ export default {
     selectXb: [],
   }),
   created() {
+    this.selectList();
     if (this.$route.query.id) {
       this.search();
     } else {
@@ -192,7 +193,9 @@ export default {
       this.$set(this, `info`, result.data);
       this.$set(this, `attend_list`, result.data.attendee);
       this.$set(this, `jobList`, result.data.jobs);
-      result = await this.dicOperation('xb');
+    },
+    async selectList() {
+      let result = await this.dicOperation('xb');
       if (`${result.errcode}` === '0') {
         //给this=>vue的实例下在中的list属性,赋予result。data的值
         var arr = result.data.filter(item => item.name === '男' || item.name === '女');