Browse Source

节约能耗条百分比修改

zhaojing 1 year ago
parent
commit
76b9cd6b5f

File diff suppressed because it is too large
+ 1 - 1
dist/sgdaping/assets/background-legacy-954b92f9.js


File diff suppressed because it is too large
+ 1 - 1
dist/sgdaping/assets/background.351584ee.css


File diff suppressed because it is too large
+ 2 - 2
dist/sgdaping/assets/background.c2628d7c.js


File diff suppressed because it is too large
+ 1 - 1
dist/sgdaping/assets/index-legacy-b498b2cf.js


File diff suppressed because it is too large
+ 1 - 1
dist/sgdaping/assets/index-legacy-a03a0b28.js


File diff suppressed because it is too large
+ 1 - 1
dist/sgdaping/assets/index-legacy-12aa15d6.js


+ 1 - 0
dist/sgdaping/assets/index-legacy-710f3f54.js

@@ -0,0 +1 @@
+System.register(["./index-legacy-2404ff5b.js"],(function(n,e){"use strict";var t,r,u,i,c,f,o;return{setters:[function(n){t=n.j,r=n.a,u=n.o,i=n.m,c=n._,f=n.b,o=n.h}],execute:function(){var e=t({setup:function(){return i(),r({}),u((function(){})),{}}});n("default",c(e,[["render",function(n,e,t,r,u,i){return o(),f("h2",null,"login页面")}]]))}}}));

File diff suppressed because it is too large
+ 0 - 1
dist/sgdaping/assets/index-legacy-a6e92b4a.js


+ 0 - 1
dist/sgdaping/assets/index.676f23ea.css

@@ -1 +0,0 @@
-.wrap[data-v-6cd2e745]{margin:.20833rem 0 0 .15625rem}.meCanvas2[data-v-6cd2e745]{background:red}

+ 1 - 0
dist/sgdaping/assets/index.68ba0504.js

@@ -0,0 +1 @@
+import{j as e,a as n,o,m as t,_ as s,b as a,h as r}from"./index.e31bc5a1.js";const c=e({setup(){return t(),n({}),o(()=>{}),{}}});function u(p,_,i,d,f,l){return r(),a("h2",null,"login\u9875\u9762")}const x=s(c,[["render",u]]);export{x as default};

File diff suppressed because it is too large
+ 1 - 1
dist/sgdaping/assets/index.7a1055ba.js


File diff suppressed because it is too large
+ 1 - 1
dist/sgdaping/assets/index.a4d704cb.js


File diff suppressed because it is too large
+ 0 - 1
dist/sgdaping/assets/index.f62cf047.js


File diff suppressed because it is too large
+ 1 - 1
dist/sgdaping/assets/index.30116c16.js


+ 2 - 2
dist/sgdaping/index.html

@@ -5,7 +5,7 @@
     <link rel="icon" type="image/svg+xml" href="/sgdaping/vite.svg" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>daping</title>
-    <script type="module" crossorigin src="/sgdaping/assets/index.7a1055ba.js"></script>
+    <script type="module" crossorigin src="/sgdaping/assets/index.e31bc5a1.js"></script>
     <link rel="stylesheet" href="/sgdaping/assets/index.d31551d5.css">
     <script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
     <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above 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>
@@ -15,6 +15,6 @@
     
     <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="/sgdaping/assets/polyfills-legacy-cb861a9c.js"></script>
-    <script nomodule crossorigin id="vite-legacy-entry" data-src="/sgdaping/assets/index-legacy-b498b2cf.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+    <script nomodule crossorigin id="vite-legacy-entry" data-src="/sgdaping/assets/index-legacy-2404ff5b.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 2 - 2
src/components/LastAllEnergy.vue

@@ -61,7 +61,7 @@ export default defineComponent({
         //因为用到 所以执行
         const lastAllComputed = computed(() => {
             const lastAllEnergy = projectStore.lastAllEnergy;
-            //debugger;
+         
             var lastObj = {
                 energyBase: lastAllEnergy.energyBase
                     ? lastAllEnergy.energyBase.toFixed(1)
@@ -73,7 +73,7 @@ export default defineComponent({
                     ? (lastAllEnergy.energyCompare * 100).toFixed(0)
                     : lastAllEnergy.energyCompare,
             };
-            allData.compareBase = lastAllEnergy.energyCompare * 100 + "%";
+            allData.compareBase = (1-lastAllEnergy.energyCompare) * 100 + "%";
             allData.widthBase = "100%";
             return lastObj;
         });

+ 2 - 2
src/components/LastSaveEnergy.vue

@@ -239,7 +239,7 @@ export default defineComponent({
             return pointp;
         }
         //px 转变成 rem
-        function handlePx(num) {
+        function handlePx(num:any) {
             let fontSize = getBodySize();
             let handleNum = (num / 192) * fontSize; //px转成rem 再转成px
             return Number(handleNum.toFixed(0));
@@ -283,7 +283,7 @@ export default defineComponent({
                 ctx.setLineDash([handlePx(2), handlePx(3)]);
                 ctx.stroke();
 
-                var circ = document.getElementById("circleCanvas1");
+                var circ= document.getElementById("circleCanvas1");
                 circ.setAttribute("width", handlePx(800) + "px");
                 circ.setAttribute("height", handlePx(300) + "px");
                 var circtx = circ.getContext("2d");

+ 0 - 1
src/store/useProjectStore.ts

@@ -46,7 +46,6 @@ const useProjectStore = defineStore({
         async setLastAllEnergy() {
             try {
                 var res = await queryLastEnergy();
-                //debugger;
                 var resdata = (res.data.content || [])[0] || {};
                 this.lastAllEnergy = resdata;
             } catch (err) {}