Commit 1ca0b19b authored by 朱超's avatar 朱超

换热站趋势图能耗排名更新

parent 02795f3d
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
<el-form-item> <el-form-item>
<el-switch <el-switch
v-model="switchV" v-model="switchV"
active-text="表格" active-text="曲线图"
inactive-text="曲线图" inactive-text="表格"
style=" style="
--el-switch-on-color: #13ce66; --el-switch-on-color: #13ce66;
--el-switch-off-color: #6589ff; --el-switch-off-color: #6589ff;
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
</div> </div>
</el-form> </el-form>
</el-card> </el-card>
<div v-show="switchV"> <div v-show="!switchV">
<el-table <el-table
:data="tableData" :data="tableData"
v-loading="tabloading" v-loading="tabloading"
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
<el-table-column prop="uc" :label="enertyTab" /> <el-table-column prop="uc" :label="enertyTab" />
</el-table> </el-table>
</div> </div>
<div v-show="!switchV" id="echartsLayerBlock"> <div v-show="switchV" id="echartsLayerBlock">
<div class="echartsLayer" id="echartsLayer"></div> <div class="echartsLayer" id="echartsLayer"></div>
</div> </div>
</div> </div>
...@@ -170,7 +170,7 @@ import { ...@@ -170,7 +170,7 @@ import {
const options = reactive([]); const options = reactive([]);
const enterpriseId = ref(); const enterpriseId = ref();
const props = { multiple: true, emitPath: false }; const props = { multiple: true, emitPath: false };
const switchV = ref(false); const switchV = ref(true);
const echartF = ref(false); const echartF = ref(false);
const nodata = ref(false); const nodata = ref(false);
const tableData = reactive([]); const tableData = reactive([]);
...@@ -797,6 +797,7 @@ onMounted(() => { ...@@ -797,6 +797,7 @@ onMounted(() => {
setContentHeight(); setContentHeight();
switchV.value = true; switchV.value = true;
sendClick(); sendClick();
changeFun();
window.addEventListener("resize", function () { window.addEventListener("resize", function () {
location.reload(); location.reload();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment