diff --git a/src/api/system-boot/csstatisticalset.ts b/src/api/system-boot/csstatisticalset.ts
index f72e219..7ddae60 100644
--- a/src/api/system-boot/csstatisticalset.ts
+++ b/src/api/system-boot/csstatisticalset.ts
@@ -77,3 +77,11 @@ export const queryByPagePath = (params: any) => {
params
})
}
+// 根据用户id查询用户驾驶舱
+export const getDashboardPageByUserId = (params: any) => {
+ return createAxios({
+ url: '/system-boot/dashboard/getDashboardPageByUserId',
+ method: 'post',
+ params
+ })
+}
diff --git a/src/components/cockpit/governanceReport/index.vue b/src/components/cockpit/governanceReport/index.vue
index ce917b8..3265470 100644
--- a/src/components/cockpit/governanceReport/index.vue
+++ b/src/components/cockpit/governanceReport/index.vue
@@ -1,7 +1,7 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/utils/router.ts b/src/utils/router.ts
index d098402..49fbbf7 100644
--- a/src/utils/router.ts
+++ b/src/utils/router.ts
@@ -1,5 +1,5 @@
import router from '@/router/index'
-import { isNavigationFailure, NavigationFailureType } from 'vue-router'
+import { isNavigationFailure, NavigationFailureType ,useRouter} from 'vue-router'
import type { RouteRecordRaw, RouteLocationRaw } from 'vue-router'
import { ElNotification } from 'element-plus'
import { useConfig } from '@/stores/config'
@@ -8,8 +8,9 @@ import { closeShade } from '@/utils/pageShade'
import { adminBaseRoute } from '@/router/static'
import { compact, isEmpty, reverse } from 'lodash-es'
import { isAdminApp } from '@/utils/common'
-import { log } from 'console'
-
+import { getRouteMenu, dictDataCache } from '@/api/auth'
+import { adminBaseRoutePath } from '@/router/static'
+const route = useRouter()
/**
* 导航失败有错误消息的路由push
* @param to — 导航位置,同 router.push
@@ -17,7 +18,7 @@ import { log } from 'console'
export const routePush = async (to: RouteLocationRaw) => {
try {
const failure = await router.push(to)
-
+
if (isNavigationFailure(failure, NavigationFailureType.aborted)) {
ElNotification({
message: 'utils.Navigation failed, navigation guard intercepted!',
@@ -279,6 +280,41 @@ export const addRouteItem = (
}
}
+// 刷新菜单
+export const getMenu = () => {
+ getRouteMenu().then((res: any) => {
+ const handlerMenu = (data: any) => {
+ data.forEach((item: any) => {
+ item.routePath =
+ item.routePath[0] == '/' ? item.routePath.substring(1, item.routePath.length) : item.routePath
+ item.path = item.routePath
+ item.name = item.routePath
+ item.keepalive = item.routePath
+ item.component = item.routeName
+ ? item.routeName.indexOf('/src/views/') > -1
+ ? item.routeName
+ : `/src/views/${item.routeName}/index.vue`
+ : ''
+ item.type = item.children && item.children.length > 0 ? 'menu_dir' : 'menu'
+ item.menu_type = item.children && item.children.length > 0 ? null : 'tab'
+ if (item.children) {
+ handlerMenu(item.children)
+ }
+ })
+ }
+ handlerMenu(res.data)
+ handleAdminRoute(res.data)
+ if (route.params.to) {
+ const lastRoute = JSON.parse(route.params.to as string)
+ if (lastRoute.path != adminBaseRoutePath) {
+ let query = !isEmpty(lastRoute.query) ? lastRoute.query : {}
+ routePush({ path: lastRoute.path, query: query })
+ return
+ }
+ }
+ })
+}
+
/**
* 根据name字符串,获取父级name组合的数组
* @param name
diff --git a/src/views/govern/device/control/index.vue b/src/views/govern/device/control/index.vue
index c7720ee..fc5e48f 100644
--- a/src/views/govern/device/control/index.vue
+++ b/src/views/govern/device/control/index.vue
@@ -10,6 +10,15 @@
+
+
+
{{ devData.ptRatio || '/' }}
@@ -44,9 +56,28 @@
{{ devData.ctRatio || '/' }}
-
+
-
+
+
-
+
{
const deviceType = ref('0')
const pointTypeChange = (val: any, obj: any) => {
deviceType.value = val
- console.log('pointTypeChange', val)
nodeClick(obj)
}
const realTimeRef: any = ref()
@@ -1390,7 +1420,9 @@ const echoName = (value: any, arr: any[]) => {
return value ? arr.find(item => item.value == value)?.label : '/'
}
-onMounted(() => {})
+onMounted(() => {
+
+})
onBeforeUnmount(() => {
clearInterval(realDataTimer.value)
clearInterval(trendTimer.value)
diff --git a/src/views/govern/device/control/tabs/event.vue b/src/views/govern/device/control/tabs/event.vue
index ab9f656..487f2d5 100644
--- a/src/views/govern/device/control/tabs/event.vue
+++ b/src/views/govern/device/control/tabs/event.vue
@@ -13,7 +13,7 @@ import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import waveFormAnalysis from './components/waveFormAnalysis.vue'
-import { ArrowLeft } from '@element-plus/icons-vue'
+import { ArrowLeft, Message } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import { analyseWave,getFileByEventId } from '@/api/common'
import { getFileZip } from '@/api/cs-harmonic-boot/datatrend'
@@ -173,6 +173,7 @@ const tableStore: any = new TableStore({
},
click: row => {
getFileByEventId(row.id).then(res => {
+ ElMessage.success(res.message)
tableStore.index()
})
}
diff --git a/src/views/govern/monitorRecall/eventRecall.vue b/src/views/govern/monitorRecall/eventRecall.vue
index 9e8bf19..4ac7599 100644
--- a/src/views/govern/monitorRecall/eventRecall.vue
+++ b/src/views/govern/monitorRecall/eventRecall.vue
@@ -41,7 +41,7 @@ const tableStore: any = new TableStore({
{
field: 'engineeringName',
title: '项目名称',
- minWidth: 170,
+
formatter: row => {
return row.cellValue ? row.cellValue : '/'
}
@@ -49,7 +49,7 @@ const tableStore: any = new TableStore({
{
field: 'projectName',
title: '工程名称',
- minWidth: 170,
+
formatter: row => {
return row.cellValue ? row.cellValue : '/'
}
@@ -57,7 +57,7 @@ const tableStore: any = new TableStore({
{
field: 'deviceName',
title: '设备名称',
- minWidth: 170,
+
formatter: row => {
return row.cellValue ? row.cellValue : '/'
}
@@ -65,7 +65,7 @@ const tableStore: any = new TableStore({
{
field: 'lineName',
title: '监测点名称',
- minWidth: 170,
+
formatter: row => {
return row.cellValue ? row.cellValue : '/'
}
@@ -73,15 +73,15 @@ const tableStore: any = new TableStore({
{
field: 'logTime',
title: '补召时间',
- minWidth: 170,
+
formatter: row => {
return row.cellValue ? row.cellValue : '/'
}
},
{
field: 'log',
- title: '日志',
- minWidth: 170,
+ title: '类型',
+
formatter: row => {
return row.cellValue ? row.cellValue : '/'
}
@@ -89,7 +89,15 @@ const tableStore: any = new TableStore({
{
field: 'status',
title: '状态',
- minWidth: 170,
+
+ formatter: row => {
+ return row.cellValue ? row.cellValue : '/'
+ }
+ },
+ {
+ field: 'result',
+ title: '结果',
+
formatter: row => {
return row.cellValue ? row.cellValue : '/'
}
diff --git a/src/views/govern/monitorRecall/index.vue b/src/views/govern/monitorRecall/index.vue
index 24b00c6..aebea12 100644
--- a/src/views/govern/monitorRecall/index.vue
+++ b/src/views/govern/monitorRecall/index.vue
@@ -6,7 +6,7 @@
style="position: relative"
>
-
+
@@ -42,7 +42,7 @@ const checkedNodes = ref([]) // 存储左侧树勾选的节点
const currentNode = ref(null) // 存储当前点击的树节点
defineOptions({
- name: 'govern/monitorRecall/index'
+ name: '/cs-device-boot/monitorRecall'
})
// 处理子组件传递的勾选节点变化
@@ -78,6 +78,7 @@ const triggerEventRecallQuery = () => {
if (activeTab.value === 'deviceInfo2' && eventRef.value) {
// 将当前点击的节点传递给暂态补召组件
if (eventRef.value.handleTreeNodeClick) {
+
eventRef.value.handleTreeNodeClick(currentNode.value)
}
}
@@ -85,7 +86,7 @@ const triggerEventRecallQuery = () => {
}
-
diff --git a/src/views/pqs/cockpit/homePage/index.vue b/src/views/pqs/cockpit/homePage/index.vue
index 4f601b0..0ea237c 100644
--- a/src/views/pqs/cockpit/homePage/index.vue
+++ b/src/views/pqs/cockpit/homePage/index.vue
@@ -1,12 +1,17 @@
-
+
+
+ 编辑
+ 设置
+
+
-
- {{ item.name }}
+
+ {{ (item as LayoutItem).name }}
+
+