guhongwei il y a 5 ans
Parent
commit
fcc6e40731
2 fichiers modifiés avec 9 ajouts et 8 suppressions
  1. 2 2
      src/store/policiesjbxx.js
  2. 7 6
      src/views/personnel/personnel.vue

+ 2 - 2
src/store/policiesjbxx.js

@@ -9,8 +9,8 @@ const state = () => ({});
 const mutations = {};
 
 const actions = {
-  async query({ commit }, { skip = 0, limit, ...info } = {}) {
-    const res = await this.$axios.$get(`${api.columnInfo}`, { skip, limit, ...info });
+  async query({ commit }, { skip = 0, limit, column_id, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.columnInfo}`, { skip, limit, column_id, ...info });
     return res;
   },
   async create({ commit }, payload) {

+ 7 - 6
src/views/personnel/personnel.vue

@@ -68,6 +68,7 @@ export default {
       },
     ],
     rencaiShowList: [],
+    canmouId: '',
   }),
   async created() {
     this.searchSite();
@@ -127,16 +128,16 @@ export default {
     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 });
+          console.log(val.id);
+          this.$set(this, `canmouId`, val.id);
+          this.searchCanmou();
         }
       }
     },
-    async searchCanmou( skip = 0, limit = 10, canmouId) {
-      console.log(skip, limit, canmouId);
-      const res = await this.newsList({ skip, limit, canmouId });
-      console.log(res.data);
+    async searchCanmou({ skip = 0, limit = 10, column_id } = {}) {
+      const res = await this.canmouList({ skip, limit, column_id: this.canmouId });
+      this.$set(this, `canmoData`, res.data);
     },
     // 人才详情
     clickDetail({ data }) {