Browse Source

企业注册schid问题

lrf402788946 5 năm trước cách đây
mục cha
commit
f00df943f9
3 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 2 1
      src/store.js
  2. 1 1
      src/views/jobs/talk/detail.vue
  3. 1 1
      src/views/registerEnt/register.vue

+ 2 - 1
src/store.js

@@ -341,9 +341,10 @@ export default new Vuex.Store({
     },
     //登录与注册
     async corpReg({ state, commit }, { data, schid, schname }) {
-      let result = await this.$axios.$post(api.corpReg, data, {}, { schid: JSON.stringify(schid), schname: schname });
+      let result = await this.$axios.$post(api.corpReg, data, {}, { schid: schid, schname: schname });
       return result;
     },
+    //没用
     async schCorps({ state, commit }) {
       let result = await this.$axios.$get(api.corpReg, { schid: 999991 });
       return result;

+ 1 - 1
src/views/jobs/talk/detail.vue

@@ -8,7 +8,7 @@
         <el-form class="form_content" ref="form" :model="info" label-width="0" label-position="left">
           <form-item label="宣讲学校">
             <el-select v-model="query.schid" placeholder="请选择学校" style="width:72%" @change="selectSch">
-              <el-option v-for="item in schList" :key="item.schid" :label="item.schname" :value="item.schid * 1"> </el-option>
+              <el-option v-for="item in schList" :key="item.schid" :label="item.schname" :value="item.schid"> </el-option>
             </el-select>
             没有学校可选?点击<el-link href="/jobs/school/index" type="success">入驻学校</el-link>
           </form-item>

+ 1 - 1
src/views/registerEnt/register.vue

@@ -83,7 +83,7 @@ export default {
       let form = JSON.parse(JSON.stringify(this.form));
       form['identity'] = data.identity;
       //连接后台接口
-      let result = await this.corpReg({ data: form, schname: this.sch.name, schid: this.sch.code });
+      let result = await this.corpReg({ data: form, schname: this.sch.name, schid: this.sch.code * 1 });
       this.$message({
         type: `${result.errcode}` === '0' ? 'success' : 'error',
         message: `${result.errcode}` === '0' ? '注册成功' : result.errmsg,