wangzhonglu 8 mesi fa
parent
commit
23a5044372

+ 8
- 4
src/assets/less/common.less Vedi 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
 }

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

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

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

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

+ 1
- 1
src/views/regionSection/search/allUsers.vue Vedi 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>

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

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

+ 5
- 14
src/views/schoolSection/setting/wallpaper.vue Vedi 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…
Annulla
Salva