style:数据上报
Showing
26 changed files
with
39 additions
and
94 deletions
File moved
File moved
File moved
| 1 | /* | 1 | /* | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-05-11 16:19:21 | 4 | * @LastEditTime: 2023-05-12 10:46:51 | 
| 5 | */ | 5 | */ | 
| 6 | import Vue from 'vue' | 6 | import Vue from 'vue' | 
| 7 | import router from "./router"; | 7 | import router from "./router"; | 
| ... | @@ -20,7 +20,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -20,7 +20,7 @@ router.beforeEach(async (to, from, next) => { | 
| 20 | let hasAddDict = store.state.dict.addDict; | 20 | let hasAddDict = store.state.dict.addDict; | 
| 21 | let hasUser = store.state.user.hasUser; | 21 | let hasUser = store.state.user.hasUser; | 
| 22 | let hasAddRoute = store.state.permission.addRoutes; | 22 | let hasAddRoute = store.state.permission.addRoutes; | 
| 23 | if (to.path == "/sb") { | 23 | if (to.path == "/login") { | 
| 24 | localStorage.removeItem("token"); | 24 | localStorage.removeItem("token"); | 
| 25 | next(); | 25 | next(); | 
| 26 | } else { | 26 | } else { | 
| ... | @@ -49,14 +49,14 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -49,14 +49,14 @@ router.beforeEach(async (to, from, next) => { | 
| 49 | { path: "*", redirect: "/404", hidden: true }, | 49 | { path: "*", redirect: "/404", hidden: true }, | 
| 50 | ]); | 50 | ]); | 
| 51 | const routeTo = Cookies.get("routerTo"); | 51 | const routeTo = Cookies.get("routerTo"); | 
| 52 | if (routeTo && routeTo !== "/" && routeTo !== "/sb") { | 52 | if (routeTo && routeTo !== "/" && routeTo !== "/login") { | 
| 53 | next({ ...to, replace: true }); | 53 | next({ ...to, replace: true }); | 
| 54 | } else { | 54 | } else { | 
| 55 | next() | 55 | next() | 
| 56 | } | 56 | } | 
| 57 | } | 57 | } | 
| 58 | } else { | 58 | } else { | 
| 59 | next('/sb') | 59 | next('/login') | 
| 60 | } | 60 | } | 
| 61 | } | 61 | } | 
| 62 | NProgress.done() | 62 | NProgress.done() | ... | ... | 
| 1 | import Vue from 'vue' | 1 | import Vue from 'vue' | 
| 2 | import Router from 'vue-router' | 2 | import Router from 'vue-router' | 
| 3 | Vue.use(Router) | 3 | Vue.use(Router) | 
| 4 | import Layout from '@/layout1' | 4 | import Layout from '@/layout' | 
| 5 | 5 | ||
| 6 | export const constantRoutes = [ | 6 | export const constantRoutes = [ | 
| 7 | { | 7 | { | 
| ... | @@ -20,14 +20,14 @@ export const constantRoutes = [ | ... | @@ -20,14 +20,14 @@ export const constantRoutes = [ | 
| 20 | }, | 20 | }, | 
| 21 | //登录 | 21 | //登录 | 
| 22 | { | 22 | { | 
| 23 | path: "/sb", | 23 | path: "/login", | 
| 24 | name: "loginsb", | 24 | name: "login", | 
| 25 | component: () => import("@/views/loginsb/index.vue"), | 25 | component: () => import("@/views/login/index.vue"), | 
| 26 | }, | 26 | }, | 
| 27 | { | 27 | { | 
| 28 | path: '/', | 28 | path: '/', | 
| 29 | redirect: to => { | 29 | redirect: to => { | 
| 30 | return { path: '/sb' } | 30 | return { path: '/login' } | 
| 31 | }, | 31 | }, | 
| 32 | }, | 32 | }, | 
| 33 | // 监管首页 | 33 | // 监管首页 | 
| ... | @@ -50,15 +50,21 @@ export const constantRoutes = [ | ... | @@ -50,15 +50,21 @@ export const constantRoutes = [ | 
| 50 | * the routes that need to be dynamically loaded based on user roles | 50 | * the routes that need to be dynamically loaded based on user roles | 
| 51 | */ | 51 | */ | 
| 52 | export const asyncRoutes = [ | 52 | export const asyncRoutes = [ | 
| 53 | // 接收报文查询 | 53 | // 区县接入 | 
| 54 | { | 54 | { | 
| 55 | path: '/jsbwcx', | 55 | path: '/jsbwcx', | 
| 56 | component: Layout, | 56 | component: Layout, | 
| 57 | children: [ | 57 | children: [ | 
| 58 | // { | ||
| 59 | // path: 'xxcx', | ||
| 60 | // component: () => import('@/views/gbxxcx/index'), | ||
| 61 | // name: 'xxcx', | ||
| 62 | // meta: { title: '信息查询', icon: 'xxcx' } | ||
| 63 | // }, | ||
| 58 | { | 64 | { | 
| 59 | path: 'index', | 65 | path: 'qxjr', | 
| 60 | component: () => import('@/views/jsbwcx/index'), | 66 | component: () => import('@/views/jsbwcx/index'), | 
| 61 | name: 'jsbwcx', | 67 | name: 'qxjr', | 
| 62 | meta: { title: '区县接入', icon: 'zsgl' } | 68 | meta: { title: '区县接入', icon: 'zsgl' } | 
| 63 | } | 69 | } | 
| 64 | ] | 70 | ] | 
| ... | @@ -99,6 +105,24 @@ export const asyncRoutes = [ | ... | @@ -99,6 +105,24 @@ export const asyncRoutes = [ | 
| 99 | component: () => import('@/views/jktj/bsxljk/index'), | 105 | component: () => import('@/views/jktj/bsxljk/index'), | 
| 100 | name: 'jktj', | 106 | name: 'jktj', | 
| 101 | meta: { title: '办事效率监控', icon: 'zhcx' } | 107 | meta: { title: '办事效率监控', icon: 'zhcx' } | 
| 108 | }, | ||
| 109 | { | ||
| 110 | path: 'dataReceiveQuality', | ||
| 111 | component: () => import('@/views/jktj/dataReceiveQuality/index'), | ||
| 112 | name: 'dataReceiveQuality', | ||
| 113 | meta: { title: '接入质量评价表', icon: 'dataReceiveQuality' } | ||
| 114 | }, | ||
| 115 | { | ||
| 116 | path: 'nullTermRatio', | ||
| 117 | component: () => import('@/views/jktj/nullTermRatio/index'), | ||
| 118 | name: 'nullTermRatio', | ||
| 119 | meta: { title: '相关字段空置率统计', icon: 'nullTermRatio' } | ||
| 120 | }, | ||
| 121 | { | ||
| 122 | path: 'registerBookQuality', | ||
| 123 | component: () => import('@/views/jktj/registerBookQuality/index'), | ||
| 124 | name: 'registerBookQuality', | ||
| 125 | meta: { title: '登簿质量评价表', icon: 'registerBookQuality' } | ||
| 102 | } | 126 | } | 
| 103 | ] | 127 | ] | 
| 104 | }, | 128 | }, | 
| ... | @@ -249,7 +273,7 @@ export const asyncRoutes = [ | ... | @@ -249,7 +273,7 @@ export const asyncRoutes = [ | 
| 249 | meta: { title: '角色管理' } | 273 | meta: { title: '角色管理' } | 
| 250 | } | 274 | } | 
| 251 | ] | 275 | ] | 
| 252 | }, | 276 | } | 
| 253 | ] | 277 | ] | 
| 254 | 278 | ||
| 255 | const createRouter = () => | 279 | const createRouter = () => | ... | ... | 
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ | 
| 2 | * @Author: xiaomiao 1158771342@qq.com | 2 | * @Author: xiaomiao 1158771342@qq.com | 
| 3 | * @Date: 2023-03-09 15:24:53 | 3 | * @Date: 2023-03-09 15:24:53 | 
| 4 | * @LastEditors: Please set LastEditors | 4 | * @LastEditors: Please set LastEditors | 
| 5 | * @LastEditTime: 2023-05-11 16:30:18 | 5 | * @LastEditTime: 2023-05-12 10:47:42 | 
| 6 | * @FilePath: \上报\bdcjg-web\src\store\modules\permission.js | 6 | * @FilePath: \上报\bdcjg-web\src\store\modules\permission.js | 
| 7 | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | 7 | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | 
| 8 | */ | 8 | */ | 
| ... | @@ -26,7 +26,7 @@ const mutations = { | ... | @@ -26,7 +26,7 @@ const mutations = { | 
| 26 | const actions = { | 26 | const actions = { | 
| 27 | // 添加全部菜单 | 27 | // 添加全部菜单 | 
| 28 | generateRoutes ({ commit }, getMenuInfo) { | 28 | generateRoutes ({ commit }, getMenuInfo) { | 
| 29 | let Layout = r => require.ensure([], () => r(require(`@/layout1`))) | 29 | let Layout = r => require.ensure([], () => r(require(`@/layout`))) | 
| 30 | function asyncRouter (routers) { | 30 | function asyncRouter (routers) { | 
| 31 | routers.forEach(item => { | 31 | routers.forEach(item => { | 
| 32 | if (!item.children) { | 32 | if (!item.children) { | ... | ... | 
File moved
src/views/jktj/index.vue
deleted
100644 → 0
| 1 | <template> | ||
| 2 | <el-table :data="tableData" style="width: 100%"> | ||
| 3 | <el-table-column prop="date" label="日期" width="150"> | ||
| 4 | </el-table-column> | ||
| 5 | <el-table-column label="配送信息"> | ||
| 6 | <el-table-column prop="name" label="姓名" width="120"> | ||
| 7 | </el-table-column> | ||
| 8 | <el-table-column label="地址"> | ||
| 9 | <el-table-column prop="province" label="省份" width="120"> | ||
| 10 | </el-table-column> | ||
| 11 | <el-table-column prop="city" label="市区" width="120"> | ||
| 12 | </el-table-column> | ||
| 13 | <el-table-column prop="address" label="地址" width="300"> | ||
| 14 | </el-table-column> | ||
| 15 | <el-table-column prop="zip" label="邮编" width="120"> | ||
| 16 | </el-table-column> | ||
| 17 | </el-table-column> | ||
| 18 | </el-table-column> | ||
| 19 | </el-table> | ||
| 20 | </template> | ||
| 21 | |||
| 22 | <script> | ||
| 23 | export default { | ||
| 24 | data () { | ||
| 25 | return { | ||
| 26 | tableData: [{ | ||
| 27 | date: '2016-05-03', | ||
| 28 | name: '王小虎', | ||
| 29 | province: '上海', | ||
| 30 | city: '普陀区', | ||
| 31 | address: '上海市普陀区金沙江路 1518 弄', | ||
| 32 | zip: 200333 | ||
| 33 | }, { | ||
| 34 | date: '2016-05-02', | ||
| 35 | name: '王小虎', | ||
| 36 | province: '上海', | ||
| 37 | city: '普陀区', | ||
| 38 | address: '上海市普陀区金沙江路 1518 弄', | ||
| 39 | zip: 200333 | ||
| 40 | }, { | ||
| 41 | date: '2016-05-04', | ||
| 42 | name: '王小虎', | ||
| 43 | province: '上海', | ||
| 44 | city: '普陀区', | ||
| 45 | address: '上海市普陀区金沙江路 1518 弄', | ||
| 46 | zip: 200333 | ||
| 47 | }, { | ||
| 48 | date: '2016-05-01', | ||
| 49 | name: '王小虎', | ||
| 50 | province: '上海', | ||
| 51 | city: '普陀区', | ||
| 52 | address: '上海市普陀区金沙江路 1518 弄', | ||
| 53 | zip: 200333 | ||
| 54 | }, { | ||
| 55 | date: '2016-05-08', | ||
| 56 | name: '王小虎', | ||
| 57 | province: '上海', | ||
| 58 | city: '普陀区', | ||
| 59 | address: '上海市普陀区金沙江路 1518 弄', | ||
| 60 | zip: 200333 | ||
| 61 | }, { | ||
| 62 | date: '2016-05-06', | ||
| 63 | name: '王小虎', | ||
| 64 | province: '上海', | ||
| 65 | city: '普陀区', | ||
| 66 | address: '上海市普陀区金沙江路 1518 弄', | ||
| 67 | zip: 200333 | ||
| 68 | }, { | ||
| 69 | date: '2016-05-07', | ||
| 70 | name: '王小虎', | ||
| 71 | province: '上海', | ||
| 72 | city: '普陀区', | ||
| 73 | address: '上海市普陀区金沙江路 1518 弄', | ||
| 74 | zip: 200333 | ||
| 75 | }] | ||
| 76 | } | ||
| 77 | } | ||
| 78 | } | ||
| 79 | </script> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | 
File moved
File moved
- 
Please register or sign in to post a comment