NurseStationUI/src/views/system/userlist/index.vue

25 lines
402 B
Vue
Raw Normal View History

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() {
2023-04-10 10:27:03 +08:00
getListByUser().then(res => {
2022-09-23 14:45:51 +08:00
if (res.rows[0].isAdmin == "1") {
} else {
this.$emit("itemlist", res.rows);
}
2022-09-22 08:32:14 +08:00
});
2023-04-10 10:27:03 +08:00
}
}
2022-09-22 08:32:14 +08:00
};
</script>