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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

53
         <template slot-scope="{ row }" slot="actionSlot">
53
         <template slot-scope="{ row }" slot="actionSlot">
54
           <div class="action_list">
54
           <div class="action_list">
55
             <div @click="toView(row)">查看</div>
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
             </div>
64
             </div>
59
             <div
65
             <div
60
-              v-if="userInfo.adminid === row.updateid"
66
+              v-if="
67
+                powerParams.rtype === row.wlevel &&
68
+                userInfo.adminid === row.updateid
69
+              "
61
               class="action_del"
70
               class="action_del"
62
               @click="toDel(row)"
71
               @click="toDel(row)"
63
             >
72
             >

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

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

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

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

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

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

Loading…
Cancel
Save