lion 1 year ago
parent cd6e6091bd
commit 97c940b706

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

@ -124,7 +124,8 @@
}, },
data() { data() {
return { return {
course_id: "", course_id: "",
course_signs_count:0,
select: { select: {
page: 1, page: 1,
page_size: 999, page_size: 999,
@ -165,6 +166,15 @@
}, },
changeCourse(e){ changeCourse(e){
console.log("course-e",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){ if(e){
this.hasCourseList.map(item=>{ this.hasCourseList.map(item=>{
if(item.id===e){ if(item.id===e){
@ -339,7 +349,10 @@
if (newval) { if (newval) {
this.getFormList() this.getFormList()
} else { } else {
this.course_id = '' this.course_id = ''
this.course_signs_count = 0
this.hasCourseId = ''
this.hasCourseName = ''
this.selectFormList.map(item => { this.selectFormList.map(item => {
item.is_open = false item.is_open = false
if (item.id) { if (item.id) {

Loading…
Cancel
Save