update 模板管理-模板类型多选

This commit is contained in:
danshihao
2023-11-10 17:52:56 +08:00
parent 309eae8a43
commit 13db11445c
@@ -30,8 +30,8 @@
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="模板类型">
<j-dict-select-tag @change="handleChangeTemplateType" :triggerChange="true" dictCode="msgType" v-decorator="['templateType', validatorRules.templateType ]" placeholder="请选择模板类型">
</j-dict-select-tag>
<j-multi-select-tag :maxTagCount="1" :triggerChange="true" dictCode="msgType" v-decorator="['templateType', validatorRules.templateType ]" placeholder="请选择模板类型">
</j-multi-select-tag>
</a-form-item>
</a-col>
</a-row>
@@ -53,7 +53,6 @@
<a-row class="form-row" :gutter="24">
<a-col :span="24" pull="4">
<a-form-item
v-show="!useEditor"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="模板内容"
@@ -62,18 +61,18 @@
</a-form-item>
</a-col>
</a-row>
<a-row class="form-row" :gutter="24">
<a-col :span="24" pull="4">
<a-form-item
v-show="useEditor"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="模板内容"
style="margin-left: 4px;width: 126%">
<j-editor v-model="templateEditorContent"></j-editor>
</a-form-item>
</a-col>
</a-row>
<!--<a-row class="form-row" :gutter="24">-->
<!-- <a-col :span="24" pull="4">-->
<!-- <a-form-item-->
<!-- v-show="useEditor"-->
<!-- :labelCol="labelCol"-->
<!-- :wrapperCol="wrapperCol"-->
<!-- label="模板内容"-->
<!-- style="margin-left: 4px;width: 126%">-->
<!-- <j-editor v-model="templateEditorContent"></j-editor>-->
<!-- </a-form-item>-->
<!-- </a-col>-->
<!--</a-row>-->
</a-form>
</a-spin>
@@ -84,13 +83,9 @@
import { httpAction } from '@/api/manage'
import pick from 'lodash.pick'
import { duplicateCheck } from '@/api/api'
import JEditor from '@/components/jero/JEditor'
export default {
name: 'SysMessageTemplateModal',
components: {
JEditor
},
data () {
return {
title: '操作',
@@ -131,7 +126,7 @@ export default {
edit (record) {
this.form.resetFields()
this.model = Object.assign({}, record)
this.useEditor = ((record.templateType + '') === '2' || (record.templateType + '') === '4')
// this.useEditor = ((record.templateType + '') === '2' || (record.templateType + '') === '4')
if (this.useEditor) {
this.templateEditorContent = record.templateContent
} else {