فهرست منبع

行政区划接口和入驻学校接口

lrf402788946 5 سال پیش
والد
کامیت
ddd367cad3
4فایلهای تغییر یافته به همراه44 افزوده شده و 75 حذف شده
  1. 2 2
      src/views/info/base/auth.vue
  2. 12 6
      src/views/info/base/info.vue
  3. 3 3
      src/views/info/hr/index.vue
  4. 27 64
      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的值

+ 12 - 6
src/views/info/base/info.vue

@@ -33,7 +33,7 @@
         </form-item>
         <form-item label="单位规模" prop="scale">
           <el-select v-model="info.scale" filterable placeholder="单位规模">
-            <el-option v-for="(item, index) in scaleList" :key="index" :label="item.label" :value="item.label"></el-option>
+            <el-option v-for="(item, index) in scaleList" :key="index" :label="item.name" :value="item.name"></el-option>
           </el-select>
         </form-item>
         <form-item label="固定电话" prop="company_name">
@@ -135,15 +135,21 @@ export default {
   computed: {},
   methods: {
     ...mapActions(['dicOperation']),
-    onSubmit() {
-      this.$emit(`onSubmit`, { data: this.info, type: 'info' });
-    },
     async otherList() {
-      let result = await this.dicOperation({ level: 1 });
+      let result = await this.dicOperation('dwgm');
       if (`${result.errcode}` === '0') {
-        this.$set(this, `provinceList`, result.data);
+        //给this=>vue的实例下在中的list属性,赋予result。data的值
+        this.$set(this, `scaleList`, result.data);
+      } else {
+        this.$message.error(result.errmsg ? result.errmsg : 'error');
       }
     },
+    uploadPic() {
+      console.log(this.$refs.picUpload.$refs.upload);
+    },
+    onSubmit() {
+      this.$emit(`onSubmit`, { data: this.info, type: 'info' });
+    },
     async getCityList(name) {
       let arr = await this.provinceList.filter(item => item.name === name && this.filterCity(name));
       if (arr.length > 0) {

+ 3 - 3
src/views/info/hr/index.vue

@@ -53,7 +53,7 @@
         </el-row>
         <el-dialog :title="dialogTitle" :visible.sync="dialog" @close="closeAlert">
           <el-row type="flex" align="middle" justify="center">
-            <el-col :span="dialogWidth">
+            <el-col :span="24">
               <el-form :model="form" label-width="auto" label-position="right">
                 <el-col :span="24">
                   <el-form-item label="HR姓名" porp="name">
@@ -88,9 +88,9 @@
                 </el-col>
               </el-form>
             </el-col>
-            <el-col :span="12" v-if="dialogTitle === '新增HR'">
+            <!-- <el-col :span="12" v-if="dialogTitle === '新增HR'">
               qrcode
-            </el-col>
+            </el-col> -->
           </el-row>
 
           <div slot="footer" class="dialog-footer">

+ 27 - 64
src/views/jobs/jobfair/detail.vue

@@ -107,14 +107,13 @@
                 <el-input v-model="perForm.name" placeholder="请填写姓名,必填"></el-input>
               </el-form-item>
               <el-form-item label="性别" prop="gender">
-                <el-select v-model="perForm.gender" placeholder="请选择性别" style="width:100%">
-                  <el-option label="女" value="女"> </el-option>
-                  <el-option label="男" value="男"> </el-option>
+                <el-select v-model="perForm.gender" placeholder="请选择性别" style="width:100%;">
+                  <el-option v-for="(item, index) in selectXb" :key="index" :label="item.name" :value="item.name"></el-option>
                 </el-select>
               </el-form-item>
               <el-form-item label="民族" prop="nation">
                 <el-select v-model="perForm.nation" placeholder="请选择民族(可搜索)" filterable style="width:100%">
-                  <el-option v-for="item in nation_list" :key="item.nation_name" :label="item.nation_name" :value="item.nation_name"> </el-option>
+                  <el-option v-for="item in nation_list" :key="item.nation_name" :label="item.name" :value="item.name"> </el-option>
                 </el-select>
               </el-form-item>
               <el-form-item label="职务职称" prop="position">
@@ -160,65 +159,7 @@ export default {
     query: {},
     perForm: {},
     attend_list: [],
-    nation_list: [
-      { nation_name: '汉族' },
-      { nation_name: '回族' },
-      { nation_name: '蒙古族' },
-      { nation_name: '藏族' },
-      { nation_name: '维吾尔族' },
-      { nation_name: '苗族' },
-      { nation_name: '彝族' },
-      { nation_name: '壮族' },
-      { nation_name: '布依族' },
-      { nation_name: '朝鲜族' },
-      { nation_name: '满族' },
-      { nation_name: '侗族' },
-      { nation_name: '瑶族' },
-      { nation_name: '白族' },
-      { nation_name: '土家族' },
-      { nation_name: '哈尼族' },
-      { nation_name: '哈萨克族' },
-      { nation_name: '傣族' },
-      { nation_name: '黎族' },
-      { nation_name: '傈僳族' },
-      { nation_name: '佤族' },
-      { nation_name: '畲族' },
-      { nation_name: '高山族' },
-      { nation_name: '拉祜族' },
-      { nation_name: '水族' },
-      { nation_name: '东乡族' },
-      { nation_name: '纳西族' },
-      { nation_name: '景颇族' },
-      { nation_name: '柯尔克孜族' },
-      { nation_name: '土族' },
-      { nation_name: '达斡尔族' },
-      { nation_name: '仫佬族' },
-      { nation_name: '羌族' },
-      { nation_name: '布朗族' },
-      { nation_name: '撒拉族' },
-      { nation_name: '毛南族' },
-      { nation_name: '仡佬族' },
-      { nation_name: '锡伯族' },
-      { nation_name: '阿昌族' },
-      { nation_name: '普米族' },
-      { nation_name: '塔吉克族' },
-      { nation_name: '怒族' },
-      { nation_name: '乌孜别克族' },
-      { nation_name: '俄罗斯族' },
-      { nation_name: '鄂温克族' },
-      { nation_name: '德昂族' },
-      { nation_name: '保安族' },
-      { nation_name: '裕固族' },
-      { nation_name: '京族' },
-      { nation_name: '塔塔尔族' },
-      { nation_name: '独龙族' },
-      { nation_name: '鄂伦春族' },
-      { nation_name: '赫哲族' },
-      { nation_name: '门巴族' },
-      { nation_name: '珞巴族' },
-      { nation_name: '基诺族' },
-      { nation_name: '其他' },
-    ],
+    nation_list: [],
     perDialog: false,
     dialogSearchVisible: false,
     dialogAddVisible: false,
@@ -231,8 +172,10 @@ export default {
       name: [{ required: true, message: '请填写姓名', trigger: 'blur' }],
       mobile: [{ required: true, message: '请填写手机号', trigger: 'blur' }],
     },
+    selectXb: [],
   }),
   created() {
+    this.selectList();
     if (this.$route.query.id) {
       this.search();
     } else {
@@ -244,13 +187,32 @@ export default {
     ...mapState(['user']),
   },
   methods: {
-    ...mapActions(['profilesOperation', 'postOperation', 'jobfairOperation']),
+    ...mapActions(['profilesOperation', 'postOperation', 'jobfairOperation', 'dicOperation']),
     async search() {
       let result = await this.jobfairOperation({ type: 'searchApply', data: { id: this.$route.query.id } });
       this.$set(this, `info`, result.data);
       this.$set(this, `attend_list`, result.data.attendee);
       this.$set(this, `jobList`, result.data.jobs);
     },
+    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 === '女');
+        this.$set(this, `selectXb`, arr);
+        console.log(arr);
+      } else {
+        this.$message.error(result.errmsg ? result.errmsg : 'error');
+      }
+      result = await this.dicOperation('mz');
+      if (`${result.errcode}` === '0') {
+        //给this=>vue的实例下在中的list属性,赋予result。data的值
+        this.$set(this, `nation_list`, result.data);
+        console.log(arr);
+      } else {
+        this.$message.error(result.errmsg ? result.errmsg : 'error');
+      }
+    },
     async submit() {
       let jobs = this.jobList.map(item => item.id);
       let attendee = this.attend_list.map(item => item);
@@ -380,6 +342,7 @@ export default {
       this.$set(this, `jobList`, selectList);
       this.$set(this, `jobChooseList`, chooseList);
     },
+    // 过滤性别
   },
 };
 </script>