Browse Source

企业城市修改

lrf402788946 5 years ago
parent
commit
e1554b6bee
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/pages/corp/views/jobs/detail.vue

+ 8 - 4
src/pages/corp/views/jobs/detail.vue

@@ -242,13 +242,17 @@ export default {
       }
       }
       this.$set(this, `loading`, true);
       this.$set(this, `loading`, true);
     },
     },
-    selectChange({ type, value }) {
-      this.$set(this.info, `${type}`, value);
-    },
     selectDate(date) {
     selectDate(date) {
       this.$set(this.info, `end_date`, date[3]);
       this.$set(this.info, `end_date`, date[3]);
       this.dateVis = false;
       this.dateVis = false;
     },
     },
+    selectChange({ type, value, val }) {
+      if (type === 'city') {
+        this.$set(this.info, `${type}`, val);
+      } else {
+        this.$set(this.info, `${type}`, value);
+      }
+    },
     listChange({ val, type }) {
     listChange({ val, type }) {
       //此方法是更换子列表的
       //此方法是更换子列表的
       if (type === 'city') {
       if (type === 'city') {
@@ -273,7 +277,7 @@ export default {
       infos.salary.text = infos.salary.min + 'k-' + infos.salary.max + 'k/月';
       infos.salary.text = infos.salary.min + 'k-' + infos.salary.max + 'k/月';
       if (typeof infos.city === 'object') {
       if (typeof infos.city === 'object') {
         infos.city.map(item => {
         infos.city.map(item => {
-          mid === '' ? (mid = item.label) : (mid += `,${item.label}`);
+          mid === '' ? (mid = item.name) : (mid += `,${item.name}`);
         });
         });
         infos.city = mid;
         infos.city = mid;
         mid = '';
         mid = '';