fix: UDM用户数据操作限制输入框最大值500
This commit is contained in:
@@ -385,7 +385,7 @@ function fnBatchDelModalOk() {
|
|||||||
const neId = queryParams.neId || '-';
|
const neId = queryParams.neId || '-';
|
||||||
batchDelUDMAuth(neId, from.imsi, from.num).then(res => {
|
batchDelUDMAuth(neId, from.imsi, from.num).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
const timerS = Math.ceil(+from.num / 1500) + 1;
|
const timerS = Math.ceil(+from.num / 800) + 1;
|
||||||
notification.success({
|
notification.success({
|
||||||
message: modalState.title,
|
message: modalState.title,
|
||||||
description: t('common.operateOk'),
|
description: t('common.operateOk'),
|
||||||
@@ -530,7 +530,7 @@ function fnLoadData() {
|
|||||||
resetUDMAuth(neId).then(res => {
|
resetUDMAuth(neId).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
const num = res.data;
|
const num = res.data;
|
||||||
const timerS = Math.ceil(+num / 3000) + 3;
|
const timerS = Math.ceil(+num / 800) + 3;
|
||||||
notification.success({
|
notification.success({
|
||||||
message: t('views.neUser.auth.loadData'),
|
message: t('views.neUser.auth.loadData'),
|
||||||
description: t('views.neUser.auth.loadDataTip', { num, timer: timerS }),
|
description: t('views.neUser.auth.loadDataTip', { num, timer: timerS }),
|
||||||
@@ -1047,8 +1047,9 @@ onMounted(() => {
|
|||||||
v-model:value="modalState.from.num"
|
v-model:value="modalState.from.num"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="10000"
|
:max="500"
|
||||||
placeholder="<=10000"
|
:maxlength="3"
|
||||||
|
placeholder="<=500"
|
||||||
></a-input-number>
|
></a-input-number>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -1208,8 +1209,9 @@ onMounted(() => {
|
|||||||
v-model:value="modalState.BatchDelForm.num"
|
v-model:value="modalState.BatchDelForm.num"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="10000"
|
:max="500"
|
||||||
placeholder="<=10000"
|
:maxlength="3"
|
||||||
|
placeholder="<=500"
|
||||||
></a-input-number>
|
></a-input-number>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@@ -662,10 +662,7 @@ function fnModalOk() {
|
|||||||
});
|
});
|
||||||
fnGetList(1);
|
fnGetList(1);
|
||||||
} else {
|
} else {
|
||||||
const timerS = Math.max(
|
const timerS = Math.ceil(+from.num / 800) + 1;
|
||||||
Math.ceil(+from.num / 500),
|
|
||||||
`${from.num}`.length * 5
|
|
||||||
);
|
|
||||||
notification.success({
|
notification.success({
|
||||||
message: modalState.title,
|
message: modalState.title,
|
||||||
description: t('common.operateOk'),
|
description: t('common.operateOk'),
|
||||||
@@ -728,7 +725,7 @@ function fnBatchDelModalOk() {
|
|||||||
const neId = queryParams.neId || '-';
|
const neId = queryParams.neId || '-';
|
||||||
batchDelUDMSub(neId, from.imsi, from.num).then(res => {
|
batchDelUDMSub(neId, from.imsi, from.num).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
const timerS = Math.ceil(+from.num / 1500) + 1;
|
const timerS = Math.ceil(+from.num / 800) + 1;
|
||||||
notification.success({
|
notification.success({
|
||||||
message: modalState.title,
|
message: modalState.title,
|
||||||
description: t('common.operateOk'),
|
description: t('common.operateOk'),
|
||||||
@@ -909,7 +906,7 @@ function fnLoadData() {
|
|||||||
resetUDMSub(neId).then(res => {
|
resetUDMSub(neId).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
const num = res.data;
|
const num = res.data;
|
||||||
const timerS = Math.ceil(+num / 2000) + 3;
|
const timerS = Math.ceil(+num / 800) + 3;
|
||||||
notification.success({
|
notification.success({
|
||||||
message: t('views.neUser.sub.loadData'),
|
message: t('views.neUser.sub.loadData'),
|
||||||
description: t('views.neUser.sub.loadDataTip', { num, timer: timerS }),
|
description: t('views.neUser.sub.loadDataTip', { num, timer: timerS }),
|
||||||
@@ -1456,8 +1453,9 @@ onMounted(() => {
|
|||||||
v-model:value="modalState.from.num"
|
v-model:value="modalState.from.num"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="10000"
|
:max="500"
|
||||||
placeholder="<=10000"
|
:maxlength="3"
|
||||||
|
placeholder="<=500"
|
||||||
></a-input-number>
|
></a-input-number>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -2088,8 +2086,9 @@ onMounted(() => {
|
|||||||
v-model:value="modalState.BatchDelForm.num"
|
v-model:value="modalState.BatchDelForm.num"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="10000"
|
:max="500"
|
||||||
placeholder="<=10000"
|
:maxlength="3"
|
||||||
|
placeholder="<=500"
|
||||||
></a-input-number>
|
></a-input-number>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
Reference in New Issue
Block a user