|
@@ -5,10 +5,10 @@
|
|
|
简历筛选
|
|
|
</template>
|
|
|
<template v-slot:main1>
|
|
|
- <list type="0" :info="info" :dataList="dataList0" :totalRow="totalRow1" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
|
+ <list type="0" :info="info" :dataList="dataList0" :totalRow="totalRow0" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
|
</template>
|
|
|
<template v-slot:main2>
|
|
|
- <list type="1" :info="info" :dataList="dataList1" :totalRow="totalRow2" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
|
+ <list type="1" :info="info" :dataList="dataList1" :totalRow="totalRow1" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
|
</template>
|
|
|
<template v-slot:main3>
|
|
|
<list type="2" :info="info" :dataList="dataList2" :totalRow="totalRow2" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
...mapState(['user']),
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions(['lettersOperation']),
|
|
|
+ ...mapActions(['lettersOperation', 'resumesOperation']),
|
|
|
async search({ type, currentPage, searchInfo }) {
|
|
|
let skip = 0;
|
|
|
if (currentPage) {
|
|
@@ -59,14 +59,21 @@ export default {
|
|
|
type: 'list',
|
|
|
data: { status: type, skip: skip, limit: this.$limit, corpname: this.user.corpname, ...searchInfo },
|
|
|
});
|
|
|
+ let arr = [];
|
|
|
+ result.data.forEach(async val => {
|
|
|
+ let result = await this.resumesOperation({ type: 'search', data: { id: val.resume_id } });
|
|
|
+ let object = { ...val, skill: result.data.skill };
|
|
|
+ arr.push(object);
|
|
|
+ });
|
|
|
if (`${result.errcode}` === '0') {
|
|
|
//给this=>vue的实例下在中的list属性,赋予result。data的值
|
|
|
- this.$set(this, `dataList${type}`, result.data);
|
|
|
+ this.$set(this, `dataList${type}`, arr);
|
|
|
this.$set(this, `totalRow${type}`, result.total);
|
|
|
} else {
|
|
|
this.$message.error(result.errmsg ? result.errmsg : 'error');
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
async searchInfo(id) {
|
|
|
let result = await this.lettersOperation({ type: 'search', data: { id: id } });
|
|
|
if (`${result.errcode}` === '0') {
|