diff --git a/.env.staging b/.env.staging
index 5677c52..a55410a 100644
--- a/.env.staging
+++ b/.env.staging
@@ -4,6 +4,6 @@ NODE_ENV = production
ENV = 'staging'
# base api
-VUE_APP_BASE_API=http://suzhoukeji-test.ali251.langye.net/
-VUE_APP_UPLOAD_API=http://suzhoukeji-test.ali251.langye.net/api/admin/upload-file
+VUE_APP_BASE_API=https://suzhoukeji-test.ali251.langye.net
+VUE_APP_UPLOAD_API=https://suzhoukeji-test.ali251.langye.net/api/admin/upload-file
diff --git a/src/mixin/formMixin.js b/src/mixin/formMixin.js
index 21f2f77..a1bc551 100644
--- a/src/mixin/formMixin.js
+++ b/src/mixin/formMixin.js
@@ -306,6 +306,7 @@ export default {
belong_user: 1,
belong_user_table: 'company_name',
sort: 0,
+ span: 2
}, {
name: '职务',
field: 'company_position',
@@ -346,6 +347,7 @@ export default {
is_open: false,
belong_user_table: 'type',
sort: 0,
+ span: 2
}, {
name: '企业性质',
field: 'company_type',
@@ -358,6 +360,7 @@ export default {
is_open: false, // 控制开启关闭的 参数不做保存
belong_user_table: 'company_type',
sort: 0,
+ span: 2
}, {
name: '融资情况',
field: 'company_fund',
@@ -368,6 +371,7 @@ export default {
belong_user: 1,
belong_user_table: 'company_fund',
sort: 0,
+ span: 2
}, {
name: '所在区域',
field: 'company_area',
@@ -380,17 +384,6 @@ export default {
is_open: false,
belong_user_table: 'company_area',
sort: 0,
- }, {
- name: '公司地址',
- field: 'company_address',
- rule: '',
- edit_input: "text",
- help: '请填写公司地址',
- need_fill: 0,
- belong_user: 1,
- is_open: false,
- belong_user_table: 'company_address',
- sort: 0,
}, {
name: '所属行业',
field: 'company_industry',
@@ -403,6 +396,18 @@ export default {
is_open: false,
belong_user_table: 'company_industry',
sort: 0,
+ }, {
+ name: '公司地址',
+ field: 'company_address',
+ rule: '',
+ edit_input: "text",
+ help: '请填写公司地址',
+ need_fill: 0,
+ belong_user: 1,
+ is_open: false,
+ belong_user_table: 'company_address',
+ sort: 0,
+ span: 2
}, {
name: '产品',
field: 'company_product',
@@ -413,16 +418,18 @@ export default {
belong_user: 1,
belong_user_table: 'company_product',
sort: 0,
+ span: 2
}, {
name: '毕业院校',
field: 'school',
rule: '',
edit_input: "text",
- help: '请输入产品',
+ help: '请输入毕业院校',
need_fill: 0,
belong_user: 1,
belong_user_table: 'school',
sort: 0,
+ span: 2
}, {
name: '专业',
field: 'speciality',
@@ -457,13 +464,81 @@ export default {
}, {
name: '邮箱',
field: 'email',
- rule: '',
+ rule: 'email',
edit_input: "text",
help: '请输入邮箱',
need_fill: 0,
belong_user: 1,
belong_user_table: 'email',
sort: 0,
+ }, {
+ name: '销售额/亿',
+ field: 'sales_volume',
+ rule: '',
+ edit_input: "text",
+ help: '请输入销售额/亿',
+ need_fill: 0,
+ belong_user: 1,
+ belong_user_table: 'sales_volume',
+ sort: 0,
+ }, {
+ name: '估值',
+ field: 'valuation',
+ rule: '',
+ edit_input: "text",
+ help: '请输入估值',
+ need_fill: 0,
+ belong_user: 1,
+ belong_user_table: 'valuation',
+ sort: 0,
+ }, {
+ name: '市值',
+ field: 'market_value',
+ rule: '',
+ edit_input: "text",
+ help: '请输入市值',
+ need_fill: 0,
+ belong_user: 1,
+ belong_user_table: 'market_value',
+ sort: 0,
+ }, {
+ name: '是否为元禾投资企业',
+ field: 'is_yuanhe',
+ rule: '',
+ edit_input: "text",
+ help: '请选择',
+ need_fill: 0,
+ belong_user: 1,
+ select_item: [{
+ key: '是',
+ value: '是'
+ }, {
+ key: '否',
+ value: '否'
+ }],
+ belong_user_table: 'is_yuanhe',
+ sort: 0,
+ }],
+ sexList: [{
+ key: '男',
+ value: '男'
+ }, {
+ key: '女',
+ value: '女'
+ }],
+ shareList: [{
+ key: '有',
+ value: '有'
+ }, {
+ key: '无',
+ value: '无'
+ }],
+ yuanheList:[{
+ key: '是',
+ value: '是'
+ }, {
+ key: '否',
+ value: '否'
}],
formSelect: {
// company_position: [],
diff --git a/src/mixin/selectMixin.js b/src/mixin/selectMixin.js
index b2cbe8e..fb32c77 100644
--- a/src/mixin/selectMixin.js
+++ b/src/mixin/selectMixin.js
@@ -42,6 +42,18 @@ export default {
id: 3,
value: '备选',
type: 'danger'
+ }, {
+ id: 4,
+ value: '已取消',
+ type: 'info'
+ }, {
+ id: 5,
+ value: '主动放弃',
+ type: 'danger'
+ }, {
+ id: 6,
+ value: '黑名单',
+ type: 'warning'
}],
fee_status_list: [{
id: 0,
@@ -166,7 +178,7 @@ export default {
value: '全部'
}, {
id: 1,
- value: '正常',
+ value: '出勤',
type: 'success'
}, {
id: 0,
diff --git a/src/views/book/appointment.vue b/src/views/book/appointment.vue
index d8944ec..8a92e40 100644
--- a/src/views/book/appointment.vue
+++ b/src/views/book/appointment.vue
@@ -98,6 +98,11 @@
label: '场地名称',
align: 'left',
width: 120,
+ },{
+ prop: 'real_name',
+ label: '小程序展示名称',
+ align: 'left',
+ width: 120,
},{
prop: 'appointment_type.name',
label: '场地类型',
diff --git a/src/views/book/components/addAppointment.vue b/src/views/book/components/addAppointment.vue
index 1f5e6dd..11ea7c2 100644
--- a/src/views/book/components/addAppointment.vue
+++ b/src/views/book/components/addAppointment.vue
@@ -28,10 +28,21 @@
*场地名称:
-
+
+
+
+
+
@@ -168,6 +179,7 @@
no: '',
sort:0,
name: '',
+ real_name:'',
appointment_type_id:'',
content: '',
total: '',
diff --git a/src/views/book/components/addType.vue b/src/views/book/components/addType.vue
index b11463f..9420c48 100644
--- a/src/views/book/components/addType.vue
+++ b/src/views/book/components/addType.vue
@@ -1,7 +1,7 @@
-
+
@@ -29,57 +29,55 @@
*可预约时间段:
-
+
-
-
-
-
- 是否可预约:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 是否可预约:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -87,15 +85,24 @@
场地图片:
-
+
+
+
+
@@ -114,17 +121,19 @@
isShow: false,
type: 'add',
id: '',
+ showTinymce: false,
form: {
name: '',
introduce: '',
- dateRange: ['09:00','17:30'],
- is_book:0,
- floor:'',
- total:'',
- sort:0,
- image_id: [],
- start_time:'09:00',
- end_time:'17:30'
+ dateRange: ['09:00', '17:30'],
+ is_book: 0,
+ floor: '',
+ total: '',
+ sort: 0,
+ image_id: [],
+ start_time: '09:00',
+ end_time: '17:30',
+ content: ''
},
action: `${process.env.VUE_APP_UPLOAD_API}`,
fileList: [],
@@ -138,6 +147,9 @@
},
created() {},
methods: {
+ saveContent(e) {
+ this.form.content = e
+ },
changeDateRange(e) {
console.log(e)
if (e) {
@@ -187,10 +199,11 @@
id: this.id
}).then(res => {
this.form = this.base.requestToForm(res, this.form)
- this.fileList = res.image
- this.form.dateRange = res.start_time?[res.start_time,res.end_time]:['',''],
- this.form.sort = res.sort?res.sort:0
- this.form.is_book = res.is_book?res.is_book:0
+ this.fileList = res.image
+ this.form.dateRange = res.start_time ? [res.start_time, res.end_time] : ['', ''],
+ this.form.sort = res.sort ? res.sort : 0
+ this.form.is_book = res.is_book ? res.is_book : 0
+ this.showTinymce = true
})
},
@@ -201,10 +214,13 @@
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
+ } else {
+ this.showTinymce = true
}
} else {
this.id = ''
this.fileList = []
+ this.showTinymce = false
this.$refs['dialog'].reset()
}
},
@@ -214,7 +230,8 @@
diff --git a/src/views/book/components/checkBook.vue b/src/views/book/components/checkBook.vue
index f25fa6a..7d8a7aa 100644
--- a/src/views/book/components/checkBook.vue
+++ b/src/views/book/components/checkBook.vue
@@ -93,7 +93,8 @@
-
+ 重新预约
diff --git a/src/views/book/index.vue b/src/views/book/index.vue
index 525cf4a..e87ec3a 100644
--- a/src/views/book/index.vue
+++ b/src/views/book/index.vue
@@ -88,7 +88,8 @@
import checkBook from './components/checkBook.vue';
import addBook from './components/addBook.vue';
import {
- index
+ index,
+ destroy
} from "@/api/book/index.js"
import {
index as getAppointment
@@ -265,7 +266,19 @@
page_size: 999
},
`预约信息.xlsx`)
- }
+ },
+ deleteList(id) {
+ var that = this;
+ destroy({
+ id: id,
+ }).then(response => {
+ this.$Message.success('删除成功');
+ this.getList()
+ }).catch(error => {
+ console.log(error)
+ reject(error)
+ })
+ },
}
}
diff --git a/src/views/component/imports.vue b/src/views/component/imports.vue
index 2955c89..c005418 100644
--- a/src/views/component/imports.vue
+++ b/src/views/component/imports.vue
@@ -42,7 +42,10 @@
import {
realTableShow
} from "@/api/system/customForm";
- import request from '@/utils/request'
+ import request from '@/utils/request'
+ import {
+ index as formIndex
+ } from "@/api/course/form";
export default {
props: {
formInfo: {
@@ -74,7 +77,7 @@
hidden() {
this.dialogVisible = false;
},
- // 获取表头
+ // 获取 数据库里面的表头
async getHeaders() {
let _except = []
// 学员去除一些信息
@@ -92,17 +95,17 @@
if (!this.base.isNull(res[key])) {
b.push({
key: key,
- title: res[key],
- width:120
+ title: res[key],
+ width: 120
});
}
}
// 课表
if (this.tableName === 'course_contents') {
b.push({
- key: '',
- title: '老师简介',
- width:120
+ key: 'teacher_introduce',
+ title: '老师简介',
+ width: 120
});
b.map(item => {
if (item.key === 'teacher_id') {
@@ -112,9 +115,11 @@
}
// 考勤
if (this.tableName === 'course_keeps') {
- b.map(item => {
+ b.map(item => {
+ item.width=''
if (item.key === 'user_id') {
- item.key = 'user_name'
+ item.key = 'user_name'
+
}
if (item.key === 'status') {
item.key = 'status_name'
@@ -126,11 +131,36 @@
b.unshift({
key: 'course_name',
title: '课程名字',
- width:120
+ width: 120
});
}
this.table = this.headers = b
+ },
+ // course_signs 自定义表单表头
+ async getAutoForm(){
+ const res = await formIndex({
+ page:1,
+ page_size:999,
+ sort_name: 'sort',
+ sort_type: 'ASC',
+ filter: [{
+ key: 'course_id',
+ op: 'eq',
+ value: this.course_id
+ }],
+ })
+ let arr = []
+ res.data.map(item=>{
+ if(item.edit_input!='files'){
+ arr.push({
+ key: item.field,
+ title: item.name,
+ width: 120
+ });
+ }
+ })
+ this.table = this.headers = arr
},
//上传
uploadFail(err) {
@@ -157,13 +187,13 @@
// 考勤导入
if (this.tableName === 'course_keeps') {
response.map(item => {
- item.status_name = item.status === 1 ? '正常' : '缺勤'
+ item.status_name = item.status === 1 ? '出勤' : '缺勤'
})
}
// 学员导入
if (this.tableName === 'users') {
response.map(item => {
- item.is_schoolmate = 1
+ item.is_schoolmate = 1
item.username = item.name
})
}
@@ -178,6 +208,17 @@
exportExcel(sheetName) {
const data = [this.headers.map((header) => header.title)];
+ console.log("data", data)
+ if (this.tableName === 'course_keeps') {
+ data.push(['(上传前请删除示例)', '', '', ''])
+ data.push(['(请设置单元格格式为文本格式)2024-09-03', 'xxx', '出勤/缺勤'])
+ }else if (this.tableName === 'course_contents') {
+ data.push(['(上传前请删除示例)', '', '', ''])
+ data.push(['(请设置单元格格式为文本格式)2024-09-03', '上午13:00-14:00', '王老师', '《战略思维2》', '苏州大学', '老师简介'])
+ }else if(this.tableName === 'course_signs'){
+ data.push(['(请确保学员联系方式不为空)', '', '', ''])
+ }
+ // return
const wb = XLSX.utils.book_new();
const ws = XLSX.utils.aoa_to_sheet(data);
XLSX.utils.book_append_sheet(wb, ws, sheetName);
@@ -237,8 +278,13 @@
// 学员导入
if (this.tableName === 'users') {
this.import_action = `/api/admin/${changeTableName}/import-study`
+ }
+ // 自定义表单
+ if (this.tableName === 'course_signs') {
+ this.getAutoForm()
+ } else {
+ this.getHeaders()
}
-
// if(this.tableName==='users'){
// this.import_action = `/api/admin/${changeTableName}/import-study`
// this.table = this.headers = this.formInfo.map((i) => {
@@ -254,7 +300,7 @@
// });
// console.log("this.table",this.headers)
// }else{
- this.getHeaders()
+
// }
console.log("action", this.action, this.import_action)
diff --git a/src/views/course/apply_list.vue b/src/views/course/apply_list.vue
index 0743c69..85d72ab 100644
--- a/src/views/course/apply_list.vue
+++ b/src/views/course/apply_list.vue
@@ -6,42 +6,87 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 导出
-
+
-
- 批量审核
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 导出
+
+ 批量审核
+
+
+
-
-
-
课程名称:{{subjectObj.title}}
-
开课日期:{{subjectObj.date}}
-
课程体系:{{subjectObj.leibie}}
+
+
+
课程名称:{{subjectObj.title}}
+
开课日期:{{subjectObj.date}}
+
课程体系:{{subjectObj.leibie}}
@@ -56,10 +101,9 @@
-
+
- 审核
+ 审核
查看
@@ -76,15 +120,17 @@
diff --git a/src/views/course/components/editPane.vue b/src/views/course/components/editPane.vue
index 252151b..b21db03 100644
--- a/src/views/course/components/editPane.vue
+++ b/src/views/course/components/editPane.vue
@@ -5,8 +5,8 @@
-
+
@@ -77,7 +77,7 @@
translate
} from "@/api/system/customFormField";
import {
- debounce,
+ debounce,
deepCopy
} from "@/utils";
import formMixins from "@/mixin/formMixin.js";
@@ -128,14 +128,32 @@
},
changeIsUser(e) {
- console.log("e", e)
- console.log(this.selectedForm)
- this.selectFormList.map(item => {
- if (e === item.belong_user_table) {
- this.selectedForm = this.base.requestToForm(item,this.selectedForm)
- console.log(this.selectedForm)
- }
- })
+ console.log("e", e)
+ console.log(this.selectedForm)
+ if(e){
+ this.selectFormList.map(item => {
+ if (e === item.belong_user_table) {
+ // this.selectedForm = this.base.requestToForm(item,this.selectedForm)
+ this.selectedForm.name = item.name
+ this.selectedForm.field = item.field
+ this.selectedForm.help = item.help
+ this.selectedForm.select_item = item.select_item
+ this.selectedForm.rule = item.rule
+ this.selectedForm.belong_user = item.belong_user
+ this.selectedForm.edit_input = item.edit_input
+ this.selectItem = item.select_item
+ this.validation = []
+ if(!this.base.isNull(this.selectedForm.rule)){
+ this.validation = this.selectedForm.rule.split(",")
+ }
+ console.log("2", this.selectedForm,this.validation)
+ }
+ })
+ }else{
+ this.selectedForm.belong_user = 0
+
+ }
+
},
saveField() {
diff --git a/src/views/course/components/editSign.vue b/src/views/course/components/editSign.vue
new file mode 100644
index 0000000..757f19f
--- /dev/null
+++ b/src/views/course/components/editSign.vue
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+
+ *{{item.name}}:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/course/components/setMainTeacher.vue b/src/views/course/components/setMainTeacher.vue
index 51aac09..e52120d 100644
--- a/src/views/course/components/setMainTeacher.vue
+++ b/src/views/course/components/setMainTeacher.vue
@@ -8,7 +8,7 @@
*班主任:
-
+
@@ -36,7 +36,7 @@
form: {
teacher_id: '',
},
-
+ teachers:[],
rules: {
teacher_id: [{
required: true,
@@ -51,7 +51,10 @@
setTeachers(e){
this.teacher_options = e
},
- submit() {
+ submit() {
+ if(this.teachers.length>0){
+ this.form.teacher_id = this.teachers.join(",")
+ }
save({
...this.form
}).then(res => {
@@ -68,7 +71,14 @@
show({
id: this.id
}).then(res => {
- this.form = this.base.deepCopy(res, this.form)
+ this.form = this.base.deepCopy(res, this.form)
+ res.teacher_detail.map(item=>{
+ this.teachers.push(item.id)
+ })
+ // this.teachers = this.form.teacher_id?this.form.teacher_id.split(","):[],
+ // this.$nextTick(function(){
+ // this.teachers = this.form.teacher_id?this.form.teacher_id.split(","):[]
+ // })
})
},
},
@@ -77,7 +87,8 @@
if (newVal) {
this.getDetail()
} else {
- this.id = ''
+ this.id = ''
+ this.teachers = []
this.$refs['dialog'].reset()
}
},
diff --git a/src/views/course/pay.vue b/src/views/course/pay.vue
index 2198cf9..5d17de1 100644
--- a/src/views/course/pay.vue
+++ b/src/views/course/pay.vue
@@ -67,12 +67,12 @@
-
+
-
-
+
-
+
@@ -80,8 +80,8 @@
-
-
+ 核对
diff --git a/src/views/course/txl.vue b/src/views/course/txl.vue
index 273e226..fcbec3f 100644
--- a/src/views/course/txl.vue
+++ b/src/views/course/txl.vue
@@ -1,6 +1,5 @@
-
@@ -17,11 +16,7 @@
-
-
-
-
+
@@ -58,14 +53,15 @@
-
@@ -95,12 +91,12 @@
-
+
- 设置班委
- 查看
+ 编辑
+ 查看
@@ -108,11 +104,14 @@
+
+
diff --git a/src/views/student/components/detail.vue b/src/views/student/components/detail.vue
index e7d8ec7..641430a 100644
--- a/src/views/student/components/detail.vue
+++ b/src/views/student/components/detail.vue
@@ -17,127 +17,55 @@
-
+
- 姓名
+ {{item.name}}
- {{student_info.username?student_info.username:''}}
+ {{student_info[item.field]?student_info[item.field]:''}}
-
+
- 性别
+ 本班职务
- {{student_info.sex?student_info.sex:''}}
+ {{sign_result.position?sign_result.position:''}}
-
-
- 身份证号
-
- {{student_info.idcard?student_info.idcard:''}}
-
-
-
- 联系方式
-
- {{student_info.mobile?student_info.mobile:''}}
-
-
-
- 出生日期
-
- {{student_info.birthday?student_info.birthday:''}}
-
-
-
- 邮箱
-
- {{student_info.email?student_info.email:''}}
-
-
-
- 公司名称
-
- {{student_info.company_name?student_info.company_name:''}}
-
-
-
- 职务
-
- {{student_info.company_position?student_info.company_position:''}}
-
-
-
- 本班职务
-
- {{sign_result.position?sign_result.position:''}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
-
-
- {{item.name}}
-
- {{item.value}}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+ {{item.value}}
+
+
+
+
+
+
-
+
-
+
@@ -151,15 +79,19 @@
评分:
{{sign_result.score}}
-
-
+
+ 放弃原因:
+ {{sign_result.giveup_reason}}
+
+
备注:
@@ -196,17 +128,25 @@
+
+
+
录取通知书:
-
- 点击上传
+
+ 点击上传
只能上传pdf文件
@@ -218,30 +158,30 @@
备注:
-
+
+
+
+
+
+
+
-
-
-
-
确认
- 取消
- 关闭
+ 取消
+ 关闭
@@ -260,8 +200,9 @@
} from '@/api/apply/index.js'
import myMixins from "@/mixin/selectMixin.js";
+ import formMixin from "@/mixin/formMixin.js";
export default {
- mixins: [myMixins],
+ mixins: [myMixins, formMixin],
components: {
},
@@ -271,8 +212,8 @@
type: 'show',
typeName: '查看个人明细',
id: '',
- action: `${process.env.VUE_APP_UPLOAD_API}`,
- host:`${process.env.VUE_APP_BASE_API}`,
+ action: `${process.env.VUE_APP_UPLOAD_API}`,
+ host: `${process.env.VUE_APP_BASE_API}`,
subjectObj: {},
student_info: {},
row: {},
@@ -283,53 +224,55 @@
show: '',
status: 0,
score: '',
+ giveup_reason: '',
file_ids: [],
- reason: '',
- position:''
+ reason: '',
+ position: ''
},
}
},
created() {},
methods: {
- uploadSuccess(response, file, fileList) {
- this.fileList = fileList
- },
- uploadRemove(file, fileList) {
- this.fileList = fileList
- },
- // beforeUpload(file) {
- // const isImage = file.type.includes('image');
- // if (!isImage) {
- // this.$message.error('请上传正确的图片格式文件');
- // }
- // return isImage && isLt2M;
+ uploadSuccess(response, file, fileList) {
+ this.fileList = fileList
+ },
+ uploadRemove(file, fileList) {
+ this.fileList = fileList
+ },
+ // beforeUpload(file) {
+ // const isImage = file.type.includes('image');
+ // if (!isImage) {
+ // this.$message.error('请上传正确的图片格式文件');
+ // }
+ // return isImage && isLt2M;
// },
submit() {
if (this.id) {
this.form.id = this.id
- }
- let _arr = []
- if (this.fileList.length > 0) {
- this.fileList.map(item => {
- if (item.response) {
- _arr.push(item.response.id)
- } else {
- _arr.push(item.id)
- }
- })
- }
+ }
+ let _arr = []
+ if (this.fileList.length > 0) {
+ this.fileList.map(item => {
+ if (item.response) {
+ _arr.push(item.response.id)
+ } else {
+ _arr.push(item.id)
+ }
+ })
+ }
this.form.file_ids = _arr
save({
...this.row,
status: this.form.status,
reason: this.form.reason,
- score: this.form.score,
- file_ids:this.form.file_ids,
- position:this.form.position
+ score: this.form.score,
+ giveup_reason: this.form.giveup_reason,
+ file_ids: this.form.file_ids,
+ position: this.form.position
}).then(res => {
this.$message({
type: 'success',
- message: this.type==='check' ? '审核成功' : '设置成功'
+ message: this.type === 'check' ? '审核成功' : '设置成功'
})
this.isShow = false
this.$emit('refresh')
@@ -349,24 +292,30 @@
show_relation: ['user']
}).then(res => {
this.student_info = res.user
- this.sign_result = res
- this.form.position = res.position?res.position:''
- if(res.data && Array.isArray(res.data)){
- res.data.map(item=>{
- if(!this.base.isNull(item.value) && item.value.indexOf("/storage/files/")!==-1){
- item.submit_files = item.value.split(",")
+ this.sign_result = res
+ this.form.position = res.position ? res.position : ''
+ let _arr = []
+ if (res.data && Array.isArray(res.data)) {
+ res.data.map(item => {
+ if (!this.base.isNull(item.value) && item.value.indexOf("/storage/files/") !== -1) {
+ item.submit_files = item.value.split(",")
}
- })
- this.sign_info = res.data
- }else{
- this.sign_info = []
- }
- this.form.status = res.status?res.status:0
- this.form.score = res.score?res.score:''
- this.form.reason = res.reason?res.reason:''
- this.fileList = res.files?res.files:[]
-
- console.log("this.sign_info",this.sign_info)
+ // 处理自定义字段中是否 是个人用户信息
+ if (!this.student_info.hasOwnProperty(item.field)) {
+ console.log("item.field")
+ _arr.push(item)
+ }
+ })
+ this.sign_info = _arr
+ } else {
+ this.sign_info = []
+ }
+ this.form.status = res.status ? res.status : 0
+ this.form.score = res.score ? res.score : ''
+ this.form.reason = res.reason ? res.reason : ''
+ this.fileList = res.files ? res.files : []
+
+ console.log("this.sign_info", this.sign_info)
})
}
},
@@ -376,14 +325,14 @@
if (this.type === 'show') {
this.typeName = "查看个人明细"
this.getDetail()
- } 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 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 = '查看'
}
}
@@ -392,7 +341,7 @@
this.type = 'show'
this.subjectObj = {}
this.sign_result = {}
- this.sign_info = []
+ this.sign_info = []
this.fileList = []
this.$refs['dialog'].reset()
}
@@ -403,9 +352,10 @@
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index eb17454..f695ef0 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -17,6 +17,10 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
查询
导入
@@ -96,21 +114,31 @@
@selection-change="selectionChange" :total="total" :table-item="table_item">
-
+
-
-
{{index+1}}、{{item.name}}
+
+
+
+ {{item.course.year?item.course.year:''}}{{item.course.type_detail.name+' | '}}{{item.course.name}}
+
+
+ {{state.value}}
+
+
+
-
-
-
-
- {{base.maskPhoneNumber(scope.row.mobile)}}
-
-
-
+
+
+
+
+ {{base.maskPhoneNumber(scope.row.mobile)}}
+
+
+
@@ -133,8 +161,10 @@
-
+
+ 编辑
+
查看
@@ -142,25 +172,32 @@
-
-
+
+
+