例:name为标题;type为类型(input输入框;radio单选框;textarea文本域);key为标题标识须一致;value为单选框选项
@@ -376,7 +291,7 @@ export default {
}
},
- mounted() {},
+ mounted() { },
methods: {
// json
setSignTab(row) {
@@ -407,7 +322,7 @@ export default {
this.getList()
this.signTable = false
})
- .catch((error) => {})
+ .catch((error) => { })
} else {
this.$message.warning('请检查JSON数据格式')
}
@@ -445,6 +360,14 @@ export default {
this.title = '修改班级'
this.visibleopen = true
this.form = row
+ // 线上培训班的时间为选填
+ if (row.classType == 4) {
+ this.rules.trainStartTime = []
+ this.rules.trainEndTime = []
+ } else {
+ this.rules.trainStartTime = [{ required: true, message: '培训开始时间', trigger: 'blur' }]
+ this.rules.trainEndTime = [{ required: true, message: '培训结束时间', trigger: 'blur' }]
+ }
// 如果有资料
if (row.attachment) {
let packageFile = [
@@ -481,7 +404,7 @@ export default {
this.$message.success('删除成功')
})
})
- .catch(() => {})
+ .catch(() => { })
},
// 提交
async submitto() {
@@ -538,6 +461,16 @@ export default {
this.studentList = res.rows
this.totals = res.total
},
+ classTypeChange(e) {
+ console.log(e);
+ if (e == 4) {
+ this.rules.trainStartTime = []
+ this.rules.trainEndTime = []
+ } else {
+ this.rules.trainStartTime = [{ required: true, message: '培训开始时间', trigger: 'blur' }]
+ this.rules.trainEndTime = [{ required: true, message: '培训结束时间', trigger: 'blur' }]
+ }
+ }
},
created() {
this.getList()
diff --git a/src/views/trainService/signupStudent.vue b/src/views/trainService/signupStudent.vue
index a819616..736faa4 100644
--- a/src/views/trainService/signupStudent.vue
+++ b/src/views/trainService/signupStudent.vue
@@ -16,31 +16,52 @@
+
+
+
+
+
+
搜索
重置
-
导出为excel
+
导出为excel
+
下载
-
+
+
+
+
+ 男
+ 女
+
+
+
+
+ {{
+ scope.row.reportName ? scope.row.reportName : '' }}
+
+
+
- 修改备注
+ 修改备注
添加备注
删除
@@ -51,31 +72,18 @@
- 修改备注
+ 修改备注
添加备注
删除
-
+
-
+
@@ -99,6 +107,7 @@ export default {
return {
loading: false,
// 总条数
+ multipleSelection: [],
queryParamss: {
pageNum: 1,
pageSize: 10,
@@ -109,19 +118,23 @@ export default {
counsellorTel: null,
},
totals: 0,
-
+ options: [
+ { value: 0, label: '是' },
+ { value: 1, label: '否' }
+ ],
studentList: [],
// 弹层
title: '添加备注',
visibleopen: false,
form: {},
rules: {
- remark: [{ required: true, message: '请输入备注', trigger: 'blur' }],
+ // remark: [{ required: true, message: '请输入备注', trigger: 'blur' }],
},
rowId: null,
teacherList: [], //原始数据
// 表头数据
headerList: [],
+ base: process.env.VUE_APP_BASE,
headerData: {},
}
},
@@ -210,7 +223,7 @@ export default {
this.$message.success('删除成功')
})
})
- .catch(() => {})
+ .catch(() => { })
},
// 添加备注
addRemark(row) {
@@ -250,10 +263,25 @@ export default {
saveAs(blob, this.$route.query.name + '报名表.xlsx')
})
},
+ handleSelectionChange(val) {
+ this.multipleSelection = val;
+ },
+ downloadReport(val) {
+ if (val === 'multify') {
+ const self = this
+ this.multipleSelection.forEach(item => {
+ if (item.reportAttachment) {
+ console.log(item.reportAttachment);
+ window.open(this.base + item.reportAttachment)
+ }
+ })
+ } else if (val) {
+ window.open(this.base + val)
+ }
+ }
},
- created() {},
+ created() { },
}
-
+