|
@@ -92,43 +92,64 @@
|
|
<div
|
|
<div
|
|
style="display: flex; flex-wrap: wrap; justify-content: space-around"
|
|
style="display: flex; flex-wrap: wrap; justify-content: space-around"
|
|
>
|
|
>
|
|
- <div class="card" >
|
|
|
|
|
|
+ <div class="card">
|
|
<div class="left-card">
|
|
<div class="left-card">
|
|
<div class="card-item">重大风险</div>
|
|
<div class="card-item">重大风险</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right-card" @click="showStice('重大风险')">{{ showValue("重大风险") }}</div>
|
|
|
|
|
|
+ <div class="right-card" @click="showStice('重大风险')">
|
|
|
|
+ {{ showValue("重大风险") }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card">
|
|
<div class="left-card" style="background: #ff833d">
|
|
<div class="left-card" style="background: #ff833d">
|
|
<div class="card-item">较大风险</div>
|
|
<div class="card-item">较大风险</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right-card" @click="showStice('较大风险')">{{ showValue("较大风险") }}</div>
|
|
|
|
|
|
+ <div class="right-card" @click="showStice('较大风险')">
|
|
|
|
+ {{ showValue("较大风险") }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card">
|
|
<div class="left-card" style="background: #fbff3d">
|
|
<div class="left-card" style="background: #fbff3d">
|
|
<div class="card-item">一般风险</div>
|
|
<div class="card-item">一般风险</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right-card" @click="showStice('一般风险')">{{ showValue("一般风险") }}</div>
|
|
|
|
|
|
+ <div class="right-card" @click="showStice('一般风险')">
|
|
|
|
+ {{ showValue("一般风险") }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card">
|
|
<div class="left-card" style="background: #35c2ff">
|
|
<div class="left-card" style="background: #35c2ff">
|
|
<div class="card-item">低风险</div>
|
|
<div class="card-item">低风险</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right-card" @click="showStice('低风险(蓝色)')">{{ showValue("低风险") }}</div>
|
|
|
|
|
|
+ <div class="right-card" @click="showStice('低风险(蓝色)')">
|
|
|
|
+ {{ showValue("低风险") }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 预测 -->
|
|
<!-- 预测 -->
|
|
- <div style="width: 434px; height: 340px; margin-left: 2px; text-align: right;" v-show="idx==2">
|
|
|
|
- <span >单位:起</span>
|
|
|
|
- <div ref="chart" style="width: 434px; height: 150px" />
|
|
|
|
- <div style="display: flex; align-items: center; font-size: 16px; margin-left: 5px;">
|
|
|
|
- <div class="time-on">近期防火重点预测</div>
|
|
|
|
- <div>用电用气</div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ style="width: 434px; height: 340px; margin-left: 2px; text-align: right"
|
|
|
|
+ v-show="idx == 2"
|
|
|
|
+ >
|
|
|
|
+ <span>单位:起</span>
|
|
|
|
+ <div ref="chart" style="width: 424px; height: 150px" />
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ margin-left: 5px;
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ <div class="time-on">近期防火重点预测</div>
|
|
|
|
+ <div class="qhyy">
|
|
|
|
+ <span style="margin-left: 5px;" v-for="(item,index) in typeList" :key="index">{{ item.qhyy }}</span>
|
|
|
|
+ <!-- <span style="margin-left: 2px; margin-right: -6px;">、</span> -->
|
|
|
|
+ <!-- <span>{{ typeList[1].qhyy }}</span> -->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- 近期防火重点预测 -->
|
|
<!-- 近期防火重点预测 -->
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -140,6 +161,7 @@ export default {
|
|
riskList: Array,
|
|
riskList: Array,
|
|
qy: String,
|
|
qy: String,
|
|
monthData: Array,
|
|
monthData: Array,
|
|
|
|
+ typeList: Array,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -158,7 +180,6 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
monthData: {
|
|
monthData: {
|
|
handler(val) {
|
|
handler(val) {
|
|
- // console.log("-----------3333", val);
|
|
|
|
this.chart = null;
|
|
this.chart = null;
|
|
if (val.length > 0) {
|
|
if (val.length > 0) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -184,11 +205,11 @@ export default {
|
|
const option = {
|
|
const option = {
|
|
backgroundColor: "#11183c",
|
|
backgroundColor: "#11183c",
|
|
grid: {
|
|
grid: {
|
|
- left: "1%",
|
|
|
|
- right: "3%",
|
|
|
|
|
|
+ left: "10%",
|
|
|
|
+ right: "1%",
|
|
top: "10%",
|
|
top: "10%",
|
|
bottom: "15%",
|
|
bottom: "15%",
|
|
- containLabel: true,
|
|
|
|
|
|
+ // containLabel: true,
|
|
},
|
|
},
|
|
tooltip: {
|
|
tooltip: {
|
|
show: true,
|
|
show: true,
|
|
@@ -198,7 +219,7 @@ export default {
|
|
extraCssText: "z-index: 1000;",
|
|
extraCssText: "z-index: 1000;",
|
|
backgroundColor: "#02809a",
|
|
backgroundColor: "#02809a",
|
|
borderColor: "rgba(0,213,255, .6)",
|
|
borderColor: "rgba(0,213,255, .6)",
|
|
- formatter: '{b}: {c}',
|
|
|
|
|
|
+ formatter: "{b}: {c}",
|
|
textStyle: {
|
|
textStyle: {
|
|
color: "#fff",
|
|
color: "#fff",
|
|
},
|
|
},
|
|
@@ -222,6 +243,7 @@ export default {
|
|
axisLabel: {
|
|
axisLabel: {
|
|
color: fontColor,
|
|
color: fontColor,
|
|
interval: 1,
|
|
interval: 1,
|
|
|
|
+ // showMaxLabel: true
|
|
},
|
|
},
|
|
axisLine: {
|
|
axisLine: {
|
|
show: true,
|
|
show: true,
|
|
@@ -238,8 +260,10 @@ export default {
|
|
color: "#195384",
|
|
color: "#195384",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ // data:[srcData[0].y,srcData[3].y,srcData[6].y,srcData[11].y]
|
|
data: srcData.map((item) => {
|
|
data: srcData.map((item) => {
|
|
// return `${item.y.substring(5,7)}月`;
|
|
// return `${item.y.substring(5,7)}月`;
|
|
|
|
+
|
|
return item.y;
|
|
return item.y;
|
|
}),
|
|
}),
|
|
},
|
|
},
|
|
@@ -298,14 +322,39 @@ export default {
|
|
// data: srcData.slice(0, -1).map((item) => {
|
|
// data: srcData.slice(0, -1).map((item) => {
|
|
// return item.hzqs;
|
|
// return item.hzqs;
|
|
// }),
|
|
// }),
|
|
- data:[srcData[0].hzqs,srcData[1].hzqs,srcData[2].hzqs,srcData[3].hzqs,srcData[4].hzqs,srcData[5].hzqs,srcData[6].hzqs,srcData[7].hzqs,srcData[8].hzqs,srcData[9].hzqs,srcData[10].hzqs]
|
|
|
|
|
|
+ data: [
|
|
|
|
+ srcData[0].hzqs,
|
|
|
|
+ srcData[1].hzqs,
|
|
|
|
+ srcData[2].hzqs,
|
|
|
|
+ srcData[3].hzqs,
|
|
|
|
+ srcData[4].hzqs,
|
|
|
|
+ srcData[5].hzqs,
|
|
|
|
+ srcData[6].hzqs,
|
|
|
|
+ srcData[7].hzqs,
|
|
|
|
+ srcData[8].hzqs,
|
|
|
|
+ srcData[9].hzqs,
|
|
|
|
+ srcData[10].hzqs,
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
type: "line",
|
|
type: "line",
|
|
// data: srcData.map((item) => {
|
|
// data: srcData.map((item) => {
|
|
// return item.hzqs;
|
|
// return item.hzqs;
|
|
// }),
|
|
// }),
|
|
- data:[null,null,null,null,null,null,null,null,null,null,srcData[10].hzqs,srcData[11].hzqs],
|
|
|
|
|
|
+ data: [
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ null,
|
|
|
|
+ srcData[10].hzqs,
|
|
|
|
+ srcData[11].hzqs,
|
|
|
|
+ ],
|
|
lineStyle: {
|
|
lineStyle: {
|
|
normal: {
|
|
normal: {
|
|
type: "dotted",
|
|
type: "dotted",
|
|
@@ -372,6 +421,7 @@ export default {
|
|
width: 120px;
|
|
width: 120px;
|
|
height: 27px;
|
|
height: 27px;
|
|
margin: 9px 12px;
|
|
margin: 9px 12px;
|
|
|
|
+ color: rgb(93, 169, 231);
|
|
// background: #ccc;
|
|
// background: #ccc;
|
|
// transform: perspective(0.5em) rotateX(5deg);
|
|
// transform: perspective(0.5em) rotateX(5deg);
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
@@ -379,12 +429,12 @@ export default {
|
|
line-height: 27px;
|
|
line-height: 27px;
|
|
// color: black;
|
|
// color: black;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
- box-sizing: border-box;
|
|
|
|
- background: linear-gradient(360deg, #0094ff90 0%, #0094ff10 100%);
|
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ background: linear-gradient(360deg, #0094ff90 0%, #0094ff10 100%);
|
|
}
|
|
}
|
|
.active {
|
|
.active {
|
|
// background: rgb(93, 169, 231);
|
|
// background: rgb(93, 169, 231);
|
|
- color: rgb(93, 169, 231);
|
|
|
|
|
|
+ color: #fff;
|
|
}
|
|
}
|
|
.card {
|
|
.card {
|
|
width: 200px;
|
|
width: 200px;
|
|
@@ -416,13 +466,24 @@ export default {
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.time-on{
|
|
|
|
|
|
+.time-on {
|
|
width: 120px;
|
|
width: 120px;
|
|
height: 40px;
|
|
height: 40px;
|
|
- border: 1px solid rgb(93, 169, 231);
|
|
|
|
|
|
+ border: 1px solid rgb(10, 98, 171);
|
|
|
|
+ background: rgb(23, 114, 225);
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
line-height: 40px;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
text-align: center;
|
|
margin-right: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
+.qhyy{
|
|
|
|
+ width: 290px;
|
|
|
|
+ height: 40px;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ text-align: left;
|
|
|
|
+ padding: 0 10px;
|
|
|
|
+ background: #fff;
|
|
|
|
+ color: #000;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|