|
|
@ -238,7 +238,6 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
downLoadSource(params) { |
|
|
|
downLoadSource(params) { |
|
|
|
const url = params.filePath |
|
|
|
const url = params.filePath |
|
|
|
console.log(url) |
|
|
|
|
|
|
|
if (!url) { |
|
|
|
if (!url) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
@ -279,7 +278,6 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 提交 |
|
|
|
// 提交 |
|
|
|
submitto() { |
|
|
|
submitto() { |
|
|
|
console.log(this.courseForm) |
|
|
|
|
|
|
|
this.$refs['form'].validate((valid) => { |
|
|
|
this.$refs['form'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
this.submit() |
|
|
|
this.submit() |
|
|
@ -310,16 +308,15 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
openDia() { |
|
|
|
openDia() { |
|
|
|
if (this.optionType === 'motify') { |
|
|
|
if (this.optionType === 'motify') { |
|
|
|
console.log('motify'); |
|
|
|
|
|
|
|
this.$refs.fileUpload?.fileInit(this.courseForm.attachments) |
|
|
|
this.$refs.fileUpload?.fileInit(this.courseForm.attachments) |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('dialog open ~~~') |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 关闭 |
|
|
|
// 关闭 |
|
|
|
closeDia() { |
|
|
|
closeDia() { |
|
|
|
this.$refs['form']?.resetFields() |
|
|
|
this.$refs['form']?.resetFields() |
|
|
|
Object.keys(this.courseForm).forEach((item, index) => { |
|
|
|
Object.keys(this.courseForm).forEach((item) => { |
|
|
|
if (Array.isArray(this.courseForm[item])) { |
|
|
|
if (Array.isArray(this.courseForm[item])) { |
|
|
|
|
|
|
|
this.courseForm[item] = [] |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.courseForm[item] = '' |
|
|
|
this.courseForm[item] = '' |
|
|
|
} |
|
|
|
} |
|
|
|