Browse Source

策略显示时间

gzb
guozhongbo 8 months ago
parent
commit
23985fa89a

+ 1
- 5
src/views/regionSection/applicationManage/applicationManage.vue View File

@@ -135,11 +135,7 @@
135 135
             </Select>
136 136
           </div>
137 137
         </div>
138
-        <Table
139
-          style="border: 1px solid #e8eaec; border-bottom: none"
140
-          :columns="installInfo.columns"
141
-          :data="installInfo.list"
142
-        ></Table>
138
+        <Table :columns="installInfo.columns" :data="installInfo.list"></Table>
143 139
       </div>
144 140
 
145 141
       <div slot="footer" style="text-align: center">

+ 1
- 5
src/views/regionSection/search/allApps.vue View File

@@ -121,11 +121,7 @@
121 121
             </Select>
122 122
           </div>
123 123
         </div>
124
-        <Table
125
-          style="border: 1px solid #e8eaec; border-bottom: none"
126
-          :columns="installInfo.columns"
127
-          :data="installInfo.list"
128
-        ></Table>
124
+        <Table :columns="installInfo.columns" :data="installInfo.list"></Table>
129 125
       </div>
130 126
 
131 127
       <div slot="footer" style="text-align: center">

+ 1
- 5
src/views/schoolSection/applicationManage/applicationList.vue View File

@@ -632,11 +632,7 @@
632 632
             </Select>
633 633
           </div>
634 634
         </div>
635
-        <Table
636
-          style="border: 1px solid #e8eaec; border-bottom: none"
637
-          :columns="installInfo.columns"
638
-          :data="installInfo.list"
639
-        ></Table>
635
+        <Table :columns="installInfo.columns" :data="installInfo.list"></Table>
640 636
       </div>
641 637
 
642 638
       <div slot="footer" style="text-align: center">

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

@@ -82,12 +82,12 @@
82 82
                 设备生效时间
83 83
               </div>
84 84
               <div class="week">
85
-                <div class="day" v-for="item in weeks" :key="item.id">
86
-                  <div class="day_title">{{ item.title }}</div>
85
+                <div class="day" v-for="item in weekDay" :key="item.value">
86
+                  <div class="day_title">{{ item.alias }}</div>
87 87
                   <div class="day_content">
88 88
                     <div
89 89
                       class="time"
90
-                      v-for="(sitem, index) in getDay(item.id)"
90
+                      v-for="(sitem, index) in getDay(item.value)"
91 91
                       :key="index"
92 92
                     >
93 93
                       {{ getTime(sitem.starttime) }}-{{
@@ -348,7 +348,7 @@ import {
348 348
   stPad_list_user
349 349
 } from "@/api/stPad";
350 350
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
351
-import { padDevices, padViolates } from "@/utils";
351
+import { padDevices, padViolates, weekDay } from "@/utils";
352 352
 export default {
353 353
   components: {
354 354
     TimeStrategy
@@ -356,6 +356,7 @@ export default {
356 356
   props: ["curClass"],
357 357
   data() {
358 358
     return {
359
+      weekDay,
359 360
       showLoading: false,
360 361
       stPadInfo: {
361 362
         show: false,
@@ -418,36 +419,6 @@ export default {
418 419
           align: "center"
419 420
         }
420 421
       ],
421
-      weeks: [
422
-        {
423
-          title: "星期日",
424
-          id: 7
425
-        },
426
-        {
427
-          title: "星期一",
428
-          id: 1
429
-        },
430
-        {
431
-          title: "星期二",
432
-          id: 2
433
-        },
434
-        {
435
-          title: "星期三",
436
-          id: 3
437
-        },
438
-        {
439
-          title: "星期四",
440
-          id: 4
441
-        },
442
-        {
443
-          title: "星期五",
444
-          id: 5
445
-        },
446
-        {
447
-          title: "星期六",
448
-          id: 6
449
-        }
450
-      ],
451 422
       ssidName: "",
452 423
       searchForm: {
453 424
         name: "",
@@ -681,9 +652,9 @@ export default {
681 652
     getTime(time) {
682 653
       return time;
683 654
     },
684
-    getDay(id) {
655
+    getDay(val) {
685 656
       //获取当天时间
686
-      let arr = this.strategyInfo.padTimes.filter((v) => v.week === id);
657
+      let arr = this.strategyInfo.padTimes.filter((v) => v.week === val);
687 658
       return arr;
688 659
     },
689 660
     timesChange(times) {

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

@@ -39,12 +39,12 @@
39 39
             设备生效时间
40 40
           </div>
41 41
           <div class="week">
42
-            <div class="day" v-for="item in weeks" :key="item.id">
43
-              <div class="day_title">{{ item.title }}</div>
42
+            <div class="day" v-for="item in weekDay" :key="item.value">
43
+              <div class="day_title">{{ item.alias }}</div>
44 44
               <div class="day_content">
45 45
                 <div
46 46
                   class="time"
47
-                  v-for="(sitem, index) in getDay(item.id)"
47
+                  v-for="(sitem, index) in getDay(item.value)"
48 48
                   :key="index"
49 49
                 >
50 50
                   {{ getTime(sitem.starttime) }}-{{ getTime(sitem.stoptime) }}
@@ -291,7 +291,7 @@ import {
291 291
 } from "@/api/stPad";
292 292
 import { app_list_sel } from "@/api/appgroup";
293 293
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
294
-import { padDevices, padViolates } from "@/utils";
294
+import { padDevices, padViolates, weekDay } from "@/utils";
295 295
 export default {
296 296
   components: {
297 297
     TimeStrategy
@@ -299,6 +299,7 @@ export default {
299 299
   props: ["curClass"],
300 300
   data() {
301 301
     return {
302
+      weekDay,
302 303
       showLoading: false,
303 304
       stPadInfo: {
304 305
         show: false,
@@ -359,36 +360,6 @@ export default {
359 360
           align: "center"
360 361
         }
361 362
       ],
362
-      weeks: [
363
-        {
364
-          title: "星期日",
365
-          id: 7
366
-        },
367
-        {
368
-          title: "星期一",
369
-          id: 1
370
-        },
371
-        {
372
-          title: "星期二",
373
-          id: 2
374
-        },
375
-        {
376
-          title: "星期三",
377
-          id: 3
378
-        },
379
-        {
380
-          title: "星期四",
381
-          id: 4
382
-        },
383
-        {
384
-          title: "星期五",
385
-          id: 5
386
-        },
387
-        {
388
-          title: "星期六",
389
-          id: 6
390
-        }
391
-      ],
392 363
       ssidName: ""
393 364
     };
394 365
   },
@@ -562,9 +533,9 @@ export default {
562 533
     getTime(time) {
563 534
       return time;
564 535
     },
565
-    getDay(id) {
536
+    getDay(val) {
566 537
       //获取当天时间
567
-      let arr = this.strategyInfo.padTimes.filter((v) => v.week === id);
538
+      let arr = this.strategyInfo.padTimes.filter((v) => v.week === val);
568 539
       return arr;
569 540
     },
570 541
     timesChange(times) {

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

@@ -118,12 +118,12 @@
118 118
                 设备生效时间
119 119
               </div>
120 120
               <div class="week">
121
-                <div class="day" v-for="item in weeks" :key="item.id">
122
-                  <div class="day_title">{{ item.title }}</div>
121
+                <div class="day" v-for="item in weekDay" :key="item.value">
122
+                  <div class="day_title">{{ item.alias }}</div>
123 123
                   <div class="day_content">
124 124
                     <div
125 125
                       class="time"
126
-                      v-for="(sitem, index) in getDay(item.id)"
126
+                      v-for="(sitem, index) in getDay(item.value)"
127 127
                       :key="index"
128 128
                     >
129 129
                       {{ getTime(sitem.starttime) }}-{{
@@ -362,13 +362,14 @@ import {
362 362
 } from "@/api/stPad";
363 363
 import { app_list_sel } from "@/api/appgroup";
364 364
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
365
-import { padDevices, padViolates } from "@/utils";
365
+import {padDevices, padViolates, weekDay} from "@/utils";
366 366
 export default {
367 367
   components: {
368 368
     TimeStrategy
369 369
   },
370 370
   data() {
371 371
     return {
372
+      weekDay,
372 373
       showLoading: false,
373 374
       searchForm: {
374 375
         name: "",
@@ -441,36 +442,6 @@ export default {
441 442
           align: "center"
442 443
         }
443 444
       ],
444
-      weeks: [
445
-        {
446
-          title: "星期日",
447
-          id: 7
448
-        },
449
-        {
450
-          title: "星期一",
451
-          id: 1
452
-        },
453
-        {
454
-          title: "星期二",
455
-          id: 2
456
-        },
457
-        {
458
-          title: "星期三",
459
-          id: 3
460
-        },
461
-        {
462
-          title: "星期四",
463
-          id: 4
464
-        },
465
-        {
466
-          title: "星期五",
467
-          id: 5
468
-        },
469
-        {
470
-          title: "星期六",
471
-          id: 6
472
-        }
473
-      ],
474 445
       ssidName: "",
475 446
       columns: [
476 447
         {
@@ -558,9 +529,9 @@ export default {
558 529
     getTime(time) {
559 530
       return time;
560 531
     },
561
-    getDay(id) {
532
+    getDay(val) {
562 533
       //获取当天时间
563
-      let arr = this.strategyInfo.padTimes.filter((v) => v.week === id);
534
+      let arr = this.strategyInfo.padTimes.filter((v) => v.week === val);
564 535
       return arr;
565 536
     },
566 537
     timesChange(times) {

+ 1
- 1
src/views/schoolSection/userManage/userManage.vue View File

@@ -447,7 +447,7 @@ export default {
447 447
         { id: 2, title: "不关注" }
448 448
       ],
449 449
       enabled_list: [
450
-        { id: 0, title: "启状态" },
450
+        { id: 0, title: "启状态" },
451 451
         { id: 1, title: "启用" },
452 452
         { id: 2, title: "禁用" }
453 453
       ],

Loading…
Cancel
Save