diff --git a/package.json b/package.json index 97b46a1..cd06e68 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@form-create/designer": "^3.1.3", "@form-create/element-ui": "^3.1.24", "@iconify/iconify": "^3.1.1", + "@kjgl77/datav-vue3": "^1.7.1", "@videojs-player/vue": "^1.0.0", "@vueuse/core": "^10.4.1", "@wangeditor/editor": "^5.1.23", diff --git a/src/api/board/index.ts b/src/api/board/index.ts new file mode 100644 index 0000000..bce93c1 --- /dev/null +++ b/src/api/board/index.ts @@ -0,0 +1,24 @@ +import request from '@/config/axios' + +// 看板获取数量列表以及饼状图 +export const getNumberStatistics = async () => { + return await request.get({ url: `/detection/records-timing/getNumberStatistics`}) +} + +// 前七天不合格数据 +export const getNoStandardData = async (params) => { + return await request.get({ url: `/detection/records-timing/getNoStandardData`,params}) +} + + +// 前七天合格数 +export const getStandardData = async (params) => { + return await request.get({ url: `/detection/records-timing/getStandardData`,params}) +} +// +export const getLinePage = async () => { + return await request.get({ url: `detection/records-timing/getRecordsTimingList`}) +} + + + diff --git a/src/assets/imgs/bgimg.png b/src/assets/imgs/bgimg.png new file mode 100644 index 0000000..325758c Binary files /dev/null and b/src/assets/imgs/bgimg.png differ diff --git a/src/assets/imgs/side.png b/src/assets/imgs/side.png new file mode 100644 index 0000000..5830d62 Binary files /dev/null and b/src/assets/imgs/side.png differ diff --git a/src/assets/imgs/title.png b/src/assets/imgs/title.png new file mode 100644 index 0000000..58c6892 Binary files /dev/null and b/src/assets/imgs/title.png differ diff --git a/src/main.ts b/src/main.ts index b7c8001..d2e66ca 100644 --- a/src/main.ts +++ b/src/main.ts @@ -52,6 +52,7 @@ import 'vue-video-player/src/custom-theme.css' // import vue3videoPlay from 'vue3-video-play' // 引入组件 // import 'vue3-video-play/dist/style.css' // 引入css +import DataVVue3 from '@kjgl77/datav-vue3' // 创建实例 @@ -75,6 +76,7 @@ const setupAll = async () => { await router.isReady() app.use(VueDOMPurifyHTML) + app.use(DataVVue3) // app.use(vue3videoPlay) app.mount('#app') app.config.warnHandler = () => null; diff --git a/src/permission.ts b/src/permission.ts index 0698dc8..715dde0 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -19,7 +19,8 @@ const whiteList = [ '/auth-redirect', '/bind', '/register', - '/oauthLogin/gitee' + '/oauthLogin/gitee', + '/board' ] // 路由加载前 diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 2c2ecf2..2bcd643 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -185,6 +185,16 @@ const remainingRouter: AppRouteRecordRaw[] = [ noTagsView: true } }, + { + path: '/board', + component: () => import('@/views/board/index.vue'), + name: 'Board', + meta: { + hidden: true, + title: '看板', + noTagsView: true + } + }, { path: '/sso', component: () => import('@/views/Login/Login.vue'), diff --git a/src/views/board/Index.vue b/src/views/board/Index.vue new file mode 100644 index 0000000..d96ad45 --- /dev/null +++ b/src/views/board/Index.vue @@ -0,0 +1,538 @@ + + +