重构优化框架

这是一个大版本的更新
现在,框架更加稳定
This commit is contained in:
橙子
2022-02-21 15:00:15 +08:00
parent 769cf2285a
commit 8d90abd22e
146 changed files with 801 additions and 15635 deletions

View File

@@ -0,0 +1,44 @@
<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: "introduce", sortable: false },
{ text: "操作", value: "actions", sortable: false },
],
defaultItem: {
role_name: "",
introduce: "",
},
}),
};
</script>