|
@@ -1,6 +1,14 @@
|
|
<template>
|
|
<template>
|
|
- <div id="practiceList">
|
|
|
|
- <practiceList-detail :info="info" :liebiaoList="liebiaoList" @onsave="onsaveClick" :columnName="columnName"></practiceList-detail>
|
|
|
|
|
|
+ <div id="guidanceList">
|
|
|
|
+ <practiceList-detail
|
|
|
|
+ :info="info"
|
|
|
|
+ :recruitData="recruitData"
|
|
|
|
+ :liebiaoList="liebiaoList"
|
|
|
|
+ @onsave="onsaveClick"
|
|
|
|
+ :columnName="columnName"
|
|
|
|
+ @detailcm="clickDetailcm"
|
|
|
|
+ :total="total"
|
|
|
|
+ ></practiceList-detail>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -9,8 +17,9 @@ import practiceListDetail from '@/components/personnel/practiceList.vue';
|
|
import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
const { mapActions: mapSite } = createNamespacedHelpers('site');
|
|
const { mapActions: mapSite } = createNamespacedHelpers('site');
|
|
const { mapActions: mapColumn } = createNamespacedHelpers('policiesColumn');
|
|
const { mapActions: mapColumn } = createNamespacedHelpers('policiesColumn');
|
|
|
|
+const { mapActions: mapRecruit } = createNamespacedHelpers('policiesjbxx');
|
|
export default {
|
|
export default {
|
|
- name: 'practiceList',
|
|
|
|
|
|
+ name: 'guidanceList',
|
|
props: {},
|
|
props: {},
|
|
components: {
|
|
components: {
|
|
practiceListDetail,
|
|
practiceListDetail,
|
|
@@ -19,16 +28,20 @@ export default {
|
|
info: {},
|
|
info: {},
|
|
liebiaoList: [],
|
|
liebiaoList: [],
|
|
columnName: '',
|
|
columnName: '',
|
|
|
|
+ recruitData: [],
|
|
|
|
+ total: 1,
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
this.searchSite();
|
|
this.searchSite();
|
|
this.searchColumn();
|
|
this.searchColumn();
|
|
this.searchName();
|
|
this.searchName();
|
|
|
|
+ this.searchList();
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
...mapSite(['showInfo']),
|
|
...mapSite(['showInfo']),
|
|
...mapColumn({ columnList: 'query', columnInfo: 'fetch' }),
|
|
...mapColumn({ columnList: 'query', columnInfo: 'fetch' }),
|
|
|
|
+ ...mapRecruit({ recruitList: 'query' }),
|
|
// 查询站点信息
|
|
// 查询站点信息
|
|
async searchSite() {
|
|
async searchSite() {
|
|
let res = await this.showInfo();
|
|
let res = await this.showInfo();
|
|
@@ -63,6 +76,16 @@ export default {
|
|
const res = await this.columnInfo(nameId);
|
|
const res = await this.columnInfo(nameId);
|
|
this.$set(this, `columnName`, res.data.name);
|
|
this.$set(this, `columnName`, res.data.name);
|
|
},
|
|
},
|
|
|
|
+ async searchList({ skip = 0, limit = 10, column_id } = {}) {
|
|
|
|
+ const res = await this.recruitList({ skip, limit, column_id: this.$route.query.id });
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.$set(this, `recruitData`, res.data);
|
|
|
|
+ console.log(res.data);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ clickDetailcm({ data }) {
|
|
|
|
+ this.$router.push({ path: '/personnel/personnelcmdetail', query: { id: data.id } });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|