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

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

@@ -222,7 +222,7 @@ function fnModalVisibleByVive(postId: string | number) {
return;
}
if (modalState.confirmLoading) return;
const hide = message.loading('正在打开...', 0);
const hide = message.loading(t('common.loading'), 0);
modalState.confirmLoading = true;
getPost(postId).then(res => {
modalState.confirmLoading = false;
@@ -248,7 +248,7 @@ function fnModalVisibleByEdit(postId?: string | number) {
modalState.visibleByEdit = true;
} else {
if (modalState.confirmLoading) return;
const hide = message.loading('正在打开...', 0);
const hide = message.loading(t('common.loading'), 0);
modalState.confirmLoading = true;
getPost(postId).then(res => {
modalState.confirmLoading = false;
@@ -276,7 +276,7 @@ function fnModalOk() {
const from = toRaw(modalState.from);
const post = from.postId ? updatePost(from) : addPost(from);
const key = 'notice';
message.loading({ content: '请稍等...', key });
message.loading({ content: t('common.loading'), key });
post
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
@@ -324,11 +324,11 @@ function fnRecordDelete(postId: string = '0') {
postId = tableState.selectedRowKeys.join(',');
}
Modal.confirm({
title: '提示',
title: t('common.tipTitle'),
content: `确认删除岗位编号为 【${postId}】 的数据项?`,
onOk() {
const key = 'delPost';
message.loading({ content: '请稍等...', key });
message.loading({ content: t('common.loading'), key });
delPost(postId).then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
@@ -352,11 +352,11 @@ function fnRecordDelete(postId: string = '0') {
/**列表导出 */
function fnExportList() {
Modal.confirm({
title: '提示',
title: t('common.tipTitle'),
content: `确认根据搜索条件导出xlsx表格文件吗?`,
onOk() {
const key = 'exportPost';
message.loading({ content: '请稍等...', key });
message.loading({ content: t('common.loading'), key });
exportPost(toRaw(queryParams)).then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({