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
fb8c4606
Commit
fb8c4606
authored
Sep 30, 2025
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发邮件,变量管理对接
parent
7c84a95f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
src/views/ComposeEmail.vue
+8
-9
src/views/VariableManagement.vue
+4
-1
No files found.
src/views/ComposeEmail.vue
View file @
fb8c4606
...
@@ -408,19 +408,18 @@ const variableNextfix = '}}'
...
@@ -408,19 +408,18 @@ const variableNextfix = '}}'
// 通过变量模版查询变量列表
// 通过变量模版查询变量列表
const
applyVariableTemplate
=
()
=>
{
const
applyVariableTemplate
=
()
=>
{
variableApi
.
getEmailVariableList
({
isGeneral
:
1
,
})
.
then
((
res
)
=>
{
variables
.
value
=
res
.
data
?.
records
||
[]
})
if
(
selectedVariableTemplate
.
value
?.
variableGroupBizId
)
{
if
(
selectedVariableTemplate
.
value
?.
variableGroupBizId
)
{
variableGroupApi
variableGroupApi
.
getEmailVariableGroupDetail
(
selectedVariableTemplate
.
value
.
variableGroupBizId
)
.
getEmailVariableGroupDetail
(
selectedVariableTemplate
.
value
.
variableGroupBizId
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
variables
.
value
=
res
.
data
?.
emailVariableDtoList
||
[]
variables
.
value
=
res
.
data
?.
emailVariableDtoList
.
concat
(
variables
.
value
)
||
[]
})
}
else
{
variableApi
.
getEmailVariableList
({
isGeneral
:
1
,
})
.
then
((
res
)
=>
{
variables
.
value
=
res
.
data
?.
records
||
[]
})
})
}
}
}
}
...
...
src/views/VariableManagement.vue
View file @
fb8c4606
...
@@ -167,7 +167,10 @@
...
@@ -167,7 +167,10 @@
{{
variablePrefix
}}{{
variable
.
variableNameEn
}}{{
variableNextfix
}}
{{
variablePrefix
}}{{
variable
.
variableNameEn
}}{{
variableNextfix
}}
</td>
</td>
<td
class=
"px-6 py-4"
>
{{
variable
.
description
||
'-'
}}
</td>
<td
class=
"px-6 py-4"
>
{{
variable
.
description
||
'-'
}}
</td>
<td
class=
"px-6 py-4 whitespace-nowrap text-right text-sm font-medium"
>
<td
class=
"px-6 py-4 whitespace-nowrap text-right text-sm font-medium"
v-if=
"variable.isGeneral !== 1"
>
<button
<button
@
click=
"editVariable(variable)"
@
click=
"editVariable(variable)"
class=
"text-blue-600 hover:text-blue-900 mr-3"
class=
"text-blue-600 hover:text-blue-900 mr-3"
...
...
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