Browse Source

更新参谋

wuhongyuq 5 years ago
parent
commit
d4674e04df
1 changed files with 12 additions and 4 deletions
  1. 12 4
      src/views/personnel/personnel.vue

+ 12 - 4
src/views/personnel/personnel.vue

@@ -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 } });