Browse Source

Merge commit '23a5044372d33ff64c28586c8781aeb02f530103' into gzb

# Conflicts:
#	src/views/regionSection/applicationManage/applicationManage.vue
#	src/views/regionSection/search/allApps.vue
#	src/views/schoolSection/applicationManage/applicationList.vue
gzb
guozhongbo 9 months ago
parent
commit
82e4d54b45

+ 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
 }

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

71
         <template slot-scope="{ row }" slot="whited">
71
         <template slot-scope="{ row }" slot="whited">
72
           <div class="action_list">
72
           <div class="action_list">
73
             <div v-if="row.whited === 1" class="action_success">是</div>
73
             <div v-if="row.whited === 1" class="action_success">是</div>
74
-            <div v-else class="action_del">否</div>
74
+            <div v-else class="action_error">否</div>
75
           </div>
75
           </div>
76
         </template>
76
         </template>
77
         <template slot-scope="{ row }" slot="showico">
77
         <template slot-scope="{ row }" slot="showico">
78
           <div class="action_list">
78
           <div class="action_list">
79
             <div v-if="row.showico === 1" class="action_success">是</div>
79
             <div v-if="row.showico === 1" class="action_success">是</div>
80
-            <div v-else class="action_del">否</div>
80
+            <div v-else class="action_error">否</div>
81
           </div>
81
           </div>
82
         </template>
82
         </template>
83
         <template slot-scope="{ row }" slot="countSlot">
83
         <template slot-scope="{ row }" slot="countSlot">

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

57
         <template slot-scope="{ row }" slot="whited">
57
         <template slot-scope="{ row }" slot="whited">
58
           <div class="action_list">
58
           <div class="action_list">
59
             <div v-if="row.whited === 1" class="action_success">是</div>
59
             <div v-if="row.whited === 1" class="action_success">是</div>
60
-            <div v-else class="action_del">否</div>
60
+            <div v-else class="action_error">否</div>
61
           </div>
61
           </div>
62
         </template>
62
         </template>
63
         <template slot-scope="{ row }" slot="showico">
63
         <template slot-scope="{ row }" slot="showico">
64
           <div class="action_list">
64
           <div class="action_list">
65
             <div v-if="row.showico === 1" class="action_success">是</div>
65
             <div v-if="row.showico === 1" class="action_success">是</div>
66
-            <div v-else class="action_del">否</div>
66
+            <div v-else class="action_error">否</div>
67
           </div>
67
           </div>
68
         </template>
68
         </template>
69
 
69
 

+ 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>

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

87
         <template slot-scope="{ row }" slot="whited">
87
         <template slot-scope="{ row }" slot="whited">
88
           <div class="action_list">
88
           <div class="action_list">
89
             <div v-if="row.whited === 1" class="action_success">是</div>
89
             <div v-if="row.whited === 1" class="action_success">是</div>
90
-            <div v-else class="action_del">否</div>
90
+            <div v-else class="action_error">否</div>
91
           </div>
91
           </div>
92
         </template>
92
         </template>
93
         <template slot-scope="{ row }" slot="showico">
93
         <template slot-scope="{ row }" slot="showico">
94
           <div class="action_list">
94
           <div class="action_list">
95
             <div v-if="row.showico === 1" class="action_success">是</div>
95
             <div v-if="row.showico === 1" class="action_success">是</div>
96
-            <div v-else class="action_del">否</div>
96
+            <div v-else class="action_error">否</div>
97
           </div>
97
           </div>
98
         </template>
98
         </template>
99
         <template slot-scope="{ row }" slot="countSlot">
99
         <template slot-scope="{ row }" slot="countSlot">

+ 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