Browse Source

区域白名单优化

gzb
guozhongbo 9 months ago
parent
commit
aae8b9ab94
1 changed files with 17 additions and 4 deletions
  1. 17
    4
      src/views/regionSection/networkManage/whitelist.vue

+ 17
- 4
src/views/regionSection/networkManage/whitelist.vue View File

@@ -29,9 +29,22 @@
29 29
         </template>
30 30
         <template slot-scope="{ row }" slot="actionSlot">
31 31
           <div class="action_list">
32
-            <div @click="toView(row)">查看</div>
33
-            <div @click="toEdit(row)">编辑</div>
34
-            <div class="action_del" @click="toDel(row)">删除</div>
32
+            <div v-if="row.whiteType === 1" @click="toView(row)">查看</div>
33
+            <div
34
+              v-if="
35
+                row.whiteType === 1 && row.regionid === powerParams.objectid
36
+              "
37
+              @click="toEdit(row)"
38
+            >
39
+              编辑
40
+            </div>
41
+            <div
42
+              v-if="row.regionid === powerParams.objectid"
43
+              class="action_del"
44
+              @click="toDel(row)"
45
+            >
46
+              {{ row.whiteType === 1 ? "删除" : "移除" }}
47
+            </div>
35 48
           </div>
36 49
         </template>
37 50
       </Table>
@@ -125,7 +138,7 @@
125 138
               <div class="school_list">
126 139
                 <span
127 140
                   class="school_item"
128
-                  v-for="(item, index) in this.select_schools"
141
+                  v-for="item in this.select_schools"
129 142
                   :key="item.schoolid"
130 143
                 >
131 144
                   <span class="title" :title="item.title">{{

Loading…
Cancel
Save