+
-
站点基本信息
+
-
-
{{ val }}
-
{{ detailVal[keys] }}
-
{{ detailVal[keys] == 0 ? '在线' : '离线' }}
-
+
+
+
经度:
+
{{ datas.LTTD }}
+
+
+
纬度:
+
{{ datas.LGTD }}
+
+
+
+
+
+
测站编号:
+
{{ datas.STCD }}
+
+
+
+
+
+
汛前控制水位(米):
+
{{ datas.KZR }}
+
+
+
常规水位(米):
+
{{ datas.CZR }}
+
+
+
+
+
最高控制水位(米):
+
{{ datas.GZR }}
+
+
-
@@ -29,97 +68,38 @@
export default {
name: 'shuiweiModals',
props: {
- YWstationCode: String,
+ valueModalhp: Object,
},
setup(props) {
const allData = reactive({
yinziValue: 'q',
- yinziOption: [
- { value: 'q', label: '瞬时流量(m³/s)' },
- { value: 'va', label: '流速(m/s)' },
- { value: 'z', label: '液位(m)' },
+ datas: [],
+ columnsJ: [
+ {
+ title: '序号',
+ key: 'key',
+ render: (_, index) => {
+ return `${index + 1}`;
+ },
+ },
+ {
+ title: '监测时间',
+ key: 'TM',
+ render(row) {
+ return row.TM || '--';
+ },
+ },
+ {
+ title: '实时水位(米)',
+ key: 'RZ',
+ width: '160',
+ render(row) {
+ return row.RZ || '--';
+ },
+ },
],
- dateRange: null,
- detailName: {
- lon: '经度',
- lat: '纬度',
- stName: '站点名称',
- stCode: '站点编码',
- stationType: '站点类型',
- area: '河道名称',
- createTime: '安装时间',
- },
+ tableDataJ: [],
detailVal: {},
- liuliangOption: {
- color: ['rgb(14,192,148)', 'rgb(1,153,217)', 'rgb(240,85,33)'],
- legend: {
- show: false,
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow',
- },
- },
- dataZoom: [
- {
- type: 'inside', // 内置在坐标系中
- xAxisIndex: 0,
- yAxisIndex: [0, 1],
- start: 0, // 数据窗口范围的起始百分比。范围是:0 ~ 100。表示 0% ~ 100%。
- end: 100, // 数据窗口范围的结束百分比。范围是:0 ~ 100。
- zoomLock: true, // 是否锁定选择区域(或叫做数据窗口)的大小。
- },
- ],
- grid: {
- top: '8%',
- left: '3%',
- right: '3%',
- bottom: '2%',
- containLabel: true,
- },
- xAxis: {
- data: ['0:00', '3:00', '6:00', '9:00', '12:00', '15:00', '18:00', '21:00', '23:00'],
- axisTick: {
- show: false,
- },
- axisPointer: {
- type: 'shadow',
- },
- splitLine: {
- show: true,
- lineStyle: {
- color: 'rgba(25,76,90,0.8)',
- },
- },
- },
- yAxis: {
- min: 0,
- axisTick: {
- show: false,
- },
- axisLabel: {
- show: true,
- color: 'rgb(41,111,121)',
- },
- splitLine: {
- show: false,
- },
- },
- series: [
- {
- name: '监测值',
- type: 'line',
- data: [28, 15, 15, 27, 18, 30, 20, 20, 19, 18, 14],
- tooltip: {
- valueFormatter: (value) => value,
- },
- itemStyle: {
- borderRadius: [0, 0, 10, 10],
- },
- },
- ],
- },
});
//分页
const paginationReactive = reactive({
@@ -150,47 +130,23 @@
echartHxhsw.clear();
echartHxhsw.setOption(allData.liuliangOption);
};
- // 流量监测二级
- const checkLljc = async () => {
- let params = {
- stationCode: props.YWstationCode,
- };
- let res = await lyInfoSwlljcData(params);
- if (res && res.code == 1) {
- let datas = res.data;
- allData.liuliangOption.xAxis.data = datas.tt;
- if (allData.yinziValue == 'va') {
- allData.liuliangOption.series[0].data = datas.q;
- allData.liuliangOption.series[0].name = '流速(m/s)';
- } else if (allData.yinziValue == 'q') {
- allData.liuliangOption.series[0].data = datas.q;
- allData.liuliangOption.series[0].name = '瞬时流量(m³/s)';
- } else if (allData.yinziValue == 'z') {
- allData.liuliangOption.series[0].data = datas.z;
- allData.liuliangOption.series[0].name = '液位(m)';
- }
- }
- echartCount();
- };
+
// 加载基本信息数据
const getBaseData = async () => {
let params = {
- stCode: props.YWstationCode,
+ stCode: props.valueModalhp.STCD,
+ datatime: '2024-07-10',
};
- let res = await lyInfoStationDetail(params);
- if (res && res.code == 1) {
- let datas = res.data;
- allData.detailVal = datas;
+ let res = await lakelistdata(params);
+ if (res) {
+ debugger;
+ allData.tableDataJ = res.result;
+ console.log(allData.tableDataJ, 'res');
}
};
- const getWaterLoging = async () => {
- console.log('000000');
- let res = await lakelistdata({ currentPage: 1, pageSize: 99, searchFilters: [], stcd: '0261610960', datatime: '2023-12-15' });
- console.log(res, 9999999);
- };
onMounted(() => {
- console.log('11111');
- getWaterLoging(); //获取湖泊列表
+ allData.datas = props.valueModalhp;
+ getBaseData();
});
onBeforeUnmount(() => {
if (!!echartHxhsw) echartHxhsw.dispose();
@@ -199,13 +155,12 @@
...toRefs(allData),
pagination: paginationReactive,
getBaseData,
- checkLljc,
};
},
};
-