diff --git a/.env.dev b/.env.dev index ec8ac65b..67bd8cab 100644 --- a/.env.dev +++ b/.env.dev @@ -25,7 +25,7 @@ VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082' # VUE_APP_BASE_API = 'http://192.168.1.47:48082' # socket地址 -VUE_APP_Socket_API = 'ws://192.168.0.33:48082' +VUE_APP_Socket_API = 'ws://10.70.2.2:8080' VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' # 积木报表指向地址 diff --git a/src/router/index.js b/src/router/index.js index 40189532..1ec211f5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -75,42 +75,19 @@ export const constantRoutes = [ hidden: true, meta: { requireToken: true } }, - // { - // path: '/', - // component: Layout, - // // redirect: 'core/base/factory', - // // children: [{ - // // path: 'index', - // // redirect: 'core/base/factory', - // // component: (resolve) => require(['@/views/index'], resolve), - // // name: '首页', - // // meta: { title: '首页', icon: 'dashboard', affix: true } - // // } - // // ] - // }, { path: '/AGVBoard', name: 'AGVBoard', - // component: Layout, - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. component: () => import(/* webpackChunkName: "about" */ '@/views/OperationalOverview/AGVBoard.vue') }, - { + { path: '/coldBoard', name: 'coldBoard', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. component: () => import(/* webpackChunkName: "about" */ '@/views/OperationalOverview/coldBoard.vue') }, - { + { path: '/processingBoard', name: 'processingBoard', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. component: () => import(/* webpackChunkName: "about" */ '@/views/OperationalOverview/processingBoard.vue') }, { @@ -141,138 +118,6 @@ export const constantRoutes = [ meta: { title: '字典数据', icon: '', activeMenu: '/system/dict' } } ] - }, - { - path: '/job', - component: Layout, - hidden: true, - children: [{ - path: 'log', - component: (resolve) => require(['@/views/infra/job/log'], resolve), - name: 'InfraJobLog', - meta: { title: '调度日志', activeMenu: '/infra/job' } - } - ] - }, { - path: '/codegen', - component: Layout, - hidden: true, - children: [{ - path: 'edit/:tableId(\\d+)', - component: (resolve) => require(['@/views/infra/codegen/editTable'], resolve), - name: 'InfraCodegenEditTable', - meta: { title: '修改生成配置', activeMenu: '/infra/codegen' } - } - ] - }, - { - path: '/bpm', - component: Layout, - hidden: true, - redirect: 'noredirect', - children: [{ - path: 'oa/leave/create', - component: (resolve) => require(['@/views/bpm/oa/leave/create'], resolve), - name: 'BpmOALeaveCreate', - meta: { title: '发起 OA 请假', icon: 'form', activeMenu: '/bpm/oa/leave' } - }, { - path: 'oa/leave/detail', - component: (resolve) => require(['@/views/bpm/oa/leave/detail'], resolve), - name: 'BpmOALeaveDetail', - meta: { title: '查看 OA 请假', icon: 'view', activeMenu: '/bpm/oa/leave' } - } - ] - }, - { - path: '/bpm', - component: Layout, - hidden: true, - children: [{ - path: 'manager/form/edit', - component: (resolve) => require(['@/views/bpm/form/formEditor'], resolve), - name: 'BpmFormEditor', - meta: { title: '流程表单-编辑', activeMenu: '/bpm/manager/form' } - }, { - path: 'manager/definition', - component: (resolve) => require(['@/views/bpm/definition/index'], resolve), - name: 'BpmProcessDefinition', - meta: { title: '流程定义', activeMenu: '/bpm/manager/model' } - }, { - path: 'manager/model/design', - component: (resolve) => require(['@/views/bpm/model/modelEditor'], resolve), - name: 'BpmModelEditor', - meta: { title: '设计流程', activeMenu: '/bpm/manager/model' } - }, { - path: 'process-instance/create', - component: (resolve) => require(['@/views/bpm/processInstance/create'], resolve), - name: 'BpmProcessInstanceCreate', - meta: { title: '发起流程', activeMenu: '/bpm/task/my' } - }, { - path: 'process-instance/detail', - component: (resolve) => require(['@/views/bpm/processInstance/detail'], resolve), - name: 'BpmProcessInstanceDetail', - meta: { title: '流程详情', activeMenu: '/bpm/task/my' } - } - ] - }, - { - path: '/property', - component: Layout, - hidden: true, - children: [{ - path: 'value/:propertyId(\\d+)', - component: (resolve) => require(['@/views/mall/product/property/value'], resolve), - name: 'ProductPropertyValue', - meta: { title: '商品属性值', icon: '', activeMenu: '/product/property' } - } - ] - }, - { - path: '/spu', - component: Layout, - hidden: true, - children: [{ - path: 'edit/:spuId(\\d+)', - component: (resolve) => require(['@/views/mall/product/spu/save'], resolve), - name: 'ProductSpuUpdate', - meta: { title: '修改商品', activeMenu: '/product/spu' } - }, - { - path: 'add', - component: (resolve) => require(['@/views/mall/product/spu/save'], resolve), - name: 'ProductSpuCreate', - meta: { title: '添加商品', activeMenu: '/product/spu' } - } - ] - }, - { - path: '/trade/order', - component: Layout, - hidden: true, - children: [ - { - path: 'detail', - name: 'TradeOrderDetail', - hidden: true, - meta: { title: '订单详情' }, - component: (resolve) => require(['@/views/mall/trade/order/detail'], resolve) - } - ] - }, - { - path: '/pay', - component: Layout, - hidden: true, - children: [{ - path: 'order/submit', - name: 'PayOrderSubmit', - hidden: true, - meta: { - title: '收银台', - noCache: true - }, - component: (resolve) => require(['@/views/pay/order/submit'], resolve) - }] } ] diff --git a/src/views/bpm/definition/index.vue b/src/views/bpm/definition/index.vue deleted file mode 100644 index dc992545..00000000 --- a/src/views/bpm/definition/index.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - - - diff --git a/src/views/bpm/form/formEditor.vue b/src/views/bpm/form/formEditor.vue deleted file mode 100644 index c387ca3d..00000000 --- a/src/views/bpm/form/formEditor.vue +++ /dev/null @@ -1,567 +0,0 @@ - - - - - diff --git a/src/views/bpm/form/index.vue b/src/views/bpm/form/index.vue deleted file mode 100644 index f9bcb726..00000000 --- a/src/views/bpm/form/index.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - diff --git a/src/views/bpm/group/index.vue b/src/views/bpm/group/index.vue deleted file mode 100644 index 6c23a947..00000000 --- a/src/views/bpm/group/index.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue deleted file mode 100644 index e80b9642..00000000 --- a/src/views/bpm/model/index.vue +++ /dev/null @@ -1,548 +0,0 @@ - - - - - diff --git a/src/views/bpm/model/modelEditor.vue b/src/views/bpm/model/modelEditor.vue deleted file mode 100644 index 78e78d31..00000000 --- a/src/views/bpm/model/modelEditor.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - - diff --git a/src/views/bpm/oa/leave/create.vue b/src/views/bpm/oa/leave/create.vue deleted file mode 100644 index 3ac54173..00000000 --- a/src/views/bpm/oa/leave/create.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - diff --git a/src/views/bpm/oa/leave/detail.vue b/src/views/bpm/oa/leave/detail.vue deleted file mode 100644 index 00890a5c..00000000 --- a/src/views/bpm/oa/leave/detail.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue deleted file mode 100644 index 49d5d21f..00000000 --- a/src/views/bpm/oa/leave/index.vue +++ /dev/null @@ -1,173 +0,0 @@ - - - diff --git a/src/views/bpm/processInstance/create.vue b/src/views/bpm/processInstance/create.vue deleted file mode 100644 index bf565f63..00000000 --- a/src/views/bpm/processInstance/create.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - - diff --git a/src/views/bpm/processInstance/detail.vue b/src/views/bpm/processInstance/detail.vue deleted file mode 100644 index b8a843a1..00000000 --- a/src/views/bpm/processInstance/detail.vue +++ /dev/null @@ -1,400 +0,0 @@ - - - - - diff --git a/src/views/bpm/processInstance/index.vue b/src/views/bpm/processInstance/index.vue deleted file mode 100644 index 4e681ac2..00000000 --- a/src/views/bpm/processInstance/index.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - diff --git a/src/views/bpm/task/done/index.vue b/src/views/bpm/task/done/index.vue deleted file mode 100644 index 9d522bec..00000000 --- a/src/views/bpm/task/done/index.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/src/views/bpm/task/todo/index.vue b/src/views/bpm/task/todo/index.vue deleted file mode 100644 index a14dc564..00000000 --- a/src/views/bpm/task/todo/index.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - diff --git a/src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue b/src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue deleted file mode 100644 index c0d922be..00000000 --- a/src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue +++ /dev/null @@ -1,337 +0,0 @@ - - - diff --git a/src/views/energy/base/energyPlc/index.vue b/src/views/energy/base/energyPlc/index.vue index 84629de4..858fdc8a 100644 --- a/src/views/energy/base/energyPlc/index.vue +++ b/src/views/energy/base/energyPlc/index.vue @@ -2,42 +2,18 @@
- + - - + + - + - +
@@ -50,7 +26,8 @@ import EnergyPlcAdd from './components/energyPlcAdd.vue' const tableProps = [ { prop: 'plcTableName', - label: '关联表名' + label: '关联表名', + showOverflowtooltip: true }, { prop: 'code', @@ -60,7 +37,9 @@ const tableProps = [ }, { prop: 'name', - label: '标识名' + label: '标识名', + minWidth: 150, + showOverflowtooltip: true }, { prop: 'enName', @@ -109,21 +88,21 @@ export default { tableBtn: [ this.$auth.hasPermi('base:energy-plc:update') ? { - type: 'edit', - btnName: '编辑' - } + type: 'edit', + btnName: '编辑' + } : undefined, this.$auth.hasPermi('base:energy-plc:delete') ? { - type: 'delete', - btnName: '删除' - } + type: 'delete', + btnName: '删除' + } : undefined ].filter((v) => v), tableH: this.tableHeight(260), collectionList: [ - {value: 0,label: '否'}, - {value: 1,label: '是'} + { value: 0, label: '否' }, + { value: 1, label: '是' } ], // 总条数 total: 0, @@ -167,7 +146,7 @@ export default { getList() { getEnergyPlcPage(this.queryParams).then(response => { let arr = response.data.list || []; - arr&&arr.map(item => { + arr && arr.map(item => { this.collectionList.map(i => { if (item.collection === i.value) { item.collection = i.label @@ -188,7 +167,7 @@ export default { this.centervisible = true break default: - this.handleDelete(val.data) + this.handleDelete(val.data) } }, handleCancel() { @@ -205,13 +184,13 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - this.$modal.confirm('是否确认删除关联表名为"' + row.name + '"的数据项?').then(function() { - return deleteEnergyPlc(row.id); - }).then(() => { - this.queryParams.pageNo = 1; - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => {}); + this.$modal.confirm('是否确认删除关联表名为"' + row.name + '"的数据项?').then(function () { + return deleteEnergyPlc(row.id); + }).then(() => { + this.queryParams.pageNo = 1; + this.getList(); + this.$modal.msgSuccess("删除成功"); + }).catch(() => { }); } } }; diff --git a/src/views/energy/base/energyPlcConnect/index.vue b/src/views/energy/base/energyPlcConnect/index.vue index c5b679ef..a7303062 100644 --- a/src/views/energy/base/energyPlcConnect/index.vue +++ b/src/views/energy/base/energyPlcConnect/index.vue @@ -2,47 +2,23 @@
- + - - + + - + - + - +
@@ -63,17 +39,20 @@ const tableProps = [ label: '对象编码' }, { - prop: 'plcTableName', + prop: 'plcTableName', label: '关联表名' }, { prop: 'plcTableCode', label: '关联表编码', + minWidth: 150, showOverflowtooltip: true }, { prop: 'cnName', - label: '标识名' + label: '标识名', + minWidth: 150, + showOverflowtooltip: true }, { prop: 'varNum', @@ -113,9 +92,9 @@ export default { tableBtn: [ this.$auth.hasPermi('base:energy-plc-connect:bind') ? { - type: 'connect', - btnName: '绑定' - } + type: 'connect', + btnName: '绑定' + } : undefined, { type: 'detail', @@ -123,15 +102,15 @@ export default { }, this.$auth.hasPermi('base:energy-plc-connect:update') ? { - type: 'edit', - btnName: '编辑' - } + type: 'edit', + btnName: '编辑' + } : undefined, this.$auth.hasPermi('base:energy-plc-connect:delete') ? { - type: 'delete', - btnName: '删除' - } + type: 'delete', + btnName: '删除' + } : undefined ].filter((v) => v), tableH: this.tableHeight(260), @@ -230,13 +209,13 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - this.$modal.confirm('是否确认删除对象为"' + row.objName + '"的数据项?').then(function() { - return deleteEnergyPlcConnect(row.id); - }).then(() => { - this.queryParams.pageNo = 1; - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => {}); + this.$modal.confirm('是否确认删除对象为"' + row.objName + '"的数据项?').then(function () { + return deleteEnergyPlcConnect(row.id); + }).then(() => { + this.queryParams.pageNo = 1; + this.getList(); + this.$modal.msgSuccess("删除成功"); + }).catch(() => { }); }, closeDrawer() { this.getList() diff --git a/src/views/group/base/groupClasses/index.vue b/src/views/group/base/groupClasses/index.vue index 049d5b95..74ac415b 100644 --- a/src/views/group/base/groupClasses/index.vue +++ b/src/views/group/base/groupClasses/index.vue @@ -2,43 +2,18 @@
- + - - + + - + - +
@@ -85,7 +60,7 @@ const tableProps = [ } ] export default { - name: "GroupClass", + name: "GroupClasses", components: { GroupClassAdd }, data() { return { @@ -115,33 +90,33 @@ export default { ], tableProps, tableBtn: [ - this.$auth.hasPermi('base:group-classes:cancel') + this.$auth.hasPermi('base:group-classes:cancel') ? { - type: 'cancel', - btnName: '作废', - showParam: { - type: '&', - data: [ - { - type: 'unequal', - name: 'status', - value: '不可用' - } - ] - } + type: 'cancel', + btnName: '作废', + showParam: { + type: '&', + data: [ + { + type: 'unequal', + name: 'status', + value: '不可用' + } + ] } + } : undefined, this.$auth.hasPermi('base:group-classes:update') ? { - type: 'edit', - btnName: '编辑' - } + type: 'edit', + btnName: '编辑' + } : undefined, this.$auth.hasPermi('base:group-classes:delete') ? { - type: 'delete', - btnName: '删除' - } + type: 'delete', + btnName: '删除' + } : undefined ].filter((v) => v), tableH: this.tableHeight(260), @@ -213,7 +188,7 @@ export default { this.discard(val.data) break default: - this.handleDelete(val.data) + this.handleDelete(val.data) } }, handleCancel() { @@ -235,33 +210,33 @@ export default { obj.endTime = row.endTime obj.enableTime = row.enableTime obj.disableTime = Date.parse(new Date()) - this.$modal.confirm('是否确认作废班次名称为"' + row.name + '"的数据项?').then(function() { - return updateGroupClasses({ ...obj }) - }).then(() => { - this.getList(); - this.$modal.msgSuccess("操作成功"); - }).catch(() => {}); + this.$modal.confirm('是否确认作废班次名称为"' + row.name + '"的数据项?').then(function () { + return updateGroupClasses({ ...obj }) + }).then(() => { + this.getList(); + this.$modal.msgSuccess("操作成功"); + }).catch(() => { }); }, /** 删除按钮操作 */ handleDelete(row) { console.log(row) let _this = this if (row.status === '可用') {// 可用 - _this.$modal.confirm('删除的班次"' + row.name + '"可能会影响交接班计划,请点取消再次确认!').then(function() { - return _this.$modal.confirm('是否确认删除班次名称为"' + row.name + '"的数据项?').then(function() { - return deleteGroupClasses(row.id); - }).then(() => { - _this.getList(); - _this.$modal.msgSuccess("删除成功"); - }).catch(() => {}); - }) - } else { - _this.$modal.confirm('是否确认删除班次名称为"' + row.name + '"的数据项?').then(function() { + _this.$modal.confirm('删除的班次"' + row.name + '"可能会影响交接班计划,请点取消再次确认!').then(function () { + return _this.$modal.confirm('是否确认删除班次名称为"' + row.name + '"的数据项?').then(function () { return deleteGroupClasses(row.id); }).then(() => { _this.getList(); _this.$modal.msgSuccess("删除成功"); - }).catch(() => {}); + }).catch(() => { }); + }) + } else { + _this.$modal.confirm('是否确认删除班次名称为"' + row.name + '"的数据项?').then(function () { + return deleteGroupClasses(row.id); + }).then(() => { + _this.getList(); + _this.$modal.msgSuccess("删除成功"); + }).catch(() => { }); } } } diff --git a/src/views/infra/apiAccessLog/index.vue b/src/views/infra/apiAccessLog/index.vue deleted file mode 100644 index 345adf63..00000000 --- a/src/views/infra/apiAccessLog/index.vue +++ /dev/null @@ -1,210 +0,0 @@ - - - diff --git a/src/views/infra/apiErrorLog/index.vue b/src/views/infra/apiErrorLog/index.vue deleted file mode 100644 index f076bc72..00000000 --- a/src/views/infra/apiErrorLog/index.vue +++ /dev/null @@ -1,228 +0,0 @@ - - - diff --git a/src/views/infra/build/App.vue b/src/views/infra/build/App.vue deleted file mode 100644 index b25f0b56..00000000 --- a/src/views/infra/build/App.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/src/views/infra/build/CodeTypeDialog.vue b/src/views/infra/build/CodeTypeDialog.vue deleted file mode 100644 index 6f0c0d19..00000000 --- a/src/views/infra/build/CodeTypeDialog.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - - diff --git a/src/views/infra/build/DraggableItem.vue b/src/views/infra/build/DraggableItem.vue deleted file mode 100644 index 4cccea6b..00000000 --- a/src/views/infra/build/DraggableItem.vue +++ /dev/null @@ -1,120 +0,0 @@ - diff --git a/src/views/infra/build/FormDrawer.vue b/src/views/infra/build/FormDrawer.vue deleted file mode 100644 index 8c3c3059..00000000 --- a/src/views/infra/build/FormDrawer.vue +++ /dev/null @@ -1,331 +0,0 @@ -