dedsudiyu 2 years ago
parent
commit
5c965cd404
1 changed files with 31 additions and 3 deletions
  1. 31 3
      src/views/gasManage3_0/manage/recognizerManage/recognizerManage.vue

+ 31 - 3
src/views/gasManage3_0/manage/recognizerManage/recognizerManage.vue

@@ -19,7 +19,7 @@
         <el-col :span="1.5">
           <p class="add-button-one-120"
              @click="handleAdd"
-             v-hasPermi="['laboratory:sensor:add']"
+             v-hasPermi="['laboratory:hardware7:add']"
           ><i class="el-icon-plus"></i>新增</p>
         </el-col>
       </el-form-item>
@@ -33,6 +33,7 @@
         <template slot-scope="scope">
           <el-switch
             class="switch"
+            style="margin-left:35px;"
             @change="switchChange(scope.row)"
             v-model="scope.row.onOff+''"
             active-value="1"
@@ -51,11 +52,11 @@
             <p class="table-min-button"
                @click="handleUpdate(scope.row)"
                style="margin-right:20px;"
-               v-hasPermiAnd="['laboratory:sensor:query','laboratory:sensor:edit']"
+               v-hasPermiAnd="['laboratory:hardware7:query','laboratory:hardware7:edit']"
             >修改</p>
             <p class="table-min-button"
                @click="handleDelete(scope.row)"
-               v-hasPermi="['laboratory:sensor:remove']"
+               v-hasPermi="['laboratory:hardware7:remove']"
             >删除</p>
           </div>
         </template>
@@ -444,6 +445,33 @@ export default {
 
 </style>
 <style lang="scss">
+  .certification{
+    .switch .el-switch__label {
+      position: absolute;
+      display: none;
+      color: #fff !important;
+    }
+    .switch .el-switch__label--right {
+      z-index: 1;
+    }
+    .switch .el-switch__label--right span{
+      margin-left:10px;
+    }
+    .switch .el-switch__label--left {
+      z-index: 1;
+    }
+    .switch .el-switch__label--left span{
+      margin-left: 34px;
+    }
+    .switch .el-switch__label.is-active {
+      display: block;
+    }
+    .switch.el-switch .el-switch__core,
+    .el-switch .el-switch__label {
+      width: 64px !important;
+      margin: 0;
+    }
+  }
 .add-hardware-dialog-box{
   .el-form-item__error {
     left: 21%!important;