---用户管理,网元管理等中英文
This commit is contained in:
@@ -282,7 +282,7 @@ function fnModalVisibleByEdit(dictCode?: 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;
|
||||
getData(dictCode).then(res => {
|
||||
modalState.confirmLoading = false;
|
||||
@@ -310,7 +310,7 @@ function fnModalOk() {
|
||||
const from = toRaw(modalState.from);
|
||||
const dictData = from.dictCode ? updateData(from) : addData(from);
|
||||
const key = 'dictData';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
dictData
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
@@ -358,11 +358,11 @@ function fnRecordDelete(dictCode: string = '0') {
|
||||
dictCode = tableState.selectedRowKeys.join(',');
|
||||
}
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认删除字典数据代码为 【${dictCode}】 的数据项?`,
|
||||
onOk() {
|
||||
const key = 'delData';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
delData(dictCode).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
@@ -386,11 +386,11 @@ function fnRecordDelete(dictCode: string = '0') {
|
||||
/**列表导出 */
|
||||
function fnExportList() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认根据搜索条件导出xlsx表格文件吗?`,
|
||||
onOk() {
|
||||
const key = 'exportData';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
exportData(toRaw(queryParams)).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
|
||||
@@ -231,7 +231,7 @@ function fnModalVisibleByVive(dictId: string | number) {
|
||||
return;
|
||||
}
|
||||
if (modalState.confirmLoading) return;
|
||||
const hide = message.loading('正在打开...', 0);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
modalState.confirmLoading = true;
|
||||
getType(dictId).then(res => {
|
||||
modalState.confirmLoading = false;
|
||||
@@ -257,7 +257,7 @@ function fnModalVisibleByEdit(dictId?: 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;
|
||||
getType(dictId).then(res => {
|
||||
modalState.confirmLoading = false;
|
||||
@@ -285,7 +285,7 @@ function fnModalOk() {
|
||||
const from = toRaw(modalState.from);
|
||||
const dictType = from.dictId ? updateType(from) : addType(from);
|
||||
const key = 'dictType';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
dictType
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
@@ -333,11 +333,11 @@ function fnRecordDelete(dictId: string = '0') {
|
||||
dictId = tableState.selectedRowKeys.join(',');
|
||||
}
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认删除参数编号为 【${dictId}】 的数据项?`,
|
||||
onOk() {
|
||||
const key = 'delType';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
delType(dictId).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
@@ -361,11 +361,11 @@ function fnRecordDelete(dictId: string = '0') {
|
||||
/**列表导出 */
|
||||
function fnExportList() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认根据搜索条件导出xlsx表格文件吗?`,
|
||||
onOk() {
|
||||
const key = 'exportType';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
message.loading({ content: t('common.loading'), key });
|
||||
exportType(toRaw(queryParams)).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
@@ -391,11 +391,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