Commit 1e271c18 by kyle

正文改为富文本

parent 4deed578
......@@ -149,7 +149,7 @@ const emit = defineEmits<{
const uploadConfig: UploadConfig = {
url: `${import.meta.env.VITE_REMOTE_API_BASE_URL}/oss/api/oss/upload`,
fieldName: 'file',
maxSize: 10,
maxSize: 50,
allowedTypes: [],
maxCount: 10,
multiple: false,
......
<template>
<div class="bg-white rounded-lg shadow-md p-6" v-loading="loading">
<div class="mb-4">
<div class="flex gap-4 mb-4">
<div class="flex-1">
<label class="block text-gray-700 mb-2 font-medium">发件人</label>
<el-select
v-model="currentSender"
......@@ -23,7 +24,7 @@
/>
</el-select>
</div>
<div class="mb-4">
<div class="flex-1">
<label class="block text-gray-700 mb-2 font-medium">变量模板</label>
<div class="flex flex-col sm:flex-row gap-2">
<el-select
......@@ -57,6 +58,7 @@
</button>
</div>
</div>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2 font-medium">收件人</label>
<div class="flex flex-col sm:flex-row gap-2">
......@@ -149,11 +151,7 @@
<i class="fas fa-plus"></i> 插入字段
</button>
</div>
<textarea
v-model="emailForm.content"
class="w-full p-3 min-h-[200px] focus:outline-none"
placeholder="请输入邮件内容..."
></textarea>
<RichTextEditor v-model="emailForm.content" />
</div>
</div>
......@@ -385,12 +383,17 @@ const emailForm = ref<EmailForm>({
})
const selectedVariableTemplate = ref<VariableTemplate | null>(null)
const selectedAttachmentTemplate = ref()
const showContactSelector = ref(false)
const showVariableSelector = ref(false)
const showImportAttachment = ref(false)
const showImportContacts = ref(false)
const showImportRecordManager = ref(false)
const importRecords = ref<ImportRecord[]>([])
// 监听收件人变化,自动匹配抄送人
watch(
() => emailForm.value.receiveEmail,
......
<template>
<div
v-if="visible"
class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4"
style="z-index:999999"
class="fixed inset-0 bg-black bg-opacity-50 z-auto flex items-center justify-center p-4"
>
<div class="bg-white rounded-lg shadow-xl p-6 w-full max-w-md">
<h3 class="text-lg font-semibold mb-4">{{ title }}</h3>
......
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