---用户管理,网元管理等中英文
This commit is contained in:
@@ -256,7 +256,7 @@ function fnModalVisibleByEdit(configId?: 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;
|
||||
getConfig(configId).then(res => {
|
||||
modalState.confirmLoading = false;
|
||||
@@ -284,7 +284,7 @@ function fnModalOk() {
|
||||
const from = toRaw(modalState.from);
|
||||
const config = from.configId ? updateConfig(from) : addConfig(from);
|
||||
const key = 'config';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
config
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
@@ -332,11 +332,11 @@ function fnRecordDelete(configId: string = '0') {
|
||||
configId = tableState.selectedRowKeys.join(',');
|
||||
}
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认删除参数编号为 【${configId}】 的数据项?`,
|
||||
onOk() {
|
||||
const key = 'delConfig';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
delConfig(configId).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
@@ -360,11 +360,11 @@ function fnRecordDelete(configId: string = '0') {
|
||||
/**列表导出 */
|
||||
function fnExportList() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认根据搜索条件导出xlsx表格文件吗?`,
|
||||
onOk() {
|
||||
const key = 'exportConfig';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
exportConfig(toRaw(queryParams)).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
@@ -390,11 +390,11 @@ function fnExportList() {
|
||||
*/
|
||||
function fnRefreshCache() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确定要刷新参数配置缓存吗?`,
|
||||
onOk() {
|
||||
const key = 'refreshCache';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
refreshCache().then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
|
||||
Reference in New Issue
Block a user