fix: 修正多个组件中获取最大ID的逻辑

This commit is contained in:
TsMask
2025-02-28 19:43:38 +08:00
parent 1162bb5b28
commit fb5068a772
5 changed files with 10 additions and 10 deletions

View File

@@ -693,7 +693,7 @@ export default {
installSourceUpload: 'New Upload', installSourceUpload: 'New Upload',
installSelect: 'Select Record', installSelect: 'Select Record',
installUpload: 'Upload File', installUpload: 'Upload File',
installText: 'Installed', installText: 'Install',
licenseTitle: "Licenses", licenseTitle: "Licenses",
licenseDesc: "Network element service authorization certification", licenseDesc: "Network element service authorization certification",
licenseResultTitle: "Whether to authorize activation immediately", licenseResultTitle: "Whether to authorize activation immediately",

View File

@@ -323,8 +323,8 @@ function fnGetList(pageNum?: number) {
}); });
// 取最大值ID用作实时累加 // 取最大值ID用作实时累加
if (res.total > 0) { if (total > 0) {
modalState.maxId = Number(res.rows[0].id); modalState.maxId = Number(rows[0].id);
} }
} }
tableState.loading = false; tableState.loading = false;

View File

@@ -325,8 +325,8 @@ function fnGetList(pageNum?: number) {
}); });
// 取最大值ID用作实时累加 // 取最大值ID用作实时累加
if (res.total > 0) { if (total > 0) {
modalState.maxId = Number(res.rows[0].id); modalState.maxId = Number(rows[0].id);
} }
} }
tableState.loading = false; tableState.loading = false;

View File

@@ -397,8 +397,8 @@ function fnGetList(pageNum?: number) {
}); });
// 取最大值ID用作实时累加 // 取最大值ID用作实时累加
if (res.total > 0) { if (total > 0) {
modalState.maxId = Number(res.rows[0].id); modalState.maxId = Number(rows[0].id);
} }
} }
tableState.loading = false; tableState.loading = false;

View File

@@ -364,8 +364,8 @@ function fnGetList(pageNum?: number) {
}); });
// 取最大值ID用作实时累加 // 取最大值ID用作实时累加
if (res.total > 0) { if (total > 0) {
modalState.maxId = Number(res.rows[0].id); modalState.maxId = Number(rows[0].id);
} }
} }
tableState.loading = false; tableState.loading = false;
@@ -591,7 +591,7 @@ onBeforeUnmount(() => {
></a-select> ></a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="8" :md="12" :xs="24"> <a-col :lg="10" :md="12" :xs="24">
<a-form-item <a-form-item
:label="t('views.dashboard.cdr.time')" :label="t('views.dashboard.cdr.time')"
name="queryRangePicker" name="queryRangePicker"