Commit 10e134a9 by lijiabin

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

parent 7c21ee50
......@@ -97,6 +97,7 @@ interface PushSettingBase {
pushType: SendTypeEnum
pushTime: string
pushList: { valueId: string; valueName: string | number }[]
summary: string
}
// 推送设置相关的字段
/**
......@@ -200,6 +201,7 @@ export interface ArticleItemDto {
sendTime: string
tagIdList: number[]
pushList: { valueId: string; valueType: number; valueName: string }[]
summary: string
videoLocation: VideoPositionEnum
articleVideoUrl: string
region: string
......
......@@ -207,6 +207,15 @@
value-format="X"
/>
</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 -->
<el-form-item label="插入视频" prop="videoLocation">
......@@ -253,6 +262,15 @@
value-format="X"
/>
</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>
<!-- 发布设置 -->
<div>
......@@ -365,7 +383,7 @@ const [form, resetForm] = useResetData({
pushType: SendTypeEnum.IMMEDIATE,
pushTime: '',
pushList: [],
summary: '',
// 视频
videoLocation: VideoPositionEnum.TOP,
articleVideoUrl: '',
......@@ -585,6 +603,7 @@ onActivated(async () => {
form.value.articleVideoUrl = articleVideoUrl
}
// 4回显推送人员设置
form.value.summary = data.summary
if (
(type === ArticleTypeEnum.COLUMN ||
type === ArticleTypeEnum.INTERVIEW ||
......
......@@ -189,6 +189,18 @@
</div>
</el-form-item>
</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>
<div class="mb-8">
<el-form-item prop="relateColumnId">
......@@ -398,6 +410,7 @@ const [form, resetData] = useResetData({
pushType: SendTypeEnum.IMMEDIATE,
pushTime: '',
pushList: [] as { valueId: string; valueType: number; valueName: string }[],
summary: '',
})
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