智能告警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
|
// 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
|
||||||
});
|
});
|
||||||
|
|||||||
@ -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 = [];
|
||||||
|
|||||||
@ -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 = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user