|
@@ -5,7 +5,7 @@
|
|
<topInfo :topTitle="topTitle"></topInfo>
|
|
<topInfo :topTitle="topTitle"></topInfo>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="main">
|
|
<el-col :span="24" class="main">
|
|
- <column :form="form" @submitDate="onSubmit" :columuList="columuList"></column>
|
|
|
|
|
|
+ <column :form="form" @submitDate="onSubmit" :columnList="columnList"></column>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
@@ -16,6 +16,7 @@ import topInfo from '@/layout/public/top.vue';
|
|
import column from '@/layout/personnel/recruitDetail.vue';
|
|
import column from '@/layout/personnel/recruitDetail.vue';
|
|
import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
const { mapActions: mapTalentRecruitment } = createNamespacedHelpers('talentRecruitment');
|
|
const { mapActions: mapTalentRecruitment } = createNamespacedHelpers('talentRecruitment');
|
|
|
|
+const { mapActions: mapColumn } = createNamespacedHelpers('talentColumn');
|
|
export default {
|
|
export default {
|
|
name: 'recruitDetail',
|
|
name: 'recruitDetail',
|
|
props: {},
|
|
props: {},
|
|
@@ -26,7 +27,7 @@ export default {
|
|
data: () => ({
|
|
data: () => ({
|
|
topTitle: '添加招聘信息',
|
|
topTitle: '添加招聘信息',
|
|
form: {},
|
|
form: {},
|
|
- columuList: [],
|
|
|
|
|
|
+ columnList: [],
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
this.search();
|
|
this.search();
|
|
@@ -44,6 +45,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapTalentRecruitment(['fetch', 'create', 'update', 'query']),
|
|
...mapTalentRecruitment(['fetch', 'create', 'update', 'query']),
|
|
|
|
+ ...mapColumn({ queryList: 'query' }),
|
|
async search() {
|
|
async search() {
|
|
if (this.$route.query.id) {
|
|
if (this.$route.query.id) {
|
|
const res = await this.fetch(this.id);
|
|
const res = await this.fetch(this.id);
|
|
@@ -51,9 +53,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async searchColumn({ ...info } = {}) {
|
|
async searchColumn({ ...info } = {}) {
|
|
- const res = await this.query();
|
|
|
|
|
|
+ const res = await this.queryList({ ...info });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
- this.$set(this, `columuList`, res.data);
|
|
|
|
|
|
+ this.$set(this, `columnList`, res.data);
|
|
|
|
+ console.log(res.data);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async onSubmit(form) {
|
|
async onSubmit(form) {
|