首页默认改为放号管理

main
xuechunyuan 3 years ago
parent acd8986a82
commit 106f2c8d0e
  1. 201
      src/router/views/index.js
  2. 2
      src/views/articlelist/index.vue

@ -1,106 +1,109 @@
import Layout from '@/page/index/' import Layout from '@/page/index/'
export default [{ export default [
path: '/wel', {
component: Layout, path: '/wel',
redirect: '/wel/index', component: Layout,
children: [{ redirect: '/wel/index',
path: 'index', children: [{
name: '首页', path: 'index',
meta: { name: '首页',
i18n: 'dashboard' meta: {
i18n: 'dashboard'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/booklist/index')
// import( /* webpackChunkName: "views" */ '@/views/wel/index')
}, },
component: () => {
import( /* webpackChunkName: "views" */ '@/views/wel/index') path: 'dashboard',
name: '控制台',
meta: {
i18n: 'dashboard',
menu: false,
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
}]
}, { }, {
path: 'dashboard', path: '/test',
name: '控制台', component: Layout,
meta: { redirect: '/test/index',
i18n: 'dashboard', children: [{
menu: false, path: 'index',
}, name: '测试页',
component: () => meta: {
import( /* webpackChunkName: "views" */ '@/views/wel/dashboard') i18n: 'test'
}] },
}, { component: () =>
path: '/test', import( /* webpackChunkName: "views" */ '@/views/util/test')
component: Layout, }]
redirect: '/test/index',
children: [{
path: 'index',
name: '测试页',
meta: {
i18n: 'test'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/util/test')
}]
}, {
path: '/dict-horizontal',
component: Layout,
redirect: '/dict-horizontal/index',
children: [{
path: 'index',
name: '字典管理',
meta: {
i18n: 'dict'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
}]
}, {
path: '/dict-vertical',
component: Layout,
redirect: '/dict-vertical/index',
children: [{
path: 'index',
name: '字典管理',
meta: {
i18n: 'dict'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
}]
}, {
path: '/info',
component: Layout,
redirect: '/info/index',
children: [{
path: 'index',
name: '个人信息',
meta: {
i18n: 'info'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
}]
}, {
path: '/work/process/leave',
component: Layout,
redirect: '/work/process/leave/form',
children: [{
path: 'form/:processDefinitionId',
name: '请假流程',
meta: {
i18n: 'work'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
}, { }, {
path: 'handle/:taskId/:processInstanceId/:businessId', path: '/dict-horizontal',
name: '处理请假流程', component: Layout,
meta: { redirect: '/dict-horizontal/index',
i18n: 'work' children: [{
}, path: 'index',
component: () => name: '字典管理',
import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle') meta: {
i18n: 'dict'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
}]
}, { }, {
path: 'detail/:processInstanceId/:businessId', path: '/dict-vertical',
name: '请假流程详情', component: Layout,
meta: { redirect: '/dict-vertical/index',
i18n: 'work' children: [{
}, path: 'index',
component: () => name: '字典管理',
import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail') meta: {
i18n: 'dict'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
}]
}, {
path: '/info',
component: Layout,
redirect: '/info/index',
children: [{
path: 'index',
name: '个人信息',
meta: {
i18n: 'info'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
}]
}, {
path: '/work/process/leave',
component: Layout,
redirect: '/work/process/leave/form',
children: [{
path: 'form/:processDefinitionId',
name: '请假流程',
meta: {
i18n: 'work'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
}, {
path: 'handle/:taskId/:processInstanceId/:businessId',
name: '处理请假流程',
meta: {
i18n: 'work'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
}, {
path: 'detail/:processInstanceId/:businessId',
name: '请假流程详情',
meta: {
i18n: 'work'
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
}]
}] }]
}]

@ -13,7 +13,7 @@
</template> </template>
<template slot-scope="{row}" slot="publishSta"> <template slot-scope="{row}" slot="publishSta">
<el-tag size="small" :type="row.publishSta == 1 ? '' : row.publishSta == 2 ? 'danger' : 'info'">{{ <el-tag size="small" :type="row.publishSta == 1 ? '' : row.publishSta == 2 ? 'danger' : 'info'">{{
row.publishSta == 1 ? '已发布' : row.publishSta == 2 ? '已保存' row.publishSta == 1 ? '已发布' : row.publishSta == 2 ? '已取消'
: '已保存' : '已保存'
}}</el-tag> }}</el-tag>
</template> </template>

Loading…
Cancel
Save