diff --git a/.env.dev b/.env.dev index 08a07f57..3a17f602 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-02-18 10:36:55 + # @LastEditTime: 2024-02-21 18:47:20 # @LastEditors: DY # @Description: ### @@ -15,24 +15,22 @@ VUE_APP_TITLE = MES系统 # VUE_APP_BASE_API = 'http://100.64.0.26:48082' # VUE_APP_BASE_API = 'http://10.70.2.2:8080' # VUE_APP_BASE_API = 'http://192.168.0.33:48082' -# VUE_APP_BASE_API = 'http://192.168.1.20:48080' -# VUE_APP_BASE_API = 'http://192.168.1.20:48080' +# VUE_APP_BASE_API = 'http://192.168.4.173:48080' # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48082' # VUE_APP_BASE_API = 'http://192.168.1.8:48082' # VUE_APP_BASE_API = 'http://192.168.4.159:48080' # VUE_APP_BASE_API = 'http://192.168.1.104:48082' +# VUE_APP_BASE_API = 'http://192.168.0.30:8888' VUE_APP_BASE_API = 'http://192.168.0.33:48082' +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.62:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082' -# dcs地址 -VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' # socket地址 -# VUE_APP_Socket_API = 'ws://10.70.2.2:8080' -VUE_APP_Socket_API = 'ws://192.168.0.30:8888' +VUE_APP_Socket_API = 'ws://10.70.2.2:8080' +VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' -# VUE_APP_Socket_API = 'ws://192.168.0.33:48082' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://10.70.2.22:8080' diff --git a/.env.prod b/.env.prod index 12538daa..0148da16 100644 --- a/.env.prod +++ b/.env.prod @@ -16,6 +16,9 @@ VUE_APP_BASE_API = '/prod-api' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://10.70.2.2:8080' +# socket地址 +VUE_APP_Socket_API = 'ws://10.70.2.2:8080' +VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' # 根据服务器或域名修改 diff --git a/.env.stage b/.env.stage index 6c48b2dc..1e29f627 100644 --- a/.env.stage +++ b/.env.stage @@ -14,6 +14,8 @@ VUE_APP_Socket_API = 'ws://10.70.2.2:8080' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://192.168.0.33:48082' +# socket地址 +VUE_APP_Socket_API = 'ws://192.168.0.33:48082' # 根据服务器或域名修改 diff --git a/public/index.html b/public/index.html index 860ebd9d..24473042 100644 --- a/public/index.html +++ b/public/index.html @@ -8,6 +8,10 @@ + + + + <%= webpackConfig.name %> diff --git a/src/api/base/groupTeam.js b/src/api/base/groupTeam.js index 32d752aa..040368e6 100644 --- a/src/api/base/groupTeam.js +++ b/src/api/base/groupTeam.js @@ -59,6 +59,15 @@ export function listEnabled() { }) } +// 获得可用的排班列表(根据车间筛选) +export function listEnabledByRoom(query) { + return request({ + url: '/base/group-team/listEnabledByRoom', + method: 'get', + params: query + }) +} + // 获得班组组员信息分页 export function groupTeamPage(query) { return request({ diff --git a/src/api/base/qualityInspectionBoxPermissions.js b/src/api/base/qualityInspectionBoxPermissions.js index 9ef45aea..40aa8d1b 100644 --- a/src/api/base/qualityInspectionBoxPermissions.js +++ b/src/api/base/qualityInspectionBoxPermissions.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-12-04 14:10:37 - * @LastEditTime: 2024-01-29 16:48:40 + * @LastEditTime: 2024-01-31 09:56:09 * @LastEditors: zhp * @Description: */ @@ -19,7 +19,7 @@ export function createQualityInspectionBoxBtn(data) { // 更新安灯按钮16键对应 export function updateQualityInspectionBoxBtn(data) { return request({ - url: '/base/quality-inspection-box-btn/updateBatch', + url: '/base/quality-inspection-box-btn-auth/update', method: 'put', data: data }) @@ -28,7 +28,7 @@ export function updateQualityInspectionBoxBtn(data) { // 删除安灯按钮16键对应 export function deleteQualityInspectionBoxBtn(id) { return request({ - url: '/base/quality-inspection-box-btn/delete?id=' + id, + url: 'base/quality-inspection-box-btn-auth/delete?userId=' + id, method: 'delete' }) } @@ -36,7 +36,7 @@ export function deleteQualityInspectionBoxBtn(id) { // 获得安灯按钮16键对应 export function getQualityInspectionBoxBtn(id) { return request({ - url: '/base/quality-inspection-box-btn/get?id=' + id, + url: 'base/quality-inspection-box-btn-auth/get?userId=' + id, method: 'get' }) } diff --git a/src/assets/icons/svg/info.svg b/src/assets/icons/svg/info.svg new file mode 100644 index 00000000..8fd6937e --- /dev/null +++ b/src/assets/icons/svg/info.svg @@ -0,0 +1,18 @@ + + + 库位信息 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/task.svg b/src/assets/icons/svg/task.svg new file mode 100644 index 00000000..65bff269 --- /dev/null +++ b/src/assets/icons/svg/task.svg @@ -0,0 +1,24 @@ + + + 搬运任务 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/tasks.svg b/src/assets/icons/svg/tasks.svg new file mode 100644 index 00000000..65bff269 --- /dev/null +++ b/src/assets/icons/svg/tasks.svg @@ -0,0 +1,24 @@ + + + 搬运任务 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 913a7f6f..814ac1a9 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -88,23 +88,26 @@ export default { visitedViews(newVal, oldVal){ let num = 0 newVal && newVal.map(item => { + console.log(item) if (item.path === '/databoard/kiln' || item.path === '/databoard/whole-plant' || item.path === '/databoard/deep-processing') { num++ } }) - if (num > 0) { - if(!this.wsIsOpen) { - getDcsMsg() - this.wsIsOpen = true - console.log('开启websocket==========') + this.$nextTick(() => { + if (num > 0) { + if(!this.wsIsOpen) { + getDcsMsg() + this.wsIsOpen = true + console.log('开启websocket==========') + } + }else{ + if (this.wsIsOpen) { + closeDcsMsg() + this.wsIsOpen = false + console.log('关闭============') + } } - }else{ - if (this.wsIsOpen) { - closeDcsMsg() - this.wsIsOpen = false - console.log('关闭============') - } - } + }) } }, mounted() { diff --git a/src/utils/dict.js b/src/utils/dict.js index 9c500f2e..17c0aef2 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -96,6 +96,7 @@ export const DICT_TYPE = { TIME_DIM: 'time_dim', TABLE_NAME: 'table_name', METHOD: 'method', + PUSH: 'push', // ============== ORDER - 订单模块 ============= ORDER_STATUS: 'order_status', @@ -109,7 +110,10 @@ export const DICT_TYPE = { FAULT_LEVEL: 'fault-level', // ============== ENVIRONMENTAL - 环保模块 ============= - ENVIRONMENT_CHECK_UNIT: 'environment_check_unit' + ENVIRONMENT_CHECK_UNIT: 'environment_check_unit', + + // ============== GROUP - 班组模块 ============= + WORK_SHOP: 'workshop' } /** diff --git a/src/views/OperationalOverview/AGVBoard.vue b/src/views/OperationalOverview/AGVBoard.vue index b582459e..8657ce89 100644 --- a/src/views/OperationalOverview/AGVBoard.vue +++ b/src/views/OperationalOverview/AGVBoard.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-07-19 15:18:30 * @LastEditors: zhp - * @LastEditTime: 2024-01-19 16:31:53 + * @LastEditTime: 2024-02-18 08:54:06 * @Description: -->