fix: 修正多个组件中获取最大ID的逻辑
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user