Browse Source

refactor: web初始化检查 是否可以手动上报采集数据

zhanghaijun 3 years ago
parent
commit
4e8fd36a02
27 changed files with 29 additions and 27 deletions
  1. 1 1
      src/main/resources/static/assets/404-094e23a4.js
  2. 1 1
      src/main/resources/static/assets/404-legacy-6b44613b.js
  3. 1 1
      src/main/resources/static/assets/DistributePost-c72bc447.js
  4. 1 1
      src/main/resources/static/assets/DistributePost-legacy-5df34064.js
  5. 0 1
      src/main/resources/static/assets/GatherPolicy-bed4683f.js
  6. 1 0
      src/main/resources/static/assets/GatherPolicy-e4f06479.js
  7. 0 1
      src/main/resources/static/assets/GatherPolicy-legacy-69151438.js
  8. 1 0
      src/main/resources/static/assets/GatherPolicy-legacy-df48e78d.js
  9. 1 1
      src/main/resources/static/assets/HomeIndex-bb30b33f.js
  10. 1 1
      src/main/resources/static/assets/HomeIndex-legacy-a0c748f6.js
  11. 1 1
      src/main/resources/static/assets/TaskCommand-97733ab1.js
  12. 1 1
      src/main/resources/static/assets/TaskCommand-legacy-7ebb0be9.js
  13. 1 1
      src/main/resources/static/assets/TaskConfig-0ba6b43e.js
  14. 1 1
      src/main/resources/static/assets/TaskConfig-legacy-0b4e20c8.js
  15. 1 1
      src/main/resources/static/assets/TaskStatus-64020259.js
  16. 1 1
      src/main/resources/static/assets/TaskStatus-legacy-c1442a1d.js
  17. 1 1
      src/main/resources/static/assets/base-7cb5d7b0.js
  18. 1 1
      src/main/resources/static/assets/base-legacy-a703b59f.js
  19. 1 1
      src/main/resources/static/assets/index-0b260eb2.js
  20. 1 1
      src/main/resources/static/assets/index-56887f82.js
  21. 1 1
      src/main/resources/static/assets/index-legacy-a0b0f07e.js
  22. 1 1
      src/main/resources/static/assets/index-legacy-7d20d873.js
  23. 1 1
      src/main/resources/static/assets/policy-5d241650.js
  24. 1 1
      src/main/resources/static/assets/policy-legacy-30ff2c6f.js
  25. 1 1
      src/main/resources/static/assets/polyfills-legacy-24cf7766.js
  26. 3 3
      src/main/resources/static/index.html
  27. 3 1
      web/src/pages/GatherPolicy.vue

+ 1 - 1
src/main/resources/static/assets/404-094e23a4.js

@@ -1 +1 @@
-import{_ as t,U as o,k as r,l as n,x as s,z as a,V as c,W as _}from"./index-56887f82.js";const d={},i={style:{"border-radius":"8px",border:"1px solid #3666",margin:"0 auto",width:"600px","text-align":"center",padding:"50px"}},l=c("h2",null,"页面找不到",-1);function p(x,u){const e=o("router-link");return r(),n("div",i,[l,s(e,{to:"/"},{default:a(()=>[_(" 跳转首页 ")]),_:1})])}const m=t(d,[["render",p]]);export{m as default};
+import{_ as t,U as o,k as r,l as n,x as s,z as a,V as c,W as _}from"./index-9853738e.js";const d={},i={style:{"border-radius":"8px",border:"1px solid #3666",margin:"0 auto",width:"600px","text-align":"center",padding:"50px"}},l=c("h2",null,"页面找不到",-1);function p(x,u){const e=o("router-link");return r(),n("div",i,[l,s(e,{to:"/"},{default:a(()=>[_(" 跳转首页 ")]),_:1})])}const m=t(d,[["render",p]]);export{m as default};

File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/404-legacy-6b44613b.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/DistributePost-c72bc447.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/DistributePost-legacy-5df34064.js


File diff suppressed because it is too large
+ 0 - 1
src/main/resources/static/assets/GatherPolicy-bed4683f.js


File diff suppressed because it is too large
+ 1 - 0
src/main/resources/static/assets/GatherPolicy-e4f06479.js


File diff suppressed because it is too large
+ 0 - 1
src/main/resources/static/assets/GatherPolicy-legacy-69151438.js


File diff suppressed because it is too large
+ 1 - 0
src/main/resources/static/assets/GatherPolicy-legacy-df48e78d.js


+ 1 - 1
src/main/resources/static/assets/HomeIndex-bb30b33f.js

@@ -1 +1 @@
-import{_ as e,k as c,l as n}from"./index-56887f82.js";const o={};function r(t,s){return c(),n("h2",null,"欢迎访问")}const a=e(o,[["render",r]]);export{a as default};
+import{_ as e,k as c,l as n}from"./index-9853738e.js";const o={};function r(t,s){return c(),n("h2",null,"欢迎访问")}const a=e(o,[["render",r]]);export{a as default};

+ 1 - 1
src/main/resources/static/assets/HomeIndex-legacy-a0c748f6.js

@@ -1 +1 @@
-System.register(["./index-legacy-7d20d873.js"],(function(e,t){"use strict";var n,r,u;return{setters:[e=>{n=e._,r=e.k,u=e.l}],execute:function(){e("default",n({},[["render",function(e,t){return r(),u("h2",null,"欢迎访问")}]]))}}}));
+System.register(["./index-legacy-d1c39184.js"],(function(e,t){"use strict";var n,r,u;return{setters:[e=>{n=e._,r=e.k,u=e.l}],execute:function(){e("default",n({},[["render",function(e,t){return r(),u("h2",null,"欢迎访问")}]]))}}}));

File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/TaskCommand-97733ab1.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/TaskCommand-legacy-7ebb0be9.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/TaskConfig-0ba6b43e.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/TaskConfig-legacy-0b4e20c8.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/TaskStatus-64020259.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/TaskStatus-legacy-c1442a1d.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/base-7cb5d7b0.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/base-legacy-a703b59f.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/index-0b260eb2.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/index-56887f82.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/index-legacy-a0b0f07e.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/index-legacy-7d20d873.js


+ 1 - 1
src/main/resources/static/assets/policy-5d241650.js

@@ -1 +1 @@
-import{s as i}from"./DistributePost-c72bc447.js";import{a1 as t}from"./index-56887f82.js";const s=t("policy",{state:()=>({policyBody:{}}),getters:{policyStr:o=>JSON.stringify(o.policyBody),policyExist:o=>Object.keys(o.policyBody).length!=0},actions:{async getPolicy(){let{resp_msg:o}=await i({url:"/config/api/v1/getPolicy",method:"GET"});try{this.policyBody=JSON.parse(o)}catch(e){this.policyBody={}}}},persist:{key:"pligin:policy"}});export{s as u};
+import{s as i}from"./DistributePost-4119a50c.js";import{a1 as t}from"./index-9853738e.js";const s=t("policy",{state:()=>({policyBody:{}}),getters:{policyStr:o=>JSON.stringify(o.policyBody),policyExist:o=>Object.keys(o.policyBody).length!=0},actions:{async getPolicy(){let{resp_msg:o}=await i({url:"/config/api/v1/getPolicy",method:"GET"});try{this.policyBody=JSON.parse(o)}catch(e){this.policyBody={}}}},persist:{key:"pligin:policy"}});export{s as u};

File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/policy-legacy-30ff2c6f.js


File diff suppressed because it is too large
+ 1 - 1
src/main/resources/static/assets/polyfills-legacy-24cf7766.js


+ 3 - 3
src/main/resources/static/index.html

@@ -5,7 +5,7 @@
     <link rel="icon" type="image/svg+xml" href="/logo.svg" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>轨道交通控制插件-测试界面</title>
-    <script type="module" crossorigin src="/assets/index-56887f82.js"></script>
+    <script type="module" crossorigin src="/assets/index-9853738e.js"></script>
     <link rel="stylesheet" href="/assets/index-534d28ba.css">
     <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
     <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
@@ -14,7 +14,7 @@
     <div id="app"></div>
     
     <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-    <script nomodule crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-24cf7766.js"></script>
-    <script nomodule crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-7d20d873.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+    <script nomodule crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-6d729fe9.js"></script>
+    <script nomodule crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-d1c39184.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 3 - 1
web/src/pages/GatherPolicy.vue

@@ -9,7 +9,9 @@
 import request from "@/api/http";
 import { usePolicyStore } from "@/store/policy";
 const policyStore = usePolicyStore();
-
+onMounted(() => {
+  policyStore.getPolicy();
+})
 const policy = {
   taskId: "518BB5B8-7551-418A-BFDD-A90C1CC66F03",
   subtaskId: "9480300E-7BDF-4D7A-BA64-7A059880A694",