lion 1 year ago
parent cd6e6091bd
commit 97c940b706

@ -298,7 +298,8 @@
isShow: false,
type: 'add',
active: 0,
id: '',
id: '',
course_signs_count:0,
action: `${process.env.VUE_APP_UPLOAD_API}`,
showTinymce: false,
courseTypesList: [],
@ -503,7 +504,7 @@
if (res.qun_image) {
this.qunList.push(res.qun_image)
}
this.course_signs_count = res.course_signs_count
this.publicizeList = res.publicize
this.form.dateRange = res.start_date ? [res.start_date, res.end_date] : ''
this.form.status = res.status ? res.status : 0
@ -537,7 +538,8 @@
//
editForm(type, id) {
// this.$refs.applyForm.formList = deepCopy(this.formList)
this.$refs.applyForm.course_id = this.id
this.$refs.applyForm.course_id = this.id
this.$refs.applyForm.course_signs_count = this.course_signs_count
this.$refs.applyForm.dialogVisible = true
}
@ -553,7 +555,8 @@
this.showTinymce = true
}
} else {
this.id = ''
this.id = ''
this.course_signs_count = 0
this.showTinymce = false
this.imgList = []
this.qunList = []

@ -124,7 +124,8 @@
},
data() {
return {
course_id: "",
course_id: "",
course_signs_count:0,
select: {
page: 1,
page_size: 999,
@ -165,6 +166,15 @@
},
changeCourse(e){
console.log("course-e",e)
if(this.course_signs_count>0){
this.$message({
type:'warning',
duration:4000,
message:'当前课程已有人员报名,不可进行报名表单克隆操作'
})
// this.$Message.warning("")
return
}
if(e){
this.hasCourseList.map(item=>{
if(item.id===e){
@ -339,7 +349,10 @@
if (newval) {
this.getFormList()
} else {
this.course_id = ''
this.course_id = ''
this.course_signs_count = 0
this.hasCourseId = ''
this.hasCourseName = ''
this.selectFormList.map(item => {
item.is_open = false
if (item.id) {

Loading…
Cancel
Save