|
@@ -15,6 +15,14 @@
|
|
|
<el-cascader :key="parentKey_2" v-model="form.cat_arr_id" placeholder="请选择栏目名称" :props="parentData_2"
|
|
|
popper-class="my_cascader" filterable clearable></el-cascader>
|
|
|
</el-form-item>
|
|
|
+ <div v-if="creatNews_user_type == 10000">
|
|
|
+ <el-form-item label="推荐等级:" prop="" class="custom-align-right">
|
|
|
+ <el-select v-model="form.job_level" clearable placeholder="请选择推荐等级">
|
|
|
+ <el-option v-for="item in gradeArr" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
<el-form-item label="招聘职位名称:" prop="title" class="custom-align-right">
|
|
|
<el-input v-model="form.title" autocomplete="off" placeholder="请输入招聘职位名称"></el-input>
|
|
|
</el-form-item>
|
|
@@ -94,9 +102,15 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <!-- <el-form-item label="职位描述:" prop="description" class="custom-align-right">
|
|
|
+ <myEditor ref="myEditor" v-model="form.description"></myEditor>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item label="职位描述:" prop="description" class="custom-align-right" style="display:block;">
|
|
|
<el-input v-model="form.description" type="textarea" :rows="2" placeholder="介绍公司对该职位的职位描述..."> </el-input>
|
|
|
</el-form-item>
|
|
|
+ <!-- <el-form-item label="具体要求:" prop="jt_description" class="custom-align-right">
|
|
|
+ <myEditor1 ref="myEditor1" v-model="form.jt_description"></myEditor1>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item label="具体要求:" prop="jt_description" class="custom-align-right" style="display:block;">
|
|
|
<el-input v-model="form.jt_description" type="textarea" :rows="2" placeholder="介绍公司对该职位的具体要求...">
|
|
|
</el-input>
|
|
@@ -176,15 +190,19 @@
|
|
|
import { getWebSiteId, getUseType } from '@/utils/auth'
|
|
|
//表格标题
|
|
|
import tableTitle from './components/tableTitle';
|
|
|
+//引入富文本编辑器
|
|
|
+import myEditor from '@/components/edit/myEditor.vue';
|
|
|
//引入公用样式
|
|
|
import '@/styles/global.less';
|
|
|
import { create } from 'sortablejs';
|
|
|
import CityCascader from './components/CityCascader';
|
|
|
import { formatLocalDate } from '@/utils/public';
|
|
|
+import job from '@/store/modules/job';
|
|
|
export default {
|
|
|
components: {
|
|
|
tableTitle,
|
|
|
- CityCascader
|
|
|
+ CityCascader,
|
|
|
+ myEditor,
|
|
|
},
|
|
|
data() {
|
|
|
|
|
@@ -258,6 +276,7 @@ export default {
|
|
|
city_arr_id: [],//城市
|
|
|
// websiteName: "",//站点名称
|
|
|
cat_arr_id: [],//栏目名称
|
|
|
+ job_level: "",//推荐等级
|
|
|
title: "",//招聘职位名称
|
|
|
province_id: "",//省份
|
|
|
job_pronviceid: "",//省份id
|
|
@@ -341,7 +360,10 @@ export default {
|
|
|
// 邮箱
|
|
|
email: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
},
|
|
|
-
|
|
|
+ gradeArr: [{
|
|
|
+ value: 1,
|
|
|
+ label: '推荐位'
|
|
|
+ }],
|
|
|
|
|
|
//获取父级导航池
|
|
|
parentKey: 0,//获取父级导航
|
|
@@ -643,7 +665,6 @@ export default {
|
|
|
//跳转操作 end ------------------------------------------------------------>
|
|
|
|
|
|
//3.回显操作 ------------------------------------------------------------>
|
|
|
- // //3.1回显数据
|
|
|
//3.1回显数据
|
|
|
getMainData() {
|
|
|
if (this.creatNews_user_type === '10000' || this.$route.query.id != undefined) {
|
|
@@ -671,7 +692,7 @@ export default {
|
|
|
this.form.province_id = this.form.city_arr_id[0] ?? '';
|
|
|
if (this.form.city_arr_id.length > 1) {
|
|
|
this.province_change(this.form.city_arr_id[0]);
|
|
|
- this.form.city_id = this.form.city_arr_id[1] ?? '';
|
|
|
+ this.form.city_id = this.form.city_arr_id[1] == 0 ? '' : this.form.city_arr_id[1];
|
|
|
} else {
|
|
|
let data = {
|
|
|
'pid': this.form.city_arr_id[0]
|
|
@@ -696,8 +717,11 @@ export default {
|
|
|
this.form.level = res.data.level; //掌握程度
|
|
|
this.form.description = res.data.description; //职位描述
|
|
|
this.form.jt_description = res.data.jt_description;//具体要求
|
|
|
-
|
|
|
-
|
|
|
+ if (res.data.job_level != null) {
|
|
|
+ this.form.job_level = Number(res.data.job_level); //推荐等级
|
|
|
+ } else if (res.data.job_level == 0 || res.data.job_level == null) {
|
|
|
+ this.form.job_level = ''; //推荐等级
|
|
|
+ }
|
|
|
this.form.business_name = res.data.business_name;
|
|
|
this.form.company_hy_id = res.data.company_hy_id;
|
|
|
this.form.company_size = res.data.company_size;
|
|
@@ -780,7 +804,7 @@ export default {
|
|
|
delete this.form.city_id;
|
|
|
delete this.form.createjob_pronvice;
|
|
|
delete this.form.web_site_id;
|
|
|
-
|
|
|
+
|
|
|
this.$store.dispatch('news/upJobRecruiting', this.form).then(res => {
|
|
|
if (res.code != 200) {
|
|
|
this.$message.error("修改失败,请稍后再试!");
|