|
@@ -327,7 +327,37 @@ export default {
|
|
|
},
|
|
|
|
|
|
|
|
|
-
|
|
|
+ //获取父级导航池
|
|
|
+ parentKey: 0,//获取父级导航
|
|
|
+ parentData: {
|
|
|
+ checkStrictly: true,
|
|
|
+ lazy: true,
|
|
|
+ async lazyLoad(node, resolve) {
|
|
|
+ const { level, data } = node;
|
|
|
+ if (data && data.children && data.children.length !== 0) {
|
|
|
+ return resolve(node)
|
|
|
+ }
|
|
|
+ let parentId;
|
|
|
+ parentId = level == 0 ? 0 : data.value;
|
|
|
+ let parames = {
|
|
|
+ 'type': 1,
|
|
|
+ 'website_id': getWebSiteId(),
|
|
|
+ 'pid': parentId
|
|
|
+ }
|
|
|
+ self.$store.dispatch('pool/get_creatNews_nav_son_actions', parames).then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ const nodes = res.data.map(item => ({
|
|
|
+ value: item.category_id,
|
|
|
+ label: item.name,
|
|
|
+ leaf: level >= 3,
|
|
|
+ children: [],
|
|
|
+ disabled: item.type != 1
|
|
|
+ }))
|
|
|
+ resolve(nodes)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
parentKey_2: 0,//获取父级导航
|
|
|
parentData_2: {
|
|
|
checkStrictly: true,
|
|
@@ -477,7 +507,8 @@ export default {
|
|
|
if (valid) {
|
|
|
// if(this.creatNews_user_type === '10000'){
|
|
|
this.form.user_type = this.creatNews_user_type;
|
|
|
- this.form.website_id = this.websiteid;
|
|
|
+
|
|
|
+ // this.form.website_id = this.websiteid;
|
|
|
|
|
|
if (this.form.province_id != '' && this.form.province_id != null && this.form.province_id != undefined) {
|
|
|
this.form.city_arr_id[0] = this.form.province_id;
|
|
@@ -499,7 +530,15 @@ export default {
|
|
|
delete this.form.job_pronviceid;
|
|
|
delete this.form.city_id;
|
|
|
delete this.form.createjob_pronvice;
|
|
|
+
|
|
|
+
|
|
|
+ if (this.creatNews_user_type === '10000') {
|
|
|
+ this.form.website_id = this.form.web_site_id;
|
|
|
+ } else {
|
|
|
+ this.form.website_id = this.websiteid;
|
|
|
+ }
|
|
|
delete this.form.web_site_id;
|
|
|
+ console.log("提交的数据:", this.form);
|
|
|
this.$store.dispatch('news/addJobRecruiting', this.form).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
//汇报结果
|