|
@@ -11,7 +11,7 @@
|
|
label-width="150px" @submit.native.prevent>
|
|
label-width="150px" @submit.native.prevent>
|
|
<el-row :gutter="15">
|
|
<el-row :gutter="15">
|
|
|
|
|
|
- <el-col :span="21">
|
|
|
|
|
|
+ <el-col :span="24">
|
|
<el-form-item label="知识分享类型" prop="typeId"
|
|
<el-form-item label="知识分享类型" prop="typeId"
|
|
:rules="[
|
|
:rules="[
|
|
{required: true, message:'分享类型不能为空', trigger:'blur'}
|
|
{required: true, message:'分享类型不能为空', trigger:'blur'}
|
|
@@ -26,7 +26,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="21">
|
|
|
|
|
|
+ <el-col :span="24">
|
|
<el-form-item label="主题" prop="title"
|
|
<el-form-item label="主题" prop="title"
|
|
:rules="[
|
|
:rules="[
|
|
{required: true, message:'主题不能为空', trigger:'blur'}
|
|
{required: true, message:'主题不能为空', trigger:'blur'}
|
|
@@ -211,6 +211,7 @@
|
|
this.is()
|
|
this.is()
|
|
this.create = JSON.parse(localStorage.getItem('user')).id
|
|
this.create = JSON.parse(localStorage.getItem('user')).id
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.inputForm.resetFields()
|
|
|
|
+ this.$refs.uploadComponent.clearUpload()
|
|
this.knowledgeShareInfoService.findById(this.inputForm.id, method).then(({data}) => {
|
|
this.knowledgeShareInfoService.findById(this.inputForm.id, method).then(({data}) => {
|
|
// 富文本处理
|
|
// 富文本处理
|
|
if (method === 'view') {
|
|
if (method === 'view') {
|
|
@@ -275,7 +276,6 @@
|
|
this.knowledgeShareInfoService.addComment(this.commentForm).then(({data}) => {
|
|
this.knowledgeShareInfoService.addComment(this.commentForm).then(({data}) => {
|
|
this.init('view', this.inputForm.id)
|
|
this.init('view', this.inputForm.id)
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
- this.$emit('refreshDataList')
|
|
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
},
|
|
},
|