From 878efdb7527129f0ee6fbc93ec858bd556c5e447 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 19 Jan 2026 13:07:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/apply.vue | 45 ++- src/views/dataConfig/index.vue | 218 ++++++++++++++ src/views/dataMenu/components/addInfo.vue | 183 ++++++++++++ src/views/dataMenu/index.vue | 142 ++++++++++ src/views/student/index.vue | 331 +++++++++++----------- 5 files changed, 745 insertions(+), 174 deletions(-) create mode 100644 src/views/dataConfig/index.vue create mode 100644 src/views/dataMenu/components/addInfo.vue create mode 100644 src/views/dataMenu/index.vue diff --git a/src/views/course/apply.vue b/src/views/course/apply.vue index 8fc77f7..9d22976 100644 --- a/src/views/course/apply.vue +++ b/src/views/course/apply.vue @@ -19,6 +19,12 @@ +
+ + + + +
查询 重置 @@ -162,6 +168,7 @@ name: '', dateRange: '', type: "", + is_chart: '', page: 1, page_size: 10, }, @@ -291,29 +298,41 @@ this.select.name = '' this.select.type = '' this.select.dateRange = '' + this.select.is_chart = '' this.select.page=1 this.getList() }, async getList() { + const filter = [{ + key: 'name', + op: 'like', + value: this.select.name + }, { + key: 'type', + op: 'eq', + value: this.select.type + }, { + key: 'start_date', + op: 'range', + value: this.select.dateRange?this.select.dateRange.join(","):'' + }] + + // 只有当 is_chart 不为空时才添加该查询条件 + if (this.select.is_chart !== '') { + filter.push({ + key: 'is_chart', + op: 'eq', + value: this.select.is_chart + }) + } + const res = await index({ page: this.select.page, page_size: this.select.page_size, show_relation: ['typeDetail'], sort_name:'start_date', sort_type:'DESC', - filter: [{ - key: 'name', - op: 'like', - value: this.select.name - }, { - key: 'type', - op: 'eq', - value: this.select.type - }, { - key: 'start_date', - op: 'range', - value: this.select.dateRange?this.select.dateRange.join(","):'' - }] + filter: filter }) this.list = res.data this.total = res.total diff --git a/src/views/dataConfig/index.vue b/src/views/dataConfig/index.vue new file mode 100644 index 0000000..89c5bdf --- /dev/null +++ b/src/views/dataConfig/index.vue @@ -0,0 +1,218 @@ + + + + + diff --git a/src/views/dataMenu/components/addInfo.vue b/src/views/dataMenu/components/addInfo.vue new file mode 100644 index 0000000..944cb9d --- /dev/null +++ b/src/views/dataMenu/components/addInfo.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/src/views/dataMenu/index.vue b/src/views/dataMenu/index.vue new file mode 100644 index 0000000..1188f75 --- /dev/null +++ b/src/views/dataMenu/index.vue @@ -0,0 +1,142 @@ + + + + + diff --git a/src/views/student/index.vue b/src/views/student/index.vue index 58206f0..d05ceab 100644 --- a/src/views/student/index.vue +++ b/src/views/student/index.vue @@ -25,9 +25,6 @@ type="year" placeholder="查询年份" value-format="yyyy" format="yyyy">
-
- -
@@ -38,62 +35,47 @@ placeholder="课程结束日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd">
-
- - - - -
-
- +
+
+
- - + +
-
- - +
+ +
-
- - -
- + + + +
-
- +
+ + + +
- - + +
@@ -104,30 +86,9 @@
-
- - - - -
-
- - - - -
-
- -
-
- - - - -
- - + +
@@ -137,13 +98,6 @@
-
- - -
-
-
- - - - -
-
@@ -176,17 +120,86 @@
- - + +
- - + +
+
+ + + + +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ + + + +
+
+ + + + +
+
+ +
+ +
+ + +
+
+ + + + +
+ + + + + + +
@@ -423,6 +436,7 @@ sign_start_date: '', sign_end_date: '', is_company_market: '', + is_chart: '', page: 1, page_size: 10, }, @@ -632,9 +646,9 @@ }, // 处理报名日期变化 changeSignDates(e) { - if (e && e.length === 2) { - this.select.sign_start_date = e[0] - this.select.sign_end_date = e[1] + if (e && Array.isArray(e) && e.length === 2) { + this.select.sign_start_date = e[0] || '' + this.select.sign_end_date = e[1] || '' } else { this.select.sign_start_date = '' this.select.sign_end_date = '' @@ -662,37 +676,38 @@ '/api/admin/users/study', 'get', { export_fields: _export, - keyword: this.select.keyword, - name: this.select.name, - year:this.select.year?this.select.year:'', - mobile: this.select.mobile, - from: this.select.from, - talent_tags: this.select.talent_tags, - company_name: this.select.company_name, - school: this.select.school, - start_birthday: this.select.start_birthday, - end_birthday: this.select.end_birthday, - start_company_date: this.select.start_company_date, - end_company_date: this.select.end_company_date, - course_name: this.select.course_name, - company_has_share: this.select.company_has_share, - company_need_fund: this.select.company_need_fund, - company_position: this.select.company_position, - company_area: this.select.company_area, - company_type: this.select.company_type, - company_industry: this.select.company_industry, - is_vip: this.select.is_vip, - is_yh_invested: this.select.is_yh_invested, - courses_start_date: this.select.courses_start_date, - courses_end_date: this.select.courses_end_date, - is_schoolmate: this.select.is_schoolmate, - is_black: this.select.is_black, - education: this.select.education, - type: this.select.type, - status: this.select.status, - course_type: this.select.course_type, - has_openid: this.select.has_openid, - is_company_market: this.select.is_company_market, + keyword: this.select.keyword || '', + name: this.select.name || '', + year: this.select.year || '', + mobile: this.select.mobile || '', + from: this.select.from || '', + talent_tags: this.select.talent_tags || '', + company_name: this.select.company_name || '', + school: this.select.school || '', + start_birthday: this.select.start_birthday || '', + end_birthday: this.select.end_birthday || '', + start_company_date: this.select.start_company_date || '', + end_company_date: this.select.end_company_date || '', + course_name: this.select.course_name || '', + company_has_share: this.select.company_has_share || '', + company_need_fund: this.select.company_need_fund || '', + company_position: this.select.company_position || '', + company_area: this.select.company_area || '', + company_type: this.select.company_type || '', + company_industry: this.select.company_industry || '', + is_vip: this.select.is_vip || '', + is_yh_invested: this.select.is_yh_invested || '', + courses_start_date: this.select.courses_start_date || '', + courses_end_date: this.select.courses_end_date || '', + is_schoolmate: this.select.is_schoolmate || '', + is_black: this.select.is_black || '', + education: this.select.education || '', + type: this.select.type || '', + status: this.select.status || '', + course_type: this.select.course_type || '', + has_openid: this.select.has_openid || '', + is_company_market: this.select.is_company_market || '', + is_chart: this.select.is_chart !== '' && this.select.is_chart !== null ? this.select.is_chart : '', is_export: 1, page: 1, page_size: 99999 @@ -768,6 +783,7 @@ this.select.sign_end_date = '' this.signDates = [] this.select.is_company_market = '' + this.select.is_chart = '' this.select.page = 1 this.getList() }, @@ -775,38 +791,39 @@ const res = await indexStudy({ page: this.select.page, page_size: this.select.page_size, - keyword: this.select.keyword, - name: this.select.name, - year:this.select.year?this.select.year:'', - mobile: this.select.mobile, - company_name: this.select.company_name, - from:this.select.from, - talent_tags: this.select.talent_tags, - school: this.select.school, - start_birthday: this.select.start_birthday, - end_birthday: this.select.end_birthday, - start_company_date: this.select.start_company_date, - end_company_date: this.select.end_company_date, - course_name: this.select.course_name, - company_has_share: this.select.company_has_share, - company_need_fund: this.select.company_need_fund, - company_position: this.select.company_position, - company_area: this.select.company_area, - company_type: this.select.company_type, - company_industry: this.select.company_industry, - is_yh_invested: this.select.is_yh_invested, - is_vip: this.select.is_vip, - courses_start_date: this.select.courses_start_date, - courses_end_date: this.select.courses_end_date, - is_schoolmate: this.select.is_schoolmate, - education: this.select.education, - type: this.select.type, - status: this.select.status, - has_openid:this.select.has_openid, - course_type: this.select.course_type, - sign_start_date: this.select.sign_start_date, - sign_end_date: this.select.sign_end_date, - is_company_market: this.select.is_company_market + keyword: this.select.keyword || '', + name: this.select.name || '', + year: this.select.year || '', + mobile: this.select.mobile || '', + company_name: this.select.company_name || '', + from: this.select.from || '', + talent_tags: this.select.talent_tags || '', + school: this.select.school || '', + start_birthday: this.select.start_birthday || '', + end_birthday: this.select.end_birthday || '', + start_company_date: this.select.start_company_date || '', + end_company_date: this.select.end_company_date || '', + course_name: this.select.course_name || '', + company_has_share: this.select.company_has_share || '', + company_need_fund: this.select.company_need_fund || '', + company_position: this.select.company_position || '', + company_area: this.select.company_area || '', + company_type: this.select.company_type || '', + company_industry: this.select.company_industry || '', + is_yh_invested: this.select.is_yh_invested || '', + is_vip: this.select.is_vip || '', + courses_start_date: this.select.courses_start_date || '', + courses_end_date: this.select.courses_end_date || '', + is_schoolmate: this.select.is_schoolmate || '', + education: this.select.education || '', + type: this.select.type || '', + status: this.select.status || '', + has_openid: this.select.has_openid || '', + course_type: this.select.course_type || '', + is_chart: this.select.is_chart !== '' && this.select.is_chart !== null ? this.select.is_chart : '', + sign_start_date: this.select.sign_start_date || '', + sign_end_date: this.select.sign_end_date || '', + is_company_market: this.select.is_company_market || '' }) this.list = res.list.data this.total = res.list.total @@ -818,18 +835,10 @@ this.searyear = this.select.year ? this.select.year : '' }, changeDate(e) { - if (e) { - this.select.courses_end_date = e - } else { - this.select.courses_end_date = '' - } + this.select.courses_end_date = e || '' }, changeStartDate(e) { - if (e) { - this.select.courses_start_date = e - } else { - this.select.courses_start_date = '' - } + this.select.courses_start_date = e || '' }, // 批量设置校友库 selectionChange(e) {