添加前端

This commit is contained in:
橙子
2022-04-26 01:34:47 +08:00
parent f3061ed643
commit 630cfb6769
99 changed files with 5239 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<template>
<material-card color="primary" icon="mdi-account-tie">
<template #title>
角色管理 <small class="text-body-1">角色可分配多个菜单</small>
</template>
<ccTable
:defaultItem="defaultItem"
:headers="headers"
:axiosUrls="axiosUrls"
>
</ccTable>
</material-card>
</template>
<script>
import userApi from "../api/userApi"
export default {
created() {
this.init();
},
methods: {
init() {
userApi.GetAxiosByRouter(this.$route.path).then(resp=>{
this.axiosUrls=resp.data;
})
}
},
data: () => ({
start: true,
axiosUrls: {
},
headers: [
{ text: "编号", align: "start", value: "id" },
{ text: "角色名", value: "role_name", sortable: false },
{ text: "云盘地址", value: "file_path", sortable: false },
{ text: "简介", value: "introduce", sortable: false },
{ text: "操作", value: "actions", sortable: false },
],
defaultItem: {
role_name: "",
introduce: "",
},
}),
};
</script>