lrf402788946 vor 5 Jahren
Ursprung
Commit
184ae2cfa1

+ 10 - 35
src/pages/student/views/resume/main-exp.vue

@@ -1,19 +1,8 @@
 <template>
   <div id="mainExp">
-    <!-- <nut-navbar>
-      <template v-slot:left>
-        我的简历
-      </template>
-    </nut-navbar> -->
     <el-row v-if="loading">
       <el-col :span="24" style="padding: .625rem 0 .625rem .625rem; background: #409eff;">
-        <el-row type="flex" justify="end">
-          <!-- <el-col :span="6" style="text-align: center;">
-            <el-button icon="el-icon-share" type="primary" style="padding: .3125rem 0rem;">
-              <span style="font-size: .875rem; color: white;">分享</span>
-            </el-button>
-          </el-col> -->
-        </el-row>
+        <el-row type="flex" justify="end"> </el-row>
         <el-row>
           <el-col :span="6" style="text-align: center;">
             <el-avatar :size="80" :src="`${info.avatar_url}?${new Date().getTime()}`" fit="fill"></el-avatar>
@@ -27,9 +16,7 @@
                 <span style="padding-left:0.625rem"> {{ info.info.xm }}</span>
                 <i class="el-icon-user-solid" style="color: white;"></i>
               </el-col>
-              <el-col :span="3">
-                <!-- <el-tag class="tagDes" effect="plain"><span style="font-size: .75rem;">已认证</span></el-tag> -->
-              </el-col>
+              <el-col :span="3"> </el-col>
             </el-col>
             <el-col :span="24" class="topRow">
               <el-col>
@@ -108,7 +95,7 @@
                 <span>
                   职位分类:
                   <span v-if="info.expect && info.expect.category">
-                    <font v-for="(item, index) in info.expect.category" :key="index"> {{ item.label }}</font>
+                    <font v-for="(item, index) in info.expect.category" :key="index"> {{ item }}</font>
                   </span>
                 </span>
               </el-col>
@@ -139,7 +126,7 @@
                 <span>
                   期望城市:
                   <span v-if="info.expect && info.expect.city">
-                    <font v-for="(item, index) in info.expect.city" :key="index"> {{ item.label }}</font>
+                    <font v-for="(item, index) in info.expect.city" :key="index"> {{ item.name }}</font>
                   </span>
                 </span>
               </el-col>
@@ -480,7 +467,7 @@ export default {
     }),
   },
   methods: {
-    ...mapActions(['userOperation', 'resumesOperation']),
+    ...mapActions(['userOperation', 'resumesOperation', 'dicOperation']),
     async search() {
       let result = await this.resumesOperation({ type: 'search', data: { id: this.user.id } });
       if (result.data !== null) {
@@ -546,10 +533,9 @@ export default {
       data.abilities = _.get(this.uploads, `abilities`) === undefined ? [] : _.get(this.uploads, `abilities`);
       data.shows = _.get(this.uploads, `shows`) === undefined ? [] : _.get(this.uploads, `shows`);
       data.attachments = _.get(this.uploads, `attachments`) === undefined ? [] : _.get(this.uploads, `attachments`);
-      console.log(data);
       return data;
     },
-    returnData(data) {
+    async returnData(data) {
       if (data.expect.industry) {
         let ind = data.expect.industry.split(',');
         this.$set(this.expect, `industry`, ind);
@@ -558,19 +544,9 @@ export default {
         let ind = data.expect.city.split(',');
         let selected = [];
         for (const select of ind) {
-          let res = this.provinceList.filter(item => item.label === select);
-          if (res.length > 0) {
-            selected = [...selected, ...res];
-          } else {
-            let res = this.secondList.filter(item => item.label === select);
-            if (res.length > 0) {
-              selected = [...selected, ...res];
-            } else {
-              let res = this.secondList1.filter(item => item.label === select);
-              if (res.length > 0) {
-                selected = [...selected, ...res];
-              }
-            }
+          let result = await this.dicOperation({ name: select });
+          if (`${result.errcode}` === '0') {
+            selected.push(result.data);
           }
         }
         this.$set(this.expect, `city`, selected);
@@ -579,8 +555,7 @@ export default {
         let ind = data.expect.category.split(',');
         let arr = [];
         for (const select of ind) {
-          let result = this.jobTypeList.filter(item => item.label === select);
-          arr = [...arr, ...result];
+          arr.push(select);
         }
         this.$set(this.expect, `category`, arr);
       }

+ 1 - 1
src/pages/student/views/resume/purpose.vue

@@ -6,7 +6,7 @@
       </template>
     </nut-navbar> -->
     <el-row class="jobInput" style="border-top: .0625rem solid #eee;">
-      <nut-textinput label="期望职业" v-model="info.expect.job" placeholder="请输入..." :hasBorder="false" />
+      <nut-textinput label="期望职业" v-model="expect.job" placeholder="请输入..." :hasBorder="false" />
     </el-row>
     <nut-cell title="期望行业" :desc="expect.industry ? expect.industry : '请选择, 最多只能选择3项'" :showIcon="true" @click.native="dHy = true"> </nut-cell>
     <el-drawer :visible.sync="dHy" direction="btt" :show-close="false" size="40%">