---用户管理,网元管理等中英文

This commit is contained in:
lai
2023-11-08 11:21:39 +08:00
parent 8e467b95a2
commit 1bc9358d30
37 changed files with 582 additions and 404 deletions

View File

@@ -265,7 +265,7 @@ function fnModalVisibleByVive(menuId: string | number) {
return;
}
if (modalState.confirmLoading) return;
const hide = message.loading('正在打开...', 0);
const hide = message.loading(t('common.loading'), 0);
modalState.confirmLoading = true;
modalState.treeData = treeDataAll;
getMenu(menuId).then(res => {
@@ -302,7 +302,7 @@ function fnModalVisibleByEdit(
modalState.visibleByEdit = true;
} else {
if (modalState.confirmLoading) return;
const hide = message.loading('正在打开...', 0);
const hide = message.loading(t('common.loading'), 0);
modalState.confirmLoading = true;
getMenu(menuId).then(res => {
modalState.confirmLoading = false;
@@ -342,7 +342,7 @@ function fnModalOk() {
const from = toRaw(modalState.from);
const menu = from.menuId ? updateMenu(from) : addMenu(from);
const key = 'menu';
message.loading({ content: '请稍等...', key });
message.loading({ content: t('common.loading'), key });
menu
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
@@ -388,11 +388,11 @@ function fnModalCancel() {
*/
function fnRecordDelete(menuId: string | number) {
Modal.confirm({
title: '提示',
title: t('common.tipTitle'),
content: `确认删除菜单编号为 【${menuId}】 的数据项?`,
onOk() {
const key = 'delMenu';
message.loading({ content: '请稍等...', key });
message.loading({ content: t('common.loading'), key });
delMenu(menuId).then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({