fix: 日期选择清空异常和移除console
This commit is contained in:
@@ -166,6 +166,9 @@ function fnTableSelectedRowKeys(keys: (string | number)[]) {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listNeVersion(toRaw(queryParams)).then(res => {
|
listNeVersion(toRaw(queryParams)).then(res => {
|
||||||
|
|||||||
@@ -175,10 +175,12 @@ function fnTableSize({ key }: MenuInfo) {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listAlarm(toRaw(queryParams)).then(res => {
|
listAlarm(toRaw(queryParams)).then(res => {
|
||||||
console.log(res);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||||
tablePagination.total = res.total;
|
tablePagination.total = res.total;
|
||||||
tableState.data = res.rows;
|
tableState.data = res.rows;
|
||||||
@@ -212,7 +214,7 @@ onMounted(() => {
|
|||||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="网元类型" name="accountName">
|
<a-form-item label="网元类型" name="neType">
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
v-model:value="queryParams.neType"
|
v-model:value="queryParams.neType"
|
||||||
:options="useNeInfoStore().getNeSelectOtions"
|
:options="useNeInfoStore().getNeSelectOtions"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ function fnQueryReset() {
|
|||||||
queryParams = Object.assign(queryParams, {
|
queryParams = Object.assign(queryParams, {
|
||||||
accountName: '',
|
accountName: '',
|
||||||
beginTime: '',
|
beginTime: '',
|
||||||
endTime: undefined,
|
endTime: '',
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
});
|
});
|
||||||
@@ -97,7 +97,7 @@ let tableColumns: ColumnsType = [
|
|||||||
title: 'MML',
|
title: 'MML',
|
||||||
dataIndex: 'mml',
|
dataIndex: 'mml',
|
||||||
key: 'mml',
|
key: 'mml',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '记录时间',
|
title: '记录时间',
|
||||||
@@ -147,10 +147,12 @@ function fnTableSize({ key }: MenuInfo) {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listMML(toRaw(queryParams)).then(res => {
|
listMML(toRaw(queryParams)).then(res => {
|
||||||
console.log(res);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||||
tablePagination.total = res.total;
|
tablePagination.total = res.total;
|
||||||
tableState.data = res.rows;
|
tableState.data = res.rows;
|
||||||
@@ -279,12 +281,10 @@ onMounted(() => {
|
|||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'mml'">
|
<template v-if="column.key === 'mml'">
|
||||||
<a-space :size="8" align="center">
|
<a-tooltip>
|
||||||
<a-tooltip>
|
<template #title>{{ record.result }}</template>
|
||||||
<template #title>{{ record.result }}</template>
|
<div class="mmlText">{{ record.mml }}</div>
|
||||||
<div class="mmlText">{{ record.mml }}</div>
|
</a-tooltip>
|
||||||
</a-tooltip>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
@@ -297,8 +297,7 @@ onMounted(() => {
|
|||||||
padding: 0 24px;
|
padding: 0 24px;
|
||||||
}
|
}
|
||||||
.mmlText {
|
.mmlText {
|
||||||
max-width: 200px;
|
max-width: 800px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: start;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -172,7 +172,6 @@ function fnGetList() {
|
|||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
listOperationLog(toRaw(queryParams)).then(res => {
|
listOperationLog(toRaw(queryParams)).then(res => {
|
||||||
console.log(res);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||||
tablePagination.total = res.total;
|
tablePagination.total = res.total;
|
||||||
tableState.data = res.rows;
|
tableState.data = res.rows;
|
||||||
|
|||||||
@@ -157,7 +157,6 @@ function fnGetList() {
|
|||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
listTraceData(toRaw(queryParams)).then(res => {
|
listTraceData(toRaw(queryParams)).then(res => {
|
||||||
console.log(res);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||||
tablePagination.total = res.total;
|
tablePagination.total = res.total;
|
||||||
tableState.data = res.rows;
|
tableState.data = res.rows;
|
||||||
@@ -218,7 +217,9 @@ function fnModalVisible(row: Record<string, any>) {
|
|||||||
modalState.from.rawDataHTML = t('views.traceManage.analysis.noData');
|
modalState.from.rawDataHTML = t('views.traceManage.analysis.noData');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
modalState.title = t('views.traceManage.analysis.taskTitle', { num: row.imsi });
|
modalState.title = t('views.traceManage.analysis.taskTitle', {
|
||||||
|
num: row.imsi,
|
||||||
|
});
|
||||||
modalState.visible = true;
|
modalState.visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -321,7 +322,7 @@ onMounted(() => {
|
|||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:placeholder="t('views.traceManage.analysis.imsi')"
|
:label="t('views.traceManage.analysis.imsi')"
|
||||||
name="imsi"
|
name="imsi"
|
||||||
>
|
>
|
||||||
<a-input
|
<a-input
|
||||||
@@ -333,7 +334,7 @@ onMounted(() => {
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:placeholder="t('views.traceManage.analysis.msisdn')"
|
:label="t('views.traceManage.analysis.msisdn')"
|
||||||
name="imsi"
|
name="imsi"
|
||||||
>
|
>
|
||||||
<a-input
|
<a-input
|
||||||
@@ -443,7 +444,9 @@ onMounted(() => {
|
|||||||
:visible="modalState.visible"
|
:visible="modalState.visible"
|
||||||
@cancel="fnModalVisibleClose"
|
@cancel="fnModalVisibleClose"
|
||||||
>
|
>
|
||||||
<div class="raw-title">{{ t('views.traceManage.analysis.signalData') }}</div>
|
<div class="raw-title">
|
||||||
|
{{ t('views.traceManage.analysis.signalData') }}
|
||||||
|
</div>
|
||||||
<a-row
|
<a-row
|
||||||
class="raw"
|
class="raw"
|
||||||
:gutter="16"
|
:gutter="16"
|
||||||
|
|||||||
@@ -350,6 +350,9 @@ function fnClose() {
|
|||||||
/**查询调度日志列表 */
|
/**查询调度日志列表 */
|
||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listJobLog(toRaw(queryParams)).then(res => {
|
listJobLog(toRaw(queryParams)).then(res => {
|
||||||
|
|||||||
@@ -312,6 +312,9 @@ function fnExportList() {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listLogininfor(toRaw(queryParams)).then(res => {
|
listLogininfor(toRaw(queryParams)).then(res => {
|
||||||
|
|||||||
@@ -345,6 +345,9 @@ function fnExportList() {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listOperlog(toRaw(queryParams)).then(res => {
|
listOperlog(toRaw(queryParams)).then(res => {
|
||||||
|
|||||||
@@ -423,6 +423,9 @@ function fnRefreshCache() {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listConfig(toRaw(queryParams)).then(res => {
|
listConfig(toRaw(queryParams)).then(res => {
|
||||||
|
|||||||
@@ -426,6 +426,9 @@ function fnDataView(dictId: string | number = '0') {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listType(toRaw(queryParams)).then(res => {
|
listType(toRaw(queryParams)).then(res => {
|
||||||
|
|||||||
@@ -673,6 +673,9 @@ function fnExportList() {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listRole(toRaw(queryParams)).then(res => {
|
listRole(toRaw(queryParams)).then(res => {
|
||||||
|
|||||||
@@ -674,6 +674,9 @@ function fnModalUploadXlsxImportExportTemplate() {
|
|||||||
function fnGetList() {
|
function fnGetList() {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
|
if (!queryRangePicker.value) {
|
||||||
|
queryRangePicker.value = ['', ''];
|
||||||
|
}
|
||||||
queryParams.beginTime = queryRangePicker.value[0];
|
queryParams.beginTime = queryRangePicker.value[0];
|
||||||
queryParams.endTime = queryRangePicker.value[1];
|
queryParams.endTime = queryRangePicker.value[1];
|
||||||
listUser(toRaw(queryParams)).then(res => {
|
listUser(toRaw(queryParams)).then(res => {
|
||||||
|
|||||||
@@ -157,7 +157,6 @@ function fnGetList() {
|
|||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
listTraceData(toRaw(queryParams)).then(res => {
|
listTraceData(toRaw(queryParams)).then(res => {
|
||||||
console.log(res);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||||
tablePagination.total = res.total;
|
tablePagination.total = res.total;
|
||||||
tableState.data = res.rows;
|
tableState.data = res.rows;
|
||||||
|
|||||||
@@ -461,7 +461,6 @@ function fnModalOk() {
|
|||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
traceTask
|
traceTask
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: modalState.title }),
|
content: t('common.msgSuccess', { msg: modalState.title }),
|
||||||
|
|||||||
Reference in New Issue
Block a user