|
@@ -19,7 +19,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <el-form-item label="title" prop="title">
|
|
|
+ <el-form-item label="标题" prop="title">
|
|
|
<el-input
|
|
|
v-model="queryParams.title"
|
|
|
placeholder="请输入公告标题"
|
|
@@ -134,7 +134,7 @@
|
|
|
<el-table-column label="公告id" align="center" prop="noticeId" />
|
|
|
<el-table-column label="appid" align="center" prop="appId" />
|
|
|
<el-table-column label="标题" align="center" prop="title" />
|
|
|
- <el-table-column label="内容" align="center" prop="content" />
|
|
|
+ <el-table-column label="内容" align="center" prop="content" width="400" />
|
|
|
<el-table-column label="公告跳转类型" align="center" prop="noticeSkipType" />
|
|
|
<el-table-column label="公告类型" align="center" prop="noticeTypeId" />
|
|
|
<el-table-column label="创建时间" align="center" prop="createAt" width="180">
|
|
@@ -180,19 +180,20 @@
|
|
|
<!-- 添加或修改荔枝app-公告记录对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
- <el-form-item label="公告跳转类型" prop="noticeId">
|
|
|
- <el-input v-model="form.noticeId" placeholder="请输入公告跳转类型" />
|
|
|
+ <el-form-item label="公告id" prop="noticeId">
|
|
|
+ <el-input v-model="form.noticeId" placeholder="请输入公告id" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="appid" prop="appId">
|
|
|
- <el-input v-model="form.appId" placeholder="请输入appid" />
|
|
|
+ <el-form-item label="商户id" prop="appId">
|
|
|
+ <el-input v-model="form.appId" placeholder="请输入商户id" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="appid" prop="title">
|
|
|
- <el-input v-model="form.title" placeholder="请输入appid" />
|
|
|
+ <el-form-item label="标题" prop="title">
|
|
|
+ <el-input v-model="form.title" placeholder="请输入标题" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="appid">
|
|
|
- <editor v-model="form.content" :min-height="192"/>
|
|
|
+ <el-form-item label="内容">
|
|
|
+ <!-- <editor v-model="form.content" :min-height="192"/> -->
|
|
|
+ <textarea v-model="form.content" placeholder="请输入内容"/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="数据创建时间" prop="createAt">
|
|
|
+ <!-- <el-form-item label="数据创建时间" prop="createAt">
|
|
|
<el-date-picker clearable size="small"
|
|
|
v-model="form.createAt"
|
|
|
type="date"
|
|
@@ -207,19 +208,19 @@
|
|
|
value-format="yyyy-MM-dd"
|
|
|
placeholder="选择数据更新时间">
|
|
|
</el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="是否删除" prop="isDelete">
|
|
|
+ </el-form-item> -->
|
|
|
+ <!-- <el-form-item label="是否删除" prop="isDelete">
|
|
|
<el-input v-model="form.isDelete" placeholder="请输入是否删除" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="跳转连接" prop="linkUrl">
|
|
|
- <el-input v-model="form.linkUrl" placeholder="请输入跳转连接" />
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item label="跳转链接" prop="linkUrl">
|
|
|
+ <el-input v-model="form.linkUrl" placeholder="请输入跳转链接" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="公告跳转类型" prop="noticeSkipType">
|
|
|
<el-select v-model="form.noticeSkipType" placeholder="请选择公告跳转类型">
|
|
|
<el-option label="请选择字典生成" value="" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="公告跳转类型" prop="noticeTypeId">
|
|
|
+ <el-form-item label="公告类型" prop="noticeTypeId">
|
|
|
<el-input v-model="form.noticeTypeId" placeholder="请输入公告跳转类型" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -283,25 +284,22 @@ export default {
|
|
|
{ required: true, message: "公告跳转类型不能为空", trigger: "blur" }
|
|
|
],
|
|
|
appId: [
|
|
|
- { required: true, message: "appid不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "商户id不能为空", trigger: "blur" }
|
|
|
],
|
|
|
title: [
|
|
|
- { required: true, message: "appid不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "标题不能为空", trigger: "blur" }
|
|
|
],
|
|
|
content: [
|
|
|
- { required: true, message: "appid不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- isDelete: [
|
|
|
- { required: true, message: "是否删除不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "内容不能为空", trigger: "blur" }
|
|
|
],
|
|
|
linkUrl: [
|
|
|
- { required: true, message: "跳转连接不能为空", trigger: "blur" }
|
|
|
+ { required: false, message: "跳转连接不能为空", trigger: "blur" }
|
|
|
],
|
|
|
noticeSkipType: [
|
|
|
- { required: true, message: "公告跳转类型不能为空", trigger: "change" }
|
|
|
+ { required: false, message: "公告跳转类型不能为空", trigger: "change" }
|
|
|
],
|
|
|
noticeTypeId: [
|
|
|
- { required: true, message: "公告跳转类型不能为空", trigger: "blur" }
|
|
|
+ { required: false, message: "公告跳转类型不能为空", trigger: "blur" }
|
|
|
]
|
|
|
}
|
|
|
};
|