|
@@ -74,9 +74,6 @@ export default {
|
|
|
this.searchSite();
|
|
|
this.searchColumn();
|
|
|
this.searchInfo();
|
|
|
- this.searchInfojobs();
|
|
|
- this.searchInfozhuanjia();
|
|
|
- this.searchInfomapcanmou();
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
@@ -102,43 +99,18 @@ export default {
|
|
|
const res = await this.columnList({ ...info });
|
|
|
this.$set(this, `liebiaoList`, res.data);
|
|
|
},
|
|
|
- // 查询找人才-人才展示
|
|
|
- async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- const res = await this.newsList({ skip, limit, ...info });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `rencaiData`, res.data);
|
|
|
- this.$set(this, `rencaiShowList`, res.data);
|
|
|
- }
|
|
|
- },
|
|
|
- // 查询找工作
|
|
|
- async searchInfojobs({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- const res = await this.xinxiList({ skip, limit, ...info });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `jobsData`, res.data);
|
|
|
- }
|
|
|
- },
|
|
|
- // 查询找专家
|
|
|
- async searchInfozhuanjia({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- const res = await this.zhuanjiaList({ skip, limit, ...info });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `zhuanjiaData`, res.data);
|
|
|
- }
|
|
|
- },
|
|
|
- // 查询找参谋
|
|
|
- async searchInfomapcanmou({ ...info } = {}) {
|
|
|
- const res = await this.columnList({ ...info });
|
|
|
- for (const val of res.data) {
|
|
|
- if (val.site === 'jyzd') {
|
|
|
- console.log(val.id);
|
|
|
- this.$set(this, `canmouId`, val.id);
|
|
|
- this.searchCanmou();
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- async searchCanmou({ skip = 0, limit = 10, column_id } = {}) {
|
|
|
- const res = await this.canmouList({ skip, limit, column_id: this.canmouId });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `canmoData`, res.data);
|
|
|
+ async onsaveClick({ id }) {
|
|
|
+ const res = await this.columnInfo(id);
|
|
|
+ if (res.data.site === 'zpxx') {
|
|
|
+ this.$router.push({ path: '/personnel/recruitList', query: { id: res.data.id } });
|
|
|
+ } else if (res.data.site === 'gzgw') {
|
|
|
+ this.$router.push({ path: '/personnel/guidanceList', query: { id: res.data.id } });
|
|
|
+ } else if (res.data.site === 'qgjx') {
|
|
|
+ this.$router.push({ path: '/personnel/practiceList', query: { id: res.data.id } });
|
|
|
+ } else if (res.data.site === 'xxsj') {
|
|
|
+ this.$router.push({ path: '/personnel/diligenceList', query: { id: res.data.id } });
|
|
|
+ } else if (res.data.site === 'jyzd') {
|
|
|
+ this.$router.push({ path: '/personnel/adviserList', query: { id: res.data.id } });
|
|
|
}
|
|
|
},
|
|
|
// 人才详情
|
|
@@ -157,18 +129,37 @@ export default {
|
|
|
clickDetailcm({ data }) {
|
|
|
this.$router.push({ path: '/personnel/personnelcmdetail', query: { id: data.id } });
|
|
|
},
|
|
|
- async onsaveClick({ id }) {
|
|
|
- const res = await this.columnInfo(id);
|
|
|
- if (res.data.name === '招聘信息') {
|
|
|
- this.$router.push({ path: '/personnel/recruitList', query: { id: id } });
|
|
|
- } else if (res.data.name === '就业指导') {
|
|
|
- this.$router.push({ path: '/personnel/guidanceList', query: { id: id } });
|
|
|
- } else if (res.data.name === '学习实践') {
|
|
|
- this.$router.push({ path: '/personnel/practiceList', query: { id: id } });
|
|
|
- } else if (res.data.name === '勤工俭学') {
|
|
|
- this.$router.push({ path: '/personnel/diligenceList', query: { id: id } });
|
|
|
- } else if (res.data.name === '工作顾问') {
|
|
|
- this.$router.push({ path: '/personnel/adviserList', query: { id: id } });
|
|
|
+ // 查询
|
|
|
+ async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
+ // 人才
|
|
|
+ const res = await this.newsList({ skip, limit, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `rencaiData`, res.data);
|
|
|
+ this.$set(this, `rencaiShowList`, res.data);
|
|
|
+ }
|
|
|
+ // 工作
|
|
|
+ const resJob = await this.xinxiList({ skip, limit, ...info });
|
|
|
+ if (this.$checkRes(resJob)) {
|
|
|
+ this.$set(this, `jobsData`, resJob.data);
|
|
|
+ }
|
|
|
+ // 专家
|
|
|
+ const resZhuanjia = await this.zhuanjiaList({ skip, limit, ...info });
|
|
|
+ if (this.$checkRes(resZhuanjia)) {
|
|
|
+ this.$set(this, `zhuanjiaData`, resZhuanjia.data);
|
|
|
+ }
|
|
|
+ //找参谋
|
|
|
+ const rescanmou = await this.columnList({ ...info });
|
|
|
+ for (const val of rescanmou.data) {
|
|
|
+ if (val.site === 'jyzd') {
|
|
|
+ this.$set(this, `canmouId`, val.id);
|
|
|
+ this.searchCanmou();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async searchCanmou({ skip = 0, limit = 10, column_id } = {}) {
|
|
|
+ const res = await this.canmouList({ skip, limit, column_id: this.canmouId });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `canmoData`, res.data);
|
|
|
}
|
|
|
},
|
|
|
},
|