|
@@ -107,14 +107,13 @@
|
|
<el-input v-model="perForm.name" placeholder="请填写姓名,必填"></el-input>
|
|
<el-input v-model="perForm.name" placeholder="请填写姓名,必填"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="性别" prop="gender">
|
|
<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-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="民族" prop="nation">
|
|
<el-form-item label="民族" prop="nation">
|
|
<el-select v-model="perForm.nation" placeholder="请选择民族(可搜索)" filterable style="width:100%">
|
|
<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-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="职务职称" prop="position">
|
|
<el-form-item label="职务职称" prop="position">
|
|
@@ -160,65 +159,7 @@ export default {
|
|
query: {},
|
|
query: {},
|
|
perForm: {},
|
|
perForm: {},
|
|
attend_list: [],
|
|
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,
|
|
perDialog: false,
|
|
dialogSearchVisible: false,
|
|
dialogSearchVisible: false,
|
|
dialogAddVisible: false,
|
|
dialogAddVisible: false,
|
|
@@ -231,8 +172,10 @@ export default {
|
|
name: [{ required: true, message: '请填写姓名', trigger: 'blur' }],
|
|
name: [{ required: true, message: '请填写姓名', trigger: 'blur' }],
|
|
mobile: [{ required: true, message: '请填写手机号', trigger: 'blur' }],
|
|
mobile: [{ required: true, message: '请填写手机号', trigger: 'blur' }],
|
|
},
|
|
},
|
|
|
|
+ selectXb: [],
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
|
|
+ this.selectList();
|
|
if (this.$route.query.id) {
|
|
if (this.$route.query.id) {
|
|
this.search();
|
|
this.search();
|
|
} else {
|
|
} else {
|
|
@@ -244,13 +187,32 @@ export default {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapActions(['profilesOperation', 'postOperation', 'jobfairOperation']),
|
|
|
|
|
|
+ ...mapActions(['profilesOperation', 'postOperation', 'jobfairOperation', 'dicOperation']),
|
|
async search() {
|
|
async search() {
|
|
let result = await this.jobfairOperation({ type: 'searchApply', data: { id: this.$route.query.id } });
|
|
let result = await this.jobfairOperation({ type: 'searchApply', data: { id: this.$route.query.id } });
|
|
this.$set(this, `info`, result.data);
|
|
this.$set(this, `info`, result.data);
|
|
this.$set(this, `attend_list`, result.data.attendee);
|
|
this.$set(this, `attend_list`, result.data.attendee);
|
|
this.$set(this, `jobList`, result.data.jobs);
|
|
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() {
|
|
async submit() {
|
|
let jobs = this.jobList.map(item => item.id);
|
|
let jobs = this.jobList.map(item => item.id);
|
|
let attendee = this.attend_list.map(item => item);
|
|
let attendee = this.attend_list.map(item => item);
|
|
@@ -380,6 +342,7 @@ export default {
|
|
this.$set(this, `jobList`, selectList);
|
|
this.$set(this, `jobList`, selectList);
|
|
this.$set(this, `jobChooseList`, chooseList);
|
|
this.$set(this, `jobChooseList`, chooseList);
|
|
},
|
|
},
|
|
|
|
+ // 过滤性别
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|