|
@@ -41,6 +41,7 @@
|
41
|
41
|
<template slot-scope="{ row }" slot="enabledSlot">
|
42
|
42
|
<i-switch
|
43
|
43
|
size="large"
|
|
44
|
+ :disabled="row.adminid === userInfo.adminid"
|
44
|
45
|
v-model="row.enabled"
|
45
|
46
|
:true-value="1"
|
46
|
47
|
:false-value="2"
|
|
@@ -54,7 +55,13 @@
|
54
|
55
|
<div class="action_list">
|
55
|
56
|
<div @click="toView(row)">查看</div>
|
56
|
57
|
<div @click="toEdit(row)">编辑</div>
|
57
|
|
- <div class="action_del" @click="toDel(row)">删除</div>
|
|
58
|
+ <div
|
|
59
|
+ class="action_del"
|
|
60
|
+ v-if="row.adminid !== userInfo.adminid"
|
|
61
|
+ @click="toDel(row)"
|
|
62
|
+ >
|
|
63
|
+ 删除
|
|
64
|
+ </div>
|
58
|
65
|
</div>
|
59
|
66
|
</template>
|
60
|
67
|
</Table>
|
|
@@ -155,8 +162,12 @@
|
155
|
162
|
</FormItem>
|
156
|
163
|
<FormItem label="状态" prop="enabled" style="width: 100%">
|
157
|
164
|
<RadioGroup v-model="adminInfo.enabled">
|
158
|
|
- <Radio :label="1">启用</Radio>
|
159
|
|
- <Radio :label="2">禁用</Radio>
|
|
165
|
+ <Radio :label="1" :disabled="adminInfo.adminid === userInfo.adminid"
|
|
166
|
+ >启用</Radio
|
|
167
|
+ >
|
|
168
|
+ <Radio :label="2" :disabled="adminInfo.adminid === userInfo.adminid"
|
|
169
|
+ >禁用</Radio
|
|
170
|
+ >
|
160
|
171
|
</RadioGroup>
|
161
|
172
|
</FormItem>
|
162
|
173
|
<FormItem
|
|
@@ -279,6 +290,7 @@ export default {
|
279
|
290
|
}
|
280
|
291
|
};
|
281
|
292
|
return {
|
|
293
|
+ userInfo: {},
|
282
|
294
|
searchForm: {
|
283
|
295
|
dropList: [],
|
284
|
296
|
aname: "",
|
|
@@ -442,6 +454,9 @@ export default {
|
442
|
454
|
};
|
443
|
455
|
},
|
444
|
456
|
created() {
|
|
457
|
+ this.userInfo = JSON.parse(
|
|
458
|
+ localStorage.getItem("xh_control_userInfo")
|
|
459
|
+ ).content;
|
445
|
460
|
this.getSearchRegionList();
|
446
|
461
|
this.searchList();
|
447
|
462
|
},
|