[update 动态消息] 增加来源字段,详情增加推送范围
This commit is contained in:
@@ -24,6 +24,12 @@
|
||||
<span>{{ detailData.releaseTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="more-decoration">
|
||||
<div class="writer decoration-item">
|
||||
<label>{{ $t('standardRegulationLibrary.dynamicMessage.pushRange') }}</label>
|
||||
<span style="word-break: break-all;">{{ detailData.pushRange_dictText }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="container-title">{{ $t('standardRegulationLibrary.dynamicMessage.dynamicDetails') }}</div>
|
||||
<div v-html="detailData.dynamicDetails"></div>
|
||||
@@ -90,7 +96,6 @@ export default {
|
||||
|
||||
.decoration {
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #E5E6EB;
|
||||
text-align: right;
|
||||
|
||||
&-item {
|
||||
@@ -99,6 +104,11 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
.more-decoration {
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #E5E6EB;
|
||||
}
|
||||
|
||||
.writer {
|
||||
font-size: 14px;
|
||||
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
||||
|
||||
@@ -23,16 +23,37 @@
|
||||
@change="handleCatalogingChange" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!--来源-->
|
||||
<a-col :span="12">
|
||||
<a-form-item :labelCol="labelCol"
|
||||
:wrapperCol="wrapperCol"
|
||||
:label="$t('standardRegulationLibrary.dynamicMessage.source')">
|
||||
<a-input :placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.dynamicMessage.source')"
|
||||
:maxLength="200"
|
||||
v-decorator="['source', validatorRules.source]" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!--推送范围-->
|
||||
<a-col :span="12">
|
||||
<a-form-item :labelCol="labelCol"
|
||||
:wrapperCol="wrapperCol"
|
||||
:label="$t('standardRegulationLibrary.dynamicMessage.pushRange')">
|
||||
<user-selection v-decorator="['pushRange', validatorRules.pushRange]"
|
||||
type="checkbox"
|
||||
:name-str="modal.pushRange_dictText"
|
||||
:placeholder="$t('pleaseSelect') + $t('standardRegulationLibrary.dynamicMessage.pushRange')" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!--推送范围-->
|
||||
<a-form-item :labelCol="lineLabelCol"
|
||||
:wrapperCol="lineWrapperCol"
|
||||
:label="$t('standardRegulationLibrary.dynamicMessage.pushRange')">
|
||||
<user-selection v-decorator="['pushRange', validatorRules.pushRange]"
|
||||
type="checkbox"
|
||||
:name-str="modal.pushRange_dictText"
|
||||
:placeholder="$t('pleaseSelect') + $t('standardRegulationLibrary.dynamicMessage.pushRange')" />
|
||||
</a-form-item>
|
||||
<!--<a-form-item :labelCol="lineLabelCol"-->
|
||||
<!-- :wrapperCol="lineWrapperCol"-->
|
||||
<!-- :label="$t('standardRegulationLibrary.dynamicMessage.pushRange')">-->
|
||||
<!-- <user-selection v-decorator="['pushRange', validatorRules.pushRange]"-->
|
||||
<!-- type="checkbox"-->
|
||||
<!-- :name-str="modal.pushRange_dictText"-->
|
||||
<!-- :placeholder="$t('pleaseSelect') + $t('standardRegulationLibrary.dynamicMessage.pushRange')" />-->
|
||||
<!--</a-form-item>-->
|
||||
<!--动态详情-->
|
||||
<a-form-item v-if="needWriteDynamicDetails"
|
||||
:labelCol="lineLabelCol"
|
||||
@@ -214,6 +235,14 @@ export default {
|
||||
}],
|
||||
validateTrigger: 'change'
|
||||
},
|
||||
// 来源
|
||||
source: {
|
||||
rules: [{
|
||||
required: true,
|
||||
message: this.$t('pleaseEnter') + this.$t('standardRegulationLibrary.dynamicMessage.source')
|
||||
}],
|
||||
validateTrigger: 'blur'
|
||||
},
|
||||
// 推送范围
|
||||
pushRange: {
|
||||
rules: [{
|
||||
|
||||
@@ -116,6 +116,12 @@ export default {
|
||||
title: this.$t('standardRegulationLibrary.dynamicMessage.dynamicCataloging'),
|
||||
width: 150
|
||||
},
|
||||
// 来源
|
||||
{
|
||||
dataIndex: 'source',
|
||||
title: this.$t('standardRegulationLibrary.dynamicMessage.source'),
|
||||
width: 150
|
||||
},
|
||||
// 编辑人
|
||||
{
|
||||
dataIndex: 'writer_dictText',
|
||||
|
||||
Reference in New Issue
Block a user