Compare commits
No commits in common. "d40e8c2e0dcdaeb04d0d05d138d75f3193548a21" and "0021c94024a50987868a19f2ce98331b659fe1eb" have entirely different histories.
d40e8c2e0d
...
0021c94024
2
web/.env
2
web/.env
@ -1,3 +1,3 @@
|
|||||||
VITE_TITLE = '管理后台'
|
VITE_TITLE = 'Vue FastAPI Admin'
|
||||||
|
|
||||||
VITE_PORT = 3100
|
VITE_PORT = 3100
|
||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "admin-web",
|
"name": "vue-fastapi-admin-web",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
11
web/src/layout/components/header/components/GithubSite.vue
Normal file
11
web/src/layout/components/header/components/GithubSite.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
<n-icon mr-20 size="18" style="cursor: pointer" @click="handleLinkClick">
|
||||||
|
<icon-mdi:github />
|
||||||
|
</n-icon>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
function handleLinkClick() {
|
||||||
|
window.open('https://github.com/mizhexiaoxiao/vue-fastapi-admin')
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -6,6 +6,7 @@
|
|||||||
<div ml-auto flex items-center>
|
<div ml-auto flex items-center>
|
||||||
<Languages />
|
<Languages />
|
||||||
<ThemeMode />
|
<ThemeMode />
|
||||||
|
<GithubSite />
|
||||||
<FullScreen />
|
<FullScreen />
|
||||||
<UserAvatar />
|
<UserAvatar />
|
||||||
</div>
|
</div>
|
||||||
@ -16,6 +17,7 @@ import BreadCrumb from './components/BreadCrumb.vue'
|
|||||||
import MenuCollapse from './components/MenuCollapse.vue'
|
import MenuCollapse from './components/MenuCollapse.vue'
|
||||||
import FullScreen from './components/FullScreen.vue'
|
import FullScreen from './components/FullScreen.vue'
|
||||||
import UserAvatar from './components/UserAvatar.vue'
|
import UserAvatar from './components/UserAvatar.vue'
|
||||||
|
import GithubSite from './components/GithubSite.vue'
|
||||||
import ThemeMode from './components/ThemeMode.vue'
|
import ThemeMode from './components/ThemeMode.vue'
|
||||||
import Languages from './components/Languages.vue'
|
import Languages from './components/Languages.vue'
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -211,6 +211,7 @@ const columns = [
|
|||||||
},
|
},
|
||||||
{ default: () => '开票' }
|
{ default: () => '开票' }
|
||||||
),
|
),
|
||||||
|
[[vPermission, 'post/api/v1/transactions/send-email']]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
buttons.push(
|
buttons.push(
|
||||||
@ -225,6 +226,7 @@ const columns = [
|
|||||||
},
|
},
|
||||||
{ default: () => '退款' }
|
{ default: () => '退款' }
|
||||||
),
|
),
|
||||||
|
[[vPermission, 'post/api/v1/invoice/update-status']]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
} else if (row.status === 'invoiced') {
|
} else if (row.status === 'invoiced') {
|
||||||
|
|||||||
@ -149,6 +149,7 @@ const columns = [
|
|||||||
icon: renderIcon('material-symbols:info', { size: 16 }),
|
icon: renderIcon('material-symbols:info', { size: 16 }),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
[[vPermission, 'get/api/v1/app-user-admin/list']]
|
||||||
),
|
),
|
||||||
withDirectives(
|
withDirectives(
|
||||||
h(
|
h(
|
||||||
@ -164,6 +165,7 @@ const columns = [
|
|||||||
icon: renderIcon('material-symbols:settings', { size: 16 }),
|
icon: renderIcon('material-symbols:settings', { size: 16 }),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
[[vPermission, 'post/api/v1/app-user-admin/quota']]
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user