Commit ef214028 authored by 邓春圆's avatar 邓春圆

modal 国际化

parent 7d16eca2
......@@ -3833,5 +3833,6 @@
"提交核销": "Submit for verification",
"是否确认删除渠道管理编号为{channelId}的数据项?": "Are you sure to delete the data item with channel management number {channelId}?",
"流程详情":"Flow details",
"收款单核销审核":"The payment voucher verification review"
"收款单核销审核":"The payment voucher verification review",
"系统提示": "System prompt"
}
import { Message, MessageBox, Notification, Loading } from 'element-ui'
import i18n from "@/i18n";
let loadingInstance;
console.log(i18n.t,'i18n')
export default {
// 消息提示
msg(content) {
......@@ -21,19 +21,19 @@ export default {
},
// 弹出提示
alert(content) {
MessageBox.alert(content, "系统提示")
MessageBox.alert(content, i18n.t("系统提示"))
},
// 错误提示
alertError(content) {
MessageBox.alert(content, "系统提示", { type: 'error' })
MessageBox.alert(content, i18n.t("系统提示"), { type: 'error' })
},
// 成功提示
alertSuccess(content) {
MessageBox.alert(content, "系统提示", { type: 'success' })
MessageBox.alert(content, i18n.t("系统提示"), { type: 'success' })
},
// 警告提示
alertWarning(content) {
MessageBox.alert(content, "系统提示", { type: 'warning' })
MessageBox.alert(content, i18n.t("系统提示"), { type: 'warning' })
},
// 通知提示
notify(content) {
......@@ -52,18 +52,19 @@ export default {
Notification.warning(content)
},
// 确认窗体
confirm(content) {
return MessageBox.confirm(content, "系统提示", {
confirmButtonText: '确定',
cancelButtonText: '取消',
return MessageBox.confirm(content, i18n.t("系统提示"), {
confirmButtonText: i18n.t('确定'),
cancelButtonText: i18n.t('取消'),
type: "warning",
})
},
// 提交内容
prompt(content) {
return MessageBox.prompt(content, "系统提示", {
confirmButtonText: '确定',
cancelButtonText: '取消',
return MessageBox.prompt(content, i18n.t("系统提示"), {
confirmButtonText: i18n.t('确定'),
cancelButtonText: i18n.t('取消'),
type: "warning",
})
},
......
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