|
|
@@ -15,10 +15,9 @@
|
|
|
<el-button
|
|
|
v-if="have_type == 0 || staff == 1 || have_type == 2"
|
|
|
type="success"
|
|
|
+ @click="addUserFun"
|
|
|
size="mini"
|
|
|
- ><a style="color: #fff" href="systemmanage_user_add"
|
|
|
- >添加新用户</a
|
|
|
- ></el-button
|
|
|
+ >添加新用户</el-button
|
|
|
>
|
|
|
</div>
|
|
|
<el-row :gutter="10">
|
|
|
@@ -82,7 +81,12 @@
|
|
|
<el-button size="small" type="success" @click="edit(item)" plain
|
|
|
>用户编辑</el-button
|
|
|
>
|
|
|
- <template v-if="(have_type == 0 || staff == 1 || have_type == 2) && (currusername != 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'"
|
|
|
@@ -320,7 +324,7 @@ export default {
|
|
|
},
|
|
|
have_type: "",
|
|
|
staff: "",
|
|
|
- currusername:''
|
|
|
+ currusername: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -334,7 +338,6 @@ export default {
|
|
|
this.have_type = localStorage.getItem("have_type"); // 0管理员 1用户
|
|
|
this.staff = localStorage.getItem("staff"); // 1是admin
|
|
|
this.currusername = localStorage.getItem("username"); // 1是admin
|
|
|
-
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|
|
|
@@ -541,6 +544,9 @@ export default {
|
|
|
this.page = 1;
|
|
|
this.getList();
|
|
|
},
|
|
|
+ addUserFun() {
|
|
|
+ window.location.href = "systemmanage_user_add";
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|