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

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

@@ -211,7 +211,7 @@ function fnModalVisibleByVive(deptId: string | number) {
return;
}
if (modalState.confirmLoading) return;
const hide = message.loading('正在打开...', 0);
const hide = message.loading(t('common.loading'), 0);
modalState.confirmLoading = true;
getDept(deptId).then(res => {
modalState.confirmLoading = false;
@@ -252,7 +252,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;
// 获取部门信息同时查询部门列表(排除节点)
Promise.all([getDept(deptId), listDeptExcludeChild(deptId)])
@@ -295,7 +295,7 @@ function fnModalOk() {
modalState.confirmLoading = true;
const from = toRaw(modalState.from);
const dept = from.deptId ? updateDept(from) : addDept(from);
const hide = message.loading('请稍等...', 0);
const hide = message.loading(t('common.loading'), 0);
dept
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
@@ -343,10 +343,10 @@ function fnModalCancel() {
*/
function fnRecordDelete(deptId: string | number) {
Modal.confirm({
title: '提示',
title: t('common.tipTitle'),
content: `确认删除部门编号为 【${deptId}】 的数据项?`,
onOk() {
const hide = message.loading('请稍等...', 0);
const hide = message.loading(t('common.loading'), 0);
delDept(deptId).then(res => {
hide();
if (res.code === RESULT_CODE_SUCCESS) {