Kaynağa Gözat

fix: 调节按钮的样式修改

chenzhen2 2 yıl önce
ebeveyn
işleme
490ee24146

+ 11 - 0
src/styles/index.scss

@@ -177,4 +177,15 @@ div:focus {
 
 .van-switch--on {
   background: $elActiveColor  !important;
+}
+
+
+.van-switch__node {
+  width: 24px !important;
+  height: 24px !important;
+}
+
+.switch-btn {
+  width: 48px !important;
+  height: 24px !important;
 }

+ 4 - 3
src/views/choiceSpace/choiceSpace.vue

@@ -285,6 +285,7 @@ export default defineComponent({
         });
         if (idArr.length) {
           let params: any = {
+            floorId: proxyData.checkPositon.floorId,
             workSpaceList: idArr,
             majorSpaceId: idArr[0], //类型:String  必有字段  备注:主空间
             macAddress: "test", //类型:String  必有字段  备注:平板地址
@@ -347,9 +348,9 @@ export default defineComponent({
           if (resData.result === "success") {
             proxyData.spaceData = resData?.data ?? [];
             proxyData.spaceData.map((item: any) => {
-              if(item.isWorkSpace){
-                 item.checked = true;
-              }else{
+              if (item.isWorkSpace) {
+                item.checked = true;
+              } else {
                 item.checked = false;
               }
             });

+ 0 - 1
src/views/envmonitor/components/Air.vue

@@ -34,7 +34,6 @@
           :loading="loadingAir || firstLoadingAir"
           :disabled="!userIsControl || loadingAir || firstLoadingAir"
           inactive-color="rgba(196, 196, 196, 0.4)"
-          size="24px"
           @click="airChange"
           :model-value="airData.isOpen"
           v-if="hasAir"

+ 2 - 2
src/views/envmonitor/components/Light.vue

@@ -21,7 +21,7 @@
           :src="lightImg"
           alt=""
         >
-        <Switch size="24px"
+        <Switch 
                 v-if="!showFlag"
                 :disabled="!userIsControl"
                 v-model="lampSw"
@@ -40,7 +40,7 @@
       <div class="control-title">
         {{ item.localName }}
       </div>
-      <Switch size="24px"
+      <Switch 
               active-color="$elActiveColor"
               :disabled="!userIsControl"
               v-model="item.switch"

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

@@ -428,7 +428,7 @@ export default defineComponent({
       isShowMetting: false,
       localName: "",
       airTemp: "",
-      userIsControl: false,
+      userIsControl: true,
       spaceModelTimer: spaceModelTimer,
       spaceTempTimer: spaceTempTimer,
       userSpaceInfo: userSpaceInfo,