|
@@ -5,13 +5,40 @@
|
|
简历筛选
|
|
简历筛选
|
|
</template>
|
|
</template>
|
|
<template v-slot:main1>
|
|
<template v-slot:main1>
|
|
- <list type="0" :info="info" :dataList="dataList0" :totalRow="totalRow0" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
|
|
|
|
+ <list
|
|
|
|
+ type="0"
|
|
|
|
+ :info="info"
|
|
|
|
+ :dataList="dataList0"
|
|
|
|
+ :totalRow="totalRow0"
|
|
|
|
+ @changePage="search"
|
|
|
|
+ @selectInfo="selectInfo"
|
|
|
|
+ @searchInfo="searchInfo"
|
|
|
|
+ @update="update"
|
|
|
|
+ ></list>
|
|
</template>
|
|
</template>
|
|
<template v-slot:main2>
|
|
<template v-slot:main2>
|
|
- <list type="1" :info="info" :dataList="dataList1" :totalRow="totalRow1" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
|
|
|
|
+ <list
|
|
|
|
+ type="1"
|
|
|
|
+ :info="info"
|
|
|
|
+ :dataList="dataList1"
|
|
|
|
+ :totalRow="totalRow1"
|
|
|
|
+ @changePage="search"
|
|
|
|
+ @selectInfo="selectInfo"
|
|
|
|
+ @searchInfo="searchInfo"
|
|
|
|
+ @update="update"
|
|
|
|
+ ></list>
|
|
</template>
|
|
</template>
|
|
<template v-slot:main3>
|
|
<template v-slot:main3>
|
|
- <list type="2" :info="info" :dataList="dataList2" :totalRow="totalRow2" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
|
|
|
|
+ <list
|
|
|
|
+ type="2"
|
|
|
|
+ :info="info"
|
|
|
|
+ :dataList="dataList2"
|
|
|
|
+ :totalRow="totalRow2"
|
|
|
|
+ @changePage="search"
|
|
|
|
+ @selectInfo="selectInfo"
|
|
|
|
+ @searchInfo="searchInfo"
|
|
|
|
+ @update="update"
|
|
|
|
+ ></list>
|
|
</template>
|
|
</template>
|
|
</list-tab>
|
|
</list-tab>
|
|
<el-dialog title="简历详情" center :visible.sync="resumeDialog" :fullscreen="true">
|
|
<el-dialog title="简历详情" center :visible.sync="resumeDialog" :fullscreen="true">
|
|
@@ -46,15 +73,18 @@ export default {
|
|
resumeDialog: false,
|
|
resumeDialog: false,
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
- this.search({ type: '0' });
|
|
|
|
- this.search({ type: '1' });
|
|
|
|
- this.search({ type: '2' });
|
|
|
|
|
|
+ this.initSearch();
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapActions(['lettersOperation', 'resumesOperation']),
|
|
...mapActions(['lettersOperation', 'resumesOperation']),
|
|
|
|
+ initSearch() {
|
|
|
|
+ this.search({ type: '0' });
|
|
|
|
+ this.search({ type: '1' });
|
|
|
|
+ this.search({ type: '2' });
|
|
|
|
+ },
|
|
async search({ type, currentPage, searchInfo }) {
|
|
async search({ type, currentPage, searchInfo }) {
|
|
let skip = 0;
|
|
let skip = 0;
|
|
if (currentPage) {
|
|
if (currentPage) {
|
|
@@ -93,6 +123,15 @@ export default {
|
|
console.log(type, ids);
|
|
console.log(type, ids);
|
|
//缓存在本组件中(this.$set在本组件中),为之后的批量操作使用
|
|
//缓存在本组件中(this.$set在本组件中),为之后的批量操作使用
|
|
},
|
|
},
|
|
|
|
+ async update(data) {
|
|
|
|
+ let result = await this.lettersOperation({ type: 'update', data: data });
|
|
|
|
+ if (`${result.errcode}` === `0`) {
|
|
|
|
+ this.$message.success('操作成功');
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(result.errmsg || '操作失败');
|
|
|
|
+ }
|
|
|
|
+ this.initSearch();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|