Ver código fonte

学校-提醒时长限制

gzb
wangzhonglu 9 meses atrás
pai
commit
e2850e52cc
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9
    0
      src/views/schoolSection/setting/deviceSetting.vue

+ 9
- 0
src/views/schoolSection/setting/deviceSetting.vue Ver arquivo

@@ -445,6 +445,15 @@ export default {
445 445
       });
446 446
     },
447 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 457
       schoolSet_edit({
449 458
         rtype: this.powerParams.rtype,
450 459
         objectid: this.powerParams.objectid,

Carregando…
Cancelar
Salvar