fix: 更新cdr/ue时间强制转换数值类型

This commit is contained in:
TsMask
2025-09-19 19:03:13 +08:00
parent b98f2394b8
commit 8d01eb48e6
11 changed files with 39 additions and 25 deletions

View File

@@ -79,8 +79,8 @@ function fnQueryReset() {
eventType: '',
imsi: '',
tenantName: '',
startTime: '',
endTime: '',
startTime: 0,
endTime: 0,
pageNum: 1,
pageSize: 20,
});
@@ -338,7 +338,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.ue.exportTip'),
@@ -348,6 +348,8 @@ function fnExportList() {
const querys = toRaw(queryParams);
querys.pageNum = 1;
querys.pageSize = tablePagination.total;
querys.startTime = Number(querys.startTime);
querys.endTime = Number(querys.endTime);
exportAMFDataUE(querys)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -426,7 +426,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.cdr.exportTip'),
@@ -436,6 +436,8 @@ function fnExportList() {
const querys = toRaw(queryParams);
querys.pageNum = 1;
querys.pageSize = tablePagination.total;
querys.startTime = Number(querys.startTime);
querys.endTime = Number(querys.endTime);
exportIMSDataCDR(querys)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -77,8 +77,8 @@ function fnQueryReset() {
eventType: '',
imsi: '',
tenantName: '',
startTime: '',
endTime: '',
startTime: 0,
endTime: 0,
pageNum: 1,
pageSize: 20,
});
@@ -332,7 +332,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.ue.exportTip'),
@@ -342,6 +342,8 @@ function fnExportList() {
const querys = toRaw(queryParams);
querys.pageNum = 1;
querys.pageSize = tablePagination.total;
querys.startTime = Number(querys.startTime);
querys.endTime = Number(querys.endTime);
exportMMEDataUE(querys)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -362,7 +362,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.cdr.exportTip'),
@@ -372,6 +372,8 @@ function fnExportList() {
const querys = toRaw(queryParams);
querys.pageNum = 1;
querys.pageSize = tablePagination.total;
querys.startTime = Number(querys.startTime);
querys.endTime = Number(querys.endTime);
exportSGWCDataCDR(querys)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -408,7 +408,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.cdr.exportTip'),
@@ -418,6 +418,8 @@ function fnExportList() {
const querys = toRaw(queryParams);
querys.pageNum = 1;
querys.pageSize = tablePagination.total;
querys.startTime = Number(querys.startTime);
querys.endTime = Number(querys.endTime);
exportSMFDataCDR(querys)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -371,7 +371,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.cdr.exportTip'),
@@ -381,6 +381,8 @@ function fnExportList() {
const querys = toRaw(queryParams);
querys.pageNum = 1;
querys.pageSize = tablePagination.total;
querys.startTime = Number(querys.startTime);
querys.endTime = Number(querys.endTime);
exportSMSCDataCDR(querys)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -51,9 +51,9 @@ let queryParams = reactive({
sortField: 'timestamp',
sortOrder: 'desc',
/**开始时间 */
startTime: '',
startTime: 0,
/**结束时间 */
endTime: '',
endTime: 0,
/**当前页数 */
pageNum: 1,
/**每页条数 */
@@ -262,8 +262,8 @@ function fnGetList(pageNum?: number) {
if (!queryRangePicker.value) {
queryRangePicker.value = ['', ''];
}
queryParams.startTime = queryRangePicker.value[0];
queryParams.endTime = queryRangePicker.value[1];
queryParams.startTime = Number(queryRangePicker.value[0]);
queryParams.endTime = Number(queryRangePicker.value[1]);
listAMFDataUE(toRaw(queryParams)).then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
// 取消勾选
@@ -300,7 +300,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.ue.exportTip'),
@@ -310,6 +310,8 @@ function fnExportList() {
const querys = toRaw(queryParams);
querys.pageNum = 1;
querys.pageSize = tablePagination.total;
querys.startTime = Number(querys.startTime);
querys.endTime = Number(querys.endTime);
exportAMFDataUE(querys)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -348,7 +348,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.cdr.exportTip'),

View File

@@ -301,7 +301,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.ue.exportTip'),

View File

@@ -343,7 +343,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.cdr.exportTip'),

View File

@@ -37,9 +37,9 @@ let queryParams = reactive({
sortField: 'timestamp',
sortOrder: 'desc',
/**开始时间 */
startTime: '',
startTime: 0,
/**结束时间 */
endTime: '',
endTime: 0,
/**当前页数 */
pageNum: 1,
/**每页条数 */
@@ -53,8 +53,8 @@ function fnQueryReset() {
recordType: '',
callerParty: '',
calledParty: '',
startTime: '',
endTime: '',
startTime: 0,
endTime: 0,
pageNum: 1,
pageSize: 20,
});
@@ -233,8 +233,8 @@ function fnGetList(pageNum?: number) {
if (!queryRangePicker.value) {
queryRangePicker.value = ['', ''];
}
queryParams.startTime = queryRangePicker.value[0];
queryParams.endTime = queryRangePicker.value[1];
queryParams.startTime = Number(queryRangePicker.value[0]);
queryParams.endTime = Number(queryRangePicker.value[1]);
listSMSCDataCDR(toRaw(queryParams)).then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
// 取消勾选
@@ -271,7 +271,7 @@ function fnGetList(pageNum?: number) {
/**列表导出 */
function fnExportList() {
if (modalState.confirmLoading) return;
if (modalState.confirmLoading || tablePagination.total === 0) return;
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.dashboard.cdr.exportTip'),