diff --git a/public/favicon2.ico b/public/favicon2.ico new file mode 100644 index 00000000..5e6ebb21 Binary files /dev/null and b/public/favicon2.ico differ diff --git a/src/api/advance-boot/division.ts b/src/api/advance-boot/division.ts index a950e716..21591960 100644 --- a/src/api/advance-boot/division.ts +++ b/src/api/advance-boot/division.ts @@ -1,42 +1,50 @@ -import createAxios from '@/utils/request' - -//删除列表 -export function deleteByIds(data: any) { - return createAxios({ - url: '/advance-boot/responsibility/deleteByIds', - method: 'post', - data - }) -} -//上传用采数据 -export function uploadUserData(data: any) { - return createAxios({ - url: '/advance-boot/responsibility/uploadUserData', - method: 'post', - data - }) -} -//负荷数据 -export function userDataList(data: any) { - return createAxios({ - url: '/advance-boot/responsibility/userDataList', - method: 'post', - data - }) -} -//执行 -export function getHistoryHarmData(data: any) { - return createAxios({ - url: '/harmonic-boot/harmonic/getHistoryHarmData', - method: 'post', - data - }) -} -//责任详情 -export function displayHistoryData(data: any) { - return createAxios({ - url: '/advance-boot/responsibility/displayHistoryData', - method: 'GET', - params: data - }) -} +import createAxios from '@/utils/request' + +//删除列表 +export function deleteByIds(data: any) { + return createAxios({ + url: '/advance-boot/responsibility/deleteByIds', + method: 'post', + data + }) +} +//上传用采数据 +export function uploadUserData(data: any) { + return createAxios({ + url: '/advance-boot/responsibility/uploadUserData', + method: 'post', + data + }) +} +//删除用采数据 +export function deleteUserDataByIds(data: any) { + return createAxios({ + url: '/advance-boot/responsibility/deleteUserDataByIds', + method: 'post', + data + }) +} +//负荷数据 +export function userDataList(data: any) { + return createAxios({ + url: '/advance-boot/responsibility/userDataList', + method: 'post', + data + }) +} +//执行 +export function getHistoryHarmData(data: any) { + return createAxios({ + url: '/harmonic-boot/harmonic/getHistoryHarmData', + method: 'post', + data + }) +} +//责任详情 +export function displayHistoryData(data: any) { + return createAxios({ + url: '/advance-boot/responsibility/displayHistoryData', + method: 'GET', + params: data + }) +} diff --git a/src/api/device-boot/Business.ts b/src/api/device-boot/Business.ts index 648e9244..dda0bd32 100644 --- a/src/api/device-boot/Business.ts +++ b/src/api/device-boot/Business.ts @@ -1,184 +1,192 @@ -import createAxios from '@/utils/request' - -// 新增菜单接口 -export function addNode(data: any) { - return createAxios({ - url: '/device-boot/node/addNode', - method: 'post', - data: data - }) -} - -//修改前置机 -export function updateNode(data: any) { - return createAxios({ - url: '/device-boot/node/updateNode', - method: 'put', - data: data - }) -} - -//删除前置机 -export function delNode(data: any) { - return createAxios({ - url: '/device-boot/node/delNode', - method: 'post', - params: { id: data } - }) -} - -//终端台账树 -export function getTerminalTree() { - return createAxios({ - url: '/device-boot/terminalTree/getTerminalTree', - method: 'get' - }) -} - -/** - * 总计出3层,提供给表单选择具体的终端、母线、监测点 - * 终端台账树 - * 等级:0-项目名称;1- 用户名称;2-单位;3-部门;4-终端;5-母线;6-监测点 - */ -export function getTerminalSelectTree(level: number) { - return createAxios({ - url: '/device-boot/terminalTree/getTerminalSelectTree?level=' + level, - method: 'get' - }) -} - -//查询节点内容 -export function queryTerminal(data: any) { - return createAxios({ - url: `/device-boot/device/queryTerminal`, - method: 'get', - params: data - }) -} - -//删除终端 -export function delTerminal(data: any) { - return createAxios({ - url: `/device-boot/device/delTerminal`, - method: 'delete', - params: data - }) -} - -//获取前置机 -export function nodeAllList() { - return createAxios({ - url: '/device-boot/node/nodeAllList', - method: 'get' - }) -} - -//修改数据 -export function updateTerminal(query: any) { - return createAxios({ - url: `/device-boot/device/updateTerminal`, - method: 'put', - data: { - ...query - } - }) -} - -//提交数据 -export function addTerminal(query: any) { - return createAxios({ - url: '/device-boot/device/addTerminal', - method: 'post', - data: { - ...query - } - }) -} - -//查询终端程序版本升级日志 -export function getTerminalUpLog(data: any) { - return createAxios({ - url: '/device-boot/version/getTerminalUpLog', - method: 'post', - params: data - }) -} -//查询新能源场站 -export function selectDown() { - return createAxios({ - url: '/device-boot/newStation/selectDown', - method: 'get' - }) -} -//获取用户大类小类 -export function queryAllByType(params: any) { - return createAxios({ - url: '/system-boot/dictTree/queryAllByType', - method: 'get', - params - }) -} -//获取用户 -export function selectUserList(data: any) { - return createAxios({ - url: '/supervision-boot/userReport/selectUserList', - method: 'post', - data - }) -} -//查询列表 -export function getStatusManageList(data: any) { - return createAxios({ - url: '/device-boot/maintain/getStatusManageList', - method: 'post', - data - }) -} -//设置终端状态 -export function updateRunFlagManage(data: any) { - return createAxios({ - url: '/device-boot/maintain/updateRunFlagManage', - method: 'post', - data - }) -} -//设置终端日志 -export function getList(data: any) { - return createAxios({ - url: '/device-boot/pqsTerminalLogs/getList', - method: 'post', - data - }) -} -//查询前置-进程-设备-设备树 -export function nodeDeviceTree(data: any) { - return createAxios({ - url: '/device-boot/nodeDevice/nodeDeviceTree', - method: 'post', - params: data - }) -} -//更新设备进程号 -export function updateDeviceProcess(data: any) { - return createAxios({ - url: '/device-boot/nodeDevice/updateDeviceProcess', - method: 'post', - data - }) -} -//导出台账模板 -export function downTerminalTemplate() { - return createAxios({ - url: '/device-boot/device/downTerminalTemplate', - method: 'get', - responseType: 'blob' - }) -} -//导出台账信息 -export function exportTerminalBase() { - return createAxios({ - url: '/device-boot/device/exportTerminalBase', - method: 'get', - responseType: 'blob' - }) -} +import createAxios from '@/utils/request' + +// 新增菜单接口 +export function addNode(data: any) { + return createAxios({ + url: '/device-boot/node/addNode', + method: 'post', + data: data + }) +} + +//修改前置机 +export function updateNode(data: any) { + return createAxios({ + url: '/device-boot/node/updateNode', + method: 'put', + data: data + }) +} + +//删除前置机 +export function delNode(data: any) { + return createAxios({ + url: '/device-boot/node/delNode', + method: 'post', + params: { id: data } + }) +} + +//终端台账树 +export function getTerminalTree() { + return createAxios({ + url: '/device-boot/terminalTree/getTerminalTree', + method: 'get' + }) +} +//请求前置重启进程 +export function askRestartProcess(data: any) { + return createAxios({ + url: '/device-boot/device/askRestartProcess', + method: 'post', + data + }) +} + +/** + * 总计出3层,提供给表单选择具体的终端、母线、监测点 + * 终端台账树 + * 等级:0-项目名称;1- 用户名称;2-单位;3-部门;4-终端;5-母线;6-监测点 + */ +export function getTerminalSelectTree(level: number) { + return createAxios({ + url: '/device-boot/terminalTree/getTerminalSelectTree?level=' + level, + method: 'get' + }) +} + +//查询节点内容 +export function queryTerminal(data: any) { + return createAxios({ + url: `/device-boot/device/queryTerminal`, + method: 'get', + params: data + }) +} + +//删除终端 +export function delTerminal(data: any) { + return createAxios({ + url: `/device-boot/device/delTerminal`, + method: 'delete', + params: data + }) +} + +//获取前置机 +export function nodeAllList() { + return createAxios({ + url: '/device-boot/node/nodeAllList', + method: 'get' + }) +} + +//修改数据 +export function updateTerminal(query: any) { + return createAxios({ + url: `/device-boot/device/updateTerminal`, + method: 'put', + data: { + ...query + } + }) +} + +//提交数据 +export function addTerminal(query: any) { + return createAxios({ + url: '/device-boot/device/addTerminal', + method: 'post', + data: { + ...query + } + }) +} + +//查询终端程序版本升级日志 +export function getTerminalUpLog(data: any) { + return createAxios({ + url: '/device-boot/version/getTerminalUpLog', + method: 'post', + params: data + }) +} +//查询新能源场站 +export function selectDown() { + return createAxios({ + url: '/device-boot/newStation/selectDown', + method: 'get' + }) +} +//获取用户大类小类 +export function queryAllByType(params: any) { + return createAxios({ + url: '/system-boot/dictTree/queryAllByType', + method: 'get', + params + }) +} +//获取用户 +export function selectUserList(data: any) { + return createAxios({ + url: '/supervision-boot/userReport/selectUserList', + method: 'post', + data + }) +} +//查询列表 +export function getStatusManageList(data: any) { + return createAxios({ + url: '/device-boot/maintain/getStatusManageList', + method: 'post', + data + }) +} +//设置终端状态 +export function updateRunFlagManage(data: any) { + return createAxios({ + url: '/device-boot/maintain/updateRunFlagManage', + method: 'post', + data + }) +} +//设置终端日志 +export function getList(data: any) { + return createAxios({ + url: '/device-boot/pqsTerminalLogs/getList', + method: 'post', + data + }) +} +//查询前置-进程-设备-设备树 +export function nodeDeviceTree(data: any) { + return createAxios({ + url: '/device-boot/nodeDevice/nodeDeviceTree', + method: 'post', + params: data + }) +} +//更新设备进程号 +export function updateDeviceProcess(data: any) { + return createAxios({ + url: '/device-boot/nodeDevice/updateDeviceProcess', + method: 'post', + data + }) +} +//导出台账模板 +export function downTerminalTemplate() { + return createAxios({ + url: '/device-boot/device/downTerminalTemplate', + method: 'get', + responseType: 'blob' + }) +} +//导出台账信息 +export function exportTerminalBase() { + return createAxios({ + url: '/device-boot/device/exportTerminalBase', + method: 'get', + responseType: 'blob' + }) +} diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 8da6f404..54817a52 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -1,197 +1,199 @@ - - - - - - + + + + + + diff --git a/src/layouts/admin/components/navBar/classic.vue b/src/layouts/admin/components/navBar/classic.vue index 99e94a00..1f63952a 100644 --- a/src/layouts/admin/components/navBar/classic.vue +++ b/src/layouts/admin/components/navBar/classic.vue @@ -1,120 +1,118 @@ - - - - - + + + + + diff --git a/src/router/static.ts b/src/router/static.ts index 4e0a36f1..6b979810 100644 --- a/src/router/static.ts +++ b/src/router/static.ts @@ -1,344 +1,344 @@ -import type { RouteRecordRaw } from 'vue-router' - -const pageTitle = (name: string): string => { - return `pagesTitle.${name}` -} -/** - * 后台基础路由路径 - */ -export const adminBaseRoutePath = '/admin' -export const adminBaseRoute = { - path: adminBaseRoutePath, - name: 'admin', - component: () => import('@/layouts/admin/index.vue'), - // 直接重定向到 loading 路由 - redirect: adminBaseRoutePath + '/loading', - meta: { - title: `pagesTitle.admin` - }, - children: [ - { - path: 'loading/:to?', - name: 'adminMainLoading', - component: () => import('@/layouts/common/components/loading.vue'), - meta: { - title: `pagesTitle.loading` - } - }, - { - path: 'businessUserRouter', - name: '业务管理员页面', - meta: { - title: pageTitle('businessUser'), - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'eventView', - component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/event/eventView.vue'), - name: '暂降事件查看页面', - meta: { - title: pageTitle('router.eventView') - } - }, - { - path: 'productLine', - component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/productLine/index.vue'), - name: '生产线查看页面', - meta: { - title: pageTitle('router.eventView') - } - }, - { - path: 'machine', - component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/machine/index.vue'), - name: '终端查看页面', - meta: { - title: pageTitle('router.eventView') - } - } - ] - }, - { - path: 'sagGovernScheme', - name: '暂降治理评估方案', - meta: { - title: pageTitle('sagGovernScheme'), - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'schemeCalc', - component: () => import('@/views/pqs/voltageSags/sagGovern/scheme/schemeCalc/index.vue'), - name: '治理评估页面', - meta: { - title: pageTitle('router.schemeCalc') - } - }, - { - path: 'schemeHistory', - component: () => import('@/views/pqs/voltageSags/sagGovern/scheme/history/index.vue'), - name: '治理方案结果详情', - meta: { - title: pageTitle('router.schemeHistory') - } - } - ] - }, - { - path: '/bpm', - name: 'bpm', - meta: { - hidden: true - }, - children: [ - { - path: 'formEdit', - component: () => import('@/views/system/bpm/form/editor/index.vue'), - name: 'BpmFormEditor', - meta: { - title: pageTitle('router.formEdit') - } - }, - { - path: 'modelEdit', - component: () => import('@/views/system/bpm/model/editor/index.vue'), - name: 'BpmModelEditor', - meta: { - title: pageTitle('router.modelEdit') - } - }, - { - path: 'instanceDetail', - component: () => import('@/views/system/bpm/processInstance/detail/index.vue'), - name: 'BpmProcessInstanceDetail', - meta: { - title: pageTitle('router.instanceDetail') - } - }, - { - path: 'ProgramReviewInter', - component: () => - import('@/views/pqs/supervise/interfere/components/normalizationManager/programReview.vue'), - name: 'ProgramReview', - meta: { - title: pageTitle('router.programReview') - } - }, - { - path: 'effectProblem', - component: () => import('@/views/pqs/supervise/plan/components/effectProblem/index.vue'), - name: 'PlanEffectProblem', - meta: { - title: pageTitle('router.effectProblem') - } - } - // { - // path: 'manager/model/edit', - // component: () => import('@/views/bpm/model/editor/index.vue'), - // name: 'BpmModelEditor', - // meta: { - // noCache: true, - // hidden: true, - // canTo: true, - // title: '设计流程', - // activeMenu: '/bpm/manager/model' - // } - // }, - // { - // path: 'manager/definition', - // component: () => import('@/views/bpm/definition/index.vue'), - // name: 'BpmProcessDefinition', - // meta: { - // noCache: true, - // hidden: true, - // canTo: true, - // title: '流程定义', - // activeMenu: '/bpm/manager/model' - // } - // }, - ] - }, - { - path: 'division', - name: '谐波责任划分页面', - meta: { - title: pageTitle('division'), - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'aListOfLoadData', - component: () => - import('@/views/pqs/harmonicMonitoring/detailed/division/components/aListOfLoadData.vue'), - name: '负荷数据列表页面', - meta: { - title: pageTitle('router.aListOfLoadData') - } - }, - { - path: 'compute', - component: () => import('@/views/pqs/harmonicMonitoring/detailed/division/components/compute.vue'), - name: '贡献度计算页面', - meta: { - title: pageTitle('router.compute') - } - }, - { - path: 'detail', - component: () => import('@/views/pqs/harmonicMonitoring/detailed/division/components/detail.vue'), - name: 'detail', - meta: { - title: pageTitle('router.detail') - } - } - ] - }, - { - path: 'runManage', - name: '谐波责任划分页面', - meta: { - title: pageTitle('runManage'), - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'addUser', - component: () => import('@/views/pqs/runManage/assessment/components/uese/form.vue'), - name: '新增评估用户', - meta: { - title: pageTitle('router.addUser') - } - } - ] - }, - { - path: 'cockpit', - name: '项目管理', - meta: { - title: pageTitle('runManage'), - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'popup', - component: () => import('@/views/pqs/cockpit/setUp/components/popup.vue'), - name: '新增项目', - meta: { - title: pageTitle('router.popup') - } - }, - { - path: 'view', - component: () => import('@/views/pqs/cockpit/setUp/components/view.vue'), - name: '预览项目', - meta: { - title: pageTitle('router.view') - } - } - ] - }, - { - path: '/boX', - name: 'boX', - component: () => import('@/components/echarts/boX.vue'), - meta: { - title: pageTitle('boX') - } - } - /*{ - path: '/bpm', - name: 'bpm', - meta: { - hidden: true - }, - children: [ - { - path: 'programReview', - component: () => import('@/views/pqs/supervise/interfere/components/normalizationManager/programReview.vue'), - name: 'programReview', - meta: { - title: pageTitle('router.programReview') - } - },{ - path: 'projectTreat', - component: () => import('@/views/pqs/supervise/interfere/components/normalizationManager/projectTreat.vue'), - name: 'projectTreat', - meta: { - title: pageTitle('router.projectTreat') - } - }, - - - ] - },*/ - ] -} - -/* - * 静态路由 - * 自动加载 ./static 目录的所有文件,并 push 到以下数组 - */ -const staticRoutes: Array = [ - adminBaseRoute, - { - path: '/', - redirect: to => { - return { - name: 'adminMainLoading' - } - } - }, - { - // 管理员登录页 - 不放在 adminBaseRoute.children 因为登录页不需要使用后台的布局 - path: '/login', - name: 'login', - component: () => import('@/views/user/login.vue'), - meta: { - title: pageTitle('login') - } - }, - { - path: '/:path(.*)*', - redirect: '/404' - }, - { - path: '/404', - name: 'notFound', - component: () => import('@/views/common/error/404.vue'), - meta: { - title: pageTitle('notFound') // 页面不存在 - } - }, - { - path: '/previewFile', - name: 'previewFile', - component: () => import('@/components/PreviewFile/index.vue'), - meta: { - title: pageTitle('previewFile') - } - }, - - { - // 后台找不到页面了-可能是路由未加载上 - path: adminBaseRoutePath + ':path(.*)*', - redirect: to => { - return { - name: 'adminMainLoading', - params: { - to: JSON.stringify({ - path: to.path, - query: to.query - }) - } - } - } - } -] - -export default staticRoutes +import type { RouteRecordRaw } from 'vue-router' + +const pageTitle = (name: string): string => { + return `pagesTitle.${name}` +} +/** + * 后台基础路由路径 + */ +export const adminBaseRoutePath = '/admin' +export const adminBaseRoute = { + path: adminBaseRoutePath, + name: 'admin', + component: () => import('@/layouts/admin/index.vue'), + // 直接重定向到 loading 路由 + redirect: adminBaseRoutePath + '/loading', + meta: { + title: `pagesTitle.admin` + }, + children: [ + { + path: 'loading/:to?', + name: 'adminMainLoading', + component: () => import('@/layouts/common/components/loading.vue'), + meta: { + title: `pagesTitle.loading` + } + }, + { + path: 'businessUserRouter', + name: '业务管理员页面', + meta: { + title: pageTitle('businessUser'), + icon: 'ep:management', + alwaysShow: true + }, + children: [ + { + path: 'eventView', + component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/event/eventView.vue'), + name: '暂降事件查看页面', + meta: { + title: pageTitle('router.eventView') + } + }, + { + path: 'productLine', + component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/productLine/index.vue'), + name: '生产线查看页面', + meta: { + title: pageTitle('router.eventView') + } + }, + { + path: 'machine', + component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/machine/index.vue'), + name: '终端查看页面', + meta: { + title: pageTitle('router.eventView') + } + } + ] + }, + { + path: 'sagGovernScheme', + name: '暂降治理评估方案', + meta: { + title: pageTitle('sagGovernScheme'), + icon: 'ep:management', + alwaysShow: true + }, + children: [ + { + path: 'schemeCalc', + component: () => import('@/views/pqs/voltageSags/sagGovern/scheme/schemeCalc/index.vue'), + name: '治理评估页面', + meta: { + title: pageTitle('router.schemeCalc') + } + }, + { + path: 'schemeHistory', + component: () => import('@/views/pqs/voltageSags/sagGovern/scheme/history/index.vue'), + name: '治理方案结果详情', + meta: { + title: pageTitle('router.schemeHistory') + } + } + ] + }, + { + path: '/bpm', + name: 'bpm', + meta: { + hidden: true + }, + children: [ + { + path: 'formEdit', + component: () => import('@/views/system/bpm/form/editor/index.vue'), + name: 'BpmFormEditor', + meta: { + title: pageTitle('router.formEdit') + } + }, + { + path: 'modelEdit', + component: () => import('@/views/system/bpm/model/editor/index.vue'), + name: 'BpmModelEditor', + meta: { + title: pageTitle('router.modelEdit') + } + }, + { + path: 'instanceDetail', + component: () => import('@/views/system/bpm/processInstance/detail/index.vue'), + name: 'BpmProcessInstanceDetail', + meta: { + title: pageTitle('router.instanceDetail') + } + }, + { + path: 'ProgramReviewInter', + component: () => + import('@/views/pqs/supervise/interfere/components/normalizationManager/programReview.vue'), + name: 'ProgramReview', + meta: { + title: pageTitle('router.programReview') + } + }, + { + path: 'effectProblem', + component: () => import('@/views/pqs/supervise/plan/components/effectProblem/index.vue'), + name: 'PlanEffectProblem', + meta: { + title: pageTitle('router.effectProblem') + } + } + // { + // path: 'manager/model/edit', + // component: () => import('@/views/bpm/model/editor/index.vue'), + // name: 'BpmModelEditor', + // meta: { + // noCache: true, + // hidden: true, + // canTo: true, + // title: '设计流程', + // activeMenu: '/bpm/manager/model' + // } + // }, + // { + // path: 'manager/definition', + // component: () => import('@/views/bpm/definition/index.vue'), + // name: 'BpmProcessDefinition', + // meta: { + // noCache: true, + // hidden: true, + // canTo: true, + // title: '流程定义', + // activeMenu: '/bpm/manager/model' + // } + // }, + ] + }, + { + path: 'division', + name: '谐波责任划分页面', + meta: { + title: pageTitle('division'), + icon: 'ep:management', + alwaysShow: true + }, + children: [ + { + path: 'aListOfLoadData', + component: () => + import('@/views/pqs/harmonicMonitoring/detailed/division/components/aListOfLoadData.vue'), + name: '用采数据列表页面', + meta: { + title: pageTitle('router.aListOfLoadData') + } + }, + { + path: 'compute', + component: () => import('@/views/pqs/harmonicMonitoring/detailed/division/components/compute.vue'), + name: '贡献度计算页面', + meta: { + title: pageTitle('router.compute') + } + }, + { + path: 'detail', + component: () => import('@/views/pqs/harmonicMonitoring/detailed/division/components/detail.vue'), + name: 'detail', + meta: { + title: pageTitle('router.detail') + } + } + ] + }, + { + path: 'runManage', + name: '二级评估', + meta: { + title: pageTitle('runManage'), + icon: 'ep:management', + alwaysShow: true + }, + children: [ + { + path: 'addUser', + component: () => import('@/views/pqs/runManage/assessment/components/uese/form.vue'), + name: '新增评估用户', + meta: { + title: pageTitle('router.addUser') + } + } + ] + }, + { + path: 'cockpit', + name: '项目管理', + meta: { + title: pageTitle('runManage'), + icon: 'ep:management', + alwaysShow: true + }, + children: [ + { + path: 'popup', + component: () => import('@/views/pqs/cockpit/setUp/components/popup.vue'), + name: '新增项目', + meta: { + title: pageTitle('router.popup') + } + }, + { + path: 'view', + component: () => import('@/views/pqs/cockpit/setUp/components/view.vue'), + name: '预览项目', + meta: { + title: pageTitle('router.view') + } + } + ] + }, + { + path: '/boX', + name: 'boX', + component: () => import('@/components/echarts/boX.vue'), + meta: { + title: pageTitle('boX') + } + } + /*{ + path: '/bpm', + name: 'bpm', + meta: { + hidden: true + }, + children: [ + { + path: 'programReview', + component: () => import('@/views/pqs/supervise/interfere/components/normalizationManager/programReview.vue'), + name: 'programReview', + meta: { + title: pageTitle('router.programReview') + } + },{ + path: 'projectTreat', + component: () => import('@/views/pqs/supervise/interfere/components/normalizationManager/projectTreat.vue'), + name: 'projectTreat', + meta: { + title: pageTitle('router.projectTreat') + } + }, + + + ] + },*/ + ] +} + +/* + * 静态路由 + * 自动加载 ./static 目录的所有文件,并 push 到以下数组 + */ +const staticRoutes: Array = [ + adminBaseRoute, + { + path: '/', + redirect: to => { + return { + name: 'adminMainLoading' + } + } + }, + { + // 管理员登录页 - 不放在 adminBaseRoute.children 因为登录页不需要使用后台的布局 + path: '/login', + name: 'login', + component: () => import('@/views/user/login.vue'), + meta: { + title: pageTitle('login') + } + }, + { + path: '/:path(.*)*', + redirect: '/404' + }, + { + path: '/404', + name: 'notFound', + component: () => import('@/views/common/error/404.vue'), + meta: { + title: pageTitle('notFound') // 页面不存在 + } + }, + { + path: '/previewFile', + name: 'previewFile', + component: () => import('@/components/PreviewFile/index.vue'), + meta: { + title: pageTitle('previewFile') + } + }, + + { + // 后台找不到页面了-可能是路由未加载上 + path: adminBaseRoutePath + ':path(.*)*', + redirect: to => { + return { + name: 'adminMainLoading', + params: { + to: JSON.stringify({ + path: to.path, + query: to.query + }) + } + } + } + } +] + +export default staticRoutes diff --git a/src/utils/tableStore.ts b/src/utils/tableStore.ts index 39f4fbf5..bd73623a 100644 --- a/src/utils/tableStore.ts +++ b/src/utils/tableStore.ts @@ -1,225 +1,225 @@ -import { reactive } from 'vue' -import createAxios from '@/utils/request' -import { requestPayload } from '@/utils/request' -import { Method } from 'axios' -import { mainHeight } from '@/utils/layout' -import { filtration } from './tableMethod' - -interface TableStoreParams { - url: string // 请求地址 - pk?: string - filename?: any // 导出文件名 - column: TableColumn[] - params?: anyObj - method?: Method // 请求方式 - isWebPaging?: boolean // 是否前端分页 - showPage?: boolean //是否需要分页 - timeAll?: boolean //是否需要时间全部显示 - paramsPOST?: boolean // post请求 params传参 - publicHeight?: number //计算高度 - resetCallback?: () => void // 重置 - loadCallback?: () => void // 接口调用后的回调 - exportProcessingData?:() => void //导出处理数据 - beforeSearchFun?: () => void // 接口调用前的回调 -} - -export default class TableStore { - public url - public pk - public filename: any = null - public method: Method - public initData: any = null - public isWebPaging = false - public paramsPOST = true - public showPage = true - public timeAll = true - public table: CnTable = reactive({ - ref: null, - selection: [], - data: [], - allData: [], - allFlag: false, - webPagingData: [], - total: 0, - params: { - pageNum: 1, - pageSize: 20 - }, - filename:null, - loading: true, - column: [], - loadCallback: null, - exportProcessingData: null, - resetCallback: null, - beforeSearchFun: null, - height: '', - publicHeight: 0 - }) - - constructor(public options: TableStoreParams) { - this.url = options.url - this.pk = options.pk || 'id' - this.paramsPOST = options.paramsPOST || false - this.isWebPaging = options.isWebPaging || false - this.method = options.method || 'GET' - this.table.filename = options.filename || null - this.table.column = options.column - this.showPage = options.showPage !== false - - this.table.publicHeight = options.publicHeight || 0 - this.table.resetCallback = options.resetCallback || null - this.table.loadCallback = options.loadCallback || null - this.table.exportProcessingData = options.exportProcessingData || null - this.table.beforeSearchFun = options.beforeSearchFun || null - Object.assign(this.table.params, options.params) - this.table.height = mainHeight(20 + (this.showPage ? 58 : 0) + this.table.publicHeight).height as string - } - - index() { - this.table.beforeSearchFun && this.table.beforeSearchFun() - this.table.data = [] - this.table.loading = true - // 重置用的数据数据 - if (!this.initData) { - this.initData = JSON.parse(JSON.stringify(this.table.params)) - } - if (!this.timeAll) { - delete this.table.params.startTime; - delete this.table.params.endTime; - delete this.table.params.searchBeginTime; - delete this.table.params.searchEndTime; - delete this.table.params.timeFlag; - - - } - createAxios( - Object.assign( - { - url: this.url, - method: this.method - }, - requestPayload(this.method, this.table.params, this.paramsPOST) - ) - ) - .then((res: any) => { - if (res.data) { - this.table.data = res.data.records || res.data - this.table.total = res.data?.total || res.data.length || 0 - } else { - this.table.data = [] - this.table.total = 0 - } - if (Array.isArray(res)) { - this.table.data = res - } - if (this.isWebPaging) { - this.table.webPagingData = window.XEUtils.chunk(this.table.data, this.table.params.pageSize) - this.table.data = this.table.webPagingData[this.table.params.pageNum - 1] - } - this.table.loadCallback && this.table.loadCallback() - this.table.loading = false - }) - .catch(() => { - this.table.loading = false - }) - } - - /** - * 表格内的事件统一响应 - * @param event 事件:selection-change=选中项改变,page-size-change=每页数量改变,current-page-change=翻页 - * @param data 携带数据 - */ - onTableAction = (event: string, data: anyObj) => { - const actionFun = new Map([ - [ - 'search', - () => { - this.table.params.pageNum = 1 - this.index() - } - ], - [ - 'reset', - () => { - delete this.initData.pageSize - // console.log(this.table.params) - // console.log(this.initData) - Object.assign(this.table.params, this.initData) - this.table.resetCallback && this.table.resetCallback() - this.index() - } - ], - [ - 'selection-change', - () => { - this.table.selection = data as TableRow[] - } - ], - [ - 'page-size-change', - () => { - this.table.params.pageSize = data.size - this.table.params.pageNum = 1 - - if (this.isWebPaging) { - this.table.webPagingData = window.XEUtils.chunk( - window.XEUtils.flatten(this.table.webPagingData), - this.table.params.pageSize - ) - this.table.data = this.table.webPagingData[this.table.params.pageNum - 1] - } else { - this.index() - } - } - ], - [ - 'current-page-change', - () => { - this.table.params.pageNum = data.page - if (this.isWebPaging) { - this.table.data = [] - requestAnimationFrame(() => { - this.table.data = this.table.webPagingData[data.page - 1] - }) - } else { - this.index() - } - } - ], - [ - 'field-change', - () => { - console.warn('field-change') - } - ], - [ - 'default', - () => { - console.warn('No action defined') - } - ], - [ - 'export', - () => { - // this.index() - let params = { ...this.table.params, pageNum: 1, pageSize: this.table.total } - createAxios( - Object.assign( - { - url: this.url, - method: this.method - }, - requestPayload(this.method, params, this.paramsPOST) - ) - ).then(res => { - this.table.allData = filtration(res.data.records || res.data) - this.table.exportProcessingData && this.table.exportProcessingData() - this.table.allFlag = data.showAllFlag || true - }) - } - ] - ]) - const action = actionFun.get(event) || actionFun.get('default') - action!.call(this) - } -} +import { reactive } from 'vue' +import createAxios from '@/utils/request' +import { requestPayload } from '@/utils/request' +import { Method } from 'axios' +import { mainHeight } from '@/utils/layout' +import { filtration } from './tableMethod' + +interface TableStoreParams { + url: string // 请求地址 + pk?: string + filename?: any // 导出文件名 + column: TableColumn[] + params?: anyObj + method?: Method // 请求方式 + isWebPaging?: boolean // 是否前端分页 + showPage?: boolean //是否需要分页 + timeAll?: boolean //是否需要时间全部显示 + paramsPOST?: boolean // post请求 params传参 + publicHeight?: number //计算高度 + resetCallback?: () => void // 重置 + loadCallback?: () => void // 接口调用后的回调 + exportProcessingData?:() => void //导出处理数据 + beforeSearchFun?: () => void // 接口调用前的回调 +} + +export default class TableStore { + public url + public pk + public filename: any = null + public method: Method + public initData: any = null + public isWebPaging = false + public paramsPOST = true + public showPage = true + public timeAll = true + public table: CnTable = reactive({ + ref: null, + selection: [], + data: [], + allData: [], + allFlag: false, + webPagingData: [], + total: 0, + params: { + pageNum: 1, + pageSize: 20 + }, + filename:null, + loading: true, + column: [], + loadCallback: null, + exportProcessingData: null, + resetCallback: null, + beforeSearchFun: null, + height: '', + publicHeight: 0 + }) + + constructor(public options: TableStoreParams) { + this.url = options.url + this.pk = options.pk || 'id' + this.paramsPOST = options.paramsPOST || false + this.isWebPaging = options.isWebPaging || false + this.method = options.method || 'GET' + this.table.filename = options.filename || null + this.table.column = options.column + this.showPage = options.showPage !== false + + this.table.publicHeight = options.publicHeight || 0 + this.table.resetCallback = options.resetCallback || null + this.table.loadCallback = options.loadCallback || null + this.table.exportProcessingData = options.exportProcessingData || null + this.table.beforeSearchFun = options.beforeSearchFun || null + Object.assign(this.table.params, options.params) + this.table.height = mainHeight(20 + (this.showPage ? 58 : 0) + this.table.publicHeight).height as string + } + + index() { + this.table.beforeSearchFun && this.table.beforeSearchFun() + this.table.data = [] + this.table.loading = true + // 重置用的数据数据 + if (!this.initData) { + this.initData = JSON.parse(JSON.stringify(this.table.params)) + } + if (!this.timeAll) { + delete this.table.params.startTime; + delete this.table.params.endTime; + delete this.table.params.searchBeginTime; + delete this.table.params.searchEndTime; + delete this.table.params.timeFlag; + + + } + createAxios( + Object.assign( + { + url: this.url, + method: this.method + }, + requestPayload(this.method, this.table.params, this.paramsPOST) + ) + ) + .then((res: any) => { + if (res.data) { + this.table.data = res.data.records || res.data + this.table.total = res.data?.total || res.data.length || 0 + } else { + this.table.data = [] + this.table.total = 0 + } + if (Array.isArray(res)) { + this.table.data = res + } + if (this.isWebPaging) { + this.table.webPagingData = window.XEUtils.chunk(this.table.data, this.table.params.pageSize) + this.table.data = this.table.webPagingData[this.table.params.pageNum - 1] + } + this.table.loadCallback && this.table.loadCallback() + this.table.loading = false + }) + .catch(() => { + this.table.loading = false + }) + } + + /** + * 表格内的事件统一响应 + * @param event 事件:selection-change=选中项改变,page-size-change=每页数量改变,current-page-change=翻页 + * @param data 携带数据 + */ + onTableAction = (event: string, data: anyObj) => { + const actionFun = new Map([ + [ + 'search', + () => { + this.table.params.pageNum = 1 + this.index() + } + ], + [ + 'reset', + () => { + delete this.initData.pageSize + // console.log(this.table.params) + // console.log(this.initData) + Object.assign(this.table.params, this.initData) + this.table.resetCallback && this.table.resetCallback() + this.index() + } + ], + [ + 'selection-change', + () => { + this.table.selection = data as TableRow[] + } + ], + [ + 'page-size-change', + () => { + this.table.params.pageSize = data.size + this.table.params.pageNum = 1 + + if (this.isWebPaging) { + this.table.webPagingData = window.XEUtils.chunk( + window.XEUtils.flatten(this.table.webPagingData), + this.table.params.pageSize + ) + this.table.data = this.table.webPagingData[this.table.params.pageNum - 1] + } else { + this.index() + } + } + ], + [ + 'current-page-change', + () => { + this.table.params.pageNum = data.page + if (this.isWebPaging) { + this.table.data = [] + requestAnimationFrame(() => { + this.table.data = this.table.webPagingData[data.page - 1] + }) + } else { + this.index() + } + } + ], + [ + 'field-change', + () => { + console.warn('field-change') + } + ], + [ + 'default', + () => { + console.warn('No action defined') + } + ], + [ + 'export', + () => { + // this.index() + let params = { ...this.table.params, pageNum: 1, pageSize: this.table.total } + createAxios( + Object.assign( + { + url: this.url, + method: this.method + }, + requestPayload(this.method, params, this.paramsPOST) + ) + ).then(res => { + this.table.allData = filtration(res.data.records || res.data) + this.table.exportProcessingData && this.table.exportProcessingData() + this.table.allFlag = data.showAllFlag || true + }) + } + ] + ]) + const action = actionFun.get(event) || actionFun.get('default') + action!.call(this) + } +} diff --git a/src/views/pqs/business/log/frontLog/detail.vue b/src/views/pqs/business/log/frontLog/detail.vue new file mode 100644 index 00000000..70678ddc --- /dev/null +++ b/src/views/pqs/business/log/frontLog/detail.vue @@ -0,0 +1,82 @@ + + + diff --git a/src/views/pqs/business/log/frontLog/index.vue b/src/views/pqs/business/log/frontLog/index.vue index 9c997dbb..36c22cf4 100644 --- a/src/views/pqs/business/log/frontLog/index.vue +++ b/src/views/pqs/business/log/frontLog/index.vue @@ -1,88 +1,111 @@ - - - + + + diff --git a/src/views/pqs/business/terminal/FrontManagement/index.vue b/src/views/pqs/business/terminal/FrontManagement/index.vue index fcbddbc6..1e844fd1 100644 --- a/src/views/pqs/business/terminal/FrontManagement/index.vue +++ b/src/views/pqs/business/terminal/FrontManagement/index.vue @@ -78,6 +78,30 @@ @click="edit(data)" link > + + + + + + @@ -94,7 +118,13 @@ > - + @@ -173,7 +203,14 @@ - + + + diff --git a/src/views/pqs/harmonicMonitoring/detailed/division/components/aListOfLoadData.vue b/src/views/pqs/harmonicMonitoring/detailed/division/components/aListOfLoadData.vue index 29b7f28e..defd715b 100644 --- a/src/views/pqs/harmonicMonitoring/detailed/division/components/aListOfLoadData.vue +++ b/src/views/pqs/harmonicMonitoring/detailed/division/components/aListOfLoadData.vue @@ -1,164 +1,169 @@ - - - - + + + + diff --git a/src/views/pqs/harmonicMonitoring/detailed/division/components/completenessDetails.vue b/src/views/pqs/harmonicMonitoring/detailed/division/components/completenessDetails.vue index 3f9beef0..f53b8aed 100644 --- a/src/views/pqs/harmonicMonitoring/detailed/division/components/completenessDetails.vue +++ b/src/views/pqs/harmonicMonitoring/detailed/division/components/completenessDetails.vue @@ -1,65 +1,65 @@ - - - + + + diff --git a/src/views/pqs/harmonicMonitoring/detailed/division/components/compute.vue b/src/views/pqs/harmonicMonitoring/detailed/division/components/compute.vue index 4b7fb4d5..a4f9bbf2 100644 --- a/src/views/pqs/harmonicMonitoring/detailed/division/components/compute.vue +++ b/src/views/pqs/harmonicMonitoring/detailed/division/components/compute.vue @@ -1,198 +1,232 @@ - - - - + + + + diff --git a/src/views/pqs/harmonicMonitoring/detailed/division/index.vue b/src/views/pqs/harmonicMonitoring/detailed/division/index.vue index 0707631d..0c01768a 100644 --- a/src/views/pqs/harmonicMonitoring/detailed/division/index.vue +++ b/src/views/pqs/harmonicMonitoring/detailed/division/index.vue @@ -1,115 +1,115 @@ - - - + + + diff --git a/src/views/pqs/panorama/components/map.vue b/src/views/pqs/panorama/components/map.vue index 20c4ad8d..18ea6d89 100644 --- a/src/views/pqs/panorama/components/map.vue +++ b/src/views/pqs/panorama/components/map.vue @@ -3,8 +3,12 @@
- + @@ -26,9 +30,12 @@ {{ item.count }}
-
+ v-for="k in item.psrList" + @click="flyTo(k)" + >

{{ k.psrName }}

{{ k.vlevelName }}|{{ k.maintOrgName }}

@@ -36,112 +43,167 @@ -
+
展开搜索结果
-
关闭
+
关闭
- + -
- - +
+
- - -./cds.js./boundary \ No newline at end of file diff --git a/src/views/pqs/voltageSags/monitoringPoint/online/navigation/map.vue b/src/views/pqs/voltageSags/monitoringPoint/online/navigation/map.vue index 06e0167c..1f1e0738 100644 --- a/src/views/pqs/voltageSags/monitoringPoint/online/navigation/map.vue +++ b/src/views/pqs/voltageSags/monitoringPoint/online/navigation/map.vue @@ -1,329 +1,329 @@ - - - - + + + + diff --git a/src/views/pqs/voltageSags/overview/index.vue b/src/views/pqs/voltageSags/overview/index.vue index 515d4999..59d8d6ab 100644 --- a/src/views/pqs/voltageSags/overview/index.vue +++ b/src/views/pqs/voltageSags/overview/index.vue @@ -1,382 +1,382 @@ - - - - + + + + diff --git a/src/views/system/auth/userList/popupPwd.vue b/src/views/system/auth/userList/popupPwd.vue index 09caba0b..e3c21943 100644 --- a/src/views/system/auth/userList/popupPwd.vue +++ b/src/views/system/auth/userList/popupPwd.vue @@ -1,97 +1,97 @@ - - + + diff --git a/src/views/system/reportForms/index.vue b/src/views/system/reportForms/index.vue index 3c090207..31865bbc 100644 --- a/src/views/system/reportForms/index.vue +++ b/src/views/system/reportForms/index.vue @@ -1,133 +1,139 @@ - - + +