Browse Source

样式优化

gzb
wangzhonglu 8 months ago
parent
commit
23a5044372

+ 8
- 4
src/assets/less/common.less View File

86
         background-color: #ffffff;
86
         background-color: #ffffff;
87
         .action_list {
87
         .action_list {
88
           color: #339dff;
88
           color: #339dff;
89
-          .action_error,
90
           .action_del {
89
           .action_del {
91
             color: #f0153f;
90
             color: #f0153f;
92
           }
91
           }
93
-          .action_success {
94
-            color: #52c41a;
95
-          }
96
         }
92
         }
97
       }
93
       }
98
     }
94
     }
397
       margin: 0 4px;
393
       margin: 0 4px;
398
       padding: 0 4px;
394
       padding: 0 4px;
399
       cursor: pointer;
395
       cursor: pointer;
396
+      &.action_error {
397
+        color: #f0153f;
398
+        cursor: default;
399
+      }
400
+      &.action_success {
401
+        color: #52c41a;
402
+        cursor: default;
403
+      }
400
     }
404
     }
401
   }
405
   }
402
 }
406
 }

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

77
         </template>
77
         </template>
78
         <template slot-scope="{ row }" slot="trusted">
78
         <template slot-scope="{ row }" slot="trusted">
79
           <div class="action_list">
79
           <div class="action_list">
80
-            <div class="action_del">
80
+            <div class="action_error">
81
               {{ row.trusted === 1 ? "是" : "否" }}
81
               {{ row.trusted === 1 ? "是" : "否" }}
82
             </div>
82
             </div>
83
           </div>
83
           </div>

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

63
         </template>
63
         </template>
64
         <template slot-scope="{ row }" slot="trusted">
64
         <template slot-scope="{ row }" slot="trusted">
65
           <div class="action_list">
65
           <div class="action_list">
66
-            <div class="action_del">
66
+            <div class="action_error">
67
               {{ row.trusted === 1 ? "是" : "否" }}
67
               {{ row.trusted === 1 ? "是" : "否" }}
68
             </div>
68
             </div>
69
           </div>
69
           </div>

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

20
         <template slot-scope="{ row }" slot="enabled">
20
         <template slot-scope="{ row }" slot="enabled">
21
           <div class="action_list">
21
           <div class="action_list">
22
             <div v-if="row.enabled === 1" class="action_success">启用</div>
22
             <div v-if="row.enabled === 1" class="action_success">启用</div>
23
-            <div v-if="row.enabled === 2" class="action_del">禁用</div>
23
+            <div v-if="row.enabled === 2" class="action_error">禁用</div>
24
           </div>
24
           </div>
25
         </template>
25
         </template>
26
       </Table>
26
       </Table>

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

93
         </template>
93
         </template>
94
         <template slot-scope="{ row }" slot="trusted">
94
         <template slot-scope="{ row }" slot="trusted">
95
           <div class="action_list">
95
           <div class="action_list">
96
-            <div class="action_del">
96
+            <div class="action_error">
97
               {{ row.trusted === 1 ? "是" : "否" }}
97
               {{ row.trusted === 1 ? "是" : "否" }}
98
             </div>
98
             </div>
99
           </div>
99
           </div>

+ 5
- 14
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
57
-              v-if="
58
-                powerParams.rtype === row.wlevel &&
59
-                userInfo.adminid === row.updateid
60
-              "
61
-              @click="toEdit(row)"
62
-            >
56
+            <div v-if="powerParams.rtype === row.wlevel" @click="toEdit(row)">
63
               编辑
57
               编辑
64
             </div>
58
             </div>
65
             <div
59
             <div
66
-              v-if="
67
-                powerParams.rtype === row.wlevel &&
68
-                userInfo.adminid === row.updateid
69
-              "
60
+              v-if="powerParams.rtype === row.wlevel"
70
               class="action_del"
61
               class="action_del"
71
               @click="toDel(row)"
62
               @click="toDel(row)"
72
             >
63
             >
308
   data() {
299
   data() {
309
     return {
300
     return {
310
       userInfo: {},
301
       userInfo: {},
311
-      add_has: false,
302
+      // 1有添加按钮0无
303
+      add_has: 0,
312
       searchForm: {
304
       searchForm: {
313
         name: "",
305
         name: "",
314
         page: 1,
306
         page: 1,
404
     this.userInfo = JSON.parse(
396
     this.userInfo = JSON.parse(
405
       localStorage.getItem("xh_control_userInfo")
397
       localStorage.getItem("xh_control_userInfo")
406
     ).content;
398
     ).content;
407
-    this.init();
408
     this.searchList();
399
     this.searchList();
409
   },
400
   },
410
   computed: {
401
   computed: {
428
     // 搜索
419
     // 搜索
429
     searchList() {
420
     searchList() {
430
       this.searchForm.page = 1;
421
       this.searchForm.page = 1;
422
+      this.init();
431
       this.getList();
423
       this.getList();
432
     },
424
     },
433
     // 页码改变
425
     // 页码改变
664
               : wallpaper_add;
656
               : wallpaper_add;
665
           api(form).then((data) => {
657
           api(form).then((data) => {
666
             if (data.code === 0) {
658
             if (data.code === 0) {
667
-              this.init();
668
               this.searchList();
659
               this.searchList();
669
               this.$Message.success(data.msg);
660
               this.$Message.success(data.msg);
670
             } else {
661
             } else {

Loading…
Cancel
Save