|
@@ -16,6 +16,7 @@ import topInfo from '@/layout/public/top.vue';
|
|
|
import informateInfo from '@/layout/personnel/informate.vue';
|
|
|
import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
|
const { mapActions: mapColumn } = createNamespacedHelpers('talentInformation');
|
|
|
+const { mapActions: mapTalentColumn } = createNamespacedHelpers('talentColumn');
|
|
|
export default {
|
|
|
name: 'informate',
|
|
|
props: {},
|
|
@@ -34,12 +35,15 @@ export default {
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
...mapColumn(['query', 'delete', 'fetch']),
|
|
|
+ ...mapTalentColumn({ columnDetail: 'fetch' }),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
const res = await this.query({ skip, limit, ...info });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `informateInfo`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
+ for (const val of res.data) {
|
|
|
+ const result = await this.columnDetail(val.column_id);
|
|
|
+ val.column_name = result.data.name;
|
|
|
}
|
|
|
+ this.$set(this, `informateInfo`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
},
|
|
|
async deleteData(item) {
|
|
|
const res = await this.delete(item.id);
|