|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<xn-form-container
|
|
|
:title="formData.id ? '编辑帖子' : '增加帖子'"
|
|
|
- :height="550"
|
|
|
+ :height="600"
|
|
|
:get-container="false"
|
|
|
:visible="visible"
|
|
|
:destroy-on-close="true"
|
|
|
@@ -10,7 +10,7 @@
|
|
|
:mask="false"
|
|
|
style="width: 960px; left: calc(50% - 960px / 2)"
|
|
|
>
|
|
|
- <a-form ref="formRef" :model="formData" :rules="formRules" layout="vertical">
|
|
|
+ <a-form ref="formRef" :model="formData" :rules="formRules" layout="vertical" style="margin-bottom: 20px">
|
|
|
<a-row :gutter="16">
|
|
|
<a-col :span="8">
|
|
|
<a-form-item label="标题:" name="postTitle">
|
|
|
@@ -172,7 +172,8 @@
|
|
|
const formRules = {
|
|
|
postTitle: [required('请输入标题'),],
|
|
|
typeId: [required('请选择分类')],
|
|
|
- postContent: [required('请输入内容'),{ max: 2000, message: '不能超过2000个字符' }]
|
|
|
+ // postContent: [required('请输入内容'),{ max: 2000, message: '不能超过2000个字符' }]
|
|
|
+ postContent: [required('请输入内容')]
|
|
|
}
|
|
|
|
|
|
const categoryOptions = tool.dictList('MENU_TYPE')
|