Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
ef214028
Commit
ef214028
authored
Apr 14, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modal 国际化
parent
7d16eca2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
en_US.json
src/i18n/languages/en_US.json
+2
-1
modal.js
src/plugins/modal.js
+13
-12
No files found.
src/i18n/languages/en_US.json
View file @
ef214028
...
@@ -3833,5 +3833,6 @@
...
@@ -3833,5 +3833,6 @@
"提交核销"
:
"Submit for verification"
,
"提交核销"
:
"Submit for verification"
,
"是否确认删除渠道管理编号为{channelId}的数据项?"
:
"Are you sure to delete the data item with channel management number {channelId}?"
,
"是否确认删除渠道管理编号为{channelId}的数据项?"
:
"Are you sure to delete the data item with channel management number {channelId}?"
,
"流程详情"
:
"Flow details"
,
"流程详情"
:
"Flow details"
,
"收款单核销审核"
:
"The payment voucher verification review"
"收款单核销审核"
:
"The payment voucher verification review"
,
"系统提示"
:
"System prompt"
}
}
src/plugins/modal.js
View file @
ef214028
import
{
Message
,
MessageBox
,
Notification
,
Loading
}
from
'
element-ui
'
import
{
Message
,
MessageBox
,
Notification
,
Loading
}
from
'
element-ui
'
import
i18n
from
"
@/i18n
"
;
let
loadingInstance
;
let
loadingInstance
;
console
.
log
(
i18n
.
t
,
'
i18n
'
)
export
default
{
export
default
{
// 消息提示
// 消息提示
msg
(
content
)
{
msg
(
content
)
{
...
@@ -21,19 +21,19 @@ export default {
...
@@ -21,19 +21,19 @@ export default {
},
},
// 弹出提示
// 弹出提示
alert
(
content
)
{
alert
(
content
)
{
MessageBox
.
alert
(
content
,
"
系统提示
"
)
MessageBox
.
alert
(
content
,
i18n
.
t
(
"
系统提示
"
)
)
},
},
// 错误提示
// 错误提示
alertError
(
content
)
{
alertError
(
content
)
{
MessageBox
.
alert
(
content
,
"
系统提示
"
,
{
type
:
'
error
'
})
MessageBox
.
alert
(
content
,
i18n
.
t
(
"
系统提示
"
)
,
{
type
:
'
error
'
})
},
},
// 成功提示
// 成功提示
alertSuccess
(
content
)
{
alertSuccess
(
content
)
{
MessageBox
.
alert
(
content
,
"
系统提示
"
,
{
type
:
'
success
'
})
MessageBox
.
alert
(
content
,
i18n
.
t
(
"
系统提示
"
)
,
{
type
:
'
success
'
})
},
},
// 警告提示
// 警告提示
alertWarning
(
content
)
{
alertWarning
(
content
)
{
MessageBox
.
alert
(
content
,
"
系统提示
"
,
{
type
:
'
warning
'
})
MessageBox
.
alert
(
content
,
i18n
.
t
(
"
系统提示
"
)
,
{
type
:
'
warning
'
})
},
},
// 通知提示
// 通知提示
notify
(
content
)
{
notify
(
content
)
{
...
@@ -52,18 +52,19 @@ export default {
...
@@ -52,18 +52,19 @@ export default {
Notification
.
warning
(
content
)
Notification
.
warning
(
content
)
},
},
// 确认窗体
// 确认窗体
confirm
(
content
)
{
confirm
(
content
)
{
return
MessageBox
.
confirm
(
content
,
"
系统提示
"
,
{
return
MessageBox
.
confirm
(
content
,
i18n
.
t
(
"
系统提示
"
)
,
{
confirmButtonText
:
'
确定
'
,
confirmButtonText
:
i18n
.
t
(
'
确定
'
)
,
cancelButtonText
:
'
取消
'
,
cancelButtonText
:
i18n
.
t
(
'
取消
'
)
,
type
:
"
warning
"
,
type
:
"
warning
"
,
})
})
},
},
// 提交内容
// 提交内容
prompt
(
content
)
{
prompt
(
content
)
{
return
MessageBox
.
prompt
(
content
,
"
系统提示
"
,
{
return
MessageBox
.
prompt
(
content
,
i18n
.
t
(
"
系统提示
"
)
,
{
confirmButtonText
:
'
确定
'
,
confirmButtonText
:
i18n
.
t
(
'
确定
'
)
,
cancelButtonText
:
'
取消
'
,
cancelButtonText
:
i18n
.
t
(
'
取消
'
)
,
type
:
"
warning
"
,
type
:
"
warning
"
,
})
})
},
},
...
...
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