|
@@ -1,98 +1,165 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <div class="c-left">
|
|
|
|
- <span class="box-title2">观测站概况</span>
|
|
|
|
- <div class="cl-b1">
|
|
|
|
- <p>{{ data_clb1.des }}</p>
|
|
|
|
- <ul class="l1-list">
|
|
|
|
- <li v-for="item in data_clb1.list" :key="item.title">
|
|
|
|
- <img :src="item.icon" alt="">
|
|
|
|
|
|
+ <div class="sub-header" v-if="subPageShow">
|
|
|
|
+ <div class="sh-back" @click="toggleSubPage(false)">
|
|
|
|
+ <img src="@/assets/imgs/deck/page_zhcj/btn-back.png" alt="">
|
|
|
|
+ <span class="text-28">返回</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="sh-title">{{ subPageData.title }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="c-left" :class="{'move-left': subPageShow}">
|
|
|
|
+ <template v-if="!subPageShow">
|
|
|
|
+ <span class="box-title2">观测站概况</span>
|
|
|
|
+ <div class="cl-b1">
|
|
|
|
+ <p>{{ data_clb1.des }}</p>
|
|
|
|
+ <ul class="l1-list">
|
|
|
|
+ <li v-for="item in data_clb1.list" :key="item.title">
|
|
|
|
+ <img :src="item.icon" alt="">
|
|
|
|
+ <div>
|
|
|
|
+ <span>{{ item.title }}</span>
|
|
|
|
+ <ul class="l1-c-list">
|
|
|
|
+ <li v-for="item2 in item.content" :key="item2.name">
|
|
|
|
+ <span class="text-28">{{ item2.name }}</span>
|
|
|
|
+ <div>
|
|
|
|
+ <span class="text-emp-36">{{ item2.value }}</span>
|
|
|
|
+ <span class="text-28">{{ item2.unit }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <span class="box-title2">观测指标概况</span>
|
|
|
|
+ <div class="cl-b2">
|
|
|
|
+ <span class="l2-subtitle">观测指标体系</span>
|
|
|
|
+ <div class="l2-p1">
|
|
|
|
+ <img src="@/assets/imgs/deck/page_zhcj/icon-gczb.png" alt="">
|
|
<div>
|
|
<div>
|
|
- <span>{{ item.title }}</span>
|
|
|
|
- <ul class="l1-c-list">
|
|
|
|
- <li v-for="item2 in item.content" :key="item2.name">
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <span>观测指标</span>
|
|
|
|
+ <span><span class="text-emp-36">{{ data_clb2.gczbtx.count }}</span><span class="text-28">项</span></span>
|
|
|
|
+ </div>
|
|
|
|
+ <ul>
|
|
|
|
+ <li v-for="item in data_clb2.gczbtx.items" :key="item" class="text-28">{{ item }}</li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <span class="l2-subtitle">数据采集方式</span>
|
|
|
|
+ <ul class="l2-p2">
|
|
|
|
+ <li v-for="item in data_clb2.sjcjfs" :key="item.cata">
|
|
|
|
+ <div><span>{{ item.cata }}</span></div>
|
|
|
|
+ <ul class="l2p2-rows">
|
|
|
|
+ <li v-for="(item2,index) in item.items" :key="item2.name">
|
|
|
|
+ <img v-if="index===0" src="@/assets/imgs/deck/page_zhcj/icon-sjcj-zb.png" alt="">
|
|
|
|
+ <img v-if="index===1" src="@/assets/imgs/deck/page_zhcj/icon-sjcj-sj.png" alt="">
|
|
|
|
+ <img v-if="index===2" src="@/assets/imgs/deck/page_zhcj/icon-sjcj-sb.png" alt="">
|
|
<span class="text-28">{{ item2.name }}</span>
|
|
<span class="text-28">{{ item2.name }}</span>
|
|
- <div>
|
|
|
|
- <span class="text-emp-36">{{ item2.value }}</span>
|
|
|
|
- <span class="text-28">{{ item2.unit }}</span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div><span class="text-emp-36">{{ item2.count }}</span><span class="text-28">{{ item2.unit }}</span></div>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <span class="box-title2">观测点概况</span>
|
|
|
|
+ <ul class="sl-b1 des-plain">
|
|
|
|
+ <li v-for="item in subPageData.gcdgk" :key="item.title">
|
|
|
|
+ <span>{{ item.title }}:</span>
|
|
|
|
+ <div>
|
|
|
|
+ <span :class="{'text-emp-36':item.unit}">{{ item.value }}</span>
|
|
|
|
+ <span v-if="item.unit">{{ item.unit }}</span>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
- </div>
|
|
|
|
- <span class="box-title2">观测指标概况</span>
|
|
|
|
- <div class="cl-b2">
|
|
|
|
- <span class="l2-subtitle">观测指标体系</span>
|
|
|
|
- <div class="l2-p1">
|
|
|
|
- <img src="@/assets/imgs/deck/page_zhcj/icon-gczb.png" alt="">
|
|
|
|
- <div>
|
|
|
|
|
|
+ <span class="box-title2">观测试验概况</span>
|
|
|
|
+ <ul class="sl-b2 des-plain">
|
|
|
|
+ <li v-for="item in subPageData.gcsygk" :key="item.title">
|
|
|
|
+ <span>{{ item.title }}:</span>
|
|
<div>
|
|
<div>
|
|
- <span>观测指标</span>
|
|
|
|
- <span><span class="text-emp-36">{{ data_clb2.gczbtx.count }}</span><span class="text-28">项</span></span>
|
|
|
|
|
|
+ <span :class="{'text-emp-36':item.unit}">{{ item.value }}</span>
|
|
|
|
+ <span v-if="item.unit">{{ item.unit }}</span>
|
|
</div>
|
|
</div>
|
|
- <ul>
|
|
|
|
- <li v-for="item in data_clb2.gczbtx.items" :key="item" class="text-28">{{ item }}</li>
|
|
|
|
- </ul>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <span class="l2-subtitle">数据采集方式</span>
|
|
|
|
- <ul class="l2-p2">
|
|
|
|
- <li v-for="item in data_clb2.sjcjfs" :key="item.cata">
|
|
|
|
- <div><span>{{ item.cata }}</span></div>
|
|
|
|
- <ul class="l2p2-rows">
|
|
|
|
- <li v-for="(item2,index) in item.items" :key="item2.name">
|
|
|
|
- <img v-if="index===0" src="@/assets/imgs/deck/page_zhcj/icon-sjcj-zb.png" alt="">
|
|
|
|
- <img v-if="index===1" src="@/assets/imgs/deck/page_zhcj/icon-sjcj-sj.png" alt="">
|
|
|
|
- <img v-if="index===2" src="@/assets/imgs/deck/page_zhcj/icon-sjcj-sb.png" alt="">
|
|
|
|
- <span class="text-28">{{ item2.name }}</span>
|
|
|
|
- <div><span class="text-emp-36">{{ item2.count }}</span><span class="text-28">{{ item2.unit }}</span></div>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
- </div>
|
|
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
<div class="c-right">
|
|
<div class="c-right">
|
|
- <span class="box-title2">三大技术模式</span>
|
|
|
|
- <div class="cr-b1">
|
|
|
|
- <el-table :data="tableData_crb1" class="table-default" height="20vh">
|
|
|
|
- <el-table-column label="技术模式" prop="techMode" min-width="160" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="试验面积(亩)" min-width="100" show-overflow-tooltip>
|
|
|
|
- <template #default="scope">
|
|
|
|
- <span :class="{'td-emphasis': scope.row.techMode==='合计'}">{{ scope.row.testArea }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="推广面积(亩)" min-width="100" show-overflow-tooltip>
|
|
|
|
- <template #default="scope">
|
|
|
|
- <span :class="{'td-emphasis': scope.row.techMode==='合计'}">{{ scope.row.promoteArea }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- </div>
|
|
|
|
- <span class="box-title2">观测站清单</span>
|
|
|
|
- <div class="cr-b2">
|
|
|
|
- <el-table :data="tableData_crb2" class="table-default" height="29vh">
|
|
|
|
- <el-table-column label="名称" prop="name" min-width="90" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="乡镇" prop="xz" min-width="90" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="地址" prop="address" min-width="160" show-overflow-tooltip/>
|
|
|
|
- </el-table>
|
|
|
|
- </div>
|
|
|
|
- <span class="box-title2">实时告警</span>
|
|
|
|
- <div class="cr-b3">
|
|
|
|
- <el-table :data="tableData_crb3" class="table-default" height="25vh">
|
|
|
|
- <el-table-column label="类型" min-width="90" show-overflow-tooltip>
|
|
|
|
- <template #default="scope">
|
|
|
|
- <span style="color: #00ff00;">【{{ scope.row.type }}】</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="内容" prop="content" min-width="140" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="时间" prop="time" min-width="120" show-overflow-tooltip/>
|
|
|
|
- </el-table>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <template v-if="!subPageShow">
|
|
|
|
+ <span class="box-title2">三大技术模式</span>
|
|
|
|
+ <div class="cr-b1">
|
|
|
|
+ <el-table :data="tableData_crb1" class="table-default" height="20vh">
|
|
|
|
+ <el-table-column label="技术模式" prop="techMode" min-width="160" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="试验面积(亩)" min-width="100" show-overflow-tooltip>
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <span :class="{'td-emphasis': scope.row.techMode==='合计'}">{{ scope.row.testArea }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="推广面积(亩)" min-width="100" show-overflow-tooltip>
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <span :class="{'td-emphasis': scope.row.techMode==='合计'}">{{ scope.row.promoteArea }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <span class="box-title2">观测站清单</span>
|
|
|
|
+ <div class="cr-b2">
|
|
|
|
+ <el-table :data="tableData_crb2" class="table-default" height="29vh" @row-click="handlePickGcz">
|
|
|
|
+ <el-table-column label="名称" prop="name" min-width="90" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="乡镇" prop="xz" min-width="90" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="地址" prop="address" min-width="160" show-overflow-tooltip/>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <span class="box-title2">实时告警</span>
|
|
|
|
+ <div class="cr-b3">
|
|
|
|
+ <el-table :data="tableData_crb3" class="table-default" height="25vh">
|
|
|
|
+ <el-table-column label="类型" min-width="90" show-overflow-tooltip>
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <span style="color: #00ff00;">【{{ scope.row.type }}】</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="内容" prop="content" min-width="140" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="时间" prop="time" min-width="120" show-overflow-tooltip/>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <span class="box-title2">物联网监测设备</span>
|
|
|
|
+ <div class="sr-b1">
|
|
|
|
+ <div id="chart-srb1"></div>
|
|
|
|
+ <i class="btn-left" @click="switchChartData('pre')"></i>
|
|
|
|
+ <i class="btn-right" @click="switchChartData('next')"></i>
|
|
|
|
+ </div>
|
|
|
|
+ <span class="box-title2">实验室检测</span>
|
|
|
|
+ <div class="sr-b2">
|
|
|
|
+ <el-table :data="subPageData.sysjc" class="table-default" height="28vh">
|
|
|
|
+ <el-table-column label="月份" prop="month" min-width="100" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="水质检测" min-width="100" show-overflow-tooltip>
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <span class="td-link" @click="handleCheckTest(scope.row.water)">查看</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="土壤检测" min-width="80" show-overflow-tooltip>
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <span class="td-link" @click="handleCheckTest(scope.row.mud)">查看</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <span class="box-title2">调查统计</span>
|
|
|
|
+ <ul class="sr-b3 des-plain">
|
|
|
|
+ <li v-for="item in subPageData.dctj" :key="item.title">
|
|
|
|
+ <span>{{ item.title }}:</span>
|
|
|
|
+ <div>
|
|
|
|
+ <span :class="{'text-emp-36':item.unit}">{{ item.value }}</span>
|
|
|
|
+ <span v-if="item.unit">{{ item.unit }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
- <div class="legend panel-default">
|
|
|
|
|
|
+ <div class="legend panel-default" v-show="!subPageShow">
|
|
<main>
|
|
<main>
|
|
<ul>
|
|
<ul>
|
|
<li class="all">
|
|
<li class="all">
|
|
@@ -107,13 +174,26 @@
|
|
</ul>
|
|
</ul>
|
|
</main>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
- <div class="btn-upload">
|
|
|
|
|
|
+ <div class="sub-legend panel-default" v-if="subPageShow">
|
|
|
|
+ <header><span>图例</span></header>
|
|
|
|
+ <main>
|
|
|
|
+ <ul>
|
|
|
|
+ <li v-for="item in subLegendData" :key="item.name">
|
|
|
|
+ <img v-if="item.icon" :src="item.icon" alt="">
|
|
|
|
+ <i v-else :style="'background:'+ item.bg+';borderColor:'+item.border+';'"></i>
|
|
|
|
+ <span class="text-28">{{ item.name }}</span>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </main>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="btn-upload" v-show="!subPageShow">
|
|
<i :class="{'on': uploadIsOn}" @click="handleUpload"></i>
|
|
<i :class="{'on': uploadIsOn}" @click="handleUpload"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { setTzl } from '@/echarts/options'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'ZhcjZhgc',
|
|
name: 'ZhcjZhgc',
|
|
@@ -166,7 +246,59 @@ export default {
|
|
{ name: '蔬菜', icon: require('@/assets/imgs/deck/page_zhcj/legend-zhgc-scai.png'), isOn: false },
|
|
{ name: '蔬菜', icon: require('@/assets/imgs/deck/page_zhcj/legend-zhgc-scai.png'), isOn: false },
|
|
]
|
|
]
|
|
},
|
|
},
|
|
- uploadIsOn: false
|
|
|
|
|
|
+ uploadIsOn: false,
|
|
|
|
+ subPageShow: false,
|
|
|
|
+ subLegendData: [
|
|
|
|
+ { name: '实验室检测点', icon: require('@/assets/imgs/deck/page_zhcj/legend-gcd-green.png') },
|
|
|
|
+ { name: '物联感知设备点', icon: require('@/assets/imgs/deck/page_zhcj/legend-gcd-blue.png') },
|
|
|
|
+ { name: '核心区域', bg: 'rgba(0,255,0,0.2)', border: 'rgba(0,255,0,0.8)' },
|
|
|
|
+ { name: '示范区域', bg: 'rgba(255,255,0,0.2)', border: 'rgba(255,255,0,0.8)' },
|
|
|
|
+ ],
|
|
|
|
+ subPageData: {
|
|
|
|
+ title: '',
|
|
|
|
+ gcdgk: [
|
|
|
|
+ { title: '点位名称', value: 'XXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '点位类型', value: 'XXXX' },
|
|
|
|
+ { title: '点位面积', value: 'XXX', unit: '亩' },
|
|
|
|
+ { title: '认证情况', value: 'XXXX' },
|
|
|
|
+ { title: '观测单位', value: 'XXXXXXXXXXXX' },
|
|
|
|
+ { title: '关键技术', value: '1.XXXXXXXXXX\n2.XXXXXXXXXXX' },
|
|
|
|
+ { title: '监测指标', value: 'XXXXX、XXXX、XXXX、XXXXXX、XXXXXXXXX、XXXXX' },
|
|
|
|
+ { title: '负责人', value: 'XXX' },
|
|
|
|
+ { title: '联系电话', value: 'XXXXXXXXXX' },
|
|
|
|
+ ],
|
|
|
|
+ gcsygk: [
|
|
|
|
+ { title: '观测试验名称', value: 'XXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '核心区面积', value: 'XXX', unit: '亩' },
|
|
|
|
+ { title: '示范区面积', value: 'XXX', unit: '亩' },
|
|
|
|
+ { title: '试验目的', value: 'XXXXXXXXXXXXXXXXXXXXX\nXXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '试验内容', value: 'XXXXXXXXXXXXXXXXXXXXX\nXXXXXXXXXXXXXXXXXXXXX\nXXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ ],
|
|
|
|
+ dctj: [
|
|
|
|
+ { title: '作物类型', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '作物品种', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '长势', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '灾情', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '病害', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '虫害', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '养殖类型', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '养殖规模', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '养殖品种', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ { title: '生物用药', value: 'XXXXXXXXXXXXXXXXXXXXX' },
|
|
|
|
+ ],
|
|
|
|
+ sysjc: [],
|
|
|
|
+ chartData: [],
|
|
|
|
+ chartCurrent: 0
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ watch: {
|
|
|
|
+ 'subPageData.chartCurrent': {
|
|
|
|
+ handler(val) {
|
|
|
|
+ if(this.subPageData.chartData.length>0) {
|
|
|
|
+ setTzl(document.getElementById('chart-srb1'), this.subPageData.chartData[val], '单位:mg/L')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -222,10 +354,65 @@ export default {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.uploadIsOn = false
|
|
this.uploadIsOn = false
|
|
}, 200);
|
|
}, 200);
|
|
|
|
+ },
|
|
|
|
+ handlePickGcz(row) {
|
|
|
|
+ this.toggleSubPage(true)
|
|
|
|
+ this.getSubData(row.name)
|
|
|
|
+ },
|
|
|
|
+ getSubData(name) { // 获取观测站子页面数据
|
|
|
|
+ this.subPageData.title = name
|
|
|
|
+ let sysjcArr= []
|
|
|
|
+ for(let i=1; i<15; i++) {
|
|
|
|
+ sysjcArr.push({ month: '2023.3', water: '', mud: ''})
|
|
|
|
+ }
|
|
|
|
+ this.subPageData.sysjc = sysjcArr
|
|
|
|
+ let chartArr = []
|
|
|
|
+ for(let i=1; i<5; i++) {
|
|
|
|
+ chartArr.push([
|
|
|
|
+ { time: '23-01', 'PH': 500 + Math.random()*3000, '电导率': 500 + Math.random()*3000, '浊度': 500 + Math.random()*3000, '溶解氧': 500 + Math.random()*3000 },
|
|
|
|
+ { time: '23-02', 'PH': 500 + Math.random()*3000, '电导率': 500 + Math.random()*3000, '浊度': 500 + Math.random()*3000, '溶解氧': 500 + Math.random()*3000 },
|
|
|
|
+ { time: '23-03', 'PH': 500 + Math.random()*3000, '电导率': 500 + Math.random()*3000, '浊度': 500 + Math.random()*3000, '溶解氧': 500 + Math.random()*3000 },
|
|
|
|
+ { time: '23-04', 'PH': 500 + Math.random()*3000, '电导率': 500 + Math.random()*3000, '浊度': 500 + Math.random()*3000, '溶解氧': 500 + Math.random()*3000 },
|
|
|
|
+ { time: '23-05', 'PH': 500 + Math.random()*3000, '电导率': 500 + Math.random()*3000, '浊度': 500 + Math.random()*3000, '溶解氧': 500 + Math.random()*3000 },
|
|
|
|
+ { time: '23-06', 'PH': 500 + Math.random()*3000, '电导率': 500 + Math.random()*3000, '浊度': 500 + Math.random()*3000, '溶解氧': 500 + Math.random()*3000 },
|
|
|
|
+ ])
|
|
|
|
+ }
|
|
|
|
+ this.subPageData.chartData = chartArr
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ setTzl(document.getElementById('chart-srb1'), this.subPageData.chartData[0], '单位:mg/L')
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ toggleSubPage(subShow) { //切换观测站子页面显示
|
|
|
|
+ this.$emit('toggleMenuShow', !subShow)
|
|
|
|
+ this.$store.commit('changeToolsShow', !subShow)
|
|
|
|
+ this.$store.commit('changeBaseMapShow', !subShow)
|
|
|
|
+ this.$store.commit('changeHeaderShow', !subShow)
|
|
|
|
+ this.subPageShow = subShow
|
|
|
|
+ },
|
|
|
|
+ handleCheckTest(url) {
|
|
|
|
+ console.log(url)
|
|
|
|
+ },
|
|
|
|
+ switchChartData(type) {
|
|
|
|
+ let len = this.subPageData.chartData.length
|
|
|
|
+ let current = this.subPageData.chartCurrent
|
|
|
|
+ if(type==='pre') {
|
|
|
|
+ if(current>0) {
|
|
|
|
+ current--
|
|
|
|
+ }else {
|
|
|
|
+ current = len-1
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ if(current<len-1) {
|
|
|
|
+ current++
|
|
|
|
+ }else {
|
|
|
|
+ current = 0
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.subPageData.chartCurrent = current
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- watch: {
|
|
|
|
-
|
|
|
|
|
|
+ beforeDestroy() {
|
|
|
|
+ this.toggleSubPage(false)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -233,6 +420,9 @@ export default {
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.c-left {
|
|
.c-left {
|
|
left: 260px;
|
|
left: 260px;
|
|
|
|
+ &.move-left {
|
|
|
|
+ left: 30px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
.cl-b1 {
|
|
.cl-b1 {
|
|
@@ -448,4 +638,149 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.sub-header {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 189px;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ padding-bottom: 30px;
|
|
|
|
+ background: url('@/assets/imgs/deck/bg-header.png') no-repeat;
|
|
|
|
+ background-size: cover;
|
|
|
|
+ background-position: 50%;
|
|
|
|
+
|
|
|
|
+ .sh-back {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ img {
|
|
|
|
+ width: 45px;
|
|
|
|
+ height: 45px;
|
|
|
|
+ margin-right: 8px;
|
|
|
|
+ }
|
|
|
|
+ float: left;
|
|
|
|
+ margin: 60px 0 0 70px;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .sh-title {
|
|
|
|
+ width: fit-content;
|
|
|
|
+ margin: 30px auto 0;
|
|
|
|
+ font-size: 80px;
|
|
|
|
+ font-family: YSBTH;
|
|
|
|
+ color: #fff;
|
|
|
|
+ text-shadow: 2px 3px 0px rgba(17,20,22,0.22);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.des-plain {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ li {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: flex-start;
|
|
|
|
+ line-height: 56px;
|
|
|
|
+ &>span {
|
|
|
|
+ display: block;
|
|
|
|
+ width: 180px;
|
|
|
|
+ font-size: 28px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: rgba(255,255,255,0.6);
|
|
|
|
+ text-align: justify;
|
|
|
|
+ text-align-last: justify;
|
|
|
|
+ text-justify:distribute-all-lines;
|
|
|
|
+ }
|
|
|
|
+ &>div {
|
|
|
|
+ flex: 1;
|
|
|
|
+ width: 0;
|
|
|
|
+ padding-left: 20px;
|
|
|
|
+ span:not(.text-emp-36) {
|
|
|
|
+ font-size: 28px;
|
|
|
|
+ color: #fff;
|
|
|
|
+ white-space: pre-wrap;
|
|
|
|
+ }
|
|
|
|
+ .text-emp-36 {
|
|
|
|
+ margin-right: 5px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.sl-b1 {
|
|
|
|
+ height: 40vh;
|
|
|
|
+ margin-bottom: 4vh;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.sl-b2 {
|
|
|
|
+ height: 30vh;
|
|
|
|
+ margin-bottom: 3vh;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.sr-b1 {
|
|
|
|
+ position: relative;
|
|
|
|
+ #chart-srb1 {
|
|
|
|
+ width: calc(100% - 70px);
|
|
|
|
+ margin: 0 auto;
|
|
|
|
+ height: 19vh;
|
|
|
|
+ }
|
|
|
|
+ .btn-left {
|
|
|
|
+ left: 0;
|
|
|
|
+ background: url('@/assets/imgs/deck/page_zhcj/arrow-left.png');
|
|
|
|
+ }
|
|
|
|
+ .btn-right {
|
|
|
|
+ right: 0;
|
|
|
|
+ background: url('@/assets/imgs/deck/page_zhcj/arrow-right.png');
|
|
|
|
+ }
|
|
|
|
+ .btn-left, .btn-right {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: calc(50% - 16px);
|
|
|
|
+ display: block;
|
|
|
|
+ width: 32px;
|
|
|
|
+ height: 32px;
|
|
|
|
+ background-size: cover;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.sr-b2 {
|
|
|
|
+ .td-link {
|
|
|
|
+ display: block;
|
|
|
|
+ font-size: 28px;
|
|
|
|
+ text-decoration: underline;
|
|
|
|
+ height: 32px;
|
|
|
|
+ color: #00FFD5;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.sr-b3 {
|
|
|
|
+ height: 28vh;
|
|
|
|
+ &>li>span {
|
|
|
|
+ width: 150px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.sub-legend {
|
|
|
|
+ width: 360px;
|
|
|
|
+ height: 430px;
|
|
|
|
+ left: 870px;
|
|
|
|
+ bottom: calc(-100vh + 30px);
|
|
|
|
+ li {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-bottom: 40px;
|
|
|
|
+ img {
|
|
|
|
+ width: 40px;
|
|
|
|
+ height: 40px;
|
|
|
|
+ margin-right: 15px;
|
|
|
|
+ }
|
|
|
|
+ i {
|
|
|
|
+ width: 32px;
|
|
|
|
+ height: 32px;
|
|
|
|
+ margin: 0 19px 0 4px;
|
|
|
|
+ border: 1px dotted;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|