From 54c4bdc8ac0f1bc352a7e580edc5f447bb5b70b2 Mon Sep 17 00:00:00 2001 From: fuguobin Date: Thu, 19 Oct 2023 18:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E8=AF=A6=E6=83=85=E6=8A=98?= =?UTF-8?q?=E7=BA=BF=E5=9B=BE=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/index.ts | 44 +- src/api/device/types.ts | 33 + src/types/auto-imports.d.ts | 4 - src/views/details/index - 副本 (2).vue | 202 +++++ src/views/details/index - 副本.vue | 187 ++++ src/views/details/index.scss | 9 +- src/views/details/index.vue | 807 +++++++++++++++--- .../monitoring/screen/components/main.vue | 160 ++-- vite.config.ts | 6 +- 9 files changed, 1273 insertions(+), 179 deletions(-) create mode 100644 src/views/details/index - 副本 (2).vue create mode 100644 src/views/details/index - 副本.vue diff --git a/src/api/device/index.ts b/src/api/device/index.ts index 370673d..27feca4 100644 --- a/src/api/device/index.ts +++ b/src/api/device/index.ts @@ -29,7 +29,7 @@ export function getDept(): AxiosPromise<[]> { */ export function getDeviceList(params: number): AxiosPromise { return request({ - url: '/bi/configuration/getDeviceListByDept/'+params, + url: '/bi/configuration/getDeviceListByDept/' + params, method: 'get' }); } @@ -41,7 +41,7 @@ export function getDeviceList(params: number): AxiosPromise { */ export function getViewInfo(params: number): AxiosPromise { return request({ - url: '/bi/configuration/getViewInfoById/'+params, + url: '/bi/configuration/getViewInfoById/' + params, method: 'get' }); } @@ -58,3 +58,43 @@ export function editConfig(data: any) { data: data }); } + +/** + * 获取图表详情设备筛选项 + */ +export function getDevices(): AxiosPromise<[]> { + return request({ + url: '/dc/dcDeviceEcharts/getDevices', + method: 'get' + }); +} +/** + * 获取图表详情参数筛选项 + */ +export function getParams(): AxiosPromise<[]> { + return request({ + url: '/dc/dcDeviceEcharts/getParams', + method: 'get' + }); +} +/** + * 获取图表详情分区筛选项 + */ +export function getPortions(): AxiosPromise<[]> { + return request({ + url: '/dc/dcDeviceEcharts/getPortions', + method: 'get' + }); +} +/** + * 获取折线图数据 + * + * @param data + */ +export function getDeviceInfos(data: any) { + return request({ + url: '/dc/dcDeviceEcharts/getDeviceInfos', + method: 'post', + data: data + }); +} diff --git a/src/api/device/types.ts b/src/api/device/types.ts index 7208fe2..3c95d82 100644 --- a/src/api/device/types.ts +++ b/src/api/device/types.ts @@ -40,3 +40,36 @@ export interface headerVo { ctrlFlag: string; paramUnit: string; } +export interface deetsVo { + centerDeviceCode: string; + deviceName: string; +} +export interface partitionVo { + createBy: string; + createTime: string; + cssClass: null; + default: boolean; + dictCode: number; + dictLabel: string; + dictSort: number; + dictType: string; + dictValue: string; + isDefault: null; + listClass: string; + remark: null; + status: string; + updateBy: null; + updateTime: null; +} +export interface parameterVo { + classType: string; + createTime: null; + deleteTime: null; + id: number; + note: null; + paramClassCode: string; + paramClassName: string; + paramUnit: string; + updateTime: null; + version: null; +} diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 5742656..e5c7bdb 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -5,8 +5,6 @@ declare global { const ElForm: typeof import('element-plus/es')['ElForm'] const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] - const ElNotification: typeof import('element-plus/es')['ElNotification'] - const NEllipsis: typeof import('naive-ui')['NEllipsis'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] const computed: typeof import('vue')['computed'] @@ -276,8 +274,6 @@ declare module 'vue' { readonly ElForm: UnwrapRef readonly ElMessage: UnwrapRef readonly ElMessageBox: UnwrapRef - readonly ElNotification: UnwrapRef - readonly NEllipsis: UnwrapRef readonly asyncComputed: UnwrapRef readonly autoResetRef: UnwrapRef readonly computed: UnwrapRef diff --git a/src/views/details/index - 副本 (2).vue b/src/views/details/index - 副本 (2).vue new file mode 100644 index 0000000..30ed388 --- /dev/null +++ b/src/views/details/index - 副本 (2).vue @@ -0,0 +1,202 @@ + + + diff --git a/src/views/details/index - 副本.vue b/src/views/details/index - 副本.vue new file mode 100644 index 0000000..d513ea8 --- /dev/null +++ b/src/views/details/index - 副本.vue @@ -0,0 +1,187 @@ + + + diff --git a/src/views/details/index.scss b/src/views/details/index.scss index 5e35a50..f8973ae 100644 --- a/src/views/details/index.scss +++ b/src/views/details/index.scss @@ -1,13 +1,18 @@ .details { - padding: 1.5rem; + padding: 1.5rem; .search { margin-bottom: 1.5rem; + .searchForm { + .item { + margin-bottom: 0; + } + } } .echart { .comparisonInfo { .stackedLine { width: 100%; - height: 500px; + height: 80vh; } } } diff --git a/src/views/details/index.vue b/src/views/details/index.vue index f6e2058..7b3bf6d 100644 --- a/src/views/details/index.vue +++ b/src/views/details/index.vue @@ -1,29 +1,54 @@