Commit b8ea022c authored by shangtx's avatar shangtx

feat: 用户管理

parent 00348101
import {axios} from '@/util/axios/request' import { axios } from '@/util/axios/request'
const api = { const api = {
getPage: '/sys/role/page', getPage: '/sys/role/page',
...@@ -46,3 +46,11 @@ export function changeStatus(id) { ...@@ -46,3 +46,11 @@ export function changeStatus(id) {
useFullLoading: true useFullLoading: true
}) })
} }
export function getAll() {
return axios({
url: '/sys/role/all-available',
method: 'get'
})
}
\ No newline at end of file
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
props: { props: {
title: { title: {
type: String, type: String,
default: '服务预约管理', default: '城市匠人管理',
required: false required: false
}, },
showTitle: { showTitle: {
......
...@@ -74,7 +74,13 @@ export default { ...@@ -74,7 +74,13 @@ export default {
columns, columns,
useYScroll: true, useYScroll: true,
title: '首页通知管理', title: '首页通知管理',
codes: [['BIZ0003'], []] codes: [['BIZ0003'], []],
toolbar: [
{
text: '新建',
handler: 'add'
}
]
} }
}, },
methods: { methods: {
...@@ -123,6 +129,9 @@ export default { ...@@ -123,6 +129,9 @@ export default {
}, },
detail(id) { detail(id) {
this.$refs.NoticeDetail.show(id) this.$refs.NoticeDetail.show(id)
},
add() {
this.$refs.NoticeDetail.show(null)
} }
} }
} }
......
<template>
<keep-alive v-if="keepAlive">
<router-view/>
</keep-alive>
<router-view v-else/>
</template>
<script>
export default {
name: "SysRoleRouteView",
computed: {
keepAlive() {
return this.$route.meta.keepAlive
}
},
}
</script>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<template>
<keep-alive v-if="keepAlive">
<router-view />
</keep-alive>
<router-view v-else />
</template>
<script>
export default {
name: "SysUserRouteView",
computed: {
keepAlive () {
return this.$route.meta.keepAlive
}
},
}
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment