Commit 10e134a9 by lijiabin

feat: 推送增加推送说明文本框

parent 7c21ee50
...@@ -97,6 +97,7 @@ interface PushSettingBase { ...@@ -97,6 +97,7 @@ interface PushSettingBase {
pushType: SendTypeEnum pushType: SendTypeEnum
pushTime: string pushTime: string
pushList: { valueId: string; valueName: string | number }[] pushList: { valueId: string; valueName: string | number }[]
summary: string
} }
// 推送设置相关的字段 // 推送设置相关的字段
/** /**
...@@ -200,6 +201,7 @@ export interface ArticleItemDto { ...@@ -200,6 +201,7 @@ export interface ArticleItemDto {
sendTime: string sendTime: string
tagIdList: number[] tagIdList: number[]
pushList: { valueId: string; valueType: number; valueName: string }[] pushList: { valueId: string; valueType: number; valueName: string }[]
summary: string
videoLocation: VideoPositionEnum videoLocation: VideoPositionEnum
articleVideoUrl: string articleVideoUrl: string
region: string region: string
......
...@@ -207,6 +207,15 @@ ...@@ -207,6 +207,15 @@
value-format="X" value-format="X"
/> />
</el-form-item> </el-form-item>
<el-form-item label="推送摘要" prop="summary">
<el-input
v-model="form.summary"
type="textarea"
:maxlength="50"
show-word-limit
placeholder="简单描述推送的信息"
/>
</el-form-item>
<!-- 插入视频 顶部或者底部 radio --> <!-- 插入视频 顶部或者底部 radio -->
<el-form-item label="插入视频" prop="videoLocation"> <el-form-item label="插入视频" prop="videoLocation">
...@@ -253,6 +262,15 @@ ...@@ -253,6 +262,15 @@
value-format="X" value-format="X"
/> />
</el-form-item> </el-form-item>
<el-form-item label="推送摘要" prop="summary">
<el-input
v-model="form.summary"
type="textarea"
:maxlength="50"
show-word-limit
placeholder="简单描述推送的信息"
/>
</el-form-item>
</template> </template>
<!-- 发布设置 --> <!-- 发布设置 -->
<div> <div>
...@@ -365,7 +383,7 @@ const [form, resetForm] = useResetData({ ...@@ -365,7 +383,7 @@ const [form, resetForm] = useResetData({
pushType: SendTypeEnum.IMMEDIATE, pushType: SendTypeEnum.IMMEDIATE,
pushTime: '', pushTime: '',
pushList: [], pushList: [],
summary: '',
// 视频 // 视频
videoLocation: VideoPositionEnum.TOP, videoLocation: VideoPositionEnum.TOP,
articleVideoUrl: '', articleVideoUrl: '',
...@@ -585,6 +603,7 @@ onActivated(async () => { ...@@ -585,6 +603,7 @@ onActivated(async () => {
form.value.articleVideoUrl = articleVideoUrl form.value.articleVideoUrl = articleVideoUrl
} }
// 4回显推送人员设置 // 4回显推送人员设置
form.value.summary = data.summary
if ( if (
(type === ArticleTypeEnum.COLUMN || (type === ArticleTypeEnum.COLUMN ||
type === ArticleTypeEnum.INTERVIEW || type === ArticleTypeEnum.INTERVIEW ||
......
...@@ -189,6 +189,18 @@ ...@@ -189,6 +189,18 @@
</div> </div>
</el-form-item> </el-form-item>
</div> </div>
<div class="mb-8">
<el-form-item prop="summary">
<label class="block text-sm font-semibold text-gray-700 mb-3"> 推送摘要 </label>
<el-input
v-model="form.summary"
type="textarea"
:maxlength="50"
show-word-limit
placeholder="简单描述推送的信息"
/>
</el-form-item>
</div>
</template> </template>
<div class="mb-8"> <div class="mb-8">
<el-form-item prop="relateColumnId"> <el-form-item prop="relateColumnId">
...@@ -398,6 +410,7 @@ const [form, resetData] = useResetData({ ...@@ -398,6 +410,7 @@ const [form, resetData] = useResetData({
pushType: SendTypeEnum.IMMEDIATE, pushType: SendTypeEnum.IMMEDIATE,
pushTime: '', pushTime: '',
pushList: [] as { valueId: string; valueType: number; valueName: string }[], pushList: [] as { valueId: string; valueType: number; valueName: string }[],
summary: '',
}) })
const selectedDepts = ref<{ id: string; name: string }[]>([]) const selectedDepts = ref<{ id: string; name: string }[]>([])
......
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