|
@@ -22,8 +22,25 @@
|
22
|
22
|
<template slot-scope="{ row }" slot="actionSlot">
|
23
|
23
|
<div class="action_list">
|
24
|
24
|
<div @click="toView(row)">查看</div>
|
25
|
|
- <div @click="toEdit(row)">编辑</div>
|
26
|
|
- <div class="action_del" @click="toDel(row)">删除</div>
|
|
25
|
+ <div
|
|
26
|
+ v-if="
|
|
27
|
+ row.createid === userInfo.adminid ||
|
|
28
|
+ row.regionid === powerParams.objectid
|
|
29
|
+ "
|
|
30
|
+ @click="toEdit(row)"
|
|
31
|
+ >
|
|
32
|
+ 编辑
|
|
33
|
+ </div>
|
|
34
|
+ <div
|
|
35
|
+ v-if="
|
|
36
|
+ row.createid === userInfo.adminid ||
|
|
37
|
+ row.regionid === powerParams.objectid
|
|
38
|
+ "
|
|
39
|
+ class="action_del"
|
|
40
|
+ @click="toDel(row)"
|
|
41
|
+ >
|
|
42
|
+ 删除
|
|
43
|
+ </div>
|
27
|
44
|
</div>
|
28
|
45
|
</template>
|
29
|
46
|
</Table>
|
|
@@ -179,6 +196,7 @@ export default {
|
179
|
196
|
iconPath: "",
|
180
|
197
|
comm: ""
|
181
|
198
|
},
|
|
199
|
+ userInfo: {},
|
182
|
200
|
rules: {
|
183
|
201
|
appgroupName: [
|
184
|
202
|
{
|
|
@@ -248,6 +266,11 @@ export default {
|
248
|
266
|
return this.$store.getters.powerParams;
|
249
|
267
|
}
|
250
|
268
|
},
|
|
269
|
+ created() {
|
|
270
|
+ this.userInfo = JSON.parse(
|
|
271
|
+ localStorage.getItem("xh_control_userInfo")
|
|
272
|
+ ).content;
|
|
273
|
+ },
|
251
|
274
|
mounted() {
|
252
|
275
|
this.searchList();
|
253
|
276
|
},
|