|
@@ -41,9 +41,11 @@ export default {
|
|
|
liebiaoList: [],
|
|
|
// 人才
|
|
|
rencaiData: [],
|
|
|
-
|
|
|
+ // 工作
|
|
|
jobsData: [],
|
|
|
+ // 专家
|
|
|
zhuanjiaData: [],
|
|
|
+ // 参谋
|
|
|
canmoData: [],
|
|
|
messList: [
|
|
|
{
|
|
@@ -71,7 +73,6 @@ export default {
|
|
|
title: '标题',
|
|
|
},
|
|
|
],
|
|
|
- canmouId: '',
|
|
|
}),
|
|
|
async created() {
|
|
|
await this.search();
|
|
@@ -85,13 +86,6 @@ export default {
|
|
|
...mapxinxi({ xinxiList: 'query', xinxiInfo: 'fetch' }),
|
|
|
...mapzhuanjia({ zhuanjiaList: 'query', zhuanjiaInfo: 'fetch' }),
|
|
|
...mapcanmou({ canmouList: 'query', canmouInfo: 'fetch' }),
|
|
|
-
|
|
|
- clickDetail() {},
|
|
|
- clickDetailgz() {},
|
|
|
- clickDetailzj() {},
|
|
|
- clickDetailcm() {},
|
|
|
- onsaveClick() {},
|
|
|
-
|
|
|
// 查询站点信息+栏目信息
|
|
|
async search({ ...info } = {}) {
|
|
|
let res = await this.showInfo();
|
|
@@ -126,69 +120,31 @@ export default {
|
|
|
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 } });
|
|
|
- // }
|
|
|
- // },
|
|
|
- // // 人才详情
|
|
|
- // clickDetail({ data }) {
|
|
|
- // this.$router.push({ path: '/personnel/rencai', query: { id: data.id } });
|
|
|
- // },
|
|
|
- // // 工作详情
|
|
|
- // clickDetailgz({ data }) {
|
|
|
- // this.$router.push({ path: '/personnel/personnelwork', query: { id: data.id } });
|
|
|
- // },
|
|
|
- // // 专家详情
|
|
|
- // clickDetailzj({ data }) {
|
|
|
- // this.$router.push({ path: '/personnel/personnelexpert', query: { id: data.id } });
|
|
|
- // },
|
|
|
- // // 参谋详情
|
|
|
- // clickDetailcm({ data }) {
|
|
|
- // this.$router.push({ path: '/personnel/personnelcmdetail', query: { id: data.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);
|
|
|
- // }
|
|
|
- // },
|
|
|
+ // 科技人才-栏目点击
|
|
|
+ async onsaveClick({ id }) {
|
|
|
+ let column = this.liebiaoList.find(i => i.id == id);
|
|
|
+ if (column.site === 'zpxx') this.$router.push({ path: '/personnel/recruitList', query: { id: column.id } });
|
|
|
+ if (column.site === 'gzgw') this.$router.push({ path: '/personnel/guidanceList', query: { id: column.id } });
|
|
|
+ if (column.site === 'qgjx') this.$router.push({ path: '/personnel/practiceList', query: { id: column.id } });
|
|
|
+ if (column.site === 'xxsj') this.$router.push({ path: '/personnel/diligenceList', query: { id: column.id } });
|
|
|
+ if (column.site === 'jyzd') this.$router.push({ path: '/personnel/adviserList', query: { id: column.id } });
|
|
|
+ },
|
|
|
+ // 人才详情
|
|
|
+ clickDetail({ data }) {
|
|
|
+ this.$router.push({ path: '/personnel/rencai', query: { id: data.id } });
|
|
|
+ },
|
|
|
+ // 工作详情
|
|
|
+ clickDetailgz({ data }) {
|
|
|
+ this.$router.push({ path: '/personnel/personnelwork', query: { id: data.id } });
|
|
|
+ },
|
|
|
+ // 专家详情
|
|
|
+ clickDetailzj({ data }) {
|
|
|
+ this.$router.push({ path: '/personnel/personnelexpert', query: { id: data.id } });
|
|
|
+ },
|
|
|
+ // 参谋详情
|
|
|
+ clickDetailcm({ data }) {
|
|
|
+ this.$router.push({ path: '/personnel/personnelcmdetail', query: { id: data.id } });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|