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