fix: 修正多个组件中获取最大ID的逻辑
This commit is contained in:
@@ -693,7 +693,7 @@ export default {
|
||||
installSourceUpload: 'New Upload',
|
||||
installSelect: 'Select Record',
|
||||
installUpload: 'Upload File',
|
||||
installText: 'Installed',
|
||||
installText: 'Install',
|
||||
licenseTitle: "Licenses",
|
||||
licenseDesc: "Network element service authorization certification",
|
||||
licenseResultTitle: "Whether to authorize activation immediately",
|
||||
|
||||
@@ -323,8 +323,8 @@ function fnGetList(pageNum?: number) {
|
||||
});
|
||||
|
||||
// 取最大值ID用作实时累加
|
||||
if (res.total > 0) {
|
||||
modalState.maxId = Number(res.rows[0].id);
|
||||
if (total > 0) {
|
||||
modalState.maxId = Number(rows[0].id);
|
||||
}
|
||||
}
|
||||
tableState.loading = false;
|
||||
|
||||
@@ -325,8 +325,8 @@ function fnGetList(pageNum?: number) {
|
||||
});
|
||||
|
||||
// 取最大值ID用作实时累加
|
||||
if (res.total > 0) {
|
||||
modalState.maxId = Number(res.rows[0].id);
|
||||
if (total > 0) {
|
||||
modalState.maxId = Number(rows[0].id);
|
||||
}
|
||||
}
|
||||
tableState.loading = false;
|
||||
|
||||
@@ -397,8 +397,8 @@ function fnGetList(pageNum?: number) {
|
||||
});
|
||||
|
||||
// 取最大值ID用作实时累加
|
||||
if (res.total > 0) {
|
||||
modalState.maxId = Number(res.rows[0].id);
|
||||
if (total > 0) {
|
||||
modalState.maxId = Number(rows[0].id);
|
||||
}
|
||||
}
|
||||
tableState.loading = false;
|
||||
|
||||
@@ -364,8 +364,8 @@ function fnGetList(pageNum?: number) {
|
||||
});
|
||||
|
||||
// 取最大值ID用作实时累加
|
||||
if (res.total > 0) {
|
||||
modalState.maxId = Number(res.rows[0].id);
|
||||
if (total > 0) {
|
||||
modalState.maxId = Number(rows[0].id);
|
||||
}
|
||||
}
|
||||
tableState.loading = false;
|
||||
@@ -591,7 +591,7 @@ onBeforeUnmount(() => {
|
||||
></a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8" :md="12" :xs="24">
|
||||
<a-col :lg="10" :md="12" :xs="24">
|
||||
<a-form-item
|
||||
:label="t('views.dashboard.cdr.time')"
|
||||
name="queryRangePicker"
|
||||
|
||||
Reference in New Issue
Block a user