diff --git a/packages/robot-system/src/config/app/proxy.js b/packages/robot-system/src/config/app/proxy.js index 98dcd07..1d8ceda 100644 --- a/packages/robot-system/src/config/app/proxy.js +++ b/packages/robot-system/src/config/app/proxy.js @@ -25,7 +25,8 @@ module.exports = { // 8010是前端应用做的代理转发,所以带api '/api': { // target: 'http://fawkes.bw.chienli.cn/', // 测试 - target: 'http://117.72.194.64:8010/', //菲律宾 + target: 'http://117.72.194.64:8020/', //机器人项目 + // target: 'http://117.72.194.64:8010/', //菲律宾 // target: 'http://117.72.194.64:18200/', //菲律宾 // target: 'http://60.204.250.115:8808/', //新测试 // target: 'http://60.204.250.115/', // 正式 diff --git a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/MapComponent.vue b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/MapComponent.vue index 8b710ec..ab8be02 100644 --- a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/MapComponent.vue +++ b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/MapComponent.vue @@ -4,20 +4,15 @@ + + diff --git a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/MapComponent copy.vue b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/components/MapComponent copy.vue similarity index 100% rename from packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/MapComponent copy.vue rename to packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/components/MapComponent copy.vue diff --git a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/index.vue b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/index.vue index f0439ea..7f450b4 100644 --- a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/index.vue +++ b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/index.vue @@ -1,14 +1,14 @@ - + - + @@ -92,23 +103,27 @@
今日设备信息
- - - - - - + + -
+
- - - - - + + +
@@ -117,6 +132,7 @@ @@ -212,14 +357,14 @@ export default { } ::v-deep .fks-table { table { + .cell { + padding: 0 !important; + } th { font-size: 12px !important; padding: 4px 0 !important; color: #999 !important; background: #f9f9f9 !important; - .cell { - padding: 0 !important; - } } } } @@ -263,8 +408,7 @@ export default { display: block; width: 100%; height: 100%; - opacity: 0.4; - background: var(--rect-color); + background: var(--rect-fill); position: absolute; top: 0; left: 0; @@ -287,6 +431,7 @@ export default { box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1); border-radius: 4px; background: #fff; + z-index: 1000; .panel + .panel { margin-top: 20px; } @@ -376,18 +521,18 @@ export default { } } } - +.kpi-item-title { + font-family: PingFang SC, PingFang SC; + font-weight: 400; + font-size: 14px; + color: #000000; + margin-bottom: 8px; +} .kpi-box { margin-bottom: 12px; display: flex; flex-direction: column; - .kpi-item-title { - font-family: PingFang SC, PingFang SC; - font-weight: 400; - font-size: 14px; - color: #000000; - margin-bottom: 8px; - } + .kpi-item-group { display: flex; gap: 0 16px; @@ -418,4 +563,16 @@ export default { } } } +.alarm-card { + position: fixed; + bottom: 60px; + right: 420px; + z-index: 110; +} +.area-card { + position: fixed; + top: 330px; + left: 420px; + z-index: 110; +} diff --git a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/route.js b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/route.js index f9bab12..348a379 100644 --- a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/route.js +++ b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/route.js @@ -1,11 +1,12 @@ const route = { - path: '/ScreenViewManage', - name: 'ScreenViewManage', + path: '/RobotSystemManage/ScreenViewManage/TaskScreenView', + name: 'TaskScreenView', component: () => import('./index.vue'), - title: 'SECOND_MENU_ROBOT_TASK_SCREEN_VIEW', // 使用翻译键 + title: '大屏任务', // 使用翻译键 + // title: 'SECOND_MENU_ROBOT_TASK_SCREEN_VIEW', // 使用翻译键 meta: { - title: 'SECOND_MENU_ROBOT_TASK_SCREEN_VIEW' // 也在meta中使用翻译键 + title: '大屏任务' // 也在meta中使用翻译键 } } diff --git a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/utils/index.js b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/utils/index.js new file mode 100644 index 0000000..7aad7fc --- /dev/null +++ b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/TaskScreenView/utils/index.js @@ -0,0 +1,45 @@ +// 设备列表表格列 +export const deviceTableColumns = [ + { label: '设备ID', key: 'name', width: 60 }, + { label: '当前区域', key: 'area', width: 60 }, + { label: '工作人员', key: 'team', width: 60 }, + { label: '今日工作量', key: 'dayWork', width: 60 }, + { label: '今日运行时长(h)', key: 'runtime' } +]; +// 设备弹窗表格列 +export const devicePopupColumns = [ + { label: '设备编号', key: 'name' }, + { label: '设备类型', key: 'type' }, + { label: '设备位置', key: 'position' }, + { label: '操作人员', key: 'team' }, + { label: '今日安装量', key: 'dayWork' }, + { label: '设备状态', key: 'status' }, + { label: '运行时长(h)', key: 'runtime' } +]; +export const areaPopupColumns = [ + { label: '工区编号', key: 'name' }, + { label: '工区状态', key: 'name' }, + { label: '桩条安装数量', key: 'pileCount' }, + { label: '组件安装数量', key: 'moduleCount' } +]; + +export const alarmTableColumns = [ + { label: '预警类别', key: 'code' }, + { label: '设备编码', key: 'device' }, + { label: '报警内容', key: 'desc' }, + { label: '报警时间', key: 'time' } +]; +export const STATUS_STYLE = { + 施工中: { stroke: 'rgba(19, 126, 233, 1)', fill: 'rgba(19, 126, 233, 0.4)' }, + 已施工: { stroke: 'rgba(26, 213, 154, 1)', fill: 'rgba(26, 213, 154, 0.4)' }, + 未施工: { stroke: 'rgba(255, 188, 72, 1)', fill: 'rgba(255, 188, 72, 0.4)' }, + 故障: { stroke: 'rgba(219,77,77,1)', fill: 'rgba(219,77,77,0.4)' }, + 运行中: { stroke: 'rgba(19,194,194,1)', fill: 'rgba(19,194,194,0.4)' }, + 停机: { stroke: 'rgba(243,180,71,1)', fill: 'rgba(243,180,71,0.4)' } +}; +export const isDevice = (item) => { + return ['故障', '运行中', '停机'].includes(item.status); +}; +export const isArea = (item) => { + return ['施工中', '已施工', '未施工'].includes(item.status); +}; diff --git a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/route.js b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/route.js index fa4e2b8..225dbe8 100644 --- a/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/route.js +++ b/packages/robot-system/src/modules/RobotSystemManage/ScreenViewManage/route.js @@ -1,6 +1,6 @@ const route = { - path: '/ScreenViewManage', + path: '/RobotSystemManage/ScreenViewManage', name: 'ScreenViewManage', component: () => import('./index.vue'), title: 'ScreenViewManage', diff --git a/packages/robot-system/src/modules/RobotSystemManage/route.js b/packages/robot-system/src/modules/RobotSystemManage/route.js index 7004222..11fb981 100644 --- a/packages/robot-system/src/modules/RobotSystemManage/route.js +++ b/packages/robot-system/src/modules/RobotSystemManage/route.js @@ -1,6 +1,6 @@ const route = { - path: '/RobotSystemManage', + path: 'RobotSystemManage', name: 'RobotSystemManage', component: () => import('./index.vue'), title: 'RobotSystemManage', diff --git a/packages/robot-system/src/modules/SysConfig/Tenant/index.vue b/packages/robot-system/src/modules/SysConfig/Tenant/index.vue index 76a5e75..332ec9d 100644 --- a/packages/robot-system/src/modules/SysConfig/Tenant/index.vue +++ b/packages/robot-system/src/modules/SysConfig/Tenant/index.vue @@ -3,8 +3,8 @@ * @Version: 1.0 * @Autor: chen_yt * @Date: 2022-07-11 13:43:40 - * @LastEditors: 江荣宝 jiangrongbao@bysoft.com - * @LastEditTime: 2025-05-19 15:15:40 + * @LastEditors: XiaoJun + * @LastEditTime: 2025-08-26 17:44:52 -->