Commit bb0152fe authored by 李志鸣's avatar 李志鸣

fea(制件车间): 报表导出功能开发

parent 2db19791
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
show-overflow-tooltip show-overflow-tooltip
v-bind="judgeTableColumnAttribute(item)"> v-bind="judgeTableColumnAttribute(item)">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="item.dataType === 'DATETIME'"> <span v-if="item.dateType === 'DATETIME'">
{{ scope.row[item.value] === null || scope.row[item.value] === '' || scope.row[item.value] === undefined ? '暂无' : format(scope.row[item.value], 'yyyy-MM-dd hh:mm:ss') }} {{ scope.row[item.value] === null || scope.row[item.value] === '' || scope.row[item.value] === undefined ? '暂无' : format(scope.row[item.value], 'yyyy-MM-dd hh:mm:ss') }}
</span> </span>
<span v-if="item.dataType === 'NUMBER'"> <span v-else-if="item.dateType === 'NUMBER'">
{{ scope.row[item.value] === null || scope.row[item.value] === '' || scope.row[item.value] === undefined ? '暂无' : (scope.row[item.value]).toFix(2) }} {{ scope.row[item.value] === null || scope.row[item.value] === '' || scope.row[item.value] === undefined ? '暂无' : (scope.row[item.value]).toFix(2) }}
</span> </span>
<span v-else> <span v-else>
......
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
} }
}, },
"equipment-controller": { "equipment-controller": {
"data-get": { "data-post": {
"url": "/api/equipment/realTime/data", "url": "/api/equipment/realTime/data",
"method": "get" "method": "post"
} }
}, },
"show-field-controller": { "show-field-controller": {
......
...@@ -9,7 +9,7 @@ export default { ...@@ -9,7 +9,7 @@ export default {
UserView: '人员信息视图', UserView: '人员信息视图',
Workbench: '工作台', Workbench: '工作台',
// 车间(设备数据) // 车间(设备数据)
Workshop: '设备数据', Workshop: '设备采集数据',
Parts: '制件车间', Parts: '制件车间',
Welding: '焊装车间', Welding: '焊装车间',
Painting: '涂装车间', Painting: '涂装车间',
......
...@@ -70,27 +70,33 @@ ...@@ -70,27 +70,33 @@
sortTreeData: [ sortTreeData: [
{ {
id: 1, id: 1,
label: '旋转辊床' label: '旋转辊床',
code: 'ROTARY_ROLLER_BED'
}, },
{ {
id: 2, id: 2,
label: '过程扫码设备' label: '过程扫码设备',
code: 'PROCESS_SCAN_CODE'
}, },
{ {
id: 3, id: 3,
label: '智能扭力钣手' label: '智能扭力钣手',
code: 'INTELLIGENT_TORQUE_WRENCH'
}, },
{ {
id: 4, id: 4,
label: '润滑油集中加注' label: '润滑油集中加注',
code: 'LUBRICATING_OIL_CONCENTRATE'
}, },
{ {
id: 5, id: 5,
label: '四轮定位' label: '四轮定位',
code: 'WHEEL_ALIGNMENT'
}, },
{ {
id: 6, id: 6,
label: '铆接设备' label: '铆接设备',
code: 'RIVETING_EQUIPMENT'
} }
], ],
// 设备分类树高度 // 设备分类树高度
...@@ -144,7 +150,7 @@ ...@@ -144,7 +150,7 @@
// 左侧类别树 // 左侧类别树
.tree-pack { .tree-pack {
position: absolute; position: absolute;
width: 300px; width: 250px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
...@@ -158,10 +164,11 @@ ...@@ -158,10 +164,11 @@
// 显示区域 // 显示区域
.view-pack { .view-pack {
margin-left: 310px; margin-left: 260px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
overflow-y: auto;
.title-pack { .title-pack {
height: 38px; height: 38px;
......
...@@ -70,35 +70,43 @@ ...@@ -70,35 +70,43 @@
sortTreeData: [ sortTreeData: [
{ {
id: 1, id: 1,
label: '板链' label: '板链',
code: 'PLATE_CHAIN'
}, },
{ {
id: 2, id: 2,
label: '过程扫码设备' label: '过程扫码设备',
code: 'PROCESS_SCAN_CODE'
}, },
{ {
id: 3, id: 3,
label: '智能扭力钣手' label: '智能扭力钣手',
code: 'INTELLIGENT_TORQUE_WRENCH'
}, },
{ {
id: 4, id: 4,
label: '集中加注冷媒' label: '集中加注冷媒',
code: 'FOCUS_ADDING_REFRIGERANT'
}, },
{ {
id: 5, id: 5,
label: '集中加注离合器' label: '集中加注离合器',
code: 'CENTRALIZED_FILLING_CLUTCH'
}, },
{ {
id: 6, id: 6,
label: '集中加注助力油' label: '集中加注助力油',
code: 'FOCUS_BOOSTER_OIL'
}, },
{ {
id: 7, id: 7,
label: '地板革热熔胶涂布设备' label: '地板革热熔胶涂布设备',
code: 'FLOOR_LEATHER_HOT'
}, },
{ {
id: 8, id: 8,
label: '新能源在线检测点' label: '新能源在线检测点',
code: 'NEW_ENERGY'
} }
], ],
// 设备分类树高度 // 设备分类树高度
...@@ -152,7 +160,7 @@ ...@@ -152,7 +160,7 @@
// 左侧类别树 // 左侧类别树
.tree-pack { .tree-pack {
position: absolute; position: absolute;
width: 300px; width: 250px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
...@@ -166,10 +174,11 @@ ...@@ -166,10 +174,11 @@
// 显示区域 // 显示区域
.view-pack { .view-pack {
margin-left: 310px; margin-left: 260px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
overflow-y: auto;
.title-pack { .title-pack {
height: 38px; height: 38px;
......
...@@ -70,31 +70,38 @@ ...@@ -70,31 +70,38 @@
sortTreeData: [ sortTreeData: [
{ {
id: 1, id: 1,
label: '整车前处理电泳' label: '整车前处理电泳',
code: 'VEHICLE_PRETREATMENT_ELECTROPHORESIS'
}, },
{ {
id: 2, id: 2,
label: '整车电泳输出' label: '整车电泳输出',
code: 'VEHICLE_ELECTROPHORESIS_OUTPUT'
}, },
{ {
id: 3, id: 3,
label: '电泳整流' label: '电泳整流',
code: 'ELECTROPHORESIS_RECTIFICATION'
}, },
{ {
id: 4, id: 4,
label: '喷漆室' label: '喷漆室',
code: 'SPRAY_BOOTH'
}, },
{ {
id: 5, id: 5,
label: '烘干室' label: '烘干室',
code: 'DRYING_ROOM'
}, },
{ {
id: 6, id: 6,
label: '打磨室' label: '打磨室',
code: 'POLISHING_ROOM'
}, },
{ {
id: 7, id: 7,
label: '喷涂机器人' label: '喷涂机器人',
code: 'PAINTING_ROBOT'
} }
], ],
// 设备分类树高度 // 设备分类树高度
...@@ -148,7 +155,7 @@ ...@@ -148,7 +155,7 @@
// 左侧类别树 // 左侧类别树
.tree-pack { .tree-pack {
position: absolute; position: absolute;
width: 300px; width: 250px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
...@@ -162,10 +169,11 @@ ...@@ -162,10 +169,11 @@
// 显示区域 // 显示区域
.view-pack { .view-pack {
margin-left: 310px; margin-left: 260px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
overflow-y: auto;
.title-pack { .title-pack {
height: 38px; height: 38px;
......
This diff is collapsed.
...@@ -70,19 +70,23 @@ ...@@ -70,19 +70,23 @@
sortTreeData: [ sortTreeData: [
{ {
id: 1, id: 1,
label: '检测线' label: '检测线',
code: 'CHECK_LINE'
}, },
{ {
id: 2, id: 2,
label: '充电桩' label: '充电桩',
code: 'CHARGING_PILE'
}, },
{ {
id: 3, id: 3,
label: '动静态测试' label: '动静态测试',
code: 'DYNAMIC_STATIC_TEST'
}, },
{ {
id: 4, id: 4,
label: '加氢站' label: '加氢站',
code: 'HYDROGEN_STATIONVoc'
} }
], ],
// 设备分类树高度 // 设备分类树高度
...@@ -136,7 +140,7 @@ ...@@ -136,7 +140,7 @@
// 左侧类别树 // 左侧类别树
.tree-pack { .tree-pack {
position: absolute; position: absolute;
width: 300px; width: 250px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
...@@ -150,10 +154,11 @@ ...@@ -150,10 +154,11 @@
// 显示区域 // 显示区域
.view-pack { .view-pack {
margin-left: 310px; margin-left: 260px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
overflow-y: auto;
.title-pack { .title-pack {
height: 38px; height: 38px;
......
...@@ -70,19 +70,23 @@ ...@@ -70,19 +70,23 @@
sortTreeData: [ sortTreeData: [
{ {
id: 1, id: 1,
label: '车顶自动点焊' label: '车顶自动点焊',
code: 'AUTOMATIC_SPOT_WELDING'
}, },
{ {
id: 2, id: 2,
label: 'PLC数控合装胎' label: 'PLC数控合装胎',
code: 'PLC_CONTROL_TIRE'
}, },
{ {
id: 3, id: 3,
label: '板链' label: '板链',
code: 'PLATE_CHAIN'
}, },
{ {
id: 4, id: 4,
label: '旋转辊床' label: '旋转辊床',
code: 'ROTARY_ROLLER_BED'
} }
], ],
// 设备分类树高度 // 设备分类树高度
...@@ -136,7 +140,7 @@ ...@@ -136,7 +140,7 @@
// 左侧类别树 // 左侧类别树
.tree-pack { .tree-pack {
position: absolute; position: absolute;
width: 300px; width: 250px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
...@@ -150,10 +154,11 @@ ...@@ -150,10 +154,11 @@
// 显示区域 // 显示区域
.view-pack { .view-pack {
margin-left: 310px; margin-left: 260px;
height: 100%; height: 100%;
border: 1px solid #d2d3d5; border: 1px solid #d2d3d5;
background-color: #fff; background-color: #fff;
overflow-y: auto;
.title-pack { .title-pack {
height: 38px; height: 38px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment