Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
qr-consistency-vue3
Commits
9753f1df
Commit
9753f1df
authored
Apr 28, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通知单管理-封装全局删除对话框
parent
f31cd69d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
13 deletions
+39
-13
index.vue
src/components/DeleteDialog/index.vue
+28
-13
cn.json
src/locales/Delectdialog/cn.json
+5
-0
en.json
src/locales/Delectdialog/en.json
+5
-0
index.vue
...olPlan/controlPlanNotice/notificationManagement/index.vue
+1
-0
No files found.
src/components/DeleteDialog/index.vue
View file @
9753f1df
...
...
@@ -22,23 +22,30 @@
<el-dialog
class=
"my_dialog__header_deep"
v-model=
"dialogVisible"
title=
"提示"
align-center
:before-close=
"cancel"
style=
"width: 4
0
0px;height: 195px;margin-top: 300px"
:fullscreen=
"true"
style=
"width: 4
2
0px;height: 195px;margin-top: 300px"
:fullscreen=
"true"
>
<
template
#
header
>
<div>
提示
</div>
<!--
<div>
{{
Prompt
}}
</div>
-->
<div
style=
"display: flex;"
>
<div>
{{
cn
.
reminder
}}
</div>
<div>
{{
en
.
reminder
}}
</div>
</div>
</
template
>
<div
style=
"display: flex;align-items: center;"
>
<el-icon
style=
"color: orange;font-size: 18px;margin:5px"
><WarningFilled
/></el-icon>
<div
style=
"font-size: 14px"
>
{{ content }}
</div>
<div
style=
"display: flex;flex-direction: column"
>
<div
style=
"display: flex;"
>
<el-icon
style=
"color: orange;font-size: 18px;margin-right: 12px"
><WarningFilled
/></el-icon>
<div
class=
"contentText"
style=
"font-size: 14px"
>
{{ content }}
</div>
</div>
<div
style=
"display: flex;"
>
<div
class=
"contentText"
style=
"font-size: 14px"
>
{{ englishContent }}
</div>
</div>
</div>
<
template
#
footer
>
<div
style=
"margin-top: 10px"
>
<el-button
class=
"btn-B"
@
click=
"cancel"
>
取消
</el-button>
<el-button
class=
"btn-A"
@
click=
"confirm"
>
确认
</el-button>
<el-button
class=
"btn-B"
@
click=
"cancel"
>
{{
cn
.
cancel
}}{{
en
.
cancel
}}
</el-button>
<el-button
class=
"btn-A"
@
click=
"confirm"
>
{{
cn
.
confirm
}}{{
en
.
confirm
}}
</el-button>
</div>
</
template
>
</el-dialog>
...
...
@@ -47,7 +54,8 @@
<
script
setup
>
import
{
ref
,
defineProps
,
defineEmits
,
watch
}
from
'vue'
;
import
{
WarningFilled
}
from
'@element-plus/icons-vue'
;
import
en
from
'@/locales/Delectdialog/en.json'
;
import
cn
from
'@/locales/Delectdialog/cn.json'
;
const
props
=
defineProps
({
visible
:
{
type
:
Boolean
,
...
...
@@ -56,7 +64,11 @@ const props = defineProps({
content
:
{
type
:
String
,
default
:
'确定删除该项目吗?'
}
},
englishContent
:
{
type
:
String
,
default
:
'Are you sure to delete this project?'
},
});
const
emits
=
defineEmits
([
'confirm'
,
'cancel'
]);
...
...
@@ -91,8 +103,11 @@ const cancel = () => {
}
.el-dialog__footer
{
padding
:
0
;
margin
:
20
px
;
margin
:
14
px
;
}
}
.contentText
{
font-size
:
14px
;
color
:
#5B6373
;
}
</
style
>
src/locales/Delectdialog/cn.json
0 → 100644
View file @
9753f1df
{
"reminder"
:
"提示"
,
"cancel"
:
"取消"
,
"confirm"
:
"确定"
}
src/locales/Delectdialog/en.json
0 → 100644
View file @
9753f1df
{
"reminder"
:
"prompt"
,
"cancel"
:
"cancel"
,
"confirm"
:
"confirm"
}
src/views/controlPlan/controlPlanNotice/notificationManagement/index.vue
View file @
9753f1df
...
...
@@ -398,6 +398,7 @@
<DeleteDialog
:visible=
"undoDialogVisible"
:content=
"Prompt"
:english-content=
"'Are you sure to delete this notice?'"
@
confirm=
"handleDelete"
@
cancel=
"hideDeleteDialog"
/>
...
...
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