Browse Source

Merge commit 'd51cedcb58315e6126139ca16a3be97f62edb539' into gzb

gzb
guozhongbo 8 months ago
parent
commit
e7da14bb1a

+ 10
- 1
src/components/TimeStrategy/TimeStrategy.vue View File

@@ -103,6 +103,9 @@ export default {
103 103
         if (!_timeInfo[timeItem.week]) {
104 104
           _timeInfo[timeItem.week] = [];
105 105
         }
106
+        if (timeItem.stoptime === "23:59") {
107
+          timeItem.stoptime = "24:00";
108
+        }
106 109
         let _starttimeArr = timeItem.starttime.split(":");
107 110
         let _stoptimeArr = timeItem.stoptime.split(":");
108 111
         let _startHalfHour = Number(_starttimeArr[0]) * 2;
@@ -161,7 +164,10 @@ export default {
161 164
           _times.push({
162 165
             week: weekValue,
163 166
             starttime: _dayTimeInfo.starttime,
164
-            stoptime: _dayTimeInfo.stoptime
167
+            stoptime:
168
+              _dayTimeInfo.stoptime === "24:00"
169
+                ? "23:59"
170
+                : _dayTimeInfo.stoptime
165 171
           });
166 172
         }
167 173
       }
@@ -172,6 +178,9 @@ export default {
172 178
       let _hour = parseInt(halfHour / 2);
173 179
       _hour = _hour > 9 ? _hour : `0${_hour}`;
174 180
       let _minute = halfHour % 2 === 0 ? "00" : "30";
181
+      if (_hour === 24 && _minute === "00") {
182
+        return `${weekItemLabel} 23:59`;
183
+      }
175 184
       return `${weekItemLabel} ${_hour}:${_minute}`;
176 185
     },
177 186
     // 设置时间策略

+ 2
- 2
src/utils/ControlWSMsg.js View File

@@ -29,11 +29,11 @@ class ControlWSMsg {
29 29
     // {msg}
30 30
     this.body = { msg };
31 31
   }
32
-  // 限制使用
32
+  // 锁定
33 33
   limitedUse() {
34 34
     this.code = 2002;
35 35
   }
36
-  // 解除限制
36
+  // 解除锁定
37 37
   removeLimit() {
38 38
     this.code = 2003;
39 39
   }

+ 2
- 2
src/utils/index.js View File

@@ -636,8 +636,8 @@ export const breakRuleDoEvent = {
636 636
  */
637 637
 export const pushTypeInfo = {
638 638
   1: "发送消息",
639
-  2: "解除限制",
640
-  3: "限制使用",
639
+  2: "解除锁定",
640
+  3: "锁定",
641 641
   4: "更新策略",
642 642
   5: "重启设备",
643 643
   6: "恢复出厂"

+ 1
- 1
src/views/regionSection/log/deviceEvents.vue View File

@@ -42,7 +42,7 @@
42 42
     <div class="table_wrap">
43 43
       <Table :columns="columns" :data="searchForm.list">
44 44
         <template slot-scope="{ row }" slot="doEventSlot">
45
-          <!-- 1发送消息 2解除限制 3限制使用 4更新策略 5重启设备 6恢复出厂 -->
45
+          <!-- 1发送消息 2解除锁定 3锁定 4更新策略 5重启设备 6恢复出厂 -->
46 46
           <div>{{ doEventInfo[row.doEvent] }}</div>
47 47
         </template>
48 48
         <template slot-scope="{ row }" slot="violatedSlot">

+ 1
- 1
src/views/regionSection/log/devicePush.vue View File

@@ -25,7 +25,7 @@
25 25
     <div class="table_wrap">
26 26
       <Table :columns="columns" :data="searchForm.list">
27 27
         <template slot-scope="{ row }" slot="pushTypeSlot">
28
-          <!-- 1发送消息 2解除限制 3限制使用 4更新策略 5重启设备 6恢复出厂 -->
28
+          <!-- 1发送消息 2解除锁定 3锁定 4更新策略 5重启设备 6恢复出厂 -->
29 29
           <div>{{ pushTypeInfo[row.pushType] }}</div>
30 30
         </template>
31 31
       </Table>

+ 1
- 2
src/views/schoolSection/applicationStrategy/appStrategyTemplateAdd.vue View File

@@ -535,8 +535,7 @@ export default {
535 535
   display: flex;
536 536
   justify-content: flex-end;
537 537
   align-items: center;
538
-  margin-top: 16px;
539
-  margin-right: 16px;
538
+  margin: 16px;
540 539
   .primary_btn {
541 540
     margin-left: 16px;
542 541
   }

+ 1
- 2
src/views/schoolSection/applicationStrategy/appStrategyTemplateView.vue View File

@@ -245,7 +245,6 @@ export default {
245 245
   display: flex;
246 246
   justify-content: center;
247 247
   align-items: center;
248
-  margin-top: 16px;
249
-  margin-right: 16px;
248
+  margin: 16px;
250 249
 }
251 250
 </style>

+ 8
- 8
src/views/schoolSection/deviceManage/breakRuleDevice.vue View File

@@ -28,8 +28,8 @@
28 28
           <DropdownMenu slot="list">
29 29
             <DropdownItem name="1">恢复出厂</DropdownItem>
30 30
             <DropdownItem name="2">发送消息</DropdownItem>
31
-            <DropdownItem name="4">解除限制</DropdownItem>
32
-            <DropdownItem name="5">限制使用</DropdownItem>
31
+            <DropdownItem name="4">解除锁定</DropdownItem>
32
+            <DropdownItem name="5">锁定</DropdownItem>
33 33
             <DropdownItem name="6">更新策略</DropdownItem>
34 34
             <DropdownItem name="7">重启设备</DropdownItem>
35 35
             <DropdownItem name="9">解除管控</DropdownItem>
@@ -467,28 +467,28 @@ export default {
467 467
           useridList
468 468
         };
469 469
       } else if (name === "4") {
470
-        // 解除限制
470
+        // 解除锁定
471 471
         if (snList.length === 0) {
472 472
           this.$Message.error("请勾选至少一个设备。");
473 473
           return;
474 474
         }
475 475
         this.$Modal.confirm({
476 476
           title: "提示",
477
-          content: "确定对所选设备进行解除限制操作吗?",
477
+          content: "确定对所选设备进行解除锁定操作吗?",
478 478
           onOk: () => {
479 479
             this.controlRemoveLimit(snList, useridList);
480 480
           },
481 481
           onCancel: () => {}
482 482
         });
483 483
       } else if (name === "5") {
484
-        // 限制使用
484
+        // 锁定
485 485
         if (snList.length === 0) {
486 486
           this.$Message.error("请勾选至少一个设备。");
487 487
           return;
488 488
         }
489 489
         this.$Modal.confirm({
490 490
           title: "提示",
491
-          content: "确定对所选设备进行限制使用操作吗?",
491
+          content: "确定对所选设备进行锁定操作吗?",
492 492
           onOk: () => {
493 493
             this.controlLimitedUse(snList, useridList);
494 494
           },
@@ -605,7 +605,7 @@ export default {
605 605
         }
606 606
       });
607 607
     },
608
-    // 解除限制
608
+    // 解除锁定
609 609
     controlRemoveLimit(snList) {
610 610
       let controlWSMsg = new ControlWSMsg(
611 611
         controlWs.ws,
@@ -628,7 +628,7 @@ export default {
628 628
       // form.userids = useridList;
629 629
       // this.addPushLog(form);
630 630
     },
631
-    // 限制使用
631
+    // 锁定
632 632
     controlLimitedUse(snList) {
633 633
       let controlWSMsg = new ControlWSMsg(
634 634
         controlWs.ws,

+ 9
- 9
src/views/schoolSection/deviceManage/deviceManage.vue View File

@@ -68,8 +68,8 @@
68 68
               <DropdownItem name="3" v-if="searchForm.classid"
69 69
                 >整班发送消息</DropdownItem
70 70
               >
71
-              <DropdownItem name="4">解除限制</DropdownItem>
72
-              <DropdownItem name="5">限制使用</DropdownItem>
71
+              <DropdownItem name="4">解除锁定</DropdownItem>
72
+              <DropdownItem name="5">锁定</DropdownItem>
73 73
               <DropdownItem name="6">更新策略</DropdownItem>
74 74
               <DropdownItem name="7">重启设备</DropdownItem>
75 75
               <DropdownItem name="9">解除管控</DropdownItem>
@@ -334,7 +334,7 @@
334 334
                   <Checkbox
335 335
                     :disabled="true"
336 336
                     style="margin: 0 40px"
337
-                    label="限制使用"
337
+                    label="锁定"
338 338
                   ></Checkbox>
339 339
                   <Checkbox :disabled="true" label="恢复出厂设置"></Checkbox>
340 340
                 </CheckboxGroup>
@@ -1307,28 +1307,28 @@ export default {
1307 1307
           }
1308 1308
         });
1309 1309
       } else if (name === "4") {
1310
-        // 解除限制
1310
+        // 解除锁定
1311 1311
         if (snList.length === 0) {
1312 1312
           this.$Message.error("请勾选至少一个设备。");
1313 1313
           return;
1314 1314
         }
1315 1315
         this.$Modal.confirm({
1316 1316
           title: "提示",
1317
-          content: "确定对所选设备进行解除限制操作吗?",
1317
+          content: "确定对所选设备进行解除锁定操作吗?",
1318 1318
           onOk: () => {
1319 1319
             this.controlRemoveLimit(snList, useridList);
1320 1320
           },
1321 1321
           onCancel: () => {}
1322 1322
         });
1323 1323
       } else if (name === "5") {
1324
-        // 限制使用
1324
+        // 锁定
1325 1325
         if (snList.length === 0) {
1326 1326
           this.$Message.error("请勾选至少一个设备。");
1327 1327
           return;
1328 1328
         }
1329 1329
         this.$Modal.confirm({
1330 1330
           title: "提示",
1331
-          content: "确定对所选设备进行限制使用操作吗?",
1331
+          content: "确定对所选设备进行锁定操作吗?",
1332 1332
           onOk: () => {
1333 1333
             this.controlLimitedUse(snList, useridList);
1334 1334
           },
@@ -1442,7 +1442,7 @@ export default {
1442 1442
         }
1443 1443
       });
1444 1444
     },
1445
-    // 解除限制
1445
+    // 解除锁定
1446 1446
     controlRemoveLimit(snList) {
1447 1447
       let controlWSMsg = new ControlWSMsg(
1448 1448
         controlWs.ws,
@@ -1465,7 +1465,7 @@ export default {
1465 1465
       // form.userids = useridList;
1466 1466
       // this.addPushLog(form);
1467 1467
     },
1468
-    // 限制使用
1468
+    // 锁定
1469 1469
     controlLimitedUse(snList) {
1470 1470
       let controlWSMsg = new ControlWSMsg(
1471 1471
         controlWs.ws,

+ 1
- 1
src/views/schoolSection/log/deviceEvents.vue View File

@@ -42,7 +42,7 @@
42 42
     <div class="table_wrap">
43 43
       <Table :columns="columns" :data="searchForm.list">
44 44
         <template slot-scope="{ row }" slot="doEventSlot">
45
-          <!-- 1发送消息 2解除限制 3限制使用 4更新策略 5重启设备 6恢复出厂 -->
45
+          <!-- 1发送消息 2解除锁定 3锁定 4更新策略 5重启设备 6恢复出厂 -->
46 46
           <div>{{ doEventInfo[row.doEvent] }}</div>
47 47
         </template>
48 48
         <template slot-scope="{ row }" slot="violatedSlot">

+ 1
- 1
src/views/schoolSection/log/devicePush.vue View File

@@ -25,7 +25,7 @@
25 25
     <div class="table_wrap">
26 26
       <Table :columns="columns" :data="searchForm.list">
27 27
         <template slot-scope="{ row }" slot="pushTypeSlot">
28
-          <!-- 1发送消息 2解除限制 3限制使用 4更新策略 5重启设备 6恢复出厂 -->
28
+          <!-- 1发送消息 2解除锁定 3锁定 4更新策略 5重启设备 6恢复出厂 -->
29 29
           <div>{{ pushTypeInfo[row.pushType] }}</div>
30 30
         </template>
31 31
       </Table>

+ 1
- 1
src/views/schoolSection/setting/deviceSetting.vue View File

@@ -34,7 +34,7 @@
34 34
         禁用注销开启后,该单位的所有设备一旦登录成功,必须输入管理员密码才能退出登录。
35 35
       </div>
36 36
       <div class="require">
37
-        限制使用时长后,客户端使用时间到了设备提醒休息,默认允许使用30分钟,这里你可以自行设置(可设置范围20~120分钟)。
37
+        锁定时长后,客户端使用时间到了设备提醒休息,默认允许使用30分钟,这里你可以自行设置(可设置范围20~120分钟)。
38 38
       </div>
39 39
       <!-- <div class="require">
40 40
         限制安装来源功能开启后,只允许安装<span style="color: #339dff"

+ 11
- 2
src/views/schoolSection/setting/wallpaper.vue View File

@@ -53,11 +53,20 @@
53 53
         <template slot-scope="{ row }" slot="actionSlot">
54 54
           <div class="action_list">
55 55
             <div @click="toView(row)">查看</div>
56
-            <div v-if="userInfo.adminid === row.updateid" @click="toEdit(row)">
56
+            <div
57
+              v-if="
58
+                powerParams.rtype === row.wlevel &&
59
+                userInfo.adminid === row.updateid
60
+              "
61
+              @click="toEdit(row)"
62
+            >
57 63
               编辑
58 64
             </div>
59 65
             <div
60
-              v-if="userInfo.adminid === row.updateid"
66
+              v-if="
67
+                powerParams.rtype === row.wlevel &&
68
+                userInfo.adminid === row.updateid
69
+              "
61 70
               class="action_del"
62 71
               @click="toDel(row)"
63 72
             >

+ 1
- 1
src/views/schoolSection/strategy/personalStrategy.vue View File

@@ -269,7 +269,7 @@
269 269
                 <Checkbox
270 270
                   :disabled="strategyInfo.model === 'see'"
271 271
                   style="margin: 0 40px"
272
-                  label="限制使用"
272
+                  label="锁定"
273 273
                 ></Checkbox>
274 274
                 <Checkbox
275 275
                   :disabled="strategyInfo.model === 'see'"

+ 1
- 1
src/views/schoolSection/strategy/publicStrategy.vue View File

@@ -205,7 +205,7 @@
205 205
             <Checkbox
206 206
               :disabled="curState === 1"
207 207
               style="margin: 0 40px"
208
-              label="限制使用"
208
+              label="锁定"
209 209
             ></Checkbox>
210 210
             <Checkbox
211 211
               :disabled="curState === 1"

+ 1
- 1
src/views/schoolSection/strategy/strategyTemplate.vue View File

@@ -305,7 +305,7 @@
305 305
                 <Checkbox
306 306
                   :disabled="strategyInfo.model === '查看'"
307 307
                   style="margin: 0 40px"
308
-                  label="限制使用"
308
+                  label="锁定"
309 309
                 ></Checkbox>
310 310
                 <Checkbox
311 311
                   :disabled="strategyInfo.model === '查看'"

Loading…
Cancel
Save