2022-09-22 08:32:14 +08:00
|
|
|
<template></template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getListByUser } from "@/api/system/userlist.js";
|
|
|
|
|
export default {
|
|
|
|
|
name: "userlist",
|
|
|
|
|
data() {
|
|
|
|
|
return {};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
2022-09-23 14:45:51 +08:00
|
|
|
this.info();
|
2022-09-22 08:32:14 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
info() {
|
|
|
|
|
getListByUser().then((res) => {
|
|
|
|
|
console.log(res);
|
2022-09-23 14:45:51 +08:00
|
|
|
if (res.rows[0].isAdmin == "1") {
|
|
|
|
|
console.log(true);
|
|
|
|
|
} else {
|
|
|
|
|
this.$emit("itemlist", res.rows);
|
|
|
|
|
}
|
2022-09-22 08:32:14 +08:00
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|