Commit ebd5ba7e authored by 陈明豪's avatar 陈明豪

bug修改

parent 4a4cbd92
...@@ -48,15 +48,17 @@ ...@@ -48,15 +48,17 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="文章内容" prop="articleContent"> <el-form-item label="文章内容" prop="articleContent">
<editor v-model="form.articleContent" style="height: 192px;" /> <editor v-model="form.articleContent" min-height="200" />
</el-form-item>
<el-form-item>
<div>
<el-button class="queryBtn" icon="el-icon-check" @click="submitForm">提交</el-button>
<el-button class="resetBtn" icon="el-icon-back" @click="goBack">返回</el-button>
</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</div> </div>
<div class="dialog-footer">
<el-button class="queryBtn" icon="el-icon-check" @click="submitForm">提交</el-button>
<el-button class="resetBtn" icon="el-icon-back" @click="goBack">返回</el-button>
</div>
</div> </div>
</el-card> </el-card>
...@@ -89,7 +91,7 @@ export default { ...@@ -89,7 +91,7 @@ export default {
const contentNotNull = (rule, value, callback) => { const contentNotNull = (rule, value, callback) => {
const contentValue = html2Text(value) const contentValue = html2Text(value)
if (contentValue.length === 0) { if (contentValue.length === 0) {
callback(new Error('请输入内容详情')) callback(new Error('请输入文章内容'))
} else { } else {
callback() callback()
} }
......
...@@ -52,17 +52,19 @@ ...@@ -52,17 +52,19 @@
<el-form-item label="文章内容" prop="articleContent"> <el-form-item label="文章内容" prop="articleContent">
<editor <editor
v-model.trim="form.articleContent" v-model.trim="form.articleContent"
style="height: 192px;" min-height="200"
@change="changeQuillEditor('articleContent')" @change="changeQuillEditor('articleContent')"
/> />
</el-form-item> </el-form-item>
<el-form-item>
<div>
<el-button :loading="submitLoading" class="queryBtn" icon="el-icon-check" @click="submitForm">提交</el-button>
<el-button class="resetBtn" icon="el-icon-back" @click="goBack">返回</el-button>
</div>
</el-form-item>
</el-form> </el-form>
</div> </div>
</div> </div>
<div slot="footer" class="dialog-footer">
<el-button :loading="submitLoading" class="queryBtn" icon="el-icon-check" @click="submitForm">提交</el-button>
<el-button class="resetBtn" icon="el-icon-back" @click="goBack">返回</el-button>
</div>
</div> </div>
</el-card> </el-card>
...@@ -90,7 +92,7 @@ export default { ...@@ -90,7 +92,7 @@ export default {
const contentNotNull = (rule, value, callback) => { const contentNotNull = (rule, value, callback) => {
const contentValue = html2Text(value) const contentValue = html2Text(value)
if ((contentValue.length === 0 || contentValue.trim().length === 0) && !value.includes('img')) { if ((contentValue.length === 0 || contentValue.trim().length === 0) && !value.includes('img')) {
callback(new Error('请输入内容详情')) callback(new Error('请输入文章内容'))
} else { } else {
callback() callback()
} }
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column class-name="small-padding fixed-width" label="操作" min-width="100"> <el-table-column class-name="small-padding fixed-width" label="操作" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: flex;"> <div style="display: flex;">
<div style="padding-right: 20px;"> <div style="padding-right: 20px;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment