智能告警BUG修改
This commit is contained in:
parent
03e299bd7c
commit
9473a87a1d
@ -12,7 +12,7 @@ export function getAisbdbyxList(data: any) {
|
||||
// AI识别大坝环境-获取饼图+表格数据 /api/wmp-env-server/env/ai/com/GetKendoListCust
|
||||
export function getAiChartTable(data: any) {
|
||||
return request({
|
||||
url: '/api/wmp-env-server/env/ai/com/GetKendoListCust',
|
||||
url: '/warn/ai/com/GetKendoListCust',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
@ -84,7 +84,7 @@ export function getAiRecord(data: any) {
|
||||
// AI识别大坝环境-获取日历详情视频数据 /warn/ai/com/qgc/aiFile/GetKendoListCust
|
||||
export function getAiFile(data: any) {
|
||||
return request({
|
||||
url: '/api/wmp-env-server/env/ai/com/qgc/aiFile/GetKendoListCust',
|
||||
url: '/warn/ai/com/qgc/aiFile/GetKendoListCust',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
|
||||
@ -393,7 +393,7 @@ let videoChartInstance: ECharts | null = null;
|
||||
// ==================== 日历视图状态 ====================
|
||||
const calendarLoading = ref(false);
|
||||
const calendarData = ref<any[]>([]);
|
||||
const calendarValue = ref(dayjs());
|
||||
const calendarValue = ref(searchData.value.month);
|
||||
const detailModalVisible = ref(false);
|
||||
const detailActiveKey = ref('2');
|
||||
const detailDate = ref('');
|
||||
@ -1293,7 +1293,7 @@ const colStcdData = async () => {
|
||||
|
||||
const params = { filter: { logic: 'and', filters } };
|
||||
const res: any = await getAiRstcd(params);
|
||||
const _data = res?.data?.data?.data ?? [];
|
||||
const _data = res?.data?.data ?? [];
|
||||
const list = _data.map((item: any) => ({
|
||||
label: item.stnm,
|
||||
value: item.stcd
|
||||
@ -1501,6 +1501,14 @@ watch(
|
||||
}
|
||||
);
|
||||
|
||||
// ==================== 监听月份变化,同步日历显示 ====================
|
||||
watch(
|
||||
() => searchData.value.month,
|
||||
(newMonth) => {
|
||||
calendarValue.value = newMonth;
|
||||
}
|
||||
);
|
||||
|
||||
// ==================== 监听 Tab 切换 ====================
|
||||
watch(tabIndex, () => {
|
||||
pieCode.value = [];
|
||||
|
||||
@ -469,7 +469,7 @@ let videoChartInstance: ECharts | null = null;
|
||||
// ==================== 日历视图状态 ====================
|
||||
const calendarLoading = ref(false);
|
||||
const calendarData = ref<any[]>([]);
|
||||
const calendarValue = ref(dayjs());
|
||||
const calendarValue = ref(searchData.value.month);
|
||||
const detailModalVisible = ref(false);
|
||||
const detailActiveKey = ref('');
|
||||
const detailVideoLoading = ref(false);
|
||||
@ -486,7 +486,7 @@ const detailActiveMedia = ref<{ type: string; src: string }>({
|
||||
const detailTabItems = ref<any[]>([]);
|
||||
const detailDate = ref('');
|
||||
const detailType = ref('');
|
||||
const detailDataType = ref('');
|
||||
const detailDataType = computed(() => detailActiveKey.value);
|
||||
const qingpiaoModalVisible = ref(false);
|
||||
const qingpiaoFids = ref<string[]>([]);
|
||||
|
||||
@ -1378,7 +1378,7 @@ const colStcdData = async () => {
|
||||
|
||||
const params = { filter: { logic: 'and', filters } };
|
||||
const res: any = await getAiRstcd(params);
|
||||
const _data = res?.data?.data?.data ?? [];
|
||||
const _data = res?.data?.data ?? [];
|
||||
const list = _data.map((item: any) => ({
|
||||
label: item.stnm,
|
||||
value: item.stcd
|
||||
@ -1521,7 +1521,6 @@ const handleCalendarDayClick = async (current: any, dayData: any) => {
|
||||
const date = dayjs(current).format('YYYY-MM-DD');
|
||||
const status = dayData.status;
|
||||
const statusInfo = calendarStatusMap[status];
|
||||
|
||||
if (!statusInfo) return;
|
||||
|
||||
// 清漂识别直接打开附件预览
|
||||
@ -1541,7 +1540,6 @@ const handleCalendarDayClick = async (current: any, dayData: any) => {
|
||||
// 漂浮物/叠梁门打开视频详情弹窗
|
||||
detailDate.value = date;
|
||||
detailType.value = statusInfo.type;
|
||||
detailDataType.value = statusInfo.dataType;
|
||||
|
||||
// 设置 Tab 项(与React端一致)
|
||||
if (tabIndex.value === '2') {
|
||||
@ -1593,6 +1591,8 @@ const fetchDetailVideoList = async () => {
|
||||
: null,
|
||||
// type过滤
|
||||
{ field: 'type', operator: 'eq', value: detailType.value },
|
||||
// dataType过滤
|
||||
{ field: 'dataType', operator: 'eq', value: detailDataType.value },
|
||||
// 时间范围
|
||||
{
|
||||
field: 'tm',
|
||||
@ -1826,6 +1826,15 @@ watch(
|
||||
}
|
||||
);
|
||||
|
||||
// ==================== 监听月份变化,同步日历显示 ====================
|
||||
watch(
|
||||
() => searchData.value.month,
|
||||
(newMonth) => {
|
||||
calendarValue.value = newMonth;
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
// ==================== 监听 Tab 切换 ====================
|
||||
watch(tabIndex, () => {
|
||||
pieCode.value = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user