Compare commits
No commits in common. "38708e33ac7e16b6aa42de90b8d7bff4f6b6990d" and "2fb16cfb24ac37b0f2ccde7cd6c32c3657f5c7ef" have entirely different histories.
38708e33ac
...
2fb16cfb24
|
|
@ -1,60 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="data">
|
|
||||||
<span
|
|
||||||
v-for="item in list"
|
|
||||||
:class="value == item ? 'active' : ''"
|
|
||||||
@click="selectTab(item)"
|
|
||||||
>{{ item }}</span
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
props: ["list", "defaultValue"],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
value: "",
|
|
||||||
};
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.value = this.defaultValue;
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
selectTab(item) {
|
|
||||||
this.value = item;
|
|
||||||
this.$emit("input", item);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style scoped lang="less">
|
|
||||||
.data {
|
|
||||||
position: absolute;
|
|
||||||
font-size: 20px;
|
|
||||||
font-family: "DOUYU";
|
|
||||||
color: #ffffff;
|
|
||||||
line-height: 18px;
|
|
||||||
display: flex;
|
|
||||||
right: 0;
|
|
||||||
top: 120px;
|
|
||||||
z-index: 1;
|
|
||||||
|
|
||||||
span {
|
|
||||||
width: 122px;
|
|
||||||
height: 38px;
|
|
||||||
margin: 10px;
|
|
||||||
display: block;
|
|
||||||
line-height: 38px;
|
|
||||||
text-align: center;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.active {
|
|
||||||
background: linear-gradient(
|
|
||||||
to right,
|
|
||||||
rgba(33, 76, 124, 0.3) 20%,
|
|
||||||
rgba(152, 207, 230, 0.3) 100%,
|
|
||||||
rgba(33, 76, 124, 0.3) 20%
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -63,8 +63,17 @@
|
||||||
<img src="../../assets/img/小标题栏.png" class="img" />
|
<img src="../../assets/img/小标题栏.png" class="img" />
|
||||||
<p>全厂实时电荷</p>
|
<p>全厂实时电荷</p>
|
||||||
</div>
|
</div>
|
||||||
<tab :list="arr" :defaultValue="res" v-model="selectValue"></tab>
|
<div class="data">
|
||||||
|
<span :class="res == '年' ? 'active' : ''" @click="res = '年'"
|
||||||
|
>年</span
|
||||||
|
>
|
||||||
|
<span :class="res == '月' ? 'active' : ''" @click="res = '月'"
|
||||||
|
>月</span
|
||||||
|
>
|
||||||
|
<span :class="res == '日' ? 'active' : ''" @click="res = '日'"
|
||||||
|
>日</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
<div id="qcssdh"></div>
|
<div id="qcssdh"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="qcydl">
|
<div class="qcydl">
|
||||||
|
|
@ -165,15 +174,12 @@
|
||||||
import { RouterView } from "vue-router";
|
import { RouterView } from "vue-router";
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
import tpt from "../../components/tpt.vue";
|
import tpt from "../../components/tpt.vue";
|
||||||
import tab from "../../components/tab.vue";
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
res: "月",
|
res: "月",
|
||||||
arr: ["年", "月", "日"],
|
|
||||||
click1: "",
|
click1: "",
|
||||||
click2: "",
|
click2: "",
|
||||||
selectValue: "月",
|
|
||||||
flag: false,
|
flag: false,
|
||||||
option1: {
|
option1: {
|
||||||
xAxis: {
|
xAxis: {
|
||||||
|
|
@ -685,7 +691,7 @@ export default {
|
||||||
this.defineEcharts("ljfdl", this.option3);
|
this.defineEcharts("ljfdl", this.option3);
|
||||||
},
|
},
|
||||||
|
|
||||||
components: { RouterView, tpt, tab },
|
components: { RouterView, tpt },
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
@ -790,6 +796,36 @@ export default {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 56px;
|
margin-top: 56px;
|
||||||
|
|
||||||
|
.data {
|
||||||
|
position: absolute;
|
||||||
|
font-size: 20px;
|
||||||
|
font-family: "DOUYU";
|
||||||
|
color: #ffffff;
|
||||||
|
line-height: 18px;
|
||||||
|
display: flex;
|
||||||
|
right: 0;
|
||||||
|
top: 120px;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
span {
|
||||||
|
width: 122px;
|
||||||
|
height: 38px;
|
||||||
|
margin: 10px;
|
||||||
|
display: block;
|
||||||
|
line-height: 38px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background: linear-gradient(
|
||||||
|
to right,
|
||||||
|
rgba(33, 76, 124, 0.3) 20%,
|
||||||
|
rgba(152, 207, 230, 0.3) 100%,
|
||||||
|
rgba(33, 76, 124, 0.3) 20%
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.imgBox {
|
.imgBox {
|
||||||
height: 93px;
|
height: 93px;
|
||||||
width: 1156px;
|
width: 1156px;
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
<el-table-column prop="date2" label="出水压力" align="center"
|
<el-table-column prop="date2" label="出水压力" align="center"
|
||||||
><template slot-scope="scope">
|
><template slot-scope="scope">
|
||||||
<span style="color: #58ff70"> {{ scope.row.date2 }}</span
|
<span style="color: #58ff70"> {{ scope.row.date2 }}</span
|
||||||
><span>Mpa</span>
|
><span>MP</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="date3" label="瞬间流量" align="center"
|
<el-table-column prop="date3" label="瞬间流量" align="center"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue