|
|
@@ -82,7 +82,7 @@
|
|
|
<el-button type="success" @click="edit(item)" plain
|
|
|
>用户编辑</el-button
|
|
|
>
|
|
|
- <template v-if="(have_type == 0 || staff == 1 || have_type == 2) && (username != item.username)">
|
|
|
+ <template v-if="(have_type == 0 || staff == 1 || have_type == 2) && (currusername != item.username)">
|
|
|
<el-button
|
|
|
size='small'
|
|
|
v-if="item.user_have_type == '1' || item.user_have_type == '2'"
|
|
|
@@ -319,7 +319,7 @@ export default {
|
|
|
},
|
|
|
have_type: "",
|
|
|
staff: "",
|
|
|
- username: "",
|
|
|
+ currusername: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -333,7 +333,7 @@ export default {
|
|
|
this.getList();
|
|
|
this.have_type = localStorage.getItem("have_type"); // 0管理员 1用户
|
|
|
this.staff = localStorage.getItem("staff"); // 1是admin
|
|
|
- this.username = localStorage.getItem("username"); // 1是admin
|
|
|
+ this.currusername = localStorage.getItem("username"); // 1是admin
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|