|
@@ -1,9 +1,11 @@
|
|
<template>
|
|
<template>
|
|
<div class="dataAnalysisCom" :class="!theme ? 'themeDark' : 'themeLight'">
|
|
<div class="dataAnalysisCom" :class="!theme ? 'themeDark' : 'themeLight'">
|
|
<div class="dataAnalysisComMain">
|
|
<div class="dataAnalysisComMain">
|
|
- <p>功率曲线拟合分析</p>
|
|
|
|
- <search-cop @submit="funSubmit">
|
|
|
|
- </search-cop>
|
|
|
|
|
|
+ <div class="main_top">
|
|
|
|
+ <p class="topPsty">功率曲线拟合分析</p>
|
|
|
|
+ <search-cop @submit="funSubmit">
|
|
|
|
+ </search-cop>
|
|
|
|
+ </div>
|
|
<div class="main">
|
|
<div class="main">
|
|
<div class="treeDataMain">
|
|
<div class="treeDataMain">
|
|
<tree-cop :data="treeData" @checkChange="funTreeCheckChange" :show-checkbox="true"
|
|
<tree-cop :data="treeData" @checkChange="funTreeCheckChange" :show-checkbox="true"
|
|
@@ -122,9 +124,9 @@
|
|
// import tableRes from '@/data/table.json'
|
|
// import tableRes from '@/data/table.json'
|
|
// import areaDataRes from '@/data/areaData.json'
|
|
// import areaDataRes from '@/data/areaData.json'
|
|
/**配置参数 */
|
|
/**配置参数 */
|
|
- const tableHeight = ref(window.innerHeight - 260 + 'px')
|
|
|
|
- const excelHeight = ref((window.innerHeight - 220) / 2 + 'px')
|
|
|
|
- const treeHeight = ref((window.innerHeight - 220) / 2 + 'px')
|
|
|
|
|
|
+ const tableHeight = ref(window.innerHeight - 180 + 'px')
|
|
|
|
+ const excelHeight = ref((window.innerHeight - 150) / 2 + 'px')
|
|
|
|
+ const treeHeight = ref((window.innerHeight - 150) / 2 + 'px')
|
|
/**excel 开始 */
|
|
/**excel 开始 */
|
|
const excelCheckboxShow = ref(false)
|
|
const excelCheckboxShow = ref(false)
|
|
const excelType = ref('')
|
|
const excelType = ref('')
|
|
@@ -698,13 +700,13 @@
|
|
theme.value = store.state.theme
|
|
theme.value = store.state.theme
|
|
echartsTheme.value = !theme.value ? 'dark' : ''
|
|
echartsTheme.value = !theme.value ? 'dark' : ''
|
|
dataRadom.value = (new Date().getTime()).toString()
|
|
dataRadom.value = (new Date().getTime()).toString()
|
|
- tableHeight.value = window.innerHeight - 260 + 'px'
|
|
|
|
- excelHeight.value = (window.innerHeight - 220) / 2 + 'px'
|
|
|
|
- treeHeight.value = (window.innerHeight - 220) / 2 + 'px'
|
|
|
|
|
|
+ tableHeight.value = window.innerHeight - 180 + 'px'
|
|
|
|
+ excelHeight.value = (window.innerHeight - 150) / 2 + 'px'
|
|
|
|
+ treeHeight.value = (window.innerHeight - 150) / 2 + 'px'
|
|
window.addEventListener('resize', () => {
|
|
window.addEventListener('resize', () => {
|
|
- tableHeight.value = window.innerHeight - 260 + 'px'
|
|
|
|
- excelHeight.value = (window.innerHeight - 220) / 2 + 'px'
|
|
|
|
- treeHeight.value = (window.innerHeight - 220) / 2 + 'px'
|
|
|
|
|
|
+ tableHeight.value = window.innerHeight - 180 + 'px'
|
|
|
|
+ excelHeight.value = (window.innerHeight - 150) / 2 + 'px'
|
|
|
|
+ treeHeight.value = (window.innerHeight - 150) / 2 + 'px'
|
|
})
|
|
})
|
|
/**test */
|
|
/**test */
|
|
// funExcelChange({
|
|
// funExcelChange({
|
|
@@ -718,67 +720,102 @@
|
|
<style lang="less">
|
|
<style lang="less">
|
|
.dataAnalysisCom {
|
|
.dataAnalysisCom {
|
|
|
|
|
|
- padding: 20px;
|
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
|
- p {
|
|
|
|
- font-size: 16px;
|
|
|
|
- margin-left: 20px;
|
|
|
|
- }
|
|
|
|
|
|
+ .dataAnalysisComMain {
|
|
|
|
+ height: 100%;
|
|
|
|
|
|
- .main {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- // width: calc(100% - 40px);
|
|
|
|
- width: 100%;
|
|
|
|
-
|
|
|
|
- .treeDataMain,
|
|
|
|
- .excelDataMain,
|
|
|
|
- .tableDataMain {
|
|
|
|
- padding: 10px;
|
|
|
|
- border-radius: 10px;
|
|
|
|
|
|
+ .main_top {
|
|
|
|
+ height: 40px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+
|
|
|
|
+ .topPsty {
|
|
|
|
+ position: relative;
|
|
|
|
+ top: 5px;
|
|
|
|
+ padding: 7px 20px;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
- .treeDataMain {
|
|
|
|
- width: calc(20% - 20px);
|
|
|
|
|
|
+ .main {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ // width: calc(100% - 40px);
|
|
|
|
+ width: 100%;
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ .treeDataMain,
|
|
|
|
+ .excelDataMain,
|
|
|
|
+ .tableDataMain {
|
|
|
|
+ padding: 10px;
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ }
|
|
|
|
|
|
- .excelDataMain {
|
|
|
|
- width: calc(13% - 20px);
|
|
|
|
|
|
+ .treeDataMain {
|
|
|
|
+ width: calc(20% - 20px);
|
|
|
|
|
|
- .excelDataMain_top {
|
|
|
|
- padding: 5px 0;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- .excelDataMain_bot {
|
|
|
|
- padding: 5px 0;
|
|
|
|
|
|
+ .excelDataMain {
|
|
|
|
+ width: calc(13% - 20px);
|
|
|
|
+
|
|
|
|
+ .excelDataMain_top {
|
|
|
|
+ padding: 5px 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .excelDataMain_bot {
|
|
|
|
+ padding: 5px 0;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- .tableDataMain {
|
|
|
|
- width: calc(66% - 20px);
|
|
|
|
- position: relative;
|
|
|
|
|
|
+ .tableDataMain {
|
|
|
|
+ width: calc(66% - 20px);
|
|
|
|
+ position: relative;
|
|
|
|
|
|
- .butten_com {
|
|
|
|
- position: absolute;
|
|
|
|
- right: 20px;
|
|
|
|
- z-index: 111111;
|
|
|
|
|
|
+ .butten_com {
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 20px;
|
|
|
|
+ z-index: 111111;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
.themeDark {
|
|
.themeDark {
|
|
|
|
|
|
- p {
|
|
|
|
- color: #fff;
|
|
|
|
- }
|
|
|
|
|
|
+ .dataAnalysisComMain {
|
|
|
|
+ .main_top {
|
|
|
|
+
|
|
|
|
+ .topPsty {
|
|
|
|
+ color: #1C99FF;
|
|
|
|
+ background: #1E2126;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .main {
|
|
|
|
+ background: #13171e;
|
|
|
|
+
|
|
|
|
+ .treeDataMain {
|
|
|
|
+ background: transparent;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .excelDataMain {
|
|
|
|
+ background: #313233;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .tableDataMain {
|
|
|
|
+ margin-top: 5px;
|
|
|
|
+ background: #212223;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- .treeDataMain,
|
|
|
|
- .excelDataMain,
|
|
|
|
- .tableDataMain {
|
|
|
|
- background: #161f1e;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -786,20 +823,31 @@
|
|
.themeLight {
|
|
.themeLight {
|
|
padding: 0;
|
|
padding: 0;
|
|
|
|
|
|
- p {
|
|
|
|
- color: #000;
|
|
|
|
- }
|
|
|
|
|
|
+ .dataAnalysisComMain {
|
|
|
|
+ .main_top {
|
|
|
|
|
|
- .treeDataMain,
|
|
|
|
- .excelDataMain,
|
|
|
|
- .tableDataMain {
|
|
|
|
- background: #edeffb;
|
|
|
|
- }
|
|
|
|
|
|
+ .topPsty {
|
|
|
|
+ color: #2778FF;
|
|
|
|
+ background: #FFFFFF;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- .dataAnalysisComMain {
|
|
|
|
- padding: 20px 0;
|
|
|
|
- border-radius: 10px;
|
|
|
|
- background: #fff;
|
|
|
|
|
|
+ .main {
|
|
|
|
+ background: #E6E8F2;
|
|
|
|
+
|
|
|
|
+ .treeDataMain {
|
|
|
|
+ background: transparent;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .excelDataMain {
|
|
|
|
+ background: #F4F6FB;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .tableDataMain {
|
|
|
|
+ background: #fff;
|
|
|
|
+ margin-top: 5px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|