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