fix: 跟踪管理支持模糊查询
This commit is contained in:
@@ -14,10 +14,10 @@ export async function listTraceData(query: Record<string, any>) {
|
|||||||
// 查询
|
// 查询
|
||||||
let querySQL = '';
|
let querySQL = '';
|
||||||
if (query.imsi) {
|
if (query.imsi) {
|
||||||
querySQL += ` and imsi = '${query.imsi}' `;
|
querySQL += ` and imsi like '%${query.imsi}%' `;
|
||||||
}
|
}
|
||||||
if (query.msisdn) {
|
if (query.msisdn) {
|
||||||
querySQL += ` and msisdn = '${query.msisdn}' `;
|
querySQL += ` and msisdn like '%${query.msisdn}%' `;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export async function listTraceTask(query: Record<string, any>) {
|
|||||||
// 查询
|
// 查询
|
||||||
let querySQL = '';
|
let querySQL = '';
|
||||||
if (query.imsi) {
|
if (query.imsi) {
|
||||||
querySQL += ` and imsi = '${query.imsi}' `;
|
querySQL += ` and imsi like '%${query.imsi}%' `;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
|
|||||||
@@ -218,7 +218,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 +323,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 +335,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 +445,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"
|
||||||
|
|||||||
Reference in New Issue
Block a user