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,13 +86,9 @@ body,
86 86
         background-color: #ffffff;
87 87
         .action_list {
88 88
           color: #339dff;
89
-          .action_error,
90 89
           .action_del {
91 90
             color: #f0153f;
92 91
           }
93
-          .action_success {
94
-            color: #52c41a;
95
-          }
96 92
         }
97 93
       }
98 94
     }
@@ -397,6 +393,14 @@ fieldset[disabled] .ivu-input,
397 393
       margin: 0 4px;
398 394
       padding: 0 4px;
399 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,13 +71,13 @@
71 71
         <template slot-scope="{ row }" slot="whited">
72 72
           <div class="action_list">
73 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 75
           </div>
76 76
         </template>
77 77
         <template slot-scope="{ row }" slot="showico">
78 78
           <div class="action_list">
79 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 81
           </div>
82 82
         </template>
83 83
         <template slot-scope="{ row }" slot="countSlot">

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

@@ -57,13 +57,13 @@
57 57
         <template slot-scope="{ row }" slot="whited">
58 58
           <div class="action_list">
59 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 61
           </div>
62 62
         </template>
63 63
         <template slot-scope="{ row }" slot="showico">
64 64
           <div class="action_list">
65 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 67
           </div>
68 68
         </template>
69 69
 

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

@@ -20,7 +20,7 @@
20 20
         <template slot-scope="{ row }" slot="enabled">
21 21
           <div class="action_list">
22 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 24
           </div>
25 25
         </template>
26 26
       </Table>

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

@@ -87,13 +87,13 @@
87 87
         <template slot-scope="{ row }" slot="whited">
88 88
           <div class="action_list">
89 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 91
           </div>
92 92
         </template>
93 93
         <template slot-scope="{ row }" slot="showico">
94 94
           <div class="action_list">
95 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 97
           </div>
98 98
         </template>
99 99
         <template slot-scope="{ row }" slot="countSlot">

+ 5
- 14
src/views/schoolSection/setting/wallpaper.vue View File

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

Loading…
Cancel
Save