智能告警BUG修改

This commit is contained in:
王兴凯 2026-07-06 10:27:41 +08:00
parent 03e299bd7c
commit 9473a87a1d
3 changed files with 27 additions and 10 deletions

View File

@ -12,7 +12,7 @@ export function getAisbdbyxList(data: any) {
// AI识别大坝环境-获取饼图+表格数据 /api/wmp-env-server/env/ai/com/GetKendoListCust // AI识别大坝环境-获取饼图+表格数据 /api/wmp-env-server/env/ai/com/GetKendoListCust
export function getAiChartTable(data: any) { export function getAiChartTable(data: any) {
return request({ return request({
url: '/api/wmp-env-server/env/ai/com/GetKendoListCust', url: '/warn/ai/com/GetKendoListCust',
method: 'post', method: 'post',
data data
}); });
@ -84,7 +84,7 @@ export function getAiRecord(data: any) {
// AI识别大坝环境-获取日历详情视频数据 /warn/ai/com/qgc/aiFile/GetKendoListCust // AI识别大坝环境-获取日历详情视频数据 /warn/ai/com/qgc/aiFile/GetKendoListCust
export function getAiFile(data: any) { export function getAiFile(data: any) {
return request({ return request({
url: '/api/wmp-env-server/env/ai/com/qgc/aiFile/GetKendoListCust', url: '/warn/ai/com/qgc/aiFile/GetKendoListCust',
method: 'post', method: 'post',
data data
}); });

View File

@ -393,7 +393,7 @@ let videoChartInstance: ECharts | null = null;
// ==================== ==================== // ==================== ====================
const calendarLoading = ref(false); const calendarLoading = ref(false);
const calendarData = ref<any[]>([]); const calendarData = ref<any[]>([]);
const calendarValue = ref(dayjs()); const calendarValue = ref(searchData.value.month);
const detailModalVisible = ref(false); const detailModalVisible = ref(false);
const detailActiveKey = ref('2'); const detailActiveKey = ref('2');
const detailDate = ref(''); const detailDate = ref('');
@ -1293,7 +1293,7 @@ const colStcdData = async () => {
const params = { filter: { logic: 'and', filters } }; const params = { filter: { logic: 'and', filters } };
const res: any = await getAiRstcd(params); const res: any = await getAiRstcd(params);
const _data = res?.data?.data?.data ?? []; const _data = res?.data?.data ?? [];
const list = _data.map((item: any) => ({ const list = _data.map((item: any) => ({
label: item.stnm, label: item.stnm,
value: item.stcd value: item.stcd
@ -1501,6 +1501,14 @@ watch(
} }
); );
// ==================== ====================
watch(
() => searchData.value.month,
(newMonth) => {
calendarValue.value = newMonth;
}
);
// ==================== Tab ==================== // ==================== Tab ====================
watch(tabIndex, () => { watch(tabIndex, () => {
pieCode.value = []; pieCode.value = [];

View File

@ -469,7 +469,7 @@ let videoChartInstance: ECharts | null = null;
// ==================== ==================== // ==================== ====================
const calendarLoading = ref(false); const calendarLoading = ref(false);
const calendarData = ref<any[]>([]); const calendarData = ref<any[]>([]);
const calendarValue = ref(dayjs()); const calendarValue = ref(searchData.value.month);
const detailModalVisible = ref(false); const detailModalVisible = ref(false);
const detailActiveKey = ref(''); const detailActiveKey = ref('');
const detailVideoLoading = ref(false); const detailVideoLoading = ref(false);
@ -486,7 +486,7 @@ const detailActiveMedia = ref<{ type: string; src: string }>({
const detailTabItems = ref<any[]>([]); const detailTabItems = ref<any[]>([]);
const detailDate = ref(''); const detailDate = ref('');
const detailType = ref(''); const detailType = ref('');
const detailDataType = ref(''); const detailDataType = computed(() => detailActiveKey.value);
const qingpiaoModalVisible = ref(false); const qingpiaoModalVisible = ref(false);
const qingpiaoFids = ref<string[]>([]); const qingpiaoFids = ref<string[]>([]);
@ -1378,7 +1378,7 @@ const colStcdData = async () => {
const params = { filter: { logic: 'and', filters } }; const params = { filter: { logic: 'and', filters } };
const res: any = await getAiRstcd(params); const res: any = await getAiRstcd(params);
const _data = res?.data?.data?.data ?? []; const _data = res?.data?.data ?? [];
const list = _data.map((item: any) => ({ const list = _data.map((item: any) => ({
label: item.stnm, label: item.stnm,
value: item.stcd value: item.stcd
@ -1521,7 +1521,6 @@ const handleCalendarDayClick = async (current: any, dayData: any) => {
const date = dayjs(current).format('YYYY-MM-DD'); const date = dayjs(current).format('YYYY-MM-DD');
const status = dayData.status; const status = dayData.status;
const statusInfo = calendarStatusMap[status]; const statusInfo = calendarStatusMap[status];
if (!statusInfo) return; if (!statusInfo) return;
// //
@ -1541,7 +1540,6 @@ const handleCalendarDayClick = async (current: any, dayData: any) => {
// / // /
detailDate.value = date; detailDate.value = date;
detailType.value = statusInfo.type; detailType.value = statusInfo.type;
detailDataType.value = statusInfo.dataType;
// Tab React // Tab React
if (tabIndex.value === '2') { if (tabIndex.value === '2') {
@ -1593,6 +1591,8 @@ const fetchDetailVideoList = async () => {
: null, : null,
// type // type
{ field: 'type', operator: 'eq', value: detailType.value }, { field: 'type', operator: 'eq', value: detailType.value },
// dataType
{ field: 'dataType', operator: 'eq', value: detailDataType.value },
// //
{ {
field: 'tm', field: 'tm',
@ -1826,6 +1826,15 @@ watch(
} }
); );
// ==================== ====================
watch(
() => searchData.value.month,
(newMonth) => {
calendarValue.value = newMonth;
}
);
// ==================== Tab ==================== // ==================== Tab ====================
watch(tabIndex, () => { watch(tabIndex, () => {
pieCode.value = []; pieCode.value = [];