提交 a632e0c1 authored 作者: lihuihui's avatar lihuihui

update

上级 cd341a7a
...@@ -104,9 +104,9 @@ export default { ...@@ -104,9 +104,9 @@ export default {
changeClass() { changeClass() {
if (this.form.class_id === '') { if (this.form.class_id === '') {
this.courseList = [] this.courseList = []
this.form.course_id = '' this.form.course_id = []
} else { } else {
this.form.course_id = '' this.form.course_id = []
this.getCourseList() this.getCourseList()
} }
}, },
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
// 新建 // 新建
handleCreate() { handleCreate() {
if (this.isBaseicForm() && this.isDisplayModulesValidate() === -1) { if (this.isBaseicForm() && this.isDisplayModulesValidate() === -1) {
this.basicForm.course_id = this.basicForm.course_id.toString() this.basicForm.course_id = this.basicForm.course_id.length ? this.basicForm.course_id.toString() : ''
const params = Object.assign(this.basicForm, { details: this.stepPageInfo }) const params = Object.assign(this.basicForm, { details: this.stepPageInfo })
params.details.map(item => { params.details.map(item => {
if (parseInt(item.type) === 2) { if (parseInt(item.type) === 2) {
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
// 编辑 // 编辑
handleUpdate() { handleUpdate() {
if (this.isBaseicForm() && this.isDisplayModulesValidate() === -1) { if (this.isBaseicForm() && this.isDisplayModulesValidate() === -1) {
this.basicForm.course_id = this.basicForm.course_id.toString() this.basicForm.course_id = this.basicForm.course_id.length ? this.basicForm.course_id.toString() : ''
const params = Object.assign(this.basicForm, { details: this.stepPageInfo }) const params = Object.assign(this.basicForm, { details: this.stepPageInfo })
console.log(params, 'this') console.log(params, 'this')
params.id = this.$route.query.id params.id = this.$route.query.id
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论