diff --git a/manifest.json b/manifest.json index e139baf..e42ed1b 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name" : "赤壁水利", "appid" : "__UNI__1AC9CFD", "description" : "", - "versionName" : "1.0.0", + "versionName" : "1.0.2", "versionCode" : 1, "transformPx" : false, "app-plus" : { diff --git a/pages.json b/pages.json index 2916b29..896b08a 100644 --- a/pages.json +++ b/pages.json @@ -2,7 +2,14 @@ "easycom": { "^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue" }, - "pages": [{ + "pages": [ + { + "path": "pages/simpleResviror/index", + "style": { + "navigationBarTitleText": "" + } + }, + { "path": "pages/login/login", "style": { "navigationBarTitleText": "" diff --git a/pages/hdDetail/jcsj/chartOption.js b/pages/hdDetail/jcsj/chartOption.js index 1407b80..8f4ccfb 100644 --- a/pages/hdDetail/jcsj/chartOption.js +++ b/pages/hdDetail/jcsj/chartOption.js @@ -179,7 +179,7 @@ export default function DrpOption(data=[],wrz,grz) { lineStyle: { type: "dashed" }, - data: data.map(o => grz), + data: data.map(o => Number(grz)), symbol: 'none' // 设置标记点为'none',即去掉圆点 }, { @@ -189,7 +189,7 @@ export default function DrpOption(data=[],wrz,grz) { type: 'line', color: "#F59A23", barWidth: '60%', - data: data.map(o => wrz), + data: data.map(o => Number(wrz)), lineStyle: { type: "dashed" }, @@ -199,7 +199,7 @@ export default function DrpOption(data=[],wrz,grz) { name: '降雨量', type: 'bar', barWidth: '60%', - data: data.map(o => o.drp).reverse(), + data: data.map(o => Number(o.drp)).reverse(), itemStyle: { color: "#007AFD", }, @@ -231,7 +231,7 @@ export default function DrpOption(data=[],wrz,grz) { label: { show: false, }, - data: data.map(o => o.tq), + data: data.map(o => Number(o.tq)), } ] } diff --git a/pages/hdDetail/jcsj/jcsj.vue b/pages/hdDetail/jcsj/jcsj.vue index 7338c07..b018660 100644 --- a/pages/hdDetail/jcsj/jcsj.vue +++ b/pages/hdDetail/jcsj/jcsj.vue @@ -26,7 +26,7 @@ - + diff --git a/pages/simpleResviror/aqjc/index.vue b/pages/simpleResviror/aqjc/index.vue new file mode 100644 index 0000000..6bda40b --- /dev/null +++ b/pages/simpleResviror/aqjc/index.vue @@ -0,0 +1,57 @@ + + + \ No newline at end of file diff --git a/pages/simpleResviror/aqjc/sljc.vue b/pages/simpleResviror/aqjc/sljc.vue new file mode 100644 index 0000000..903ce0b --- /dev/null +++ b/pages/simpleResviror/aqjc/sljc.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/pages/simpleResviror/aqjc/syjc.vue b/pages/simpleResviror/aqjc/syjc.vue new file mode 100644 index 0000000..e8061e1 --- /dev/null +++ b/pages/simpleResviror/aqjc/syjc.vue @@ -0,0 +1,155 @@ + + + + + \ No newline at end of file diff --git a/pages/simpleResviror/aqjc/wyjc.vue b/pages/simpleResviror/aqjc/wyjc.vue new file mode 100644 index 0000000..34f2146 --- /dev/null +++ b/pages/simpleResviror/aqjc/wyjc.vue @@ -0,0 +1,131 @@ + + + + + \ No newline at end of file diff --git a/pages/simpleResviror/index.vue b/pages/simpleResviror/index.vue new file mode 100644 index 0000000..8b58a4d --- /dev/null +++ b/pages/simpleResviror/index.vue @@ -0,0 +1,158 @@ + + + + + \ No newline at end of file diff --git a/pages/simpleResviror/jbxx/index.vue b/pages/simpleResviror/jbxx/index.vue new file mode 100644 index 0000000..792bdad --- /dev/null +++ b/pages/simpleResviror/jbxx/index.vue @@ -0,0 +1,52 @@ + + + \ No newline at end of file diff --git a/pages/simpleResviror/jbxx/jbzz/index.vue b/pages/simpleResviror/jbxx/jbzz/index.vue new file mode 100644 index 0000000..547afbf --- /dev/null +++ b/pages/simpleResviror/jbxx/jbzz/index.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/pages/simpleResviror/jbxx/krqx/chartOptions.js b/pages/simpleResviror/jbxx/krqx/chartOptions.js new file mode 100644 index 0000000..ec35c9f --- /dev/null +++ b/pages/simpleResviror/jbxx/krqx/chartOptions.js @@ -0,0 +1,80 @@ +import {GetInterval} from "../../../utils/tool" +export default function DrpOption(data) { + const maxVal = Math.ceil(Math.max(...data.map(obj => obj.rz))) + const minVal = Math.floor(Math.min(...data.map(obj => obj.rz))) + const maxValX = Math.max(...data.map(obj => obj.w)) + const minValX = Math.min(...data.map(obj => obj.w)) + let arr = [] + + data.forEach(item=>{ + arr.push([item.w,item.rz]) + }) + let eopts = { + tooltip: { + trigger: 'axis', + }, + grid: [ + { + top: "12%", + left: "12%", + right: "18%", + bottom: "8%" + }, + ], + xAxis: [ + { + name: "库容(万m³)", + nameGap: 5, + type: 'value', + min:Math.floor(minValX / 5) *5, + max:Math.ceil(maxValX / 5) *5, + interval:GetInterval(minValX,maxValX), + data: data.map(o => o.w), + splitLine: { + show: false + }, + } + ], + yAxis: [ + { + type: 'value', + name: "库水位(m)", + minInterval:1, + splitLine: { + show: true, + lineStyle: { + color: '#07a6ff', + width: 0.25, + type: 'dotted' + } + }, + axisLabel: { + color: '#333', + fontSize: 12, + }, + axisLine: { + show: true + }, + axisTick: { + show: true, + }, + min: minVal, + max: maxVal + } + ], + }; + let chartData = { + series: [ + { + type: 'line', + color: "#007AFD", + data: arr, + smooth: true + }, + ] + }; + return { + eopts, + chartData + } +} \ No newline at end of file diff --git a/pages/simpleResviror/jbxx/krqx/index.vue b/pages/simpleResviror/jbxx/krqx/index.vue new file mode 100644 index 0000000..cd772e5 --- /dev/null +++ b/pages/simpleResviror/jbxx/krqx/index.vue @@ -0,0 +1,81 @@ + + + \ No newline at end of file diff --git a/pages/simpleResviror/jbxx/krqx/jcsjTable.vue b/pages/simpleResviror/jbxx/krqx/jcsjTable.vue new file mode 100644 index 0000000..b1ac060 --- /dev/null +++ b/pages/simpleResviror/jbxx/krqx/jcsjTable.vue @@ -0,0 +1,77 @@ + + + + + \ No newline at end of file diff --git a/pages/simpleResviror/spjk/spjk.vue b/pages/simpleResviror/spjk/spjk.vue new file mode 100644 index 0000000..02a1713 --- /dev/null +++ b/pages/simpleResviror/spjk/spjk.vue @@ -0,0 +1,127 @@ + + + + + + + diff --git a/pages/simpleResviror/ysqxx/index.vue b/pages/simpleResviror/ysqxx/index.vue new file mode 100644 index 0000000..78993e0 --- /dev/null +++ b/pages/simpleResviror/ysqxx/index.vue @@ -0,0 +1,195 @@ + + + + \ No newline at end of file diff --git a/pages/simpleResviror/ysqxx/mock.js b/pages/simpleResviror/ysqxx/mock.js new file mode 100644 index 0000000..97063ad --- /dev/null +++ b/pages/simpleResviror/ysqxx/mock.js @@ -0,0 +1,1178 @@ +export const sw = [ + { + "stcd": "3061", + "tm": "2026-04-15 09:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-15 08:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-15 07:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-15 06:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-15 05:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-15 04:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-15 03:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-15 02:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-15 01:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-15 00:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 23:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 22:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 21:00:00", + "drp": 0.5, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 20:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 19:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 18:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 17:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 16:00:00", + "drp": 0.5, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 15:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 14:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 13:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 12:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-14 11:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 10:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 09:00:00", + "drp": 0.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 08:00:00", + "drp": 3.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 07:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 06:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 05:00:00", + "drp": 0.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 04:00:00", + "drp": 0.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 03:00:00", + "drp": 0.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 02:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 01:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-14 00:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 23:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 22:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 21:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 20:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 19:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-13 18:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 17:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-13 16:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-13 15:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-13 14:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-13 13:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 12:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 11:00:00", + "drp": 0.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 10:00:00", + "drp": 1, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 09:00:00", + "drp": 1.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 08:00:00", + "drp": 2.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 07:00:00", + "drp": 1.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 06:00:00", + "drp": 0.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 05:00:00", + "drp": 0.5, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 04:00:00", + "drp": 0, + "rz": 840.45, + "w": 7.63 + }, + { + "stcd": "3061", + "tm": "2026-04-13 03:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-13 02:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-13 01:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-13 00:00:00", + "drp": 0, + "rz": 840.36, + "w": 7.4 + }, + { + "stcd": "3061", + "tm": "2026-04-12 23:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-12 22:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-12 21:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-12 20:00:00", + "drp": 0, + "rz": 840.36, + "w": 7.4 + }, + { + "stcd": "3061", + "tm": "2026-04-12 19:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-12 18:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-12 17:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-12 16:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-12 15:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-12 14:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-12 13:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-12 12:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-12 11:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-12 10:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-12 09:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-12 08:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-12 07:00:00", + "drp": 0, + "rz": 840.4, + "w": 7.5 + }, + { + "stcd": "3061", + "tm": "2026-04-12 06:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-12 05:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-12 04:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-12 03:00:00", + "drp": 0, + "rz": 840.36, + "w": 7.4 + }, + { + "stcd": "3061", + "tm": "2026-04-12 02:00:00", + "drp": 0, + "rz": 840.4, + "w": 7.5 + }, + { + "stcd": "3061", + "tm": "2026-04-12 01:00:00", + "drp": 0, + "rz": 840.36, + "w": 7.4 + }, + { + "stcd": "3061", + "tm": "2026-04-12 00:00:00", + "drp": 0, + "rz": 840.36, + "w": 7.4 + }, + { + "stcd": "3061", + "tm": "2026-04-11 23:00:00", + "drp": 0, + "rz": 840.36, + "w": 7.4 + }, + { + "stcd": "3061", + "tm": "2026-04-11 22:00:00", + "drp": 0, + "rz": 840.39, + "w": 7.48 + }, + { + "stcd": "3061", + "tm": "2026-04-11 21:00:00", + "drp": 0, + "rz": 840.38, + "w": 7.45 + }, + { + "stcd": "3061", + "tm": "2026-04-11 20:00:00", + "drp": 0, + "rz": 840.41, + "w": 7.53 + }, + { + "stcd": "3061", + "tm": "2026-04-11 19:00:00", + "drp": 0, + "rz": 840.34, + "w": 7.35 + }, + { + "stcd": "3061", + "tm": "2026-04-11 18:00:00", + "drp": 0, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-11 17:00:00", + "drp": 0.5, + "rz": 840.35, + "w": 7.38 + }, + { + "stcd": "3061", + "tm": "2026-04-11 16:00:00", + "drp": 0, + "rz": 840.36, + "w": 7.4 + }, + { + "stcd": "3061", + "tm": "2026-04-11 15:00:00", + "drp": 0, + "rz": 840.37, + "w": 7.43 + }, + { + "stcd": "3061", + "tm": "2026-04-11 14:00:00", + "drp": 1, + "rz": 840.38, + "w": 7.45 + }, + { + "stcd": "3061", + "tm": "2026-04-11 13:00:00", + "drp": 1, + "rz": 840.32, + "w": 7.3 + }, + { + "stcd": "3061", + "tm": "2026-04-11 12:00:00", + "drp": 1, + "rz": 840.32, + "w": 7.3 + }, + { + "stcd": "3061", + "tm": "2026-04-11 11:00:00", + "drp": 1.5, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-11 10:00:00", + "drp": 4, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-11 09:00:00", + "drp": 3.5, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-11 08:00:00", + "drp": 1.5, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-11 07:00:00", + "drp": 1.5, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-11 06:00:00", + "drp": 2.5, + "rz": 840.28, + "w": 7.2 + }, + { + "stcd": "3061", + "tm": "2026-04-11 05:00:00", + "drp": 1, + "rz": 840.28, + "w": 7.2 + }, + { + "stcd": "3061", + "tm": "2026-04-11 04:00:00", + "drp": 1, + "rz": 840.28, + "w": 7.2 + }, + { + "stcd": "3061", + "tm": "2026-04-11 03:00:00", + "drp": 1, + "rz": 840.28, + "w": 7.2 + }, + { + "stcd": "3061", + "tm": "2026-04-11 02:00:00", + "drp": 1, + "rz": 840.28, + "w": 7.2 + }, + { + "stcd": "3061", + "tm": "2026-04-11 01:00:00", + "drp": 0.5, + "rz": 840.4, + "w": 7.5 + }, + { + "stcd": "3061", + "tm": "2026-04-11 00:00:00", + "drp": 0, + "rz": 840.28, + "w": 7.2 + }, + { + "stcd": "3061", + "tm": "2026-04-10 23:00:00", + "drp": 0, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-10 22:00:00", + "drp": 0.5, + "rz": 840.28, + "w": 7.2 + }, + { + "stcd": "3061", + "tm": "2026-04-10 21:00:00", + "drp": 1, + "rz": 840.33, + "w": 7.33 + }, + { + "stcd": "3061", + "tm": "2026-04-10 20:00:00", + "drp": 0.5, + "rz": null, + "w": null + }, + { + "stcd": "3061", + "tm": "2026-04-10 19:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 18:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 17:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 16:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 15:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 14:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 13:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 12:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 11:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 10:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 09:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 08:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 07:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 06:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 05:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 04:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 03:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-10 02:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-10 01:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-10 00:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-09 23:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-09 22:00:00", + "drp": 0, + "rz": 840.29, + "w": 7.23 + }, + { + "stcd": "3061", + "tm": "2026-04-09 21:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 20:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 19:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 18:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 17:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 16:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 15:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 14:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 13:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 12:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 11:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 10:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 09:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 08:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 07:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 06:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 05:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 04:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 03:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 02:00:00", + "drp": 0, + "rz": 840.3, + "w": 7.25 + }, + { + "stcd": "3061", + "tm": "2026-04-09 01:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-09 00:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 23:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 22:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 21:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 20:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 19:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 18:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 17:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 16:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 15:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 14:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 13:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 12:00:00", + "drp": 0, + "rz": 840.31, + "w": 7.28 + }, + { + "stcd": "3061", + "tm": "2026-04-08 11:00:00", + "drp": 0, + "rz": 840.32, + "w": 7.3 + }, + { + "stcd": "3061", + "tm": "2026-04-08 10:00:00", + "drp": 0, + "rz": 840.32, + "w": 7.3 + } +] \ No newline at end of file diff --git a/pages/simpleResviror/ysqxx/sssw.vue b/pages/simpleResviror/ysqxx/sssw.vue new file mode 100644 index 0000000..5139043 --- /dev/null +++ b/pages/simpleResviror/ysqxx/sssw.vue @@ -0,0 +1,78 @@ + + + + \ No newline at end of file diff --git a/pages/simpleResviror/ysqxx/ssyl.vue b/pages/simpleResviror/ysqxx/ssyl.vue new file mode 100644 index 0000000..6d9a2dd --- /dev/null +++ b/pages/simpleResviror/ysqxx/ssyl.vue @@ -0,0 +1,133 @@ + + + + \ No newline at end of file diff --git a/pages/simpleResviror/ysqxx/swOption.js b/pages/simpleResviror/ysqxx/swOption.js new file mode 100644 index 0000000..4220ddd --- /dev/null +++ b/pages/simpleResviror/ysqxx/swOption.js @@ -0,0 +1,193 @@ +import echarts from 'echarts/lib/echarts'; +import { sw } from './mock' +export default function DrpOption( + data = sw, + afsltdz, + flLowLimLev = 840.3, + desFloodLev = 843.23, + calFloodLev = 844.12) { + const maxVal = Math.max(...data.map(obj => obj.drp)) + const maxSw = Math.ceil(Math.max(...data.map(obj => obj.rz))) + const minSw = Math.floor(Math.min(...data.map(obj => obj.rz))) + const maxKr = Math.max(...data.map(obj => obj.w)) + const minKr = Math.min(...data.map(obj => obj.w)) + console.log('desFloodLev', desFloodLev); + let eopts = { + tooltip: { + trigger: 'axis', + + appendToBody: false, + className: 'echarts-tooltip' + }, + grid: { + top: "15%", + left: "10%", + right: "10%", + bottom: "15%" + }, + legend: { + show: true, + data: ["校核水位", '设计水位', '汛限水位', '水位', '库容'], + left: 'center', + top: 0, + itemWidth: 10, + padding: 0 + }, + xAxis: [ + { + type: 'category', + data: data.map(o => o.tm.substr("2020-".length, 11)), + inverse: true, + splitLine: { + show: false + }, + axisLabel: { + color: '#333', + fontSize: 12, + formatter: val => val.substr('2020-'.length, 11) + }, + axisLine: { + lineStyle: { + color: '#07a6ff', + width: 0.5 + } + }, + axisTick: { + show: false + } + } + ], + yAxis: [ + { + type: 'value', + position: 'left', + name: '水位(m)', + splitLine: { + show: true, + lineStyle: { + color: '#07a6ff', + width: 0.25, + type: 'dotted' + } + }, + axisLabel: { + color: '#333', + fontSize: 10 + }, + axisLine: { + show: true, + lineStyle: { + color: '#07a6ff', + width: 0.5 + } + }, + axisTick: { + show: true + }, + min: minSw, + max: maxSw + }, + { + type: 'value', + position: 'right', + name: '库容(万m³)', + splitLine: { + show: false + }, + axisLabel: { + color: '#333', + fontSize: 10 + }, + axisLine: { + show: true, + lineStyle: { + color: '#07a6ff', + width: 0.5 + } + }, + axisTick: { + show: true + }, + min: minKr, + max: maxKr + } + ], + } + let chartData = { + series: [ + { + yAxisIndex: 0, + name: '校核水位', + type: 'line', + color: '#D9001B', + lineStyle: { + type: 'dashed' + }, + data: data.map(o => calFloodLev), + symbol: 'none', + showSymbol: false, + label: { + show: false + }, + }, + { + yAxisIndex: 0, + name: '设计水位', + type: 'line', + color: '#F59A23', + data: data.map(o => desFloodLev), + lineStyle: { + type: 'dashed' + }, + symbol: 'none', + showSymbol: false, + label: { + show: false + }, + }, + { + yAxisIndex: 0, + name: '汛限水位', + type: 'line', + color: '#FDDC9F', + data: data.map(o => flLowLimLev), + lineStyle: { + type: 'dashed' + }, + symbol: 'none', + showSymbol: false, + label: { + show: false + }, + }, + { + yAxisIndex: 0, + name: '水位', + type: 'line', + symbol: 'none', + showSymbol: false, + color: '#0AE0B5', + label: { + show: false + }, + data: data.map(o => o.rz ? o.rz.toFixed(2) : null) + }, + { + yAxisIndex: 1, + name: '库容', + type: 'line', + color: '#007AFD', + symbol: 'none', + showSymbol: false, + label: { + show: false + }, + data: data.map(o => o.w) + } + ], + } + return { + eopts, + chartData + } +} diff --git a/pages/simpleResviror/ysqxx/txjc.vue b/pages/simpleResviror/ysqxx/txjc.vue new file mode 100644 index 0000000..b18b07a --- /dev/null +++ b/pages/simpleResviror/ysqxx/txjc.vue @@ -0,0 +1,92 @@ + + + + + \ No newline at end of file diff --git a/pages/simpleResviror/ysqxx/ylOption.js b/pages/simpleResviror/ysqxx/ylOption.js new file mode 100644 index 0000000..9e5d03e --- /dev/null +++ b/pages/simpleResviror/ysqxx/ylOption.js @@ -0,0 +1,99 @@ +import echarts from 'echarts/lib/echarts'; +import { sw } from './mock' +export default function DrpOption(data = sw) { + const maxVal = Math.max(...data.map(obj => obj.drp)) + let eopts = { + tooltip: { + trigger: 'axis', + }, + grid: { + top: "15%", + left: "10%", + right: "10%", + bottom: "15%" + }, + legend: { + show: true, + data: ['降雨量'], + left: 'center', + top: 0, + itemWidth: 10, + padding: 0 + }, + xAxis: [ + { + type: 'category', + data: data.map(o => o.tm.substr("2020-".length, 11)), + inverse: true, + splitLine: { + show: false + }, + axisLabel: { + color: '#333', + fontSize: 12, + formatter: val => val.substr('2020-'.length, 11) + }, + axisLine: { + lineStyle: { + color: '#07a6ff', + width: 0.5 + } + }, + axisTick: { + show: false + } + } + ], + yAxis: [ + { + type: 'value', + position: 'left', + name: '降雨量(mm)', + splitLine: { + show: true, + lineStyle: { + color: '#07a6ff', + width: 0.25, + type: 'dotted' + } + }, + axisLabel: { + color: '#333', + fontSize: 10 + }, + axisLine: { + show: true, + lineStyle: { + color: '#07a6ff', + width: 0.5 + } + }, + axisTick: { + show: true + }, + min: 0, + max: maxVal + }, + ], + } + let chartData = { + series: [ + { + name: '降雨量', + type: 'bar', + barWidth: '60%', + data: data.map(o => o.drp).reverse(), + itemStyle: { + color: '#007AFD' + }, + label: { + show: false + } + }, + ], + } + return { + eopts, + chartData + } +} diff --git a/pages/simpleResviror/zrtx/card.vue b/pages/simpleResviror/zrtx/card.vue new file mode 100644 index 0000000..b471ace --- /dev/null +++ b/pages/simpleResviror/zrtx/card.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/pages/simpleResviror/zrtx/zrtx.vue b/pages/simpleResviror/zrtx/zrtx.vue new file mode 100644 index 0000000..ddd08a9 --- /dev/null +++ b/pages/simpleResviror/zrtx/zrtx.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/pages/utils/tool.js b/pages/utils/tool.js index 9de8188..7d3d0ed 100644 --- a/pages/utils/tool.js +++ b/pages/utils/tool.js @@ -51,6 +51,19 @@ export function restm (e) { } return index } + +export const GetInterval=(min,max,step=10)=>{ + const distance = Math.ceil(max) - Math.floor(min) + console.log(distance); + let s = (distance / step); + console.log(s); + if (s > 5){ + s = Math.ceil(s / 5) *5; + return s; + }else{ + return Math.ceil(s) + } +} export const adnmZhen = adcd => { if (!adcd || !nameMap) { return undefined diff --git a/static/empty.png b/static/empty.png new file mode 100644 index 0000000..9acfed6 Binary files /dev/null and b/static/empty.png differ diff --git a/static/images/first.jpg b/static/images/first.jpg new file mode 100644 index 0000000..78bdf62 Binary files /dev/null and b/static/images/first.jpg differ diff --git a/static/images/second.jpg b/static/images/second.jpg new file mode 100644 index 0000000..b7b9595 Binary files /dev/null and b/static/images/second.jpg differ