From f54c45de2ec6dfadc825c064b75e6707513bd094 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期一, 28 四月 2025 10:07:08 +0800
Subject: [PATCH] change

---
 src/components/monifangzhen/RiverLevel.vue |   46 ++++++++++++++++++++++++++++++++--------------
 1 files changed, 32 insertions(+), 14 deletions(-)

diff --git a/src/components/monifangzhen/RiverLevel.vue b/src/components/monifangzhen/RiverLevel.vue
index 55b17f8..0324b18 100644
--- a/src/components/monifangzhen/RiverLevel.vue
+++ b/src/components/monifangzhen/RiverLevel.vue
@@ -2,7 +2,8 @@
   <div class="listInfo">
     <span class="listInfo-title">闄嶉洦绛夌骇</span>
     <div class="level-list">
-      <div v-for="item in levelList" :key="item.name" @click="handleClick(item)" class="level-item" :class="item.name == currentLevel ? 'active' : ''">
+      <div v-for="item in levelList" :key="item.name" @click="handleClick(item)" class="level-item"
+        :class="item.name == currentLevel ? 'active' : ''">
         {{ item.name }}
       </div>
     </div>
@@ -10,10 +11,10 @@
 
     <el-form :model="form" label-width="70px">
       <el-form-item label="鏂规鍚嶇О">
-        <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="form.name" ></el-input>
+        <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="form.name"></el-input>
       </el-form-item>
       <el-form-item label="妯℃嫙鍖哄煙">
-        <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="form.qy" ></el-input>
+        <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="form.qy"></el-input>
       </el-form-item>
       <!-- <el-form-item label="鏁版嵁绫诲瀷">
 				<el-select
@@ -36,7 +37,8 @@
         </el-radio-group>
       </el-form-item>
       <el-form-item label="棰勮鏃堕棿">
-        <el-date-picker size="small" v-model="form.date" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡">
+        <el-date-picker size="small" v-model="form.date" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�"
+          end-placeholder="缁撴潫鏃ユ湡">
         </el-date-picker>
       </el-form-item>
     </el-form>
@@ -75,26 +77,37 @@
   },
 ])
 
-function handleClick (item) {
+function handleClick(item) {
   currentLevel.value = item.name
 }
-function endPlay () { }
-function startPlay () {
+function endPlay() { }
+function startPlay() {
   createWaterPrimitive()
 }
 let water = null
-function createWaterPrimitive () {
+function createWaterPrimitive() {
   console.log('createWaterPrimitive')
   if (water) {
     water.destroy()
     water = null
   }
-  water = earthCtrl.analysis.createWaterSimulateGPU({
-    //isDraw: true, // 鏄惁缁樺埗姘撮潰
-    height: -5,
-    maxHeight: 2000,
-    coordinates: [116.59934879285792, 40.57756658974129, 0, 116.59934879285792, 40.5436798121795, 0, 116.58050836969261, 40.5436798121795, 0, 116.58050836969261, 40.57756658974129, 0]
-  })
+  // water = earthCtrl.analysis.createWaterSimulateGPU({
+  //   //isDraw: true, // 鏄惁缁樺埗姘撮潰
+  //   height: -5,
+  //   maxHeight: 2000,
+  //   coordinates: [116.59934879285792, 40.57756658974129, 0, 116.59934879285792, 40.5436798121795, 0, 116.58050836969261, 40.5436798121795, 0, 116.58050836969261, 40.57756658974129, 0]
+  // })
+  water = earthCtrl.simulate.createWaterSimulateLayer({
+    // baseUrl: "http://192.168.10.187:81/20250412",
+    // baseUrl: "http://192.168.56.107:8088/simu/c2h1d", //浠跨湡鏈嶅姟url
+    baseUrl: "/simu/c2h1d", //浠跨湡鏈嶅姟url
+    interval: 100,   //涓ゅ抚璇锋眰鐨勬椂闂撮棿闅旓紝鍗曚綅ms
+    // color: new SmartEarth.Cesium.Color.fromCssColorString('#f4a460'),
+    //娓呮按鑹�
+    color: new SmartEarth.Cesium.Color.fromCssColorString('#D4F2E7'),
+    //娴戞按鑹�
+    // color: new SmartEarth.Cesium.Color.fromCssColorString('#DEB887'),
+  });
   water.rainfall = 10
   // water.rainfall = 0.0001;    // 璋冭妭闆ㄩ噺
   // water.rainPointMax = 2.0;   // 娓楁按闃堝��
@@ -212,20 +225,24 @@
 .el-select-dropdown__item:hover {
   color: #409eff !important;
 }
+
 .el-input__wrapper {
   background: rgba(8, 75, 66, 1) !important;
   border: 2px solid #437a74 !important;
   box-shadow: none !important;
 }
+
 .el-select__wrapper {
   background: rgba(8, 75, 66, 1) !important;
   border: 2px solid #437a74 !important;
   box-shadow: none !important;
 }
+
 .level-list {
   display: flex;
   margin-top: 10px;
   flex-wrap: wrap;
+
   .level-item {
     width: 150px;
     height: 30px;
@@ -237,6 +254,7 @@
     margin-bottom: 10px;
     cursor: pointer;
     border-radius: 5px;
+
     &.active {
       background: #11b6a6;
     }

--
Gitblit v1.9.3