From e1ab0bc0f851c74240c71065bf86ecfce177ac09 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Mon, 26 Aug 2024 18:21:49 +0800
Subject: [PATCH] xiugai
---
src/App.vue | 5 +
src/api/book/type.js | 59 +++++++
src/mixin/formMixin.js | 34 ++--
src/views/book/appointment.vue | 30 +++-
src/views/book/components/addAppointment.vue | 88 ++++++++--
src/views/book/components/addBook.vue | 135 +++++++++++----
src/views/book/components/addType.vue | 168 +++++++++++++++++++
src/views/book/components/checkBook.vue | 2 +-
src/views/book/count.vue | 65 +++++--
src/views/book/index.vue | 8 +-
src/views/book/type.vue | 156 +++++++++++++++++
src/views/component/imports.vue | 50 ++++--
src/views/config/components/addTeacher.vue | 17 +-
src/views/config/teacher.vue | 5 +
src/views/course/apply_list.vue | 5 +-
src/views/course/attendance.vue | 14 +-
src/views/course/components/addCourse.vue | 124 +++++++-------
src/views/course/components/applyForm.vue | 4 +-
src/views/course/index.vue | 15 +-
src/views/course/txl.vue | 26 ++-
src/views/student/components/detail.vue | 58 +++++--
src/views/student/index.vue | 2 +-
22 files changed, 871 insertions(+), 199 deletions(-)
create mode 100644 src/api/book/type.js
create mode 100644 src/views/book/components/addType.vue
create mode 100644 src/views/book/type.vue
diff --git a/src/App.vue b/src/App.vue
index ec9032c..2d4de11 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -9,3 +9,8 @@ export default {
name: 'App'
}
+
diff --git a/src/api/book/type.js b/src/api/book/type.js
new file mode 100644
index 0000000..50e0f08
--- /dev/null
+++ b/src/api/book/type.js
@@ -0,0 +1,59 @@
+import request from "@/utils/request";
+function customParamsSerializer(params) {
+ let result = '';
+ for (let key in params) {
+ if (params.hasOwnProperty(key)) {
+ if (Array.isArray(params[key])) {
+ params[key].forEach((item,index) => {
+ if(item.key){
+ result += `${key}[${index}][key]=${item.key}&${key}[${index}][op]=${item.op}&${key}[${index}][value]=${item.value}&`;
+
+ }else{
+ result +=`${key}[${index}]=${item}&`
+ }
+ });
+ } else {
+ result += `${key}=${params[key]}&`;
+ }
+ }
+ }
+ return result.slice(0, -1);
+}
+
+export function index(params,isLoading = false) {
+ return request({
+ method: "get",
+ url: "/api/admin/appointment-type/index",
+ params,
+ paramsSerializer: customParamsSerializer,
+ isLoading
+ })
+}
+
+export function show(params, isLoading = true) {
+ return request({
+ method: "get",
+ url: "/api/admin/appointment-type/show",
+ params,
+ isLoading
+ })
+}
+
+export function save(data) {
+ return request({
+ method: "post",
+ url: "/api/admin/appointment-type/save",
+ data
+ })
+}
+
+export function destroy(params) {
+ return request({
+ method: "get",
+ url: "/api/admin/appointment-type/destroy",
+ params
+ })
+}
+
+
+
diff --git a/src/mixin/formMixin.js b/src/mixin/formMixin.js
index 6597fd9..afc0623 100644
--- a/src/mixin/formMixin.js
+++ b/src/mixin/formMixin.js
@@ -8,52 +8,56 @@ export default {
field: 'username',
rule: 'required',
edit_input: "text",
- help: '基础字段'
+ help: '请输入姓名'
}, {
name: '性别',
field: 'sex',
rule: 'required',
edit_input: "text",
- help: '基础字段'
- }, {
- name: '身份证号',
- field: 'idcard',
- rule: 'required',
- edit_input: "text",
- help: '基础字段'
- }, {
+ help: '请选择性别'
+ },{
name: '联系方式',
field: 'mobile',
rule: 'required',
edit_input: "text",
- help: '基础字段'
+ help: '请输入联系方式'
}, {
name: '出生日期',
field: 'birthday',
rule: '',
edit_input: "text",
- help: '基础字段'
+ help: '请选择出生日期'
}, {
name: '邮箱',
field: 'email',
rule: '',
edit_input: "text",
- help: '基础字段'
+ help: '请输入邮箱'
}, {
name: '公司名称',
field: 'company_name',
rule: '',
edit_input: "text",
- help: '基础字段'
+ help: '请输入公司名称'
}, {
name: '职务',
field: 'company_position',
rule: '',
edit_input: "text",
- help: '基础字段'
+ help: '请选择职务'
}],
// 自定义表单的 扩展字段 可填可不填
- selectFormList: [{
+ selectFormList: [ {
+ name: '身份证号',
+ field: 'idcard',
+ rule: 'idcard',
+ edit_input: "text",
+ help: '请输入身份证号',
+ need_fill: 0,
+ belong_user: 1,
+ select_item: [],
+ is_open: false,
+ }, {
name: '企业性质',
field: 'company_type',
rule: '',
diff --git a/src/views/book/appointment.vue b/src/views/book/appointment.vue
index 8b9452a..d8944ec 100644
--- a/src/views/book/appointment.vue
+++ b/src/views/book/appointment.vue
@@ -24,7 +24,7 @@
-
@@ -84,6 +84,11 @@
list: [],
total: 0,
table_item: [{
+ prop: 'sort',
+ label: '排序',
+ align: 'center',
+ width: 80,
+ },{
prop: 'no',
label: '编号',
align: 'center',
@@ -93,11 +98,13 @@
label: '场地名称',
align: 'left',
width: 120,
- }, {
- prop: 'content',
- label: '场地简介',
- align: 'center'
- }, {
+ },{
+ prop: 'appointment_type.name',
+ label: '场地类型',
+ align: 'center',
+ width: 120,
+ },
+ {
prop: 'total',
label: '场地容纳人数',
align: 'center',
@@ -112,7 +119,11 @@
label: '状态',
align: 'center',
width: 120,
- }]
+ }, {
+ prop: 'content',
+ label: '场地简介',
+ align: 'left'
+ },]
}
},
@@ -133,7 +144,10 @@
async getList() {
const res = await index({
page: this.select.page,
- page_size: this.select.page_size,
+ page_size: this.select.page_size,
+ show_relation:['appointment_type'],
+ sort_name:'sort',
+ sort_type:'ASC',
filter: [{
key: 'name',
op: 'like',
diff --git a/src/views/book/components/addAppointment.vue b/src/views/book/components/addAppointment.vue
index b7de236..0dae9e3 100644
--- a/src/views/book/components/addAppointment.vue
+++ b/src/views/book/components/addAppointment.vue
@@ -11,6 +11,16 @@
+
+
+
@@ -21,6 +31,19 @@
+
+
+
+
+ 场地类型:
+
+
+
+
+
+
+
+
@@ -75,7 +98,7 @@
可预约时间段:
-
@@ -96,8 +119,29 @@
-
-
+
+
+
@@ -108,7 +152,10 @@
import {
show,
save
- } from "@/api/book/appointment.js"
+ } from "@/api/book/appointment.js"
+ import {
+ index as typeIndex
+ } from "@/api/book/type.js"
export default {
mixins: [myMixins],
components: {},
@@ -118,8 +165,10 @@
type: 'add',
id: '',
form: {
- no: '',
- name: '',
+ no: '',
+ sort:0,
+ name: '',
+ appointment_type_id:'',
content: '',
total: '',
status: 1,
@@ -127,9 +176,12 @@
dateRange: ['08:30','17:30'],
file_ids: [],
start_time:'08:30',
- end_time:'17:30'
+ end_time:'17:30',
+ // door:'',
+ // room:''
},
- action: `${process.env.VUE_APP_UPLOAD_API}`,
+ action: `${process.env.VUE_APP_UPLOAD_API}`,
+ types_options:[],
fileList: [],
rules: {
name: [{
@@ -139,8 +191,17 @@
},
}
},
- created() {},
- methods: {
+ created() {
+ this.getList()
+ },
+ methods: {
+ async getList() {
+ const res = await typeIndex({
+ page: 1,
+ page_size: 999,
+ })
+ this.types_options = res.data
+ },
changeDateRange(e) {
console.log(e)
if (e) {
@@ -192,10 +253,13 @@
id: this.id
}).then(res => {
this.form = this.base.requestToForm(res, this.form)
- this.fileList = res.files
+ this.fileList = res.files
+ this.form.sort = res.sort?res.sort:0
this.form.status = res.status ? res.status : 0
this.form.use_student = res.use_student ? res.use_student : 0
- this.form.dateRange = res.start_time?[res.start_time,res.end_time]:['','']
+ this.form.dateRange = res.start_time?[res.start_time,res.end_time]:['','']
+ // this.form.door = res.door?JSON.parse(res.door):''
+ // this.form.room = res.room?JSON.parse(res.room):''
})
},
diff --git a/src/views/book/components/addBook.vue b/src/views/book/components/addBook.vue
index 1acad9a..02b2cb1 100644
--- a/src/views/book/components/addBook.vue
+++ b/src/views/book/components/addBook.vue
@@ -19,17 +19,39 @@
- *预约人:
+ *{{type==='more'?'无需预约人':'预约人'}}:
-
+
+
+
+
+
+
+
@@ -135,6 +157,8 @@
form: {
course_id: '',
user_id: '',
+ name: '',
+ mobile: '',
date: '',
timeRange: '',
start_time: '',
@@ -151,14 +175,18 @@
site_options: [],
course_options: [],
rules: {
- user_id: [{
- required: true,
- message: '请选择预约人'
- }],
+ // user_id: [{
+ // required: true,
+ // message: '请选择预约人'
+ // }],
date: [{
required: true,
message: '请选择预约日期'
}],
+ mobile: [{
+ required: true,
+ message: '请输入联系方式'
+ }],
timeRange: [{
required: true,
message: '请选择时间段'
@@ -179,24 +207,38 @@
this.form.status = 1
this.form.start_time = this.form.date + " " + this.form.timeRange[0]
this.form.end_time = this.form.date + " " + this.form.timeRange[1]
- console.log(this.form)
- if(this.type==='more'){
- let _arr = this.base.deepCopy(this.form.user_id)
- this.form.user_id = _arr.join(",")
- }
- if(this.type==="editor"){
- this.form.status = 0
+ console.log(this.form)
+ if (this.type === 'add') {
+ if (this.base.isNull(this.form.user_id) && this.base.isNull(this.form.name)) {
+ this.$Message.warning('请选择学员或输入预约人姓名')
+ return
+ }
}
- save(this.form).then(res => {
- if(res.success {
+ _arr.push(item.id)
+ })
+ } else {
+ _arr = this.user_options.filter(item => !this.form.user_id.includes(item.id))
+ _arr = _arr.map(item => item.id)
+ }
+ console.log("_arr", _arr)
+ this.form.user_id = _arr.join(",")
+ }
+ if (this.type === "editor") {
+ this.form.status = 0
+ }
+ save(this.form).then(res => {
+ if (res.success < res.total) {
+ this.$Message.warning(res.err.join("。"))
+ } else {
+ this.$message({
+ type: 'success',
+ message: '预约成功'
+ })
}
-
this.isShow = false
this.$emit('refresh')
})
@@ -208,16 +250,38 @@
show_relation: ['user', 'appointmentConfig']
}).then(res => {
this.form = this.base.requestToForm(res, this.form)
- this.form.status = res.status ? res.status : 0
- this.form.timeRange = [this.formatHH(res.start_time),this.formatHH(res.end_time)]
+ this.form.status = res.status ? res.status : 0
+ this.form.timeRange = [this.formatHH(res.start_time), this.formatHH(res.end_time)]
})
- },
- formatHH(val){
- if(val){
- return this.$moment(val).format("HH:mm:ss")
- }else{
- return ''
+ },
+ formatHH(val) {
+ if (val) {
+ return this.$moment(val).format("HH:mm:ss")
+ } else {
+ return ''
+ }
+ },
+ changeUser(e) {
+ if (e) {
+ this.form.user_id = e
+ this.form.name = ''
+ if (this.type === "add") {
+ this.user_options.map(item => {
+ if (item.id === e) {
+ this.form.mobile = item.mobile
+ }
+ })
+ }
+ }
+ console.log(this.form.user_id, this.form.name)
+ },
+ changeInput(e) {
+ console.log("input", e)
+ if(e){
+ this.form.name = e
+ this.form.user_id = ''
}
+ console.log(this.form.user_id, this.form.name)
},
remoteMethod(query) {
if (query !== '') {
@@ -234,7 +298,10 @@
name: query,
course_id: this.form.course_id,
})
- this.user_options = res.list.data
+ this.user_options = res.list.data
+ if(this.user_options.length===0){
+ this.$Message.warning("当前课程下还没有学员")
+ }
this.loading = false
},
changeCourse(e) {
@@ -282,10 +349,6 @@
diff --git a/src/views/book/components/checkBook.vue b/src/views/book/components/checkBook.vue
index 3e9be49..45e0689 100644
--- a/src/views/book/components/checkBook.vue
+++ b/src/views/book/components/checkBook.vue
@@ -50,7 +50,7 @@
状态:
- {{item.value}}
+ {{item.value}}
diff --git a/src/views/book/count.vue b/src/views/book/count.vue
index 99d7443..6c8368d 100644
--- a/src/views/book/count.vue
+++ b/src/views/book/count.vue
@@ -10,6 +10,19 @@
@@ -25,7 +38,7 @@
-
+
{{scope.row.appointments_count}}
@@ -34,14 +47,24 @@
-
+
{{scope.row.appointment_total - scope.row.appointments_count>0?scope.row.appointment_total - scope.row.appointments_count:0}}
-
+
+
+
+
+
+
+
+
+
@@ -70,28 +93,45 @@
data() {
return {
select: {
- name: '',
+ name: '',
+ course_name:'',
+ courses_ing:1,
page: 1,
page_size: 10,
- },
+ },
+ course_options:[{
+ label:'进行中',
+ value:1
+ },{
+ label:'其他',
+ value:0
+ }],
list: [],
total:0,
- table_item: [{
+ table_item: [{
+ prop: 'course_list',
+ label: '课程名称',
+ align: 'left',
+ },{
prop: 'username',
label: '预约人',
- align: 'center',
+ align: 'center',
+ width:120
}, {
prop: 'appointment_total',
label: '可预约总数',
- align: 'center',
+ align: 'center',
+ width:120
}, {
prop: 'appointments_count',
label: '已预约次数',
- align: 'center',
+ align: 'center',
+ width:120
}, {
prop: 'appointments_can',
label: '预约剩余次数',
- align: 'center',
+ align: 'center',
+ width:120
}]
}
@@ -113,8 +153,9 @@
const res = await indexStudy({
page: this.select.page,
page_size: this.select.page_size,
- name: this.select.name,
- courses_ing: 1
+ name: this.select.name,
+ course_name:this.select.course_name,
+ courses_ing: this.select.courses_ing
})
this.list = res.list.data
this.total = res.list.total
diff --git a/src/views/book/index.vue b/src/views/book/index.vue
index 3a3deca..ea75d96 100644
--- a/src/views/book/index.vue
+++ b/src/views/book/index.vue
@@ -177,7 +177,7 @@
page: this.select.page,
page_size: this.select.page_size,
user_name: this.select.user_name,
- show_relation: ['user', 'appointmentConfig'],
+ show_relation: ['user', 'appointmentConfig', 'third_appointment_logs','third_plate_logs'],
filter: [{
key: 'date',
op: 'eq',
@@ -235,9 +235,12 @@
exportExcel() {
let _export = {}
this.table_item.map(item => {
-
if (item.prop === 'status') {
_export['status_text'] = item.label
+ }else if (item.prop === 'date') {
+ _export['start_time'] = '预约开始时间'
+ }else if (item.prop === 'timerange') {
+ _export['end_time'] = '预约结束时间'
} else {
_export[item.prop] = item.label
}
@@ -247,6 +250,7 @@
'get', {
user_name: this.select.user_name,
export_fields: _export,
+ show_relation: ['user', 'appointmentConfig'],
filter: [{
key: 'date',
op: 'eq',
diff --git a/src/views/book/type.vue b/src/views/book/type.vue
new file mode 100644
index 0000000..b710088
--- /dev/null
+++ b/src/views/book/type.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.start_time}}~{{scope.row.end_time}}
+
+
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/component/imports.vue b/src/views/component/imports.vue
index 5cf4248..6a71887 100644
--- a/src/views/component/imports.vue
+++ b/src/views/component/imports.vue
@@ -112,6 +112,13 @@
item.key = 'status_name'
}
})
+ }
+ // 学员 + 课程
+ if (this.tableName === 'users') {
+ b.unshift({
+ key: 'course_name',
+ title: '课程名字'
+ });
}
this.table = this.headers = b
@@ -137,12 +144,18 @@
this.fileList = []
this.tableList = []
return
- }
+ }
+ // 考勤导入
if (this.tableName === 'course_keeps') {
response.map(item => {
- console.log("item", item)
item.status_name = item.status === 1 ? '正常' : '缺勤'
})
+ }
+ // 学员导入
+ if (this.tableName === 'users') {
+ response.map(item => {
+ item.is_schoolmate = 1
+ })
}
this.tableList = response;
this.fileList = fileList
@@ -154,7 +167,7 @@
},
exportExcel(sheetName) {
- const data = [this.headers.map((header) => header.title)];
+ const data = [this.headers.map((header) =>header.title)];
const wb = XLSX.utils.book_new();
const ws = XLSX.utils.aoa_to_sheet(data);
XLSX.utils.book_append_sheet(wb, ws, sheetName);
@@ -211,23 +224,28 @@
let changeTableName = this.tableName.replace('_', '-')
this.action = `${process.env.VUE_APP_BASE_API}/api/admin/${changeTableName}/excel-show`
this.import_action = `/api/admin/${changeTableName}/import`
-
- // 学员导入
+ // 学员导入
if(this.tableName==='users'){
this.import_action = `/api/admin/${changeTableName}/import-study`
- this.table = this.headers = this.formInfo.map((i) => {
- if(i.prop){
- return {
- key: i.prop,
- title: i.label,
- };
- }
+ }
+
+ // if(this.tableName==='users'){
+ // this.import_action = `/api/admin/${changeTableName}/import-study`
+ // this.table = this.headers = this.formInfo.map((i) => {
- });
- console.log("this.table",this.headers)
- }else{
+ // if(i.prop){
+ // console.log("i.prop",i.prop)
+ // return {
+ // key: i.prop,
+ // title: i.label,
+ // };
+ // }
+
+ // });
+ // console.log("this.table",this.headers)
+ // }else{
this.getHeaders()
- }
+ // }
console.log("action", this.action, this.import_action)
} else {
diff --git a/src/views/config/components/addTeacher.vue b/src/views/config/components/addTeacher.vue
index 705c13d..5f829bc 100644
--- a/src/views/config/components/addTeacher.vue
+++ b/src/views/config/components/addTeacher.vue
@@ -24,6 +24,16 @@
+
+
+
@@ -60,7 +70,8 @@
id: '',
form: {
name: '',
- sex: '',
+ sex: '',
+ mobile:'',
introduce: ''
},
sex_options:[{
@@ -78,6 +89,10 @@
sex:[{
required:true,
message:'请选择性别'
+ }],
+ mobile:[{
+ required:true,
+ message:'请输入联系方式'
}]
}
}
diff --git a/src/views/config/teacher.vue b/src/views/config/teacher.vue
index c714626..25a3603 100644
--- a/src/views/config/teacher.vue
+++ b/src/views/config/teacher.vue
@@ -83,6 +83,11 @@
align: 'center',
width: 180,
}, {
+ prop: 'mobile',
+ label: '联系方式',
+ align: 'center',
+ width: 180,
+ },{
prop: 'introduce',
label: '介绍',
align: 'left',
diff --git a/src/views/course/apply_list.vue b/src/views/course/apply_list.vue
index 8e95b67..85d427f 100644
--- a/src/views/course/apply_list.vue
+++ b/src/views/course/apply_list.vue
@@ -56,8 +56,9 @@
-
-
+
+ 审核
查看
diff --git a/src/views/course/attendance.vue b/src/views/course/attendance.vue
index fbfed00..4445a3a 100644
--- a/src/views/course/attendance.vue
+++ b/src/views/course/attendance.vue
@@ -58,15 +58,12 @@
-
+
-
- {{scope.row.course_keeps_count - scope.row.user_sign_total}}
+
+ {{scope.row.user_lack_sign_total}}
-
0
@@ -150,7 +147,7 @@
width: 120,
},
{
- prop: 'user_nosign_total',
+ prop: 'user_lack_sign_total',
label: '缺勤人数',
align: 'center',
width: 120,
@@ -217,9 +214,10 @@
_export[item.prop] = item.label
})
download(
- '/api/admin/course-keeps/index',
+ '/api/admin/course-contents/index',
'get', {
export_fields: _export,
+ show_relation: ['teacher'],
filter: [{
key: 'course_id',
op: 'eq',
diff --git a/src/views/course/components/addCourse.vue b/src/views/course/components/addCourse.vue
index a0214d6..05098a5 100644
--- a/src/views/course/components/addCourse.vue
+++ b/src/views/course/components/addCourse.vue
@@ -51,30 +51,42 @@
-
+
+
+
+
-
-
+
+
+
@@ -175,11 +187,10 @@
i.rule ? !!i.rule.includes('required') : false
" v-for="(i, index) in defaultFormList">
-
- 选填字段
-
-
+
+ 选填字段
+
+
自定义字段
0) {
@@ -394,7 +402,7 @@
message: '保存课程成功'
})
this.id = res.id
- this.$emit('refresh')
+ this.$emit('refresh')
this.active = 1
// this.active = 1
@@ -415,9 +423,8 @@
}
this.publicizeList = res.publicize
this.form.dateRange = [res.start_date, res.end_date]
- this.form.signRange = [res.sign_start_date, res.sign_end_date]
- this.form.status = res.status ? res.status : 0
- this.form.is_arrange = res.is_arrange ? res.is_arrange : 0
+ this.form.status = res.status ? res.status : 0
+ this.form.is_arrange = res.is_arrange ? res.is_arrange : 0
this.form.is_fee = res.is_fee ? res.is_fee : 0
this.showTinymce = true
})
@@ -466,21 +473,22 @@
this.imgList = []
this.publicizeList = []
this.active = 0
- this.formList = []
- this.form = {
- step: '', // 控制课程 课表
- name: '',
- type: '',
- dateRange: '',
- signRange: '',
- total: '',
- status: 0,
- is_arrange: 1,
- is_fee: 1,
- image_id: '',
- publicize_ids: [],
- content: '',
- applylabel: ''
+ this.formList = []
+ this.form = {
+ step: '', // 控制课程 课表
+ name: '',
+ type: '',
+ dateRange: '',
+ total: '',
+ sign_start_date: '',
+ sign_end_date: '',
+ status: 0,
+ is_arrange: 1,
+ is_fee: 1,
+ image_id: '',
+ publicize_ids: [],
+ content: '',
+ applylabel: ''
}
this.$refs['dialog'].reset()
}
diff --git a/src/views/course/components/applyForm.vue b/src/views/course/components/applyForm.vue
index 4750123..7e8a33c 100644
--- a/src/views/course/components/applyForm.vue
+++ b/src/views/course/components/applyForm.vue
@@ -24,14 +24,14 @@
-
+
选填字段
-
+
{changeSelect(e,i)}" v-model="i.is_open" active-color="#0077CC"
inactive-color="#ccc">
diff --git a/src/views/course/index.vue b/src/views/course/index.vue
index 54eb122..c773d17 100644
--- a/src/views/course/index.vue
+++ b/src/views/course/index.vue
@@ -48,7 +48,16 @@
{{scope.row.start_date?scope.row.start_date:""}}{{scope.row.end_date?'至'+scope.row.end_date:''}}
-
+
+
+
+
+ {{scope.row.sign_start_date?scope.row.sign_start_date:''}}
+ {{scope.row.sign_end_date?"至"+scope.row.end_date:'起'}}
+
+
+
+
@@ -130,8 +139,8 @@
align: 'center',
width: 180,
}, {
- prop: 'sign_end_date',
- label: '报名截止日期',
+ prop: 'signDate',
+ label: '报名日期',
align: 'center',
width: 120,
}, {
diff --git a/src/views/course/txl.vue b/src/views/course/txl.vue
index 6ff99cf..4685581 100644
--- a/src/views/course/txl.vue
+++ b/src/views/course/txl.vue
@@ -95,10 +95,10 @@
-
+
-
+ 设置班委
查看
@@ -138,7 +138,8 @@
company_position: '',
company_area: '',
company_type: '',
- company_industry: '',
+ company_industry: '',
+ education:'',
status: '',
apply_status: '',
page: 1,
@@ -187,6 +188,11 @@
align: 'center',
width: 120,
}, {
+ prop: 'position',
+ label: '本班职务',
+ align: 'center',
+ width: 120,
+ },{
prop: 'score',
label: '评分',
align: 'center',
@@ -231,7 +237,8 @@
company_position: this.select.company_position,
company_area: this.select.company_area,
company_type: this.select.company_type,
- company_industry: this.select.company_industry,
+ company_industry: this.select.company_industry,
+ education:this.select.education,
filter: [{
key: 'course_id',
op: 'eq',
@@ -266,7 +273,14 @@
download(
'/api/admin/course-signs/index',
'get', {
- name: this.select.name,
+ name: this.select.name,
+ mobile: this.select.mobile,
+ company_name: this.select.company_name,
+ company_position: this.select.company_position,
+ company_area: this.select.company_area,
+ company_type: this.select.company_type,
+ company_industry: this.select.company_industry,
+ education:this.select.education,
export_fields: _export,
filter: [{
key: 'course_id',
diff --git a/src/views/student/components/detail.vue b/src/views/student/components/detail.vue
index 4be384d..fed0c31 100644
--- a/src/views/student/components/detail.vue
+++ b/src/views/student/components/detail.vue
@@ -53,7 +53,7 @@
{{student_info.email?student_info.email:''}}
-
+
公司名称
@@ -64,7 +64,14 @@
职务
{{student_info.company_position?student_info.company_position:''}}
-
+
+
+
+ 本班职务
+
+ {{sign_result.position?sign_result.position:''}}
+
+
@@ -164,8 +172,7 @@
-
-
+
+
+
+
+
- 确认
- 取消
关闭
@@ -266,7 +284,8 @@
status: 0,
score: '',
file_ids: [],
- reason: '',
+ reason: '',
+ position:''
},
}
},
@@ -305,11 +324,12 @@
status: this.form.status,
reason: this.form.reason,
score: this.form.score,
- file_ids:this.form.file_ids
+ file_ids:this.form.file_ids,
+ position:this.form.position
}).then(res => {
this.$message({
type: 'success',
- message: '审核成功'
+ message: this.type==='check' ? '审核成功' : '设置成功'
})
this.isShow = false
this.$emit('refresh')
@@ -349,10 +369,16 @@
if (this.type === 'show') {
this.typeName = "查看个人明细"
this.getDetail()
- console.log("row", this.row)
- } else if (this.type === 'check' || this.type === 'checkshow') {
- this.getSignDetail()
- this.typeName = this.type === 'check' ? '审核' : '查看'
+ } else if (this.type === 'check' || this.type === 'checkshow' || this.type==='setPosition') {
+ this.getSignDetail()
+ if(this.type==='check'){
+ this.typeName = '审核'
+ }else if(this.type==='setPosition'){
+ this.typeName = '设置班委'
+ }else{
+ this.typeName = '查看'
+ }
+
}
} else {
this.id = ''
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index 1896ad9..b934de6 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -135,7 +135,7 @@
-
+