diff --git a/package.json b/package.json index a40a24b..d542df9 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "echarts4": "npm:echarts@^4.9.0", "element-plus": "^2.4.4", "html2canvas": "^1.4.1", + "jquery": "^3.7.1", "lodash-es": "^4.17.21", "mitt": "^3.0.1", "nprogress": "^0.2.0", diff --git a/src/api/common.ts b/src/api/common.ts index d732440..df0d490 100644 --- a/src/api/common.ts +++ b/src/api/common.ts @@ -23,3 +23,10 @@ export function getDeviceTree() { method: 'POST' }) } +// 获取波形数据 +export function analyseWave(params:string) { + return createAxios({ + url: '/cs-harmonic-boot/event/analyseWave?eventId=' + params, + method: 'get' + }) +} diff --git a/src/assets/img/dw.png b/src/assets/img/dw.png new file mode 100644 index 0000000..1e82f6b Binary files /dev/null and b/src/assets/img/dw.png differ diff --git a/src/assets/img/point.png b/src/assets/img/point.png new file mode 100644 index 0000000..34a4d17 Binary files /dev/null and b/src/assets/img/point.png differ diff --git a/src/components/echarts/rmsboxi.vue b/src/components/echarts/rmsboxi.vue new file mode 100644 index 0000000..29301e7 --- /dev/null +++ b/src/components/echarts/rmsboxi.vue @@ -0,0 +1,1544 @@ + + diff --git a/src/components/echarts/shushiboxi.vue b/src/components/echarts/shushiboxi.vue new file mode 100644 index 0000000..d45a47b --- /dev/null +++ b/src/components/echarts/shushiboxi.vue @@ -0,0 +1,1155 @@ + + + + diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 6578b71..3c87a94 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -69,6 +69,7 @@ + diff --git a/src/styles/vxeTable.scss b/src/styles/vxeTable.scss index 23776b0..e6dbe9d 100644 --- a/src/styles/vxeTable.scss +++ b/src/styles/vxeTable.scss @@ -1,16 +1,25 @@ -.vxe-table--body-wrapper::-webkit-scrollbar { - width: 10px; - height: 10px; +.vxe-table--body-wrapper, +.boxbx { + &::-webkit-scrollbar { + width: 10px; + height: 10px; + } + &::-webkit-scrollbar-thumb { + border-radius: 5px; + height: 3px; + background-color: var(--el-color-primary) !important; + border-radius: 30px !important; + } } -.vxe-table--body-wrapper::-webkit-scrollbar-thumb { - border-radius: 5px; - height: 3px; - background-color: var(--el-color-primary) !important; - border-radius: 30px !important; -} +// .vxe-table--body-wrapper::-webkit-scrollbar-thumb { +// border-radius: 5px; +// height: 3px; +// background-color: var(--el-color-primary) !important; +// border-radius: 30px !important; +// } .vxe-header--row { background: var(--el-color-primary); color: var(--el-color-white); -} \ No newline at end of file +} diff --git a/src/utils/layout.ts b/src/utils/layout.ts index 31f8288..db46840 100644 --- a/src/utils/layout.ts +++ b/src/utils/layout.ts @@ -7,7 +7,7 @@ import { useConfig } from '@/stores/config' * @param extra main高度额外减去的px数,可以实现隐藏原有的滚动条 * @returns CSSProperties */ -export function mainHeight(extra = 0): CSSProperties { +export function mainHeight(extra = 0,divided =1): CSSProperties { let height = extra const adminLayoutMainExtraHeight: anyObj = { Default: 60, @@ -21,7 +21,7 @@ export function mainHeight(extra = 0): CSSProperties { } return { - height: 'calc(100vh - ' + height.toString() + 'px)' + height: 'calc((100vh - ' + height.toString() + 'px) / '+ divided+')' } } diff --git a/src/views/govern/alarm/Device.vue b/src/views/govern/alarm/Device.vue index 9982293..19edfa8 100644 --- a/src/views/govern/alarm/Device.vue +++ b/src/views/govern/alarm/Device.vue @@ -103,7 +103,9 @@ const sourceChange = (e: any) => { onMounted(() => { tableStore.index() }) - +setTimeout(() => { + tableStore.table.height = mainHeight(190).height as any +}, 0) const addMenu = () => {} diff --git a/src/views/govern/alarm/Steady.vue b/src/views/govern/alarm/Steady.vue index d41c5d3..e4e3a09 100644 --- a/src/views/govern/alarm/Steady.vue +++ b/src/views/govern/alarm/Steady.vue @@ -102,7 +102,9 @@ const sourceChange = (e: any) => { onMounted(() => { tableStore.index() }) - +setTimeout(() => { + tableStore.table.height = mainHeight(190).height as any +}, 0) const addMenu = () => {} diff --git a/src/views/govern/alarm/Transient.vue b/src/views/govern/alarm/Transient.vue index 375dba8..14d6462 100644 --- a/src/views/govern/alarm/Transient.vue +++ b/src/views/govern/alarm/Transient.vue @@ -1,56 +1,132 @@ - + diff --git a/src/views/govern/alarm/cope.vue b/src/views/govern/alarm/cope.vue new file mode 100644 index 0000000..71a2442 --- /dev/null +++ b/src/views/govern/alarm/cope.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/views/govern/alarm/index.vue b/src/views/govern/alarm/index.vue index e222455..d9e4ad2 100644 --- a/src/views/govern/alarm/index.vue +++ b/src/views/govern/alarm/index.vue @@ -1,6 +1,6 @@