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