|
@@ -6,13 +6,12 @@
|
|
|
v-dialogDrag
|
|
|
width="1300px"
|
|
|
@close="close"
|
|
|
- @keyup.enter.native="doSubmit"
|
|
|
:visible.sync="visible">
|
|
|
<el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method === 'view'"
|
|
|
label-width="150px" @submit.native.prevent>
|
|
|
<el-row :gutter="15">
|
|
|
|
|
|
- <el-col :span="21">
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="知识分享类型" prop="typeId"
|
|
|
:rules="[
|
|
|
{required: true, message:'分享类型不能为空', trigger:'blur'}
|
|
@@ -27,7 +26,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="21">
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="主题" prop="title"
|
|
|
:rules="[
|
|
|
{required: true, message:'主题不能为空', trigger:'blur'}
|
|
@@ -202,6 +201,7 @@
|
|
|
this.visible = true
|
|
|
this.loading = false
|
|
|
this.$nextTick(() => {
|
|
|
+ this.$refs.uploadComponent.setDividerName('附件')
|
|
|
if (method === 'add') {
|
|
|
this.$refs.contentEditor.enable()
|
|
|
}
|
|
@@ -212,6 +212,7 @@
|
|
|
this.is()
|
|
|
this.create = JSON.parse(localStorage.getItem('user')).id
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
+ this.$refs.uploadComponent.clearUpload()
|
|
|
this.knowledgeShareInfoService.findById(this.inputForm.id, method).then(({data}) => {
|
|
|
// 富文本处理
|
|
|
if (method === 'view') {
|
|
@@ -274,9 +275,8 @@
|
|
|
}
|
|
|
this.loading = true
|
|
|
this.knowledgeShareInfoService.addComment(this.commentForm).then(({data}) => {
|
|
|
- this.close()
|
|
|
+ this.init('view', this.inputForm.id)
|
|
|
this.$message.success(data)
|
|
|
- this.$emit('refreshDataList')
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
@@ -297,7 +297,6 @@
|
|
|
this.$refs.knowledgeShareTypePageForm.init()
|
|
|
},
|
|
|
getProgram (rows) {
|
|
|
- console.log('aaaaaaaaaaa', rows[0])
|
|
|
this.inputForm.typeId = rows[0].id
|
|
|
this.inputForm.typeName = rows[0].klgsType
|
|
|
this.$forceUpdate()
|