mirror of
https://github.com/iczer/vue-antd-admin.git
synced 2025-04-06 03:57:44 +08:00
refactor: update to new project structure
This commit is contained in:
parent
263f3064a7
commit
f8483833f1
@ -1,65 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div style="text-align: center; margin-top: 48px">
|
|
||||||
<color-check-box-group :defaultValues="['1']" @change="changeColor" :multiple="true" style="display: inline-block">
|
|
||||||
<color-check-box color="rgb(245, 34, 45)" value="1" />
|
|
||||||
<color-check-box color="rgb(250, 84, 28)" value="2" />
|
|
||||||
<color-check-box color="rgb(250, 173, 20)" value="3" />
|
|
||||||
<color-check-box color="rgb(19, 194, 194)" value="4" />
|
|
||||||
<color-check-box color="rgb(82, 196, 26)" value="5" />
|
|
||||||
<color-check-box color="rgb(24, 144, 255)" value="6" />
|
|
||||||
<color-check-box color="rgb(47, 84, 235)" value="7" />
|
|
||||||
<color-check-box color="rgb(114, 46, 209)" value="8" />
|
|
||||||
<color-check-box color="rgb(256, 0, 0)" value="9" />
|
|
||||||
<color-check-box color="rgb(0, 256, 0)" value="10" />
|
|
||||||
<color-check-box color="rgb(0, 0, 256)" value="11" />
|
|
||||||
<color-check-box color="rgb(256, 256, 0)" value="12" />
|
|
||||||
</color-check-box-group>
|
|
||||||
<div></div>
|
|
||||||
<div class="view-color" :style="{backgroundColor: color}"/>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import ColorCheckBox from './ColorCheckBox'
|
|
||||||
|
|
||||||
const ColorCheckBoxGroup = ColorCheckBox.Group
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'Index',
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
color: 'rgb(245, 34, 45)'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {ColorCheckBox, ColorCheckBoxGroup},
|
|
||||||
methods: {
|
|
||||||
changeColor (values, colors) {
|
|
||||||
this.color = this.calculateColor(colors)
|
|
||||||
},
|
|
||||||
calculateColor (colors) {
|
|
||||||
let red = 0
|
|
||||||
let green = 0
|
|
||||||
let blue = 0
|
|
||||||
let values
|
|
||||||
colors.forEach(color => {
|
|
||||||
values = color.split('(')[1].split(')')[0].split(',')
|
|
||||||
red = Math.max(red, parseInt(values[0]))
|
|
||||||
green += Math.max(green, parseInt(values[1]))
|
|
||||||
blue += Math.max(blue, parseInt(values[2]))
|
|
||||||
})
|
|
||||||
return 'rgb(' + red + ',' + green + ',' + blue + ')'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="less" scoped>
|
|
||||||
.view-color{
|
|
||||||
margin-top: 48px;
|
|
||||||
display: inline-block;
|
|
||||||
height: 96px;
|
|
||||||
width: 96px;
|
|
||||||
border-radius: 48px;
|
|
||||||
border: 1px dashed gray;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -8,7 +8,7 @@
|
|||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
|
|
||||||
const Group = {
|
const Group = {
|
||||||
name: 'ColorCheckBoxGroup',
|
name: 'ColorCheckboxGroup',
|
||||||
props: {
|
props: {
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
type: Array,
|
type: Array,
|
||||||
@ -80,7 +80,7 @@ const Group = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ColorCheckBox',
|
name: 'ColorCheckbox',
|
||||||
Group: Group,
|
Group: Group,
|
||||||
components: {AIcon},
|
components: {AIcon},
|
||||||
props: {
|
props: {
|
@ -11,7 +11,7 @@
|
|||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
|
|
||||||
const Group = {
|
const Group = {
|
||||||
name: 'ImgCheckBoxGroup',
|
name: 'ImgCheckboxGroup',
|
||||||
props: {
|
props: {
|
||||||
multiple: {
|
multiple: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@ -73,7 +73,7 @@ const Group = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ImgCheckBox',
|
name: 'ImgCheckbox',
|
||||||
Group,
|
Group,
|
||||||
props: {
|
props: {
|
||||||
checked: {
|
checked: {
|
@ -1,36 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div style="margin: -24px -24px 0px">
|
|
||||||
<page-header :breadcrumb="breadcrumb"/>
|
|
||||||
<div style="margin: 24px 24px 0px">
|
|
||||||
<router-view ref="page"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import PageHeader from '../page/PageHeader'
|
|
||||||
export default {
|
|
||||||
name: 'CommonPageLayout',
|
|
||||||
components: {PageHeader},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
breadcrumb: []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
this.getPageHeaderInfo()
|
|
||||||
},
|
|
||||||
beforeUpdate () {
|
|
||||||
this.getPageHeaderInfo()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getPageHeaderInfo () {
|
|
||||||
this.breadcrumb = this.$route.matched
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
|
|
||||||
</style>
|
|
@ -1,29 +1,29 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-layout-sider class="sider" width="273">
|
<a-layout-sider class="sider" width="273">
|
||||||
<setting-item title="整体风格设置">
|
<setting-item title="整体风格设置">
|
||||||
<img-check-box-group @change="setTheme">
|
<img-checkbox-group @change="setTheme">
|
||||||
<img-check-box img="https://gw.alipayobjects.com/zos/rmsportal/LCkqqYNmvBEbokSDscrm.svg" :checked="true" value="dark"/>
|
<img-checkbox img="https://gw.alipayobjects.com/zos/rmsportal/LCkqqYNmvBEbokSDscrm.svg" :checked="true" value="dark"/>
|
||||||
<img-check-box img="https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg" value="light"/>
|
<img-checkbox img="https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg" value="light"/>
|
||||||
</img-check-box-group>
|
</img-checkbox-group>
|
||||||
</setting-item>
|
</setting-item>
|
||||||
<setting-item title="主题色">
|
<setting-item title="主题色">
|
||||||
<color-check-box-group @change="onColorChange" :defaultValues="['1', '2', '3']" :multiple="false">
|
<color-checkbox-group @change="onColorChange" :defaultValues="['1', '2', '3']" :multiple="false">
|
||||||
<color-check-box ref="colorNode" color="rgb(245, 34, 45)" value="1" />
|
<color-checkbox ref="colorNode" color="rgb(245, 34, 45)" value="1" />
|
||||||
<color-check-box color="rgb(250, 84, 28)" value="2" />
|
<color-checkbox color="rgb(250, 84, 28)" value="2" />
|
||||||
<color-check-box color="rgb(250, 173, 20)" value="3" />
|
<color-checkbox color="rgb(250, 173, 20)" value="3" />
|
||||||
<color-check-box color="rgb(19, 194, 194)" value="4" />
|
<color-checkbox color="rgb(19, 194, 194)" value="4" />
|
||||||
<color-check-box color="rgb(82, 196, 26)" value="5" />
|
<color-checkbox color="rgb(82, 196, 26)" value="5" />
|
||||||
<color-check-box color="rgb(24, 144, 255)" value="6" />
|
<color-checkbox color="rgb(24, 144, 255)" value="6" />
|
||||||
<color-check-box color="rgb(47, 84, 235)" value="7" />
|
<color-checkbox color="rgb(47, 84, 235)" value="7" />
|
||||||
<color-check-box color="rgb(114, 46, 209)" value="8" />
|
<color-checkbox color="rgb(114, 46, 209)" value="8" />
|
||||||
</color-check-box-group>
|
</color-checkbox-group>
|
||||||
</setting-item>
|
</setting-item>
|
||||||
<a-divider/>
|
<a-divider/>
|
||||||
<setting-item title="导航设置">
|
<setting-item title="导航设置">
|
||||||
<img-check-box-group @change="setLayout">
|
<img-checkbox-group @change="setLayout">
|
||||||
<img-check-box img="https://gw.alipayobjects.com/zos/rmsportal/JopDzEhOqwOjeNTXkoje.svg" :checked="true" value="side"/>
|
<img-checkbox img="https://gw.alipayobjects.com/zos/rmsportal/JopDzEhOqwOjeNTXkoje.svg" :checked="true" value="side"/>
|
||||||
<img-check-box img="https://gw.alipayobjects.com/zos/rmsportal/KDNDBbriJhLwuqMoxcAr.svg" value="head"/>
|
<img-checkbox img="https://gw.alipayobjects.com/zos/rmsportal/KDNDBbriJhLwuqMoxcAr.svg" value="head"/>
|
||||||
</img-check-box-group>
|
</img-checkbox-group>
|
||||||
</setting-item>
|
</setting-item>
|
||||||
<setting-item>
|
<setting-item>
|
||||||
<a-list :split="false">
|
<a-list :split="false">
|
||||||
@ -73,21 +73,21 @@ import AListItem from 'ant-design-vue/es/list/Item'
|
|||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
import ASwitch from 'ant-design-vue/es/switch/index'
|
import ASwitch from 'ant-design-vue/es/switch/index'
|
||||||
import ASelect from 'ant-design-vue/es/select/index'
|
import ASelect from 'ant-design-vue/es/select/index'
|
||||||
import ColorCheckBox from '../check/ColorCheckBox'
|
import ColorCheckbox from '../checkbox/ColorCheckbox'
|
||||||
import ImgCheckBox from '../check/ImgCheckBox'
|
import ImgCheckbox from '../checkbox/ImgCheckbox'
|
||||||
import Clipboard from 'clipboard'
|
import Clipboard from 'clipboard'
|
||||||
|
|
||||||
const ASelectOption = ASelect.Option
|
const ASelectOption = ASelect.Option
|
||||||
const ColorCheckBoxGroup = ColorCheckBox.Group
|
const ColorCheckboxGroup = ColorCheckbox.Group
|
||||||
const ImgCheckBoxGroup = ImgCheckBox.Group
|
const ImgCheckboxGroup = ImgCheckbox.Group
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Setting',
|
name: 'Setting',
|
||||||
components: {
|
components: {
|
||||||
ImgCheckBoxGroup,
|
ImgCheckboxGroup,
|
||||||
ImgCheckBox,
|
ImgCheckbox,
|
||||||
ColorCheckBoxGroup,
|
ColorCheckboxGroup,
|
||||||
ColorCheckBox,
|
ColorCheckbox,
|
||||||
ASelectOption,
|
ASelectOption,
|
||||||
ASelect,
|
ASelect,
|
||||||
ASwitch,
|
ASwitch,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="task-card">
|
<div class="task-group">
|
||||||
<div class="task-head">
|
<div class="task-head">
|
||||||
<h3 class="title"><span v-if="count">{{count}}</span>{{title}}</h3>
|
<h3 class="title"><span v-if="count">{{count}}</span>{{title}}</h3>
|
||||||
<div class="actions" style="float: right">
|
<div class="actions" style="float: right">
|
||||||
@ -30,7 +30,7 @@ const dragOptions = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TaskCard',
|
name: 'TaskGroup',
|
||||||
components: {AIcon, Draggable},
|
components: {AIcon, Draggable},
|
||||||
props: ['title', 'group'],
|
props: ['title', 'group'],
|
||||||
data () {
|
data () {
|
||||||
@ -47,7 +47,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.task-card{
|
.task-group{
|
||||||
width: 33.33%;
|
width: 33.33%;
|
||||||
padding: 8px 8px;
|
padding: 8px 8px;
|
||||||
background-color: #e1e4e8;
|
background-color: #e1e4e8;
|
@ -33,7 +33,7 @@ import HeaderNotice from './HeaderNotice'
|
|||||||
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
||||||
import HeaderAvatar from './HeaderlAvatar'
|
import HeaderAvatar from './HeaderlAvatar'
|
||||||
import ADivider from 'ant-design-vue/es/divider/index'
|
import ADivider from 'ant-design-vue/es/divider/index'
|
||||||
import IMenu from '../menu/menu'
|
import IMenu from '../components/menu/menu'
|
||||||
|
|
||||||
const ALayoutSider = ALayout.Sider
|
const ALayoutSider = ALayout.Sider
|
||||||
const ALayoutHeader = ALayout.Header
|
const ALayoutHeader = ALayout.Header
|
@ -26,11 +26,10 @@
|
|||||||
import ALayout from 'ant-design-vue/es/layout'
|
import ALayout from 'ant-design-vue/es/layout'
|
||||||
import GlobalHeader from './GlobalHeader'
|
import GlobalHeader from './GlobalHeader'
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
import IMenu from '../menu/menu'
|
|
||||||
import GlobalFooter from './GlobalFooter'
|
import GlobalFooter from './GlobalFooter'
|
||||||
import Drawer from '../tool/Drawer'
|
import Drawer from '../components/tool/Drawer'
|
||||||
import SiderMenu from '../menu/SiderMenu'
|
import SiderMenu from '../components/menu/SiderMenu'
|
||||||
import Setting from '../setting/Setting'
|
import Setting from '../components/setting/Setting'
|
||||||
|
|
||||||
const ALayoutSider = ALayout.Sider
|
const ALayoutSider = ALayout.Sider
|
||||||
const ALayoutHeader = ALayout.Header
|
const ALayoutHeader = ALayout.Header
|
||||||
@ -53,8 +52,7 @@ export default {
|
|||||||
ALayoutSider,
|
ALayoutSider,
|
||||||
ALayoutHeader,
|
ALayoutHeader,
|
||||||
ALayoutContent,
|
ALayoutContent,
|
||||||
ALayoutFooter,
|
ALayoutFooter},
|
||||||
IMenu},
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
minHeight: minHeight + 'px',
|
minHeight: minHeight + 'px',
|
@ -20,7 +20,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PageHeader from '../page/PageHeader'
|
import PageHeader from '../components/page/PageHeader'
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
export default {
|
export default {
|
||||||
name: 'PageLayout',
|
name: 'PageLayout',
|
@ -10,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PageHeader from '../page/PageHeader'
|
import PageHeader from '../components/page/PageHeader'
|
||||||
import PageLayout from './PageLayout'
|
import PageLayout from './PageLayout'
|
||||||
export default {
|
export default {
|
||||||
name: 'PageView',
|
name: 'PageView',
|
65
src/pages/components/Palette.vue
Normal file
65
src/pages/components/Palette.vue
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div style="text-align: center; margin-top: 48px">
|
||||||
|
<color-checkbox-group :defaultValues="['1']" @change="changeColor" :multiple="true" style="display: inline-block">
|
||||||
|
<color-checkbox color="rgb(245, 34, 45)" value="1" />
|
||||||
|
<color-checkbox color="rgb(250, 84, 28)" value="2" />
|
||||||
|
<color-checkbox color="rgb(250, 173, 20)" value="3" />
|
||||||
|
<color-checkbox color="rgb(19, 194, 194)" value="4" />
|
||||||
|
<color-checkbox color="rgb(82, 196, 26)" value="5" />
|
||||||
|
<color-checkbox color="rgb(24, 144, 255)" value="6" />
|
||||||
|
<color-checkbox color="rgb(47, 84, 235)" value="7" />
|
||||||
|
<color-checkbox color="rgb(114, 46, 209)" value="8" />
|
||||||
|
<color-checkbox color="rgb(256, 0, 0)" value="9" />
|
||||||
|
<color-checkbox color="rgb(0, 256, 0)" value="10" />
|
||||||
|
<color-checkbox color="rgb(0, 0, 256)" value="11" />
|
||||||
|
<color-checkbox color="rgb(256, 256, 0)" value="12" />
|
||||||
|
</color-checkbox-group>
|
||||||
|
<div></div>
|
||||||
|
<div class="view-color" :style="{backgroundColor: color}"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ColorCheckbox from '../../components/checkbox/ColorCheckbox'
|
||||||
|
|
||||||
|
const ColorCheckboxGroup = ColorCheckbox.Group
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Palette',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
color: 'rgb(245, 34, 45)'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {ColorCheckbox, ColorCheckboxGroup},
|
||||||
|
methods: {
|
||||||
|
changeColor (values, colors) {
|
||||||
|
this.color = this.calculateColor(colors)
|
||||||
|
},
|
||||||
|
calculateColor (colors) {
|
||||||
|
let red = 0
|
||||||
|
let green = 0
|
||||||
|
let blue = 0
|
||||||
|
let values
|
||||||
|
colors.forEach(color => {
|
||||||
|
values = color.split('(')[1].split(')')[0].split(',')
|
||||||
|
red = Math.max(red, parseInt(values[0]))
|
||||||
|
green += Math.max(green, parseInt(values[1]))
|
||||||
|
blue += Math.max(blue, parseInt(values[2]))
|
||||||
|
})
|
||||||
|
return 'rgb(' + red + ',' + green + ',' + blue + ')'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.view-color{
|
||||||
|
margin-top: 48px;
|
||||||
|
display: inline-block;
|
||||||
|
height: 96px;
|
||||||
|
width: 96px;
|
||||||
|
border-radius: 48px;
|
||||||
|
border: 1px dashed gray;
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,26 +1,26 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<task-card class="task-card" title="ToDo" group="task">
|
<task-group class="task-group" title="ToDo" group="task">
|
||||||
<task-item :key="index" v-for="(item, index) in todoList" :content="item" />
|
<task-item :key="index" v-for="(item, index) in todoList" :content="item" />
|
||||||
</task-card>
|
</task-group>
|
||||||
<task-card class="task-card" title="In Progress" group="task">
|
<task-group class="task-group" title="In Progress" group="task">
|
||||||
<task-item :key="index" v-for="(item, index) in inproList" :content="item" />
|
<task-item :key="index" v-for="(item, index) in inproList" :content="item" />
|
||||||
</task-card>
|
</task-group>
|
||||||
<task-card class="task-card" title="Done" group="task">
|
<task-group class="task-group" title="Done" group="task">
|
||||||
<task-item :key="index" v-for="(item, index) in doneList" :content="item" />
|
<task-item :key="index" v-for="(item, index) in doneList" :content="item" />
|
||||||
</task-card>
|
</task-group>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TaskCard from './TaskCard'
|
import TaskGroup from '../../components/task/TaskGroup'
|
||||||
import TaskItem from './TaskItem'
|
import TaskItem from '../../components/task/TaskItem'
|
||||||
const todoList = ['任务一', '任务二', '任务三', '任务四', '任务五', '任务六']
|
const todoList = ['任务一', '任务二', '任务三', '任务四', '任务五', '任务六']
|
||||||
const inproList = ['任务七', '任务八', '任务九', '任务十', '任务十一', '任务十二']
|
const inproList = ['任务七', '任务八', '任务九', '任务十', '任务十一', '任务十二']
|
||||||
const doneList = ['任务十三', '任务十四', '任务十五', '任务十六', '任务十七', '任务十八']
|
const doneList = ['任务十三', '任务十四', '任务十五', '任务十六', '任务十七', '任务十八']
|
||||||
export default {
|
export default {
|
||||||
name: 'Index',
|
name: 'TaskCard',
|
||||||
components: {TaskItem, TaskCard},
|
components: {TaskItem, TaskGroup},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
todoList,
|
todoList,
|
||||||
@ -32,7 +32,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.task-card{
|
.task-group{
|
||||||
margin: 0 48px;
|
margin: 0 48px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -105,19 +105,19 @@
|
|||||||
import ACol from 'ant-design-vue/es/grid/Col'
|
import ACol from 'ant-design-vue/es/grid/Col'
|
||||||
import ARow from 'ant-design-vue/es/grid/Row'
|
import ARow from 'ant-design-vue/es/grid/Row'
|
||||||
import ACard from 'ant-design-vue/es/card/Card'
|
import ACard from 'ant-design-vue/es/card/Card'
|
||||||
import ChartCard from './ChartCard'
|
import ChartCard from '../../components/card/ChartCard'
|
||||||
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
import MiniArea from '../chart/MiniArea'
|
import MiniArea from '../../components/chart/MiniArea'
|
||||||
import MiniBar from '../chart/MiniBar'
|
import MiniBar from '../../components/chart/MiniBar'
|
||||||
import MiniProgress from '../chart/MiniProgress'
|
import MiniProgress from '../../components/chart/MiniProgress'
|
||||||
import ATabs from 'ant-design-vue/es/tabs'
|
import ATabs from 'ant-design-vue/es/tabs'
|
||||||
import ADatePicker from 'ant-design-vue/es/date-picker'
|
import ADatePicker from 'ant-design-vue/es/date-picker'
|
||||||
import Bar from '../chart/Bar'
|
import Bar from '../../components/chart/Bar'
|
||||||
import RankingList from '../chart/RankingList'
|
import RankingList from '../../components/chart/RankingList'
|
||||||
import HotSearch from '../analysis/HotSearch'
|
import HotSearch from '../../components/analysis/HotSearch'
|
||||||
import SalesData from '../analysis/SalesData'
|
import SalesData from '../../components/analysis/SalesData'
|
||||||
import Trend from '../chart/Trend'
|
import Trend from '../../components/chart/Trend'
|
||||||
|
|
||||||
const rankList = []
|
const rankList = []
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ for (let i = 0; i < 8; i++) {
|
|||||||
const ATabPane = ATabs.TabPane
|
const ATabPane = ATabs.TabPane
|
||||||
const ARangePicker = ADatePicker.RangePicker
|
const ARangePicker = ADatePicker.RangePicker
|
||||||
export default {
|
export default {
|
||||||
name: 'dashboard',
|
name: 'analysis',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
rankList
|
rankList
|
@ -87,10 +87,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PageHeader from '../page/PageHeader'
|
import PageHeader from '../../components/page/PageHeader'
|
||||||
import PageLayout from '../layout/PageLayout'
|
import PageLayout from '../../layouts/PageLayout'
|
||||||
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
||||||
import HeadInfo from '../tool/HeadInfo'
|
import HeadInfo from '../../components/tool/HeadInfo'
|
||||||
import ARow from 'ant-design-vue/es/grid/Row'
|
import ARow from 'ant-design-vue/es/grid/Row'
|
||||||
import ACol from 'ant-design-vue/es/grid/Col'
|
import ACol from 'ant-design-vue/es/grid/Col'
|
||||||
import ACard from 'ant-design-vue/es/card/Card'
|
import ACard from 'ant-design-vue/es/card/Card'
|
||||||
@ -100,7 +100,7 @@ import AList from 'ant-design-vue/es/list/index'
|
|||||||
import AListItem from 'ant-design-vue/es/list/Item'
|
import AListItem from 'ant-design-vue/es/list/Item'
|
||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
import Radar from '../chart/Radar'
|
import Radar from '../../components/chart/Radar'
|
||||||
|
|
||||||
const AListItemMeta = AListItem.Meta
|
const AListItemMeta = AListItem.Meta
|
||||||
|
|
@ -121,16 +121,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PageLayout from '../layout/PageLayout'
|
import PageLayout from '../../layouts/PageLayout'
|
||||||
import AButtonGroup from 'ant-design-vue/es/button/button-group'
|
import AButtonGroup from 'ant-design-vue/es/button/button-group'
|
||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
import DetailList from '../tool/DetailList'
|
import DetailList from '../../components/tool/DetailList'
|
||||||
import ARow from 'ant-design-vue/es/grid/Row'
|
import ARow from 'ant-design-vue/es/grid/Row'
|
||||||
import ACol from 'ant-design-vue/es/grid/Col'
|
import ACol from 'ant-design-vue/es/grid/Col'
|
||||||
import ACard from 'ant-design-vue/es/card/Card'
|
import ACard from 'ant-design-vue/es/card/Card'
|
||||||
import ASteps from 'ant-design-vue/es/steps/index'
|
import ASteps from 'ant-design-vue/es/steps/index'
|
||||||
import AStepItem from '../tool/AStepItem'
|
import AStepItem from '../../components/tool/AStepItem'
|
||||||
import ADivider from 'ant-design-vue/es/divider/index'
|
import ADivider from 'ant-design-vue/es/divider/index'
|
||||||
import ATable from 'ant-design-vue/es/table'
|
import ATable from 'ant-design-vue/es/table'
|
||||||
import {operation1, operation2, operation3, operationColumns} from '../../mock/common/tableData'
|
import {operation1, operation2, operation3, operationColumns} from '../../mock/common/tableData'
|
@ -39,10 +39,10 @@
|
|||||||
import ACard from 'ant-design-vue/es/card/Card'
|
import ACard from 'ant-design-vue/es/card/Card'
|
||||||
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
||||||
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
||||||
import DetailList from '../tool/DetailList'
|
import DetailList from '../../components/tool/DetailList'
|
||||||
import ADivider from 'ant-design-vue/es/divider/index'
|
import ADivider from 'ant-design-vue/es/divider/index'
|
||||||
import ATable from 'ant-design-vue/es/table'
|
import ATable from 'ant-design-vue/es/table'
|
||||||
import PageLayout from '../layout/PageLayout'
|
import PageLayout from '../../layouts/PageLayout'
|
||||||
|
|
||||||
const DetailListItem = DetailList.Item
|
const DetailListItem = DetailList.Item
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ExceptionPage from './ExceptionPage'
|
import ExceptionPage from '../../components/exception/ExceptionPage'
|
||||||
export default {
|
export default {
|
||||||
components: {ExceptionPage}
|
components: {ExceptionPage}
|
||||||
}
|
}
|
@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ExceptionPage from './ExceptionPage'
|
import ExceptionPage from '../../components/exception/ExceptionPage'
|
||||||
export default {
|
export default {
|
||||||
components: {ExceptionPage}
|
components: {ExceptionPage}
|
||||||
}
|
}
|
@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ExceptionPage from './ExceptionPage'
|
import ExceptionPage from '../../components/exception/ExceptionPage'
|
||||||
export default {
|
export default {
|
||||||
components: {ExceptionPage}
|
components: {ExceptionPage}
|
||||||
}
|
}
|
@ -20,7 +20,7 @@ import ACard from 'ant-design-vue/es/card/Card'
|
|||||||
import RepositoryForm from './RepositoryForm'
|
import RepositoryForm from './RepositoryForm'
|
||||||
import TaskForm from './TaskForm'
|
import TaskForm from './TaskForm'
|
||||||
import TableForm from './TableForm'
|
import TableForm from './TableForm'
|
||||||
import FooterToolBar from '../../tool/FooterToolBar'
|
import FooterToolBar from '../../../components/tool/FooterToolBar'
|
||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -14,7 +14,7 @@
|
|||||||
import AForm from 'ant-design-vue/es/form/Form'
|
import AForm from 'ant-design-vue/es/form/Form'
|
||||||
import AFormItem from 'ant-design-vue/es/form/FormItem'
|
import AFormItem from 'ant-design-vue/es/form/FormItem'
|
||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
import Result from '../../result/Result'
|
import Result from '../../../components/result/Result'
|
||||||
export default {
|
export default {
|
||||||
name: 'Step3',
|
name: 'Step3',
|
||||||
components: {Result, AButton, AFormItem, AForm},
|
components: {Result, AButton, AFormItem, AForm},
|
@ -114,7 +114,7 @@ import AInputNumber from 'ant-design-vue/es/input-number/index'
|
|||||||
import ADatePicker from 'ant-design-vue/es/date-picker/index'
|
import ADatePicker from 'ant-design-vue/es/date-picker/index'
|
||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
import StandardTable from '../table/StandardTable'
|
import StandardTable from '../../components/table/StandardTable'
|
||||||
import ADropdown from 'ant-design-vue/es/dropdown'
|
import ADropdown from 'ant-design-vue/es/dropdown'
|
||||||
import AMenu from 'ant-design-vue/es/menu/index'
|
import AMenu from 'ant-design-vue/es/menu/index'
|
||||||
|
|
@ -70,7 +70,7 @@
|
|||||||
import ACard from 'ant-design-vue/es/card/Card'
|
import ACard from 'ant-design-vue/es/card/Card'
|
||||||
import ARow from 'ant-design-vue/es/grid/Row'
|
import ARow from 'ant-design-vue/es/grid/Row'
|
||||||
import ACol from 'ant-design-vue/es/grid/Col'
|
import ACol from 'ant-design-vue/es/grid/Col'
|
||||||
import HeadInfo from '../tool/HeadInfo'
|
import HeadInfo from '../../components/tool/HeadInfo'
|
||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
import AList from 'ant-design-vue/es/list/index'
|
import AList from 'ant-design-vue/es/list/index'
|
||||||
import AListItem from 'ant-design-vue/es/list/Item'
|
import AListItem from 'ant-design-vue/es/list/Item'
|
@ -33,7 +33,7 @@ import AList from 'ant-design-vue/es/list'
|
|||||||
import AListItem from 'ant-design-vue/es/list/Item'
|
import AListItem from 'ant-design-vue/es/list/Item'
|
||||||
import ACardMeta from 'ant-design-vue/es/card/Meta'
|
import ACardMeta from 'ant-design-vue/es/card/Meta'
|
||||||
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
||||||
import AvatarList from '../../tool/AvatarList'
|
import AvatarList from '../../../components/tool/AvatarList'
|
||||||
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
||||||
|
|
||||||
const AvatarListItem = AvatarList.Item
|
const AvatarListItem = AvatarList.Item
|
@ -72,8 +72,8 @@ import ACard from 'ant-design-vue/es/card/Card'
|
|||||||
import AForm from 'ant-design-vue/es/form/Form'
|
import AForm from 'ant-design-vue/es/form/Form'
|
||||||
import AFormItem from 'ant-design-vue/es/form/FormItem'
|
import AFormItem from 'ant-design-vue/es/form/FormItem'
|
||||||
import AInput from 'ant-design-vue/es/input/Input'
|
import AInput from 'ant-design-vue/es/input/Input'
|
||||||
import TagSelect from '../../tool/TagSelect'
|
import TagSelect from '../../../components/tool/TagSelect'
|
||||||
import FormRow from '../../form/FormRow'
|
import FormRow from '../../../components/form/FormRow'
|
||||||
import ASelect from 'ant-design-vue/es/select/index'
|
import ASelect from 'ant-design-vue/es/select/index'
|
||||||
import ARow from 'ant-design-vue/es/grid/Row'
|
import ARow from 'ant-design-vue/es/grid/Row'
|
||||||
import ACol from 'ant-design-vue/es/grid/Col'
|
import ACol from 'ant-design-vue/es/grid/Col'
|
@ -74,7 +74,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import AForm from 'ant-design-vue/es/form/Form'
|
import AForm from 'ant-design-vue/es/form/Form'
|
||||||
import ATabs from 'ant-design-vue/es/tabs'
|
import ATabs from 'ant-design-vue/es/tabs'
|
||||||
import GlobalFooter from '../layout/GlobalFooter'
|
import GlobalFooter from '../../layouts/GlobalFooter'
|
||||||
import AFormItem from 'ant-design-vue/es/form/FormItem'
|
import AFormItem from 'ant-design-vue/es/form/FormItem'
|
||||||
import AInput from 'ant-design-vue/es/input/Input'
|
import AInput from 'ant-design-vue/es/input/Input'
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
@ -24,14 +24,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Result from './Result'
|
import Result from '../../components/result/Result'
|
||||||
import ACard from 'ant-design-vue/es/card/Card'
|
import ACard from 'ant-design-vue/es/card/Card'
|
||||||
import PageHeader from '../page/PageHeader'
|
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
export default {
|
export default {
|
||||||
name: 'Error',
|
name: 'Error',
|
||||||
components: {AButton, AIcon, PageHeader, ACard, Result},
|
components: {AButton, AIcon, ACard, Result},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
title: '提交失败',
|
title: '提交失败',
|
@ -35,16 +35,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Result from './Result'
|
import Result from '../../components/result/Result'
|
||||||
import ACard from 'ant-design-vue/es/card/Card'
|
import ACard from 'ant-design-vue/es/card/Card'
|
||||||
import PageHeader from '../page/PageHeader'
|
|
||||||
import AButton from 'ant-design-vue/es/button/button'
|
import AButton from 'ant-design-vue/es/button/button'
|
||||||
import ACol from 'ant-design-vue/es/grid/Col'
|
import ACol from 'ant-design-vue/es/grid/Col'
|
||||||
import ARow from 'ant-design-vue/es/grid/Row'
|
import ARow from 'ant-design-vue/es/grid/Row'
|
||||||
import ASteps from 'ant-design-vue/es/steps/index'
|
import ASteps from 'ant-design-vue/es/steps/index'
|
||||||
import AIcon from 'ant-design-vue/es/icon/icon'
|
import AIcon from 'ant-design-vue/es/icon/icon'
|
||||||
import DetailList from '../tool/DetailList'
|
import DetailList from '../../components/tool/DetailList'
|
||||||
import AStepItem from '../tool/AStepItem'
|
import AStepItem from '../../components/tool/AStepItem'
|
||||||
|
|
||||||
const AStep = ASteps.Step
|
const AStep = ASteps.Step
|
||||||
const AStepItemGroup = AStepItem.Group
|
const AStepItemGroup = AStepItem.Group
|
||||||
@ -62,7 +61,6 @@ export default {
|
|||||||
ARow,
|
ARow,
|
||||||
ACol,
|
ACol,
|
||||||
AButton,
|
AButton,
|
||||||
PageHeader,
|
|
||||||
ACard,
|
ACard,
|
||||||
Result},
|
Result},
|
||||||
data () {
|
data () {
|
@ -1,30 +1,30 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
import Dashboard from '@/components/dashboard/Dashboard'
|
import Dashboard from '@/pages/dashboard/Analysis'
|
||||||
import NotFound from '@/components/exception/404'
|
import NotFound from '@/pages/exception/404'
|
||||||
import NotPermit from '@/components/exception/403'
|
import NotPermit from '@/pages/exception/403'
|
||||||
import ServerError from '@/components/exception/500'
|
import ServerError from '@/pages/exception/500'
|
||||||
import PageView from '@/components/layout/PageView'
|
import PageView from '@/layouts/PageView'
|
||||||
import RouteView from '@/components/layout/RouteView'
|
import RouteView from '@/layouts/RouteView'
|
||||||
import MenuView from '@/components/layout/MenuView'
|
import MenuView from '@/layouts/MenuView'
|
||||||
import BasicForm from '@/components/form/BasicForm'
|
import BasicForm from '@/pages/form/BasicForm'
|
||||||
import StepForm from '@/components/form/stepForm/StepForm'
|
import StepForm from '@/pages/form/stepForm/StepForm'
|
||||||
import AdvancedForm from '@/components/form/advancedForm/AdvancedForm'
|
import AdvancedForm from '@/pages/form/advancedForm/AdvancedForm'
|
||||||
import Success from '@/components/result/Success'
|
import Success from '@/pages/result/Success'
|
||||||
import Error from '@/components/result/Error'
|
import Error from '@/pages/result/Error'
|
||||||
import QueryList from '@/components/list/QueryList'
|
import QueryList from '@/pages/list/QueryList'
|
||||||
import StandardList from '@/components/list/StandardList'
|
import StandardList from '@/pages/list/StandardList'
|
||||||
import CardList from '@/components/list/CardList'
|
import CardList from '@/pages/list/CardList'
|
||||||
import SearchLayout from '@/components/list/search/SearchLayout'
|
import SearchLayout from '@/pages/list/search/SearchLayout'
|
||||||
import ArticleList from '@/components/list/search/ArticleList'
|
import ArticleList from '@/pages/list/search/ArticleList'
|
||||||
import ApplicationList from '@/components/list/search/ApplicationList'
|
import ApplicationList from '@/pages/list/search/ApplicationList'
|
||||||
import ProjectList from '@/components/list/search/ProjectList'
|
import ProjectList from '@/pages/list/search/ProjectList'
|
||||||
import WorkPlace from '@/components/dashboard/WorkPlace'
|
import WorkPlace from '@/pages/dashboard/WorkPlace'
|
||||||
import Login from '@/components/login/Login'
|
import Login from '@/pages/login/Login'
|
||||||
import BasicDetail from '@/components/detail/BasicDetail'
|
import BasicDetail from '@/pages/detail/BasicDetail'
|
||||||
import AdvancedDetail from '@/components/detail/AdvancedDetail'
|
import AdvancedDetail from '@/pages/detail/AdvancedDetail'
|
||||||
import TaskCard from '@/components/task/Index'
|
import TaskCard from '@/pages/components/TaskCard'
|
||||||
import ColorBox from '@/components/check/Index'
|
import ColorBox from '@/pages/components/Palette'
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
@ -209,20 +209,20 @@ export default new Router({
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/components',
|
path: '/pages',
|
||||||
redirect: '/components/taskcard',
|
redirect: '/pages/taskcard',
|
||||||
name: '小组件',
|
name: '小组件',
|
||||||
icon: 'appstore-o',
|
icon: 'appstore-o',
|
||||||
component: PageView,
|
component: PageView,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/components/taskcard',
|
path: '/pages/taskcard',
|
||||||
name: '任务卡片',
|
name: '任务卡片',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: TaskCard
|
component: TaskCard
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/components/palette',
|
path: '/pages/palette',
|
||||||
name: '颜色复选框',
|
name: '颜色复选框',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: ColorBox
|
component: ColorBox
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
import PageView from '@/components/layout/PageView'
|
import PageView from '@/layouts/PageView'
|
||||||
import RouteView from '@/components/layout/RouteView'
|
import RouteView from '@/layouts/RouteView'
|
||||||
import MenuView from '@/components/layout/MenuView'
|
import MenuView from '@/layouts/MenuView'
|
||||||
import Login from '@/components/login/Login'
|
import Login from '@/pages/login/Login'
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
@ -32,13 +32,13 @@ export default new Router({
|
|||||||
{
|
{
|
||||||
path: '/dashboard/workplace',
|
path: '/dashboard/workplace',
|
||||||
name: '工作台',
|
name: '工作台',
|
||||||
component: () => import('@/components/dashboard/WorkPlace'),
|
component: () => import('@/pages/dashboard/WorkPlace'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/dashboard/analysis',
|
path: '/dashboard/analysis',
|
||||||
name: '分析页',
|
name: '分析页',
|
||||||
component: () => import('@/components/dashboard/Dashboard'),
|
component: () => import('@/pages/dashboard/Analysis'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -52,19 +52,19 @@ export default new Router({
|
|||||||
{
|
{
|
||||||
path: '/form/basic',
|
path: '/form/basic',
|
||||||
name: '基础表单',
|
name: '基础表单',
|
||||||
component: () => import('@/components/form/BasicForm'),
|
component: () => import('@/pages/form/BasicForm'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/form/step',
|
path: '/form/step',
|
||||||
name: '分步表单',
|
name: '分步表单',
|
||||||
component: () => import('@/components/form/stepForm/StepForm'),
|
component: () => import('@/pages/form/stepForm/StepForm'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/form/advanced',
|
path: '/form/advanced',
|
||||||
name: '高级表单',
|
name: '高级表单',
|
||||||
component: () => import('@/components/form/advancedForm/AdvancedForm'),
|
component: () => import('@/pages/form/advancedForm/AdvancedForm'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -78,43 +78,43 @@ export default new Router({
|
|||||||
{
|
{
|
||||||
path: '/list/query',
|
path: '/list/query',
|
||||||
name: '查询表格',
|
name: '查询表格',
|
||||||
component: () => import('@/components/list/QueryList'),
|
component: () => import('@/pages/list/QueryList'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/list/primary',
|
path: '/list/primary',
|
||||||
name: '标准列表',
|
name: '标准列表',
|
||||||
component: () => import('@/components/list/StandardList'),
|
component: () => import('@/pages/list/StandardList'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/list/card',
|
path: '/list/card',
|
||||||
name: '卡片列表',
|
name: '卡片列表',
|
||||||
component: () => import('@/components/list/CardList'),
|
component: () => import('@/pages/list/CardList'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/list/search',
|
path: '/list/search',
|
||||||
name: '搜索列表',
|
name: '搜索列表',
|
||||||
component: () => import('@/components/list/search/SearchLayout'),
|
component: () => import('@/pages/list/search/SearchLayout'),
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/list/search/article',
|
path: '/list/search/article',
|
||||||
name: '文章',
|
name: '文章',
|
||||||
component: () => import('@/components/list/search/ArticleList'),
|
component: () => import('@/pages/list/search/ArticleList'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/list/search/application',
|
path: '/list/search/application',
|
||||||
name: '应用',
|
name: '应用',
|
||||||
component: () => import('@/components/list/search/ApplicationList'),
|
component: () => import('@/pages/list/search/ApplicationList'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/list/search/project',
|
path: '/list/search/project',
|
||||||
name: '项目',
|
name: '项目',
|
||||||
component: () => import('@/components/list/search/ProjectList'),
|
component: () => import('@/pages/list/search/ProjectList'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -131,13 +131,13 @@ export default new Router({
|
|||||||
path: '/detail/basic',
|
path: '/detail/basic',
|
||||||
name: '基础详情页',
|
name: '基础详情页',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/detail/BasicDetail')
|
component: () => import('@/pages/detail/BasicDetail')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/detail/advanced',
|
path: '/detail/advanced',
|
||||||
name: '高级详情页',
|
name: '高级详情页',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/detail/AdvancedDetail')
|
component: () => import('@/pages/detail/AdvancedDetail')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -151,13 +151,13 @@ export default new Router({
|
|||||||
path: '/result/success',
|
path: '/result/success',
|
||||||
name: '成功',
|
name: '成功',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/result/Success')
|
component: () => import('@/pages/result/Success')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/result/error',
|
path: '/result/error',
|
||||||
name: '失败',
|
name: '失败',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/result/Error')
|
component: () => import('@/pages/result/Error')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -171,19 +171,19 @@ export default new Router({
|
|||||||
path: '/exception/404',
|
path: '/exception/404',
|
||||||
name: '404',
|
name: '404',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/exception/404')
|
component: () => import('@/pages/exception/404')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/exception/403',
|
path: '/exception/403',
|
||||||
name: '403',
|
name: '403',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/exception/403')
|
component: () => import('@/pages/exception/403')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/exception/500',
|
path: '/exception/500',
|
||||||
name: '500',
|
name: '500',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/exception/500')
|
component: () => import('@/pages/exception/500')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -198,13 +198,13 @@ export default new Router({
|
|||||||
path: '/components/taskcard',
|
path: '/components/taskcard',
|
||||||
name: '任务卡片',
|
name: '任务卡片',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/task/Index')
|
component: () => import('@/pages/components/TaskCard')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/components/palette',
|
path: '/components/palette',
|
||||||
name: '颜色复选框',
|
name: '颜色复选框',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
component: () => import('@/components/check/Index')
|
component: () => import('@/pages/components/Palette')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user