---用户管理,网元管理等中英文
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user