Browse Source

策略显示时间

gzb
guozhongbo 8 months ago
parent
commit
23985fa89a

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

135
             </Select>
135
             </Select>
136
           </div>
136
           </div>
137
         </div>
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
       </div>
139
       </div>
144
 
140
 
145
       <div slot="footer" style="text-align: center">
141
       <div slot="footer" style="text-align: center">

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

121
             </Select>
121
             </Select>
122
           </div>
122
           </div>
123
         </div>
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
       </div>
125
       </div>
130
 
126
 
131
       <div slot="footer" style="text-align: center">
127
       <div slot="footer" style="text-align: center">

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

632
             </Select>
632
             </Select>
633
           </div>
633
           </div>
634
         </div>
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
       </div>
636
       </div>
641
 
637
 
642
       <div slot="footer" style="text-align: center">
638
       <div slot="footer" style="text-align: center">

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

82
                 设备生效时间
82
                 设备生效时间
83
               </div>
83
               </div>
84
               <div class="week">
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
                   <div class="day_content">
87
                   <div class="day_content">
88
                     <div
88
                     <div
89
                       class="time"
89
                       class="time"
90
-                      v-for="(sitem, index) in getDay(item.id)"
90
+                      v-for="(sitem, index) in getDay(item.value)"
91
                       :key="index"
91
                       :key="index"
92
                     >
92
                     >
93
                       {{ getTime(sitem.starttime) }}-{{
93
                       {{ getTime(sitem.starttime) }}-{{
348
   stPad_list_user
348
   stPad_list_user
349
 } from "@/api/stPad";
349
 } from "@/api/stPad";
350
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
350
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
351
-import { padDevices, padViolates } from "@/utils";
351
+import { padDevices, padViolates, weekDay } from "@/utils";
352
 export default {
352
 export default {
353
   components: {
353
   components: {
354
     TimeStrategy
354
     TimeStrategy
356
   props: ["curClass"],
356
   props: ["curClass"],
357
   data() {
357
   data() {
358
     return {
358
     return {
359
+      weekDay,
359
       showLoading: false,
360
       showLoading: false,
360
       stPadInfo: {
361
       stPadInfo: {
361
         show: false,
362
         show: false,
418
           align: "center"
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
       ssidName: "",
422
       ssidName: "",
452
       searchForm: {
423
       searchForm: {
453
         name: "",
424
         name: "",
681
     getTime(time) {
652
     getTime(time) {
682
       return time;
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
       return arr;
658
       return arr;
688
     },
659
     },
689
     timesChange(times) {
660
     timesChange(times) {

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

39
             设备生效时间
39
             设备生效时间
40
           </div>
40
           </div>
41
           <div class="week">
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
               <div class="day_content">
44
               <div class="day_content">
45
                 <div
45
                 <div
46
                   class="time"
46
                   class="time"
47
-                  v-for="(sitem, index) in getDay(item.id)"
47
+                  v-for="(sitem, index) in getDay(item.value)"
48
                   :key="index"
48
                   :key="index"
49
                 >
49
                 >
50
                   {{ getTime(sitem.starttime) }}-{{ getTime(sitem.stoptime) }}
50
                   {{ getTime(sitem.starttime) }}-{{ getTime(sitem.stoptime) }}
291
 } from "@/api/stPad";
291
 } from "@/api/stPad";
292
 import { app_list_sel } from "@/api/appgroup";
292
 import { app_list_sel } from "@/api/appgroup";
293
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
293
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
294
-import { padDevices, padViolates } from "@/utils";
294
+import { padDevices, padViolates, weekDay } from "@/utils";
295
 export default {
295
 export default {
296
   components: {
296
   components: {
297
     TimeStrategy
297
     TimeStrategy
299
   props: ["curClass"],
299
   props: ["curClass"],
300
   data() {
300
   data() {
301
     return {
301
     return {
302
+      weekDay,
302
       showLoading: false,
303
       showLoading: false,
303
       stPadInfo: {
304
       stPadInfo: {
304
         show: false,
305
         show: false,
359
           align: "center"
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
       ssidName: ""
363
       ssidName: ""
393
     };
364
     };
394
   },
365
   },
562
     getTime(time) {
533
     getTime(time) {
563
       return time;
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
       return arr;
539
       return arr;
569
     },
540
     },
570
     timesChange(times) {
541
     timesChange(times) {

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

118
                 设备生效时间
118
                 设备生效时间
119
               </div>
119
               </div>
120
               <div class="week">
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
                   <div class="day_content">
123
                   <div class="day_content">
124
                     <div
124
                     <div
125
                       class="time"
125
                       class="time"
126
-                      v-for="(sitem, index) in getDay(item.id)"
126
+                      v-for="(sitem, index) in getDay(item.value)"
127
                       :key="index"
127
                       :key="index"
128
                     >
128
                     >
129
                       {{ getTime(sitem.starttime) }}-{{
129
                       {{ getTime(sitem.starttime) }}-{{
362
 } from "@/api/stPad";
362
 } from "@/api/stPad";
363
 import { app_list_sel } from "@/api/appgroup";
363
 import { app_list_sel } from "@/api/appgroup";
364
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
364
 import TimeStrategy from "@/components/TimeStrategy/TimeStrategy";
365
-import { padDevices, padViolates } from "@/utils";
365
+import {padDevices, padViolates, weekDay} from "@/utils";
366
 export default {
366
 export default {
367
   components: {
367
   components: {
368
     TimeStrategy
368
     TimeStrategy
369
   },
369
   },
370
   data() {
370
   data() {
371
     return {
371
     return {
372
+      weekDay,
372
       showLoading: false,
373
       showLoading: false,
373
       searchForm: {
374
       searchForm: {
374
         name: "",
375
         name: "",
441
           align: "center"
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
       ssidName: "",
445
       ssidName: "",
475
       columns: [
446
       columns: [
476
         {
447
         {
558
     getTime(time) {
529
     getTime(time) {
559
       return time;
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
       return arr;
535
       return arr;
565
     },
536
     },
566
     timesChange(times) {
537
     timesChange(times) {

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

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

Loading…
Cancel
Save