Browse Source

学校-提醒时长限制

gzb
wangzhonglu 9 months ago
parent
commit
e2850e52cc
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      src/views/schoolSection/setting/deviceSetting.vue

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

445
       });
445
       });
446
     },
446
     },
447
     saveSetDetail() {
447
     saveSetDetail() {
448
+      if (this.menuInfo.setDetail.remindDuration === 1) {
449
+        if (
450
+          this.menuInfo.setDetail.duration < 20 ||
451
+          this.menuInfo.setDetail.duration > 120
452
+        ) {
453
+          this.$Message.error("提醒时长可设置范围为20~120分钟");
454
+          return;
455
+        }
456
+      }
448
       schoolSet_edit({
457
       schoolSet_edit({
449
         rtype: this.powerParams.rtype,
458
         rtype: this.powerParams.rtype,
450
         objectid: this.powerParams.objectid,
459
         objectid: this.powerParams.objectid,

Loading…
Cancel
Save