修改前端

This commit is contained in:
橙子
2021-10-11 15:45:59 +08:00
parent 23461b15a9
commit 0aa09f6a03
72 changed files with 1603 additions and 144 deletions

View File

@@ -0,0 +1,90 @@
<template>
<v-card class="mx-auto" width="100%">
<ccTable :defaultItem="defaultItem" :headers="headers" :axiosUrls="axiosUrls" ></ccTable>
</v-card>
</template>
<script>
import ccTable from "../components/Table.vue"
export default {
components: {
ccTable
},
data: () => ({
axiosUrls:{
get:"action/getactions",
update:"action/updateaction",
del:"action/delAllaction",
add:"action/addaction"
},
headers: [
{text: "编号",align: "start",value: "id"},
{ text: "权限名", value: "action_name", sortable: false },
{ text: "路由", value: "router", sortable: false },
{ text: "图标", value: "icon", sortable: false },
{ text: "排序", value: "sort", sortable: true },
{ text: "操作", value: "actions", sortable: false },
],
defaultItem: {
action_name: "test",
router: "/my/",
icon: "mdi-lock",
sort:"1"
},
items: [
{
title: "Dashboard",
icon: "mdi-view-dashboard",
to: "/",
items: [
{
title: "Dashboard",
icon: "mdi-view-dashboard",
to: "/",
items: [
{
title: "User Profile",
icon: "mdi-account",
to: "/components/profile/",
},
],
},
],
},
{
title: "User Profile",
icon: "mdi-account",
to: "/components/profile/",
},
{
title: "Regular Tables",
icon: "mdi-clipboard-outline",
to: "/tables/regular/",
},
{
title: "Typography",
icon: "mdi-format-font",
to: "/components/typography/",
},
{
title: "Icons",
icon: "mdi-chart-bubble",
to: "/components/icons/",
},
{
title: "Google Maps",
icon: "mdi-map-marker",
to: "/maps/google/",
},
{
title: "Notifications",
icon: "mdi-bell",
to: "/components/notifications/",
},
],
}),
};
</script>

View File

@@ -0,0 +1,4 @@
<template>
<div>666</div>
</template>