|
@@ -260,11 +260,11 @@
|
|
|
this.visible = true
|
|
|
this.loading = false
|
|
|
this.$nextTick(() => {
|
|
|
- // this.$refs.uploadComponent.setDividerName('附件')
|
|
|
+ this.$refs.uploadComponent.setDividerName('附件')
|
|
|
// if (method === 'add') {
|
|
|
// this.$refs.contentEditor.enable()
|
|
|
// }
|
|
|
- if (method === 'edit' || method === 'view') { // 修改或者查看
|
|
|
+ // if (method === 'edit' || method === 'view') { // 修改或者查看
|
|
|
this.loading = true
|
|
|
// 富文本处理
|
|
|
this.$refs.contentEditor.clear()
|
|
@@ -293,14 +293,10 @@
|
|
|
// if (this.commonJS.isNotEmpty(this.inputForm.detail)) {
|
|
|
// this.$refs.contentEditor.init(this.inputForm.detail)
|
|
|
// }
|
|
|
- if (this.method === 'view') {
|
|
|
- this.$refs.uploadComponent.newUpload('view', this.inputForm.files, 'knowledgeShare',null,null,null,null,false)
|
|
|
- } else {
|
|
|
- this.$refs.uploadComponent.newUpload('edit', this.inputForm.files, 'knowledgeShare')
|
|
|
- }
|
|
|
- this.loading = false
|
|
|
+ this.$refs.uploadComponent.newUpload(this.method, this.inputForm.files, 'knowledgeShare')
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
- }
|
|
|
+ // }
|
|
|
})
|
|
|
},
|
|
|
// 表单提交
|