Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
frontend-yd-email
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
frontend-yd-email
Commits
1e271c18
Commit
1e271c18
authored
Apr 16, 2026
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正文改为富文本
parent
4deed578
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
src/components/FileUploadComponent.vue
+1
-1
src/views/ComposeEmail.vue
+10
-7
src/views/ImportDialog.vue
+2
-1
No files found.
src/components/FileUploadComponent.vue
View file @
1e271c18
...
@@ -149,7 +149,7 @@ const emit = defineEmits<{
...
@@ -149,7 +149,7 @@ const emit = defineEmits<{
const
uploadConfig
:
UploadConfig
=
{
const
uploadConfig
:
UploadConfig
=
{
url
:
`
${
import
.
meta
.
env
.
VITE_REMOTE_API_BASE_URL
}
/oss/api/oss/upload`
,
url
:
`
${
import
.
meta
.
env
.
VITE_REMOTE_API_BASE_URL
}
/oss/api/oss/upload`
,
fieldName
:
'file'
,
fieldName
:
'file'
,
maxSize
:
1
0
,
maxSize
:
5
0
,
allowedTypes
:
[],
allowedTypes
:
[],
maxCount
:
10
,
maxCount
:
10
,
multiple
:
false
,
multiple
:
false
,
...
...
src/views/ComposeEmail.vue
View file @
1e271c18
<
template
>
<
template
>
<div
class=
"bg-white rounded-lg shadow-md p-6"
v-loading=
"loading"
>
<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>
<label
class=
"block text-gray-700 mb-2 font-medium"
>
发件人
</label>
<el-select
<el-select
v-model=
"currentSender"
v-model=
"currentSender"
...
@@ -23,7 +24,7 @@
...
@@ -23,7 +24,7 @@
/>
/>
</el-select>
</el-select>
</div>
</div>
<div
class=
"
mb-4
"
>
<div
class=
"
flex-1
"
>
<label
class=
"block text-gray-700 mb-2 font-medium"
>
变量模板
</label>
<label
class=
"block text-gray-700 mb-2 font-medium"
>
变量模板
</label>
<div
class=
"flex flex-col sm:flex-row gap-2"
>
<div
class=
"flex flex-col sm:flex-row gap-2"
>
<el-select
<el-select
...
@@ -57,6 +58,7 @@
...
@@ -57,6 +58,7 @@
</button>
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"mb-4"
>
<div
class=
"mb-4"
>
<label
class=
"block text-gray-700 mb-2 font-medium"
>
收件人
</label>
<label
class=
"block text-gray-700 mb-2 font-medium"
>
收件人
</label>
<div
class=
"flex flex-col sm:flex-row gap-2"
>
<div
class=
"flex flex-col sm:flex-row gap-2"
>
...
@@ -149,11 +151,7 @@
...
@@ -149,11 +151,7 @@
<i
class=
"fas fa-plus"
></i>
插入字段
<i
class=
"fas fa-plus"
></i>
插入字段
</button>
</button>
</div>
</div>
<textarea
<RichTextEditor
v-model=
"emailForm.content"
/>
v-model=
"emailForm.content"
class=
"w-full p-3 min-h-[200px] focus:outline-none"
placeholder=
"请输入邮件内容..."
></textarea>
</div>
</div>
</div>
</div>
...
@@ -385,12 +383,17 @@ const emailForm = ref<EmailForm>({
...
@@ -385,12 +383,17 @@ const emailForm = ref<EmailForm>({
})
})
const
selectedVariableTemplate
=
ref
<
VariableTemplate
|
null
>
(
null
)
const
selectedVariableTemplate
=
ref
<
VariableTemplate
|
null
>
(
null
)
const
selectedAttachmentTemplate
=
ref
()
const
showContactSelector
=
ref
(
false
)
const
showContactSelector
=
ref
(
false
)
const
showVariableSelector
=
ref
(
false
)
const
showVariableSelector
=
ref
(
false
)
const
showImportAttachment
=
ref
(
false
)
const
showImportContacts
=
ref
(
false
)
const
showImportContacts
=
ref
(
false
)
const
showImportRecordManager
=
ref
(
false
)
const
showImportRecordManager
=
ref
(
false
)
const
importRecords
=
ref
<
ImportRecord
[]
>
([])
const
importRecords
=
ref
<
ImportRecord
[]
>
([])
// 监听收件人变化,自动匹配抄送人
// 监听收件人变化,自动匹配抄送人
watch
(
watch
(
()
=>
emailForm
.
value
.
receiveEmail
,
()
=>
emailForm
.
value
.
receiveEmail
,
...
...
src/views/ImportDialog.vue
View file @
1e271c18
<
template
>
<
template
>
<div
<div
v-if=
"visible"
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"
>
<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>
<h3
class=
"text-lg font-semibold mb-4"
>
{{
title
}}
</h3>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment