浏览代码

fix:手动控制修改

chenzhen2 1 年之前
父节点
当前提交
e1a29c3d25

+ 3 - 0
src/utils/index.ts

@@ -708,5 +708,8 @@ export const fix: any = function (d: any) {
   }
 
   d1 = d1 / len;
+  // if (d1) {
+  //   d1 = d1.replace(/\.?0+$/, "");
+  // }
   return d1;
 }

+ 2 - 0
src/views/envmonitor/components/Air/manualIndex.vue

@@ -245,6 +245,7 @@ import { swiper } from "@/utils/swiper";
 import { querySpaceConditioners, setSpaceCondtioners } from "@/apis/envmonitor";
 import { fix, getRelNowTime, parseImgUrl, setQueryConfig } from "@/utils";
 import any = jasmine.any;
+import { parse } from "url";
 
 export default defineComponent({
   props: {
@@ -506,6 +507,7 @@ export default defineComponent({
                 proxyData.realTemp = proxyData.realTemp.toFixed(1);
                 proxyData.realTemp = fix(proxyData.realTemp);
               }
+              console.log(proxyData.realTemp);
               barBox.style.left = left + proxyData.sliderPading + "px";
             }
           }

+ 5 - 2
src/views/envmonitor/components/ManualWork/index.vue

@@ -139,7 +139,8 @@
       <div class="device-tip" v-if="isAir">
         <span>* 设备加时提示:</span>
         <ul>
-          <li>工作日大厦提供固定时段空调,其余时间可通过“预约加时”功能额外申请空调使用时间;</li>
+          <li>
+            工作日大厦提供固定时段空调,其余时间可通过“预约加时”功能额外申请空调使用时间;</li>
           <li>空调加时采用后付费方式,系统将依据真实使用时长,空间面积和加时单价据实计算加时费用,空调加时单价为0.4元/㎡·h;</li>
           <li>提交完申请,待您所在公司<b>行政人员审批通过后</b>,预约时段内您可自由开关空间下的设备;</li>
           <li>如您提前结束使用,请点击“我要离开”按钮,系统会自动调整设备关闭时间我们期待与您共创可持续的办公空间。</li>
@@ -1901,6 +1902,8 @@ export default defineComponent({
     ul {
       list-style-position: inside;
       list-style: disc !important;
+      padding: 20px;
+      padding-top: 10px;
       li {
         list-style: disc !important;
         color: rgba(139, 148, 158, 1);
@@ -1909,7 +1912,7 @@ export default defineComponent({
         font-weight: 400;
         line-height: 26px;
         padding-bottom: 5px;
-        b{
+        b {
           color: #000;
         }
       }

+ 2 - 2
src/views/envmonitor/components/Socket/index.vue

@@ -414,7 +414,7 @@ export default defineComponent({
     padding-bottom: 24px;
     .top-nav {
       height: 28px;
-      line-height: 28px;
+      // line-height: 28px;
       border-radius: 21px;
       background: #f1f4f6;
       span {
@@ -424,7 +424,7 @@ export default defineComponent({
         font-style: normal;
         font-weight: 400;
         font-size: 14px;
-        padding: 5px 8px;
+        padding: 7px 8px;
         height: 28px;
         line-height: 14px;
         color: #424c59;

+ 1 - 1
src/views/envmonitor/index.vue

@@ -2211,7 +2211,7 @@ export default defineComponent({
     //width: 54%;
 
     .left-top {
-      width: 100%;
+      width: 90%;
       overflow: hidden;
       white-space: nowrap;
       text-overflow: ellipsis;