wuhongyuq 5 tahun lalu
induk
melakukan
cd51239c1e

+ 1 - 2
src/layout/personnel/mainInfo.vue

@@ -66,9 +66,8 @@
           <el-tab-pane label="找参谋" name="fourth">
             <el-table :data="canmoData" stripe style="width: 100%">
               <el-table-column prop="name" label="名称" align="center"> </el-table-column>
-              <el-table-column prop="state" label="信息类型" align="center"> </el-table-column>
+              <el-table-column prop="infotype" label="信息类型" align="center"> </el-table-column>
               <el-table-column prop="user_name" label="发布人" align="center"> </el-table-column>
-              <el-table-column prop="date" label="发布时间" align="center"> </el-table-column>
             </el-table>
           </el-tab-pane>
           <el-tab-pane label="找合作" name="fifth">找合作</el-tab-pane>

+ 3 - 0
src/store/index.js

@@ -14,6 +14,8 @@ import policiesColumn from './policiesColumn';
 import policiesNew from './policiesNew';
 import policiesxinxi from './policiesxinxi';
 import policieszhuanjia from './policieszhuanjia';
+import policiesjbxx from './policiesjbxx';
+
 Vue.use(Vuex);
 
 export default new Vuex.Store({
@@ -32,6 +34,7 @@ export default new Vuex.Store({
     policiesNew,
     policiesxinxi,
     policieszhuanjia,
+    policiesjbxx,
   },
   state: {},
   mutations: {},

+ 38 - 0
src/store/policiesjbxx.js

@@ -0,0 +1,38 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  columnInfo: `/api/talent/information`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.columnInfo}`, { skip, limit, ...info });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.columnInfo}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.columnInfo}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.columnInfo}/update/${id}`, data);
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.columnInfo}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 11 - 0
src/views/personnel/personnel.vue

@@ -24,6 +24,8 @@ const { mapActions: mapColumn } = createNamespacedHelpers('policiesColumn');
 const { mapActions: mapNews } = createNamespacedHelpers('policiesNew');
 const { mapActions: mapxinxi } = createNamespacedHelpers('policiesxinxi');
 const { mapActions: mapzhuanjia } = createNamespacedHelpers('policieszhuanjia');
+const { mapActions: mapcanmou } = createNamespacedHelpers('policiesjbxx');
+
 export default {
   name: 'personnel',
   props: {},
@@ -71,6 +73,8 @@ export default {
     this.searchInfo();
     this.searchInfojobs();
     this.searchInfozhuanjia();
+    this.searchInfomapcanmou();
+
     // this.searchRencaiShow();
   },
   computed: {},
@@ -80,6 +84,7 @@ export default {
     ...mapNews({ newsList: 'query', newsInfo: 'fetch' }),
     ...mapxinxi({ xinxiList: 'query', xinxiInfo: 'fetch' }),
     ...mapzhuanjia({ zhuanjiaList: 'query', zhuanjiaInfo: 'fetch' }),
+    ...mapcanmou({ canmouList: 'query', canmouInfo: 'fetch' }),
 
     // 查询站点信息
     async searchSite() {
@@ -117,6 +122,12 @@ export default {
         this.$set(this, `zhuanjiaData`, res.data);
       }
     },
+    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);
+      }
+    },
     clickDetail({ data }) {
       // 点击这个方法,跳转页面,并把id传过去,并用id查询详情
       this.$router.push({ path: '/personnel/rencai', query: { id: data.id } });