ref: v3变更,,表结构对应相关接口功能

This commit is contained in:
TsMask
2025-09-15 11:02:28 +08:00
parent 54cf296d2f
commit 2f839f7178
117 changed files with 2008 additions and 2076 deletions

View File

@@ -26,7 +26,6 @@ import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { readLoalXlsx } from '@/utils/execl-utils';
import { parseDateToStr } from '@/utils/date-utils';
import dayjs, { type Dayjs } from 'dayjs';
import { currentCoreUid } from '@/hooks/useCoreUid';
const neStore = useNeStore();
const { getDict } = useDictStore();
const { t, currentLocale } = useI18n();
@@ -71,10 +70,8 @@ let rangePickerPresets = ref([
/**查询参数 */
let queryParams = reactive({
/**核心网标识 */
coreUid: currentCoreUid(),
alarmStatus: 'Active',
sortField: 'event_time',
sortField: 'createdTime',
sortOrder: 'desc',
/**告警设备类型 */
neType: '',
@@ -219,6 +216,12 @@ let tableColumns: ColumnsType = [
align: 'left',
width: 100,
},
{
title: t('views.ne.common.neName'),
dataIndex: 'neName',
align: 'left',
width: 150,
},
{
title: t('common.operate'),
key: 'id',
@@ -442,7 +445,6 @@ function fnModalOk() {
const hide = message.loading(t('common.loading'), 0);
ackAlarm({
id: from.id,
coreUid: from.coreUid,
ackState: true,
})
.then(res => {
@@ -502,12 +504,10 @@ function fnTableSelectedRowKeys(keys: (string | number)[], rows: any[]) {
tableState.selectedRows = rows.map(item => {
return {
id: item.id,
coreUid: item.coreUid,
neUid: item.neUid,
neType: item.neType,
};
});
console.log( tableState.selectedRows)
}
/**
@@ -524,7 +524,6 @@ function fnCancelConfirm() {
reqArr.push(
ackAlarm({
id: item.id,
coreUid: item.coreUid,
ackState: false,
})
);
@@ -586,9 +585,8 @@ function fnClear() {
onOk() {
const hide = message.loading(t('common.loading'), 0);
let reqArr: any = [];
tableState.selectedRows.forEach(item => {
reqArr.push(clearAlarm(item.id, item.coreUid));
});
const ids = tableState.selectedRowKeys.join(',');
reqArr.push(clearAlarm(ids));
Promise.all(reqArr)
.then(resArr => {
if (resArr.every((item: any) => item.code === RESULT_CODE_SUCCESS)) {