已修改5个文件
已删除1个文件
已添加5个文件
已复制1个文件
已重命名2个文件
| | |
| | | <template> |
| | | <el-config-provider :locale="locale"> |
| | | <el-container class="el-container"> |
| | | <el-aside class="el-aside" |
| | | ><SiderMenu |
| | | :collapse="isCollapsed" |
| | | @nav-page="navPage" |
| | | ></SiderMenu |
| | | ></el-aside> |
| | | <el-container> |
| | | <el-header class="el-header" |
| | | ><Header |
| | | :navTitles="navTitles" |
| | | :collapse="isCollapsed" |
| | | @collapsed-sider="collapsedSider" |
| | | ></Header |
| | | ></el-header> |
| | | <el-main class="el-main"> |
| | | <el-scrollbar> |
| | | <div class="el-main__content"> |
| | | <Content></Content> |
| | | <!-- <el-backtop |
| | | target=".el-main .el-scrollbar__wrap" |
| | | :right="10" |
| | | :bottom="100" |
| | | style="z-index: 1000;" |
| | | > |
| | | <div class="back-top"> |
| | | <el-icon><ArrowUpBold /></el-icon> |
| | | <span style="">è¿åé¡¶é¨</span> |
| | | </div> |
| | | </el-backtop> --> |
| | | </div> |
| | | </el-scrollbar> |
| | | </el-main> |
| | | </el-container> |
| | | </el-container> |
| | | <router-view></router-view> |
| | | </el-config-provider> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | isCollapsed: false, |
| | | navTitles: [], |
| | | locale: zhCn, |
| | | locale: zhCn |
| | | }; |
| | | }, |
| | | methods: { |
| | | collapsedSider(b) { |
| | | this.isCollapsed = b; |
| | | }, |
| | | navPage(titles) { |
| | | this.navTitles = titles; |
| | | }, |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .el-container{ |
| | | /* min-height: 820px; */ |
| | | } |
| | | .el-aside { |
| | | width: initial; |
| | | } |
| | | |
| | | .el-header { |
| | | /* background-color: rgb(216, 201, 201); */ |
| | | border-bottom: 1px solid var(--el-color-info-light-7); |
| | | } |
| | | |
| | | .el-main { |
| | | position: relative; |
| | | /* background-color: bisque; */ |
| | | padding: initial; |
| | | /* max-height: calc(100vh - 60px); */ |
| | | /* overflow: hidden; */ |
| | | } |
| | | |
| | | .el-main__content { |
| | | padding: var(--el-main-padding) calc(var(--el-main-padding) / 2); |
| | | max-height: calc(100vh - 60px - var(--el-main-padding) * 2); |
| | | /* background-color: aqua; */ |
| | | /* overflow: auto; */ |
| | | } |
| | | .back-top { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | height: 100%; |
| | | width: 100%; |
| | | background-color: var(--el-bg-color-overlay); |
| | | box-shadow: var(--el-box-shadow-lighter); |
| | | text-align: center; |
| | | /* line-height: 40px; */ |
| | | color: var(--el-color-info); |
| | | border: var(--el-border); |
| | | font-size: var(--el-font-size-medium); |
| | | border-radius: var(--el-border-radius-base); |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { $fysp } from '../index'; |
| | | |
| | | export default { |
| | | /** |
| | | * è·åæ°æ®äº§ååºæ¯ä¿¡æ¯ |
| | | * @param {*} option æ°æ®äº§ååºæ¯ä¿¡æ¯æ¥è¯¢åæ° |
| | | * @returns |
| | | */ |
| | | fetchProdSceneInfo(option) { |
| | | return $fysp.post(`dataProd/base/scene/get?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * è·åæ°æ®äº§åè¯ä¼°ä¿¡æ¯ |
| | | * @param {*} option æ°æ®äº§åè¯ä¼°ä¿¡æ¯æ¥è¯¢åæ° |
| | | * @returns |
| | | */ |
| | | fetchProdEvaluateInfo(option) { |
| | | return $fysp.post(`dataProd/base/evaluate/get?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * è·åæ°æ®äº§åå·¡æ¥ä¿¡æ¯ |
| | | * @param {*} option æ°æ®äº§åå·¡æ¥ä¿¡æ¯æ¥è¯¢åæ° |
| | | * @returns |
| | | */ |
| | | fetchProdInspectionInfo(option) { |
| | | return $fysp.post(`dataProd/base/inspection/get?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * è·åæ°æ®äº§åçæ§æ°æ®ä¿¡æ¯ |
| | | * @param {*} option æ°æ®äº§åçæ§æ°æ®ä¿¡æ¯æ¥è¯¢åæ° |
| | | * @returns |
| | | */ |
| | | fetchProdMonitorDataInfo(option) { |
| | | return $fysp.post(`dataProd/base/monitorData/get?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | }, |
| | | |
| | | }; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { $fysp } from '../index'; |
| | | |
| | | export default { |
| | | |
| | | /** |
| | | * å·¡æ¥å®ææ
嵿±æ» |
| | | * @param {*} option |
| | | * @returns |
| | | */ |
| | | fetchInspectionSummary(option) { |
| | | return $fysp.post(`dataProd/middle/inspection/summary/get?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * é®é¢ç±»åæ±æ» |
| | | * @param {*} option |
| | | * @returns |
| | | */ |
| | | fetchProblemTypeSummary(option) { |
| | | return $fysp.post(`dataProd/middle/problemType/summary/get?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * ååºåååºæ¯é®é¢æ°é |
| | | * @param {*} option |
| | | * @returns |
| | | */ |
| | | fetchProblemCountByArea(option) { |
| | | return $fysp.post(`dataProd/middle/problemCount/area/get?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * ååºååè§èæ§æ
åµ |
| | | * @param {*} option |
| | | * @returns |
| | | */ |
| | | fetchEvaluationByArea(option) { |
| | | return $fysp.post(`dataProd/middle/evaluation/area/get?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | }, |
| | | }; |
| | |
| | | return $fysp.post(`dataProduct/problemRecurrence?`, option).then((res) => { |
| | | return res.data; |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | }; |
| | |
| | | import axios from 'axios'; |
| | | import { ElMessage } from 'element-plus'; |
| | | |
| | | const debug = false; |
| | | const debug = true; |
| | | |
| | | // let ip1 = 'http://47.100.191.150:9005/'; |
| | | // let ip1_file = 'http://47.100.191.150:9005/'; |
| | |
| | | const MENU_COMMON = [ |
| | | { |
| | | path: '/common/userMatch', |
| | | path: 'common/userMatch', |
| | | icon: 'Connection', |
| | | name: 'è´¦æ·å¹é
' |
| | | } |
| | |
| | | |
| | | if (import.meta.env.DEV) { |
| | | MENU_COMMON.push({ |
| | | path: '/common/docTest', |
| | | path: 'common/docTest', |
| | | icon: 'Connection', |
| | | name: 'ææ¡£çæ' |
| | | }); |
| | |
| | | // ] |
| | | // }, |
| | | { |
| | | path: '/fysp/procheck', |
| | | path: 'fysp/procheck', |
| | | icon: 'CircleCheck', |
| | | name: 'é®é¢æ´æ¹' |
| | | }, |
| | |
| | | name: 'ä»»å¡ç®¡ç', |
| | | children: [ |
| | | { |
| | | path: '/fysp/task/manage', |
| | | path: 'fysp/task/manage', |
| | | icon: 'CircleCheck', |
| | | name: 'ç管任å¡' |
| | | }, |
| | | { |
| | | path: '/fysp/sceneInfo', |
| | | path: 'fysp/sceneInfo', |
| | | icon: 'Files', |
| | | name: 'åºæ¯ä¿¡æ¯' |
| | | } |
| | |
| | | icon: 'DataAnalysis', |
| | | name: 'åºç¡æ°æ®äº§å', |
| | | children: [ |
| | | { |
| | | path: 'fysp/data-product/base/home/scene', |
| | | icon: 'Document', |
| | | name: 'ç°åºå·¡æ¥', |
| | | }, |
| | | // { |
| | | // path: '/fysp/data-product/base/ProdScenseInfo', |
| | | // icon: 'Document', |
| | | // name: 'åºæ¯æ¸
å', |
| | | // }, |
| | | // { |
| | | // path: '/fysp/data-product/base/ProdMonitorTaskInfo', |
| | | // path: 'fysp/data-product/base/ProdMonitorTaskInfo', |
| | | // icon: 'Document', |
| | | // name: 'ç管æ¸
å', |
| | | // }, |
| | | // { |
| | | // path: '/fysp/data-product/base/ProdTreatmentDeviceInfo', |
| | | // path: 'fysp/data-product/base/ProdTreatmentDeviceInfo', |
| | | // icon: 'Document', |
| | | // name: '鲿²»è®¾å¤æ¸
å', |
| | | // }, |
| | | { |
| | | path: '/fysp/data-product/base/PordProblemRecurrence', |
| | | path: 'fysp/data-product/base/PordProblemRecurrence', |
| | | icon: 'Document', |
| | | name: 'é®é¢å¤åæ¸
å', |
| | | }, |
| | |
| | | name: 'ä¸é´æ°æ®äº§å', |
| | | children: [ |
| | | { |
| | | path: '/fysp/data-product/profollow', |
| | | path: 'fysp/data-product/profollow', |
| | | icon: 'Document', |
| | | name: 'é®é¢å¨æè·è¸ª' |
| | | }, |
| | | { |
| | | path: '/fysp/data-product/proanalysis', |
| | | path: 'fysp/data-product/proanalysis', |
| | | icon: 'Document', |
| | | name: 'é®é¢æ´æ¹åæ' |
| | | }, |
| | | { |
| | | path: '/fysp/data-product/standardjudge', |
| | | path: 'fysp/data-product/standardjudge', |
| | | icon: 'Document', |
| | | name: 'è§èæ§è¯ä¼°' |
| | | }, |
| | | { |
| | | path: '/fysp/data-product/dailyreport', |
| | | path: 'fysp/data-product/dailyreport', |
| | | icon: 'Document', |
| | | name: 'æ¥æ¥ç®¡ç' |
| | | }, |
| | | { |
| | | path: '/fysp/data-product/lawenforcelist', |
| | | path: 'fysp/data-product/lawenforcelist', |
| | | icon: 'Document', |
| | | name: 'èåæ§æ³æ¸
å' |
| | | }, |
| | |
| | | name: 'æç»æ°æ®äº§å', |
| | | children: [ |
| | | { |
| | | path: '/fysp/data-product/scenereport', |
| | | path: 'fysp/data-product/scenereport', |
| | | icon: 'Document', |
| | | name: 'åºæ¯åææ¥å' |
| | | } |
| | |
| | | name: 'èªå¨è¯ä¼°', |
| | | children: [ |
| | | { |
| | | path: '/fysp/evaluation/evalutationTask', |
| | | path: 'fysp/evaluation/evalutationTask', |
| | | icon: 'MessageBox', |
| | | name: 'è¯ä¼°ä»»å¡' |
| | | }, |
| | | { |
| | | path: '/fysp/evaluation/evalutationRecord', |
| | | path: 'fysp/evaluation/evalutationRecord', |
| | | icon: 'Tickets', |
| | | name: 'è¯ä¼°è®°å½' |
| | | } |
| | |
| | | name: 'é
置管ç', |
| | | children: [ |
| | | { |
| | | path: '/fysp/config/problemType', |
| | | path: 'fysp/config/problemType', |
| | | icon: 'List', |
| | | name: 'ç管é®é¢' |
| | | }, |
| | | { |
| | | path: '/fysp/config/deviceMatch', |
| | | path: 'fysp/config/deviceMatch', |
| | | icon: 'List', |
| | | name: '设å¤å¹é
' |
| | | }, |
| | | { |
| | | //è¯ä¼°è§å管ç |
| | | path: '/fysp/config/evalutationRule', |
| | | path: 'fysp/config/evalutationRule', |
| | | icon: 'List', |
| | | name: 'è¯ä¼°è§å' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/fysp/support', |
| | | path: 'fysp/support', |
| | | icon: 'Files', |
| | | name: '坹夿¯æ' |
| | | }, |
| | |
| | | |
| | | const MENU_FYTZ = [ |
| | | // { |
| | | // path: '/fytz/ledger', |
| | | // path: 'fytz/ledger', |
| | | // icon: 'Search', |
| | | // name: 'å°è´¦å®¡æ ¸' |
| | | // }, |
| | | { |
| | | path: '/fytz/notice', |
| | | path: 'fytz/notice', |
| | | icon: 'Message', |
| | | name: 'éç¥ç®¡ç' |
| | | }, |
| | | { |
| | | path: '/fytz/userInfo', |
| | | path: 'fytz/userInfo', |
| | | icon: 'User', |
| | | name: 'è´¦æ·ä¿¡æ¯' |
| | | }, |
| | |
| | | name: 'èµæºç®¡ç', |
| | | children: [ |
| | | { |
| | | path: '/fytz/enforceCase', |
| | | path: 'fytz/enforceCase', |
| | | icon: 'Search', |
| | | name: 'ç£å¯æ¡ä¾' |
| | | } |
| | |
| | | // eslint-disable-next-line no-unused-vars |
| | | import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router' |
| | | import pinia from '../stores/index' |
| | | import { useLoadingStore } from '../stores/loadingStore' |
| | | import { |
| | | createRouter, |
| | | createWebHistory, |
| | | createWebHashHistory |
| | | } from 'vue-router'; |
| | | import pinia from '../stores/index'; |
| | | import { useLoadingStore } from '../stores/loadingStore'; |
| | | |
| | | const routes = [ |
| | | { |
| | | name: 'home', |
| | | path: '/', |
| | | component: () => import('@/views/HomePage.vue'), |
| | | children: [ |
| | | // { |
| | | // //æ´æ¹å®¡æ ¸ |
| | | // name: 'changecheck', |
| | |
| | | { |
| | | //é®é¢å¨æè·è¸ª |
| | | name: 'profollow', |
| | | path: '/fysp/data-product/profollow', |
| | | path: 'fysp/data-product/profollow', |
| | | component: () => import('@/views/fysp/data-product/ProdProFollow.vue') |
| | | }, |
| | | { |
| | | //é®é¢æ´æ¹åæ |
| | | name: 'proanalysis', |
| | | path: '/fysp/data-product/proanalysis', |
| | | path: 'fysp/data-product/proanalysis', |
| | | component: () => import('@/views/fysp/data-product/ProdProAnalysis.vue') |
| | | }, |
| | | { |
| | | //è§èæ§è¯ä¼° |
| | | name: 'standardjudge', |
| | | path: '/fysp/data-product/standardjudge', |
| | | component: () => import('@/views/fysp/data-product/ProdStandardJudge.vue') |
| | | path: 'fysp/data-product/standardjudge', |
| | | component: () => |
| | | import('@/views/fysp/data-product/ProdStandardJudge.vue') |
| | | }, |
| | | { |
| | | //æ¥æ¥ç®¡ç |
| | | name: 'dailyreport', |
| | | path: '/fysp/data-product/dailyreport', |
| | | path: 'fysp/data-product/dailyreport', |
| | | component: () => import('@/views/fysp/data-product/ProdDailyReport.vue') |
| | | }, |
| | | { |
| | | //åºæ¯æ¥å |
| | | name: 'scenereport', |
| | | path: '/fysp/data-product/scenereport', |
| | | path: 'fysp/data-product/scenereport', |
| | | component: () => import('@/views/fysp/data-product/ProdSceneReport.vue') |
| | | }, |
| | | { |
| | | //åºæ¯æ¥å |
| | | name: 'lawenforcelist', |
| | | path: '/fysp/data-product/lawenforcelist', |
| | | component: () => import('@/views/fysp/data-product/ProdLawEnforceList.vue') |
| | | path: 'fysp/data-product/lawenforcelist', |
| | | component: () => |
| | | import('@/views/fysp/data-product/ProdLawEnforceList.vue') |
| | | }, |
| | | // { |
| | | // //åºæ¯æ¥å-å·¥å° |
| | |
| | | { |
| | | //çç®¡ä»»å¡ |
| | | name: 'taskmanage', |
| | | path: '/fysp/task/manage', |
| | | path: 'fysp/task/manage', |
| | | component: () => import('@/views/fysp/task/TaskManage.vue'), |
| | | meta: { keepAlive: true } |
| | | }, |
| | | { |
| | | //ç管任å¡åºæ¯ç¼è¾ |
| | | name: 'monitorObjEdit', |
| | | path: '/fysp/task/edit', |
| | | path: 'fysp/task/edit', |
| | | component: () => import('@/views/fysp/task/MonitorObjEdit.vue') |
| | | }, |
| | | { |
| | | //ç管任å¡è®¡åç¼è¾ |
| | | name: 'monitorPlanEdit', |
| | | path: '/fysp/task/plan/edit', |
| | | path: 'fysp/task/plan/edit', |
| | | component: () => import('@/views/fysp/task/MonitorPlanEdit.vue') |
| | | }, |
| | | { |
| | | //ç管任å¡è®¡åç¼è¾ |
| | | name: 'monitorTaskCreate', |
| | | path: '/fysp/task/create', |
| | | path: 'fysp/task/create', |
| | | component: () => import('@/views/fysp/task/MonitorTaskCreate.vue') |
| | | }, |
| | | { |
| | | //é®é¢å®¡æ ¸ |
| | | name: 'procheck', |
| | | path: '/fysp/procheck', |
| | | path: 'fysp/procheck', |
| | | component: () => import('@/views/fysp/check/ProCheck.vue') |
| | | }, |
| | | // { |
| | | // //è´¦æ·ç®¡ç |
| | | // name: 'fyspUser', |
| | | // path: '/fysp/userInfo', |
| | | // path: 'fysp/userInfo', |
| | | // component: () => import('@/views/baseinfo/fysp/user/UserInfo.vue') |
| | | // }, |
| | | { |
| | | //ç管é®é¢ |
| | | name: 'fyspProblemType', |
| | | path: '/fysp/config/problemType', |
| | | path: 'fysp/config/problemType', |
| | | component: () => import('@/views/fysp/config/ProblemType.vue') |
| | | }, |
| | | { |
| | | //设å¤å¹é
|
| | | name: 'fyspDeviceMatch', |
| | | path: '/fysp/config/deviceMatch', |
| | | path: 'fysp/config/deviceMatch', |
| | | component: () => import('@/views/fysp/config/DeviceMatch.vue') |
| | | }, |
| | | { |
| | | //è¯ä¼°è§å管ç |
| | | name: 'fyspEvalutationRule', |
| | | path: '/fysp/config/evalutationRule', |
| | | path: 'fysp/config/evalutationRule', |
| | | component: () => import('@/views/fysp/config/EvalutationRule.vue') |
| | | }, |
| | | { |
| | | //è¯ä¼°æ°æ®æº |
| | | name: 'fyspEvalutationTask', |
| | | path: '/fysp/evaluation/evalutationTask', |
| | | path: 'fysp/evaluation/evalutationTask', |
| | | component: () => import('@/views/fysp/evaluation/EvalutationTask.vue'), |
| | | meta: { keepAlive: false } |
| | | }, |
| | | { |
| | | //è¯ä¼°ç®¡ç |
| | | name: 'fyspEvalutationRecord', |
| | | path: '/fysp/evaluation/evalutationRecord', |
| | | component: () => import('@/views/fysp/evaluation/EvalutationRecord.vue'), |
| | | path: 'fysp/evaluation/evalutationRecord', |
| | | component: () => |
| | | import('@/views/fysp/evaluation/EvalutationRecord.vue'), |
| | | meta: { keepAlive: true } |
| | | }, |
| | | { |
| | | //è¯ä¼°ç»æè¯¦æ
|
| | | name: 'fyspEvalutationEdit', |
| | | path: '/fysp/evaluation/evalutationEdit/:subTaskId', |
| | | component: () => import('@/views/fysp/evaluation/EvalutationEdit.vue'), |
| | | path: 'fysp/evaluation/evalutationEdit/:subTaskId', |
| | | component: () => import('@/views/fysp/evaluation/EvalutationEdit.vue') |
| | | }, |
| | | { |
| | | //åºæ¯ä¿¡æ¯ |
| | | name: 'fyspSceneInfo', |
| | | path: '/fysp/sceneInfo', |
| | | path: 'fysp/sceneInfo', |
| | | component: () => import('@/views/fysp/scene/SceneInfo.vue'), |
| | | meta: { keepAlive: true } |
| | | }, |
| | | { |
| | | //åºæ¯ç¼è¾ |
| | | name: 'fyspSceneEdit', |
| | | path: '/fysp/sceneEdit/:sid', |
| | | path: 'fysp/sceneEdit/:sid', |
| | | component: () => import('@/views/fysp/scene/SceneEdit.vue'), |
| | | meta: { transition: 'slide-left' } |
| | | }, |
| | | { |
| | | //坹夿¯æ |
| | | name: 'fyspSupport', |
| | | path: '/fysp/support', |
| | | component: () => import('@/views/fysp/support/JingAnSupport.vue'), |
| | | path: 'fysp/support', |
| | | component: () => import('@/views/fysp/support/JingAnSupport.vue') |
| | | }, |
| | | { |
| | | // åºç¡äº§å-管ç |
| | | name: 'ProdManage', |
| | | path: 'fysp/data-product/base/home', |
| | | component: () => |
| | | import('@/views/fysp/data-product/base-data-product/ProdManage.vue'), |
| | | children: [ |
| | | { |
| | | // åºç¡äº§å-åºæ¯æ¸
å |
| | | name: 'ProdScenseInfo', |
| | | path: '/fysp/data-product/base/ProdScenseInfo', |
| | | component: () => import('@/views/fysp/data-product/base-data-product/ProdScenseInfo.vue') |
| | | path: 'scene', |
| | | name: 'ProdSceneInfo', |
| | | meta: { keepAlive: true }, |
| | | component: () => |
| | | import( |
| | | '@/views/fysp/data-product/base-data-product/ProdSceneInfo.vue' |
| | | ) |
| | | }, |
| | | { |
| | | // åºç¡äº§å-ç管æ¸
å |
| | | name: 'ProdMonitorTaskInfo', |
| | | path: '/fysp/data-product/base/ProdMonitorTaskInfo', |
| | | component: () => import('@/views/fysp/data-product/base-data-product/ProdMonitorTaskInfo.vue') |
| | | // åºç¡äº§å-è§èæ§è¯ä¼° |
| | | path: 'evaluate', |
| | | name: 'ProdEvaluationInfo', |
| | | meta: { keepAlive: true }, |
| | | component: () => |
| | | import( |
| | | '@/views/fysp/data-product/base-data-product/ProdEvaluationInfo.vue' |
| | | ) |
| | | }, |
| | | { |
| | | // åºç¡äº§å-鲿²»è®¾å¤æ¸
å |
| | | name: 'ProdTreatmentDeviceInfo', |
| | | path: '/fysp/data-product/base/ProdTreatmentDeviceInfo', |
| | | component: () => import('@/views/fysp/data-product/base-data-product/ProdTreatmentDeviceInfo.vue') |
| | | // åºç¡äº§å-å·¡æ¥ä¿¡æ¯ |
| | | path: 'inspection', |
| | | name: 'ProdInspectionInfo', |
| | | meta: { keepAlive: true }, |
| | | component: () => |
| | | import( |
| | | '@/views/fysp/data-product/base-data-product/ProdInspectionInfo.vue' |
| | | ) |
| | | }, |
| | | { |
| | | // åºç¡äº§å-çæµæ°æ® |
| | | path: 'monitordata', |
| | | name: 'ProdMonitorDataInfo', |
| | | meta: { keepAlive: true }, |
| | | component: () => |
| | | import( |
| | | '@/views/fysp/data-product/base-data-product/ProdMonitorDataInfo.vue' |
| | | ) |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | // åºç¡äº§å-é®é¢å¤åæ¸
å |
| | | name: 'PordProblemRecurrence', |
| | | path: '/fysp/data-product/base/PordProblemRecurrence', |
| | | component: () => import('@/views/fysp/data-product/base-data-product/PordProblemRecurrence.vue') |
| | | path: 'fysp/data-product/base/PordProblemRecurrence', |
| | | component: () => |
| | | import( |
| | | '@/views/fysp/data-product/base-data-product/PordProblemRecurrence.vue' |
| | | ) |
| | | }, |
| | | |
| | | /**********************************é£ç¾½ç¯å¢***********************************************/ |
| | | { |
| | | //å°è´¦å®¡æ ¸ |
| | | name: 'ledger', |
| | | path: '/fytz/ledger', |
| | | path: 'fytz/ledger', |
| | | component: () => import('@/views/fytz/ledger/LedgerManage.vue') |
| | | }, |
| | | { |
| | | //éç¥ç®¡ç |
| | | name: 'notice', |
| | | path: '/fytz/notice', |
| | | path: 'fytz/notice', |
| | | component: () => import('@/views/fytz/notice/NoticeManage.vue') |
| | | }, |
| | | { |
| | | //è´¦æ·ç®¡ç |
| | | name: 'fytzUser', |
| | | path: '/fytz/userInfo', |
| | | path: 'fytz/userInfo', |
| | | component: () => import('@/views/fytz/user/UserInfo.vue'), |
| | | meta: { keepAlive: true } |
| | | }, |
| | | { |
| | | //è´¦æ·ç¼è¾ |
| | | name: 'fytzUserEdit', |
| | | path: '/fytz/userEdit/:userId', |
| | | path: 'fytz/userEdit/:userId', |
| | | component: () => import('@/views/fytz/user/UserEdit.vue'), |
| | | meta: { transition: 'slide-left' } |
| | | }, |
| | | { |
| | | //ç¯ä¿ç£å¯æ¡ä¾ |
| | | name: 'enforceCase', |
| | | path: '/fytz/enforceCase', |
| | | path: 'fytz/enforceCase', |
| | | component: () => import('@/views/fytz/enforce-case/EnforceCase.vue') |
| | | }, |
| | | |
| | |
| | | { |
| | | //è´¦æ·å¹é
|
| | | name: 'userMatch', |
| | | path: '/common/userMatch', |
| | | path: 'common/userMatch', |
| | | component: () => import('@/views/common/UserMatch.vue') |
| | | }, |
| | | { |
| | | //ææ¡£çææµè¯ |
| | | name: 'docTest', |
| | | path: '/common/docTest', |
| | | path: 'common/docTest', |
| | | component: () => import('@/views/DocTest.vue') |
| | | } |
| | | ] |
| | | } |
| | | ]; |
| | | |
| | | const router = createRouter({ |
| | | // history: createWebHistory(import.meta.env.BASE_URL) |
| | | history: createWebHashHistory(), |
| | | routes: routes |
| | | }) |
| | | }); |
| | | |
| | | const loadingStore = useLoadingStore(pinia) |
| | | const loadingStore = useLoadingStore(pinia); |
| | | // eslint-disable-next-line no-unused-vars |
| | | router.afterEach((to, from) => { |
| | | loadingStore.clearLoading() |
| | | }) |
| | | loadingStore.clearLoading(); |
| | | }); |
| | | |
| | | export { router, routes } |
| | | export { router, routes }; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-container class="el-container"> |
| | | <el-aside class="el-aside" |
| | | ><SiderMenu :collapse="isCollapsed" @nav-page="navPage"></SiderMenu |
| | | ></el-aside> |
| | | <el-container> |
| | | <el-header class="el-header" |
| | | ><Header |
| | | :navTitles="navTitles" |
| | | :collapse="isCollapsed" |
| | | @collapsed-sider="collapsedSider" |
| | | ></Header |
| | | ></el-header> |
| | | <el-main class="el-main"> |
| | | <el-scrollbar> |
| | | <div class="el-main__content"> |
| | | <Content></Content> |
| | | <!-- <el-backtop |
| | | target=".el-main .el-scrollbar__wrap" |
| | | :right="10" |
| | | :bottom="100" |
| | | style="z-index: 1000;" |
| | | > |
| | | <div class="back-top"> |
| | | <el-icon><ArrowUpBold /></el-icon> |
| | | <span style="">è¿åé¡¶é¨</span> |
| | | </div> |
| | | </el-backtop> --> |
| | | </div> |
| | | </el-scrollbar> |
| | | </el-main> |
| | | </el-container> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | isCollapsed: false, |
| | | navTitles: [] |
| | | }; |
| | | }, |
| | | methods: { |
| | | collapsedSider(b) { |
| | | this.isCollapsed = b; |
| | | }, |
| | | navPage(titles) { |
| | | this.navTitles = titles; |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .el-container { |
| | | /* min-height: 820px; */ |
| | | } |
| | | .el-aside { |
| | | width: initial; |
| | | } |
| | | |
| | | .el-header { |
| | | /* background-color: rgb(216, 201, 201); */ |
| | | border-bottom: 1px solid var(--el-color-info-light-7); |
| | | } |
| | | |
| | | .el-main { |
| | | position: relative; |
| | | /* background-color: bisque; */ |
| | | padding: initial; |
| | | /* max-height: calc(100vh - 60px); */ |
| | | /* overflow: hidden; */ |
| | | } |
| | | |
| | | .el-main__content { |
| | | padding: var(--el-main-padding) calc(var(--el-main-padding) / 2); |
| | | max-height: calc(100vh - 60px - var(--el-main-padding) * 2); |
| | | /* background-color: aqua; */ |
| | | /* overflow: auto; */ |
| | | } |
| | | .back-top { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | height: 100%; |
| | | width: 100%; |
| | | background-color: var(--el-bg-color-overlay); |
| | | box-shadow: var(--el-box-shadow-lighter); |
| | | text-align: center; |
| | | /* line-height: 40px; */ |
| | | color: var(--el-color-info); |
| | | border: var(--el-border); |
| | | font-size: var(--el-font-size-medium); |
| | | border-radius: var(--el-border-radius-base); |
| | | } |
| | | </style> |
copy from src/views/fysp/data-product/base-data-product/ProdScenseInfo.vue
copy to src/views/fysp/data-product/base-data-product/ProdInspectionInfo.vue
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <!-- <el-menu default-active="scene" ellipsis mode="horizontal" style="max-width: 600px"> |
| | | <el-menu-item index="scene" @click="navPage">åºæ¯æ¸
å</el-menu-item> |
| | | <el-menu-item index="evaluate" @click="navPage">è¯ä¼°æ¸
å</el-menu-item> |
| | | <el-menu-item index="inspection" @click="navPage">å·¡æ¥ä¿¡æ¯</el-menu-item> |
| | | <el-menu-item index="monitorData" @click="navPage">çæµæ°æ®</el-menu-item> |
| | | </el-menu> --> |
| | | <!-- <a @click="navPage({ index: 'scene' })"><div>åºæ¯æ¸
å</div></a> |
| | | <a @click="navPage({ index: 'evaluate' })"><div>è¯ä¼°æ¸
å</div></a> |
| | | <a @click="navPage({ index: 'inspection' })"><div>å·¡æ¥ä¿¡æ¯</div></a> |
| | | <a @click="navPage({ index: 'monitorData' })"><div>çæµæ°æ®</div></a> --> |
| | | <el-space> |
| | | <template v-for="(item, index) in menu" :key="item.path"> |
| | | <a :class="btnClz(item.selected)" @click="navTo(index)"> |
| | | <div>{{ item.name }}</div> |
| | | </a> |
| | | </template> |
| | | </el-space> |
| | | <div>sssss</div> |
| | | <router-view v-slot="{ Component, route }"> |
| | | <keep-alive> |
| | | <component |
| | | v-if="route.meta.keepAlive" |
| | | :is="Component" |
| | | :key="route.name" |
| | | /> |
| | | </keep-alive> |
| | | <component v-if="!route.meta.keepAlive" :is="Component" :key="route.name" /> |
| | | </router-view> |
| | | </template> |
| | | <script setup> |
| | | import { ref, onMounted } from 'vue'; |
| | | import { useRouter, useRoute } from 'vue-router'; |
| | | |
| | | const router = useRouter(); |
| | | const route = useRoute(); |
| | | |
| | | const menu = ref([ |
| | | { |
| | | name: 'åºæ¯æ¸
å', |
| | | path: 'scene', |
| | | selected: true |
| | | }, |
| | | { |
| | | name: 'è¯ä¼°æ¸
å', |
| | | path: 'evaluate' |
| | | }, |
| | | { |
| | | name: 'å·¡æ¥ä¿¡æ¯', |
| | | path: 'inspection' |
| | | }, |
| | | { |
| | | name: 'çæµæ°æ®', |
| | | path: 'monitorData' |
| | | } |
| | | ]); |
| | | // console.log(router); |
| | | // console.log(route.path); |
| | | |
| | | const navPage = (item) => { |
| | | console.log(item); |
| | | if (item.index) { |
| | | router.push({ |
| | | path: item.index |
| | | }); |
| | | } |
| | | }; |
| | | function btnClz(selected) { |
| | | return ( |
| | | 'mode-btn ' + (selected ? 'btn-selected ' : 'btn-unselected ') + 'm-r-8' |
| | | ); |
| | | } |
| | | |
| | | function navTo(index) { |
| | | const m = this.menu; |
| | | m.forEach((e) => { |
| | | e.selected = false; |
| | | }); |
| | | m[index].selected = true; |
| | | router.replace(m[index].path); |
| | | } |
| | | |
| | | onMounted(() => { |
| | | console.log(route.path); |
| | | // router.push('/fysp/data-product/base/home/scene'); |
| | | }); |
| | | </script> |
| | | <style scoped> |
| | | .mode-btn { |
| | | padding: 8px 16px; |
| | | border-radius: 4px; |
| | | font-size: 14px; |
| | | color: #303133; |
| | | background-color: #f5f7fa; |
| | | border: 1px solid #dcdfe6; |
| | | cursor: pointer; |
| | | } |
| | | .btn-selected { |
| | | color: #fff; |
| | | background-color: #409eff; |
| | | border-color: #409eff; |
| | | } |
| | | .btn-unselected { |
| | | color: #303133; |
| | | background-color: #f5f7fa; |
| | | border-color: #dcdfe6; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | 1 |
| | | </template> |
| | | <script setup></script> |
ÎļþÃû´Ó src/views/fysp/data-product/base-data-product/ProdMonitorTaskInfo.vue ÐÞ¸Ä |
| | |
| | | <template> |
| | | 1 |
| | | ProdSceneInfo |
| | | </template> |
| | | <script></script> |