From 6b34b5149df5dbfbcb26f775a4b25084254bacdc Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 26 Sep 2024 13:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/apply_list.vue | 237 +++++++++++++++++--------------- 1 file changed, 127 insertions(+), 110 deletions(-) diff --git a/src/views/course/apply_list.vue b/src/views/course/apply_list.vue index 1f503e5..ee55e70 100644 --- a/src/views/course/apply_list.vue +++ b/src/views/course/apply_list.vue @@ -6,85 +6,86 @@
-
+
- - - + + +
@@ -130,13 +131,14 @@ @@ -144,7 +146,8 @@
- + +
@@ -156,7 +159,8 @@ import imports from "@/views/component/imports.vue" import { index, - updateStatus + updateStatus, + destroy } from '@/api/apply/index.js' import { download @@ -170,12 +174,12 @@ }, data() { return { - subjectObj: {}, - companyType: [], - typeSelect: [], - educationType:[], - companyIndustry:[], - companyArea:[], + subjectObj: {}, + companyType: [], + typeSelect: [], + educationType: [], + companyIndustry: [], + companyArea: [], select: { name: '', mobile: '', @@ -186,11 +190,11 @@ company_type: '', company_industry: '', education: '', - type:'', + type: '', status: '', page: 1, - page_size: 10, - sort_type:'ASC' + page_size: 10, + sort_type: 'ASC' }, selectids: [], list: [], @@ -283,13 +287,13 @@ } this.getList() }, - methods: { - changeSelectType(e, selectName) { - if (e) { - this.select[selectName] = e.join(",") - } else { - this.select[selectName] = '' - } + methods: { + changeSelectType(e, selectName) { + if (e) { + this.select[selectName] = e.join(",") + } else { + this.select[selectName] = '' + } }, pageIndexChange(e) { this.select.page = e @@ -304,13 +308,25 @@ let perSize = (this.select.page - 1) * this.select.page_size let index = perSize + e + 1 return index + }, + deleteList(id) { + var that = this; + destroy({ + id: id, + }).then(response => { + this.$Message.success('删除成功'); + this.getList() + }).catch(error => { + console.log(error) + reject(error) + }) }, - resetSelect() { - this.companyType = [] - this.typeSelect = [] - this.educationType=[] - this.companyIndustry=[] - this.companyArea=[] + resetSelect() { + this.companyType = [] + this.typeSelect = [] + this.educationType = [] + this.companyIndustry = [] + this.companyArea = [] this.select.name = '' this.select.mobile = '' this.select.company_name = '' @@ -318,7 +334,7 @@ this.select.company_area = '' this.select.company_type = '' this.select.company_industry = '' - this.select.education = '' + this.select.education = '' this.select.type = '' this.select.status = '' this.select.page = 1 @@ -335,8 +351,8 @@ company_area: this.select.company_area, company_type: this.select.company_type, company_industry: this.select.company_industry, - education: this.select.education, - type:this.select.type, + education: this.select.education, + type: this.select.type, sort_name: 'score', sort_type: this.select.sort_type, filter: [{ @@ -394,8 +410,8 @@ this.$refs.studentDetail.type = type this.$refs.studentDetail.isShow = true }, - importTable(row) { - this.$refs.imports.show() + importTable(row) { + this.$refs.imports.show() }, exportExcel() { let _export = {} @@ -419,8 +435,8 @@ company_area: this.select.company_area, company_type: this.select.company_type, company_industry: this.select.company_industry, - education: this.select.education, - type:this.select.type, + education: this.select.education, + type: this.select.type, sort_name: 'score', sort_type: this.select.sort_type, export_fields: _export, @@ -461,7 +477,8 @@ align-items: center; flex-wrap: wrap; - &>div,.selected-wrap { + &>div, + .selected-wrap { display: flex; align-items: center; // margin-bottom: 10px;