huangxingxing 1 éve
szülő
commit
9d2c941685

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/assets/index-461cfb89.css


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/assets/index-5bdb1240.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/assets/index-9bdc4fd7.js


+ 1 - 1
dist/assets/myDemo-476b89a2.js → dist/assets/myDemo-730c7177.js

@@ -1 +1 @@
-import{_ as f,r as a,d as b,e as k,o as z,c as y,b as t,f as s,w as S,u as _,g as x,h as I,R as w,i as P,p as V,a as j}from"./index-5bdb1240.js";const v=n=>(V("data-v-4c890c25"),n=n(),j(),n),B={class:"left_container"},D={class:"mian-content"},N={class:"demo-pagination-block"},R=v(()=>t("div",{class:"demonstration"},"Jump to",-1)),U={class:"demo-pagination-block"},T=v(()=>t("div",{class:"demonstration"},"Total item count",-1)),$={__name:"myDemo",setup(n){const r=a(5);a(5);const c=a(5);a(4),a(100);const u=a(100);a(100);const d=a(!1),h=a(1e3),i=a(!1),p=a(!1);function g(){console.log(`${val} items per page`)}b(()=>{});function C(){x({transCode:"C00001",page:1,count:5,searchtag:"",userId:"5f06c8bc77234f969d13e160b54c27e3"}).then(e=>{console.log(e)}).catch(e=>{})}return(l,e)=>{const m=k("el-pagination");return z(),y("div",null,[t("div",B,[t("h2",{onClick:e[0]||(e[0]=o=>C())}," 我是路由"),s(_(w),{to:{path:"/myHome"}},{default:S(()=>[I("跳转到目标页")]),_:1})]),t("div",D,[t("div",N,[R,s(m,{"current-page":c.value,"onUpdate:currentPage":e[1]||(e[1]=o=>c.value=o),"page-size":u.value,"onUpdate:pageSize":e[2]||(e[2]=o=>u.value=o),small:d.value,disabled:p.value,background:i.value,layout:"prev,total, pager, next, jumper",total:h.value,onSizeChange:g,onCurrentChange:l.handleCurrentChange},null,8,["current-page","page-size","small","disabled","background","total","onCurrentChange"])]),t("div",U,[T,s(m,{"current-page":r.value,"onUpdate:currentPage":e[3]||(e[3]=o=>r.value=o),"page-size":100,small:d.value,disabled:p.value,background:i.value,layout:"total, prev, pager, next,jumpersizes,",total:1e3,onSizeChange:g,onCurrentChange:l.handleCurrentChange},null,8,["current-page","small","disabled","background","onCurrentChange"])]),s(_(P))])])}}},E=f($,[["__scopeId","data-v-4c890c25"]]);export{E as default};
+import{_ as f,r as a,d as b,e as k,o as z,c as y,b as t,f as s,w as S,u as _,g as x,h as I,R as w,i as P,p as V,a as j}from"./index-9bdc4fd7.js";const v=n=>(V("data-v-4c890c25"),n=n(),j(),n),B={class:"left_container"},D={class:"mian-content"},N={class:"demo-pagination-block"},R=v(()=>t("div",{class:"demonstration"},"Jump to",-1)),U={class:"demo-pagination-block"},T=v(()=>t("div",{class:"demonstration"},"Total item count",-1)),$={__name:"myDemo",setup(n){const r=a(5);a(5);const c=a(5);a(4),a(100);const u=a(100);a(100);const d=a(!1),h=a(1e3),i=a(!1),p=a(!1);function g(){console.log(`${val} items per page`)}b(()=>{});function C(){x({transCode:"C00001",page:1,count:5,searchtag:"",userId:"5f06c8bc77234f969d13e160b54c27e3"}).then(e=>{console.log(e)}).catch(e=>{})}return(l,e)=>{const m=k("el-pagination");return z(),y("div",null,[t("div",B,[t("h2",{onClick:e[0]||(e[0]=o=>C())}," 我是路由"),s(_(w),{to:{path:"/myHome"}},{default:S(()=>[I("跳转到目标页")]),_:1})]),t("div",D,[t("div",N,[R,s(m,{"current-page":c.value,"onUpdate:currentPage":e[1]||(e[1]=o=>c.value=o),"page-size":u.value,"onUpdate:pageSize":e[2]||(e[2]=o=>u.value=o),small:d.value,disabled:p.value,background:i.value,layout:"prev,total, pager, next, jumper",total:h.value,onSizeChange:g,onCurrentChange:l.handleCurrentChange},null,8,["current-page","page-size","small","disabled","background","total","onCurrentChange"])]),t("div",U,[T,s(m,{"current-page":r.value,"onUpdate:currentPage":e[3]||(e[3]=o=>r.value=o),"page-size":100,small:d.value,disabled:p.value,background:i.value,layout:"total, prev, pager, next,jumpersizes,",total:1e3,onSizeChange:g,onCurrentChange:l.handleCurrentChange},null,8,["current-page","small","disabled","background","onCurrentChange"])]),s(_(P))])])}}},E=f($,[["__scopeId","data-v-4c890c25"]]);export{E as default};

+ 1 - 1
dist/assets/myHome-dd5f65e2.js → dist/assets/myHome-15b1a978.js

@@ -1 +1 @@
-import{_ as o,o as _,c as s,p as t,a,b as c}from"./index-5bdb1240.js";const n={},d=e=>(t("data-v-4734c238"),e=e(),a(),e),p=d(()=>c("div",{class:"left_container"},[c("h2",null,"我是跳转的路由")],-1)),r=[p];function l(e,i){return _(),s("div",null,r)}const u=o(n,[["render",l],["__scopeId","data-v-4734c238"]]);export{u as default};
+import{_ as o,o as _,c as s,p as t,a,b as c}from"./index-9bdc4fd7.js";const n={},d=e=>(t("data-v-4734c238"),e=e(),a(),e),p=d(()=>c("div",{class:"left_container"},[c("h2",null,"我是跳转的路由")],-1)),r=[p];function l(e,i){return _(),s("div",null,r)}const u=o(n,[["render",l],["__scopeId","data-v-4734c238"]]);export{u as default};

+ 2 - 2
dist/index.html

@@ -5,8 +5,8 @@
     <link rel="icon" href="/assets/logo.png" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title></title>
-    <script type="module" crossorigin src="./assets/index-5bdb1240.js"></script>
-    <link rel="stylesheet" href="./assets/index-8b4f56e4.css">
+    <script type="module" crossorigin src="./assets/index-9bdc4fd7.js"></script>
+    <link rel="stylesheet" href="./assets/index-461cfb89.css">
   </head>
   <body>
     <div id="app"></div>

+ 36 - 20
src/view/components/tanimation.vue

@@ -237,6 +237,8 @@ const zdtime = ref("");
 const chvals = ref([]);
 const cocodes = ref([]);
 const cocodeIndex = ref(0);
+//监测点Code是否初始化
+const cocodeIsInit= ref("false");
 //滑块
 function sliderchange(val) {
   fcon.step = count.value;
@@ -256,6 +258,7 @@ function play(time) {
         count.value++;
         fcon.step = count.value;
         vtkScalarRead();
+         getMonitor();
       }
     }
   };
@@ -269,6 +272,7 @@ function increment() {
   count.value++;
   fcon.step = count.value;
   vtkScalarRead();
+   getMonitor();
 }
 //暂停
 function suspend() {
@@ -280,6 +284,7 @@ function Prev() {
   count.value--;
   fcon.step = count.value;
   vtkScalarRead();
+  getMonitor();
 }
 
 function zdtimechange() {
@@ -287,14 +292,15 @@ function zdtimechange() {
   const zdtimeDate = new Date(zdtimestamp);
   reddate(zdtimeDate);
   vtkScalarRead();
+  getMonitor();
 }
 function regionchange() {
-  for (let index = 0; index < cocodes.value.length; index++) {
-    if (formInline.value.region == cocodes.value[index].cocode) {
-      cocodeIndex.value = index + 1;
-      break;
-    }
-  }
+  // for (let index = 0; index < cocodes.value.length; index++) {
+  //   if (formInline.value.region == cocodes.value[index].cocode) {
+  //     cocodeIndex.value = index + 1;
+  //     break;
+  //   }
+  // }
   tableData2.value = [];
   for (let i = 0; i < chvals.value.length; i++) {
     let chval = chvals.value[i];
@@ -348,6 +354,7 @@ const accident5 = (val) => {
   } else if (props.classradio == "Water") {
     monitor.value = true;
   }
+  cocodeIsInit.value=false;
   //获取任务信息
   readJob();
   // fireRead()
@@ -357,7 +364,10 @@ const init = () => {};
 onMounted(() => {
   init();
 });
+
 const fcon = createFireControl();
+
+
 //监测点数据获取
 async function getMonitor() {
   const params = {
@@ -368,19 +378,8 @@ async function getMonitor() {
   await request(params)
     .then((res) => {
       if (res.returnCode == "000000000") {
-        cocodes.value = res.cocodes;
+    
         chvals.value = res.chvals;
-        formInline.value.region = cocodes.value[0].cocode;
-        cocodeIndex.value = 1;
-        strResultFormatlist.value = [];
-        for (let index = 0; index < cocodes.value.length; index++) {
-          const cocode = cocodes.value[index];
-          strResultFormatlist.value.push({
-            id: index,
-            name: cocode.cocode,
-            value: cocode.cocode,
-          });
-        }
         tableData2.value = [];
         for (let i = 0; i < chvals.value.length; i++) {
           let chval = chvals.value[i];
@@ -389,7 +388,24 @@ async function getMonitor() {
             value: chval.v1,
           });
         }
-        vtkGridRead();
+            //监测点类型初始化
+        if(!cocodeIsInit.value){
+          cocodeIsInit.value=true;
+          cocodes.value = res.cocodes;
+          formInline.value.region = cocodes.value[0].cocode;
+          cocodeIndex.value = 1;
+          strResultFormatlist.value = [];
+          for (let index = 0; index < cocodes.value.length; index++) {
+            const cocode = cocodes.value[index];
+            strResultFormatlist.value.push({
+              id: index,
+              name: cocode.cocode,
+              value: cocode.cocode,
+            });
+          }
+        }else{
+           regionchange();
+        }
       } else {
         ElMessage({
           message: res.returnMsg,
@@ -410,9 +426,9 @@ async function readJob() {
       if (res.returnCode == "000000000") {
         //成功
         job.value = res;
-
         reddate(new Date());
         getMonitor();
+        vtkGridRead();
       } else {
         ElMessage({
           message: res.returnMsg,

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott