推送匹配功能更新

This commit is contained in:
dengxin
2024-03-28 21:34:00 +08:00
parent 9cb331f414
commit 08fa30f020
2 changed files with 6 additions and 2 deletions

View File

@@ -255,11 +255,13 @@ export default {
async pushPostAndUser() {
this.pushState = true
const createTime = Date.now() + 2000
// console.log(this.rightDataSelections,);
let params = {
serveId: this.rowData.id,
posts: this.rightDataSelections.map((item) => ({ id: item.id, type: item.type1 })),
users: this.leftUserSelections.map((item) => ({ idNumber: item.idNumber, talentsId: item.id }))
posts: this.rightDataSelections.map((item) => ({ id: item.id, type: item.type1,jobName: item.jobName })),
users: this.leftUserSelections.map((item) => ({ idNumber: item.idNumber, talentsId: item.id,userId: item.userId, userName: item.name }))
}
console.log(params,"999999999999999999999999999");
let resData = await pushPostUserServe(params)
if (resData.data.code === 200) {
const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0