Commit 2da96a64 authored by 刘怀志's avatar 刘怀志

添加问题

parent 1be182b3
...@@ -1632,11 +1632,11 @@ export default { ...@@ -1632,11 +1632,11 @@ export default {
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
return this.$message.error('请选择课程') return this.$message.error('请选择课程')
} }
console.log('提交') console.log('提交', this.multipleSelection)
const form = this.multipleSelection const form = this.multipleSelection
form.forEach(item => { form.forEach(item => {
item.applicant = this.form.applicant item.applicant = this.form.applicant
item.lessonId = item.businessId item.lessonId = item.businessId ? item.businessId : item.lessonId
item.remarks = this.form.remarks item.remarks = this.form.remarks
item.applicantType = 1 item.applicantType = 1
item.isPay = this.form.isPay item.isPay = this.form.isPay
...@@ -1647,6 +1647,7 @@ export default { ...@@ -1647,6 +1647,7 @@ export default {
item.jobClassification = item.jobClassify item.jobClassification = item.jobClassify
item.technicalClassification = item.tecClassify item.technicalClassification = item.tecClassify
}) })
console.log('KKKKKKKKKKKKKKKKKKKKKKKKK', form)
this.$refs.lessonRef.validate(valid => { this.$refs.lessonRef.validate(valid => {
if (valid) { if (valid) {
const addForm = { const addForm = {
...@@ -1667,35 +1668,6 @@ export default { ...@@ -1667,35 +1668,6 @@ export default {
}) })
} }
}) })
// if (this.form.settingList.length > 0) {
// // 克隆form
// const form = {
// settingList: this.form.settingList,
// applicant: this.addForm.applicant,
// applicantType: 1
// }
// // 判断form的每一项flag是否为0
// for (let i = 0; i < form.settingList.length; i++) {
// if (form.settingList[i].flag === '1') {
// return this.$message.error('请保存列表数据')
// }
// }
// console.log('this.form', this.form)
// batchAddTeaTrialCourse(form).then(res => {
// if (res.code === 200) {
// this.resetAddFrom()
// this.open = false
// this.loadData()
// this.$message({
// message: '新增成功',
// type: 'success'
// })
// }
// })
// } else {
// return this.$message.error('请添加列表数据')
// }
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(index) { handleUpdate(index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment