From 2f86b8712ba8439d9dc46bc9276be0fb764a5c27 Mon Sep 17 00:00:00 2001 From: xjf <378266566@qq.com> Date: Fri, 12 Dec 2025 11:06:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9B=9E=E7=AE=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/lang/en/action.json | 3 +- src/locales/lang/zh-CN/action.json | 3 +- src/views/run/calc/calc.data.ts | 34 +++---- src/views/run/calc/index.vue | 143 +++++++++++++++++------------ 4 files changed, 105 insertions(+), 78 deletions(-) diff --git a/src/locales/lang/en/action.json b/src/locales/lang/en/action.json index 562ff38..529585c 100644 --- a/src/locales/lang/en/action.json +++ b/src/locales/lang/en/action.json @@ -15,5 +15,6 @@ "createInstant": "CreateInstant", "pointConfig": "PointConfig", "warnConfig": "WarnConfig", - "backCalc": "backCalc" + "backCalc": "backCalc", + "calcIng": "calcIng" } diff --git a/src/locales/lang/zh-CN/action.json b/src/locales/lang/zh-CN/action.json index c84a365..5c0bb93 100644 --- a/src/locales/lang/zh-CN/action.json +++ b/src/locales/lang/zh-CN/action.json @@ -16,5 +16,6 @@ "createInstant": "新增实例", "pointConfig": "测点配置", "warnConfig": "预警配置", - "backCalc": "回算" + "backCalc": "回算", + "calcIng": "回算中" } diff --git a/src/views/run/calc/calc.data.ts b/src/views/run/calc/calc.data.ts index f0df0ad..071a08c 100644 --- a/src/views/run/calc/calc.data.ts +++ b/src/views/run/calc/calc.data.ts @@ -9,48 +9,48 @@ import type { systemSelectParams } from '@/api/alert/model/model/optionsModel' export const columns: BasicColumn[] = [ { title: '编号', - dataIndex: 'id', - width: 80, + dataIndex: 'mpId', + width: 60, fixed: 'left', }, { title: '模型名称', dataIndex: 'modelName', - width: 250, + width: 200, className: 'instant', slots: { customRender: 'detail' }, fixed: 'left', }, { title: '算法', - dataIndex: 'Algorithm', - width: 200, + dataIndex: 'algorithmShortname', + width: 100, }, { title: '模式覆盖率', dataIndex: 'CoveredPercent', - width: 200, + width: 100, }, { title: '报警次数', dataIndex: 'AlarmNumber', - width: 200, + width: 100, }, { title: '总报警时间(m)', dataIndex: 'AlarmToatlMinutes', - width: 200, + width: 100, }, { title: '系统维度', dataIndex: 'Dimension', - width: 200, + width: 100, }, { title: '计算耗时(s)', dataIndex: 'CalcSeconds', - width: 200, + width: 100, }, { title: '状态', @@ -71,7 +71,7 @@ export const searchFormSchema: FormSchema[] = [ field: 'unit', component: 'Select', defaultValue: optionList.units[0].id || null, - colProps: { span: 4 }, + colProps: { span: 5 }, componentProps: ({ formModel }) => { return { @@ -99,7 +99,7 @@ export const searchFormSchema: FormSchema[] = [ field: 'type', component: 'Select', defaultValue: optionList.types[0].id || null, - colProps: { span: 4 }, + colProps: { span: 5 }, componentProps: ({ formModel }) => { return { allowClear: false, @@ -124,7 +124,7 @@ export const searchFormSchema: FormSchema[] = [ field: 'system', component: 'Select', defaultValue: systemOptions.value[0].id || null, - colProps: { span: 4 }, + colProps: { span: 5 }, componentProps: () => { return { allowClear: false, @@ -143,7 +143,7 @@ export const searchFormSchema: FormSchema[] = [ componentProps: { placeholder: '请输入模型名称', }, - colProps: { span: 4 }, + colProps: { span: 6 }, }, ] @@ -167,11 +167,11 @@ export const calcFormSchemas: FormSchema[] = [ required: true, colProps: { - span: 8, + span: 10, }, }, { - label: '回算采样周期', + label: '采样周期', field: 'interval', component: 'Select', defaultValue: 60, @@ -181,7 +181,7 @@ export const calcFormSchemas: FormSchema[] = [ }, required: true, colProps: { - span: 4, + span: 5, }, }, diff --git a/src/views/run/calc/index.vue b/src/views/run/calc/index.vue index efe594c..f5032e0 100644 --- a/src/views/run/calc/index.vue +++ b/src/views/run/calc/index.vue @@ -1,6 +1,6 @@ - - - - - - -