fix: UDM用户加载全部优化和补充多语言
This commit is contained in:
@@ -377,14 +377,17 @@ function fnLoadData() {
|
||||
const neID = queryParams.neId;
|
||||
if (tableState.loading || !neID) return;
|
||||
modalState.loadDataLoading = true;
|
||||
tableState.loading = true; // 表格loading
|
||||
loadSub(neID).then(res => {
|
||||
modalState.loadDataLoading = false;
|
||||
tableState.loading = false; // 表格loading
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
notification.success({
|
||||
message: '更新数据',
|
||||
description: `成功获取更新数据:${res.data}条,系统内部进行数据更新,请勿重复点击获取!!!`,
|
||||
message: t('views.neUser.sub.loadData'),
|
||||
description: t('views.neUser.sub.loadDataTip', { num: res.data }),
|
||||
duration: 10,
|
||||
});
|
||||
fnQueryReset();
|
||||
} else {
|
||||
message.error({
|
||||
content: `获取数据失败`,
|
||||
@@ -491,12 +494,12 @@ onMounted(() => {
|
||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||
<a-row :gutter="16">
|
||||
<a-col :lg="6" :md="12" :xs="24">
|
||||
<a-form-item label="UDM网元类型" name="neId ">
|
||||
<a-form-item :label="t('views.neUser.sub.neType')" name="neId ">
|
||||
<a-select
|
||||
v-model:value="queryParams.neId"
|
||||
:options="neOtions"
|
||||
allow-clear
|
||||
placeholder="请选择网元"
|
||||
:placeholder="t('views.neUser.sub.neTypePlease')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -546,9 +549,9 @@ onMounted(() => {
|
||||
</a-button>
|
||||
|
||||
<a-popconfirm
|
||||
title="确认要重新加载数据吗?"
|
||||
ok-text="确认"
|
||||
cancel-text="取消"
|
||||
:title="t('views.neUser.sub.loadDataConfirm')"
|
||||
:ok-text="t('common.ok')"
|
||||
:cancel-text="t('common.cancel')"
|
||||
:disabled="modalState.loadDataLoading"
|
||||
@confirm="fnLoadData"
|
||||
>
|
||||
@@ -569,11 +572,11 @@ onMounted(() => {
|
||||
</a-button>
|
||||
|
||||
<a-popconfirm
|
||||
title="确认导出全部签约用户数据吗?"
|
||||
ok-text="txt文件"
|
||||
:title="t('views.neUser.sub.exportConfirm')"
|
||||
ok-text="TXT"
|
||||
ok-type="default"
|
||||
@confirm="fnExportList('txt')"
|
||||
cancel-text="csv文件"
|
||||
cancel-text="CSV"
|
||||
@cancel="fnExportList('csv')"
|
||||
>
|
||||
<a-button type="dashed">
|
||||
|
||||
Reference in New Issue
Block a user