From 45825debd754960905bc1b8a2828dc211b9e5e52 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Thu, 23 Feb 2023 13:37:58 +0800 Subject: [PATCH] 2023-2-23 --- src/api/unifiedRecruitment/recruit.js | 8 +- src/api/yearScore/yearScoreDetail.js | 7 +- src/components/XyTable/index.vue | 1 + src/utils/request.js | 2 +- .../recruitment/component/addTemplateItem.vue | 2 +- .../component/importRecruitInfo.vue | 208 +++++++++++------- src/views/recruitment/component/setting.vue | 22 +- src/views/recruitment/progress.vue | 3 +- src/views/recruitment/recruit.vue | 49 +++-- src/views/recruitment/template.vue | 2 +- src/views/yearScore/component/imports.vue | 7 + src/views/yearScore/yearScore.vue | 2 + 12 files changed, 197 insertions(+), 116 deletions(-) diff --git a/src/api/unifiedRecruitment/recruit.js b/src/api/unifiedRecruitment/recruit.js index 6b91a10..6204764 100644 --- a/src/api/unifiedRecruitment/recruit.js +++ b/src/api/unifiedRecruitment/recruit.js @@ -44,11 +44,11 @@ export function imports(data,isLoading = true){ return request({ url:"/api/admin/recruit/import", method:"post", - data:qs.stringify(data), + data:data, isLoading, - headers:{ - 'Content-Type':'application/x-www-form-urlencoded' - } + // headers:{ + // 'Content-Type':'application/x-www-form-urlencoded' + // } }) } diff --git a/src/api/yearScore/yearScoreDetail.js b/src/api/yearScore/yearScoreDetail.js index 5433ca2..243356f 100644 --- a/src/api/yearScore/yearScoreDetail.js +++ b/src/api/yearScore/yearScoreDetail.js @@ -50,10 +50,7 @@ export function imports(data,isLoading = true){ return request({ url:"/api/admin/year_socre_detail/import", method:"post", - data:qs.stringify(data), - isLoading, - headers:{ - 'Content-Type':'application/x-www-form-urlencoded' - } + data:data, + isLoading }) } diff --git a/src/components/XyTable/index.vue b/src/components/XyTable/index.vue index 4414df0..2d58b79 100644 --- a/src/components/XyTable/index.vue +++ b/src/components/XyTable/index.vue @@ -318,6 +318,7 @@ export default { }else{ this.sortFlag = 0 } + this.selectOpt.page = 1; this.selectOpt.sort_name = prop; this.selectOpt.sort_type = ['ASC','DESC',null][this.sortFlag % 3] // TODO: 优化 diff --git a/src/utils/request.js b/src/utils/request.js index ab840ea..6c23ca5 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -14,7 +14,7 @@ let loading ; const service = axios.create({ baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url // withCredentials: true, // send cookies when cross-domain requests - timeout: 5000, // request timeout + timeout: 20000, // request timeout isLoading:true }) diff --git a/src/views/recruitment/component/addTemplateItem.vue b/src/views/recruitment/component/addTemplateItem.vue index bc9fd7f..713e743 100644 --- a/src/views/recruitment/component/addTemplateItem.vue +++ b/src/views/recruitment/component/addTemplateItem.vue @@ -42,7 +42,7 @@ :transfer="true" confirm title="确认要删除吗" - @on-ok="destroy" + @on-ok="destroy"> diff --git a/src/views/recruitment/component/importRecruitInfo.vue b/src/views/recruitment/component/importRecruitInfo.vue index 5b8990f..59ce246 100644 --- a/src/views/recruitment/component/importRecruitInfo.vue +++ b/src/views/recruitment/component/importRecruitInfo.vue @@ -10,27 +10,52 @@ >