|
@@ -106,9 +106,9 @@
|
|
|
<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="baseName" 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-column label="地址" prop="dz" min-width="160" show-overflow-tooltip/>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<span class="box-title2">实时告警</span>
|
|
@@ -134,15 +134,15 @@
|
|
|
<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="月份" prop="time" 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>
|
|
|
+ <span class="td-link" @click="handleCheckTest(scope.row.szBgURl)">查看</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>
|
|
|
+ <span class="td-link" @click="handleCheckTest(scope.row.trBgURl)">查看</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -194,7 +194,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { setTzl } from '@/echarts/options'
|
|
|
-
|
|
|
+import { GetGczList,GetSysReport } from '@/services/znfx'
|
|
|
export default {
|
|
|
name: 'ZhcjZhgc',
|
|
|
data() {
|
|
@@ -326,11 +326,10 @@ export default {
|
|
|
this.tableData_crb1 = resArr
|
|
|
},
|
|
|
getTableCrb2() {
|
|
|
- let resArr = []
|
|
|
- for(let i=1; i<10; i++) {
|
|
|
- resArr.push({name: '宝岛基地'+i, xz: 'XXX镇', address: 'XXXXXXXXXXXXXXXX'})
|
|
|
- }
|
|
|
- this.tableData_crb2 = resArr
|
|
|
+ GetGczList().then(res => {
|
|
|
+ console.log(res.data)
|
|
|
+ this.tableData_crb2 = res.data
|
|
|
+ })
|
|
|
},
|
|
|
getTableCrb3() {
|
|
|
this.tableData_crb3 = [
|
|
@@ -357,15 +356,14 @@ export default {
|
|
|
},
|
|
|
handlePickGcz(row) {
|
|
|
this.toggleSubPage(true)
|
|
|
- this.getSubData(row.name)
|
|
|
+ this.getSubData(row.baseName)
|
|
|
},
|
|
|
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
|
|
|
+ GetSysReport(name).then(res => {
|
|
|
+ console.log(res.data)
|
|
|
+ this.subPageData.sysjc = res.data
|
|
|
+ })
|
|
|
let chartArr = []
|
|
|
for(let i=1; i<5; i++) {
|
|
|
chartArr.push([
|
|
@@ -390,7 +388,7 @@ export default {
|
|
|
this.subPageShow = subShow
|
|
|
},
|
|
|
handleCheckTest(url) {
|
|
|
- console.log(url)
|
|
|
+ window.open(url)
|
|
|
},
|
|
|
switchChartData(type) {
|
|
|
let len = this.subPageData.chartData.length
|
|
@@ -552,7 +550,7 @@ export default {
|
|
|
color: #fff;
|
|
|
writing-mode: vertical-rl;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
.l2p2-rows {
|
|
@@ -783,4 +781,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|