|
@@ -124,12 +124,20 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 查询找参谋
|
|
|
- async searchInfomapcanmou({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- const res = await this.canmouList({ skip, limit, ...info });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `canmoData`, res.data);
|
|
|
+ async searchInfomapcanmou({ ...info } = {}) {
|
|
|
+ const res = await this.columnList({ ...info });
|
|
|
+ for (const val of res.data) {
|
|
|
+ // console.log(val.site);
|
|
|
+ if (val.site === 'jyzd') {
|
|
|
+ this.searchCanmou({ canmouId: val.id });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
+ async searchCanmou( skip = 0, limit = 10, canmouId) {
|
|
|
+ console.log(skip, limit, canmouId);
|
|
|
+ const res = await this.newsList({ skip, limit, canmouId });
|
|
|
+ console.log(res.data);
|
|
|
+ },
|
|
|
// 人才详情
|
|
|
clickDetail({ data }) {
|
|
|
this.$router.push({ path: '/personnel/rencai', query: { id: data.id } });
|