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

fea(监控大屏): 修改设备运行时间统计图表

parent 4bb8089d
...@@ -157,6 +157,10 @@ ...@@ -157,6 +157,10 @@
} }
}, },
"equipment-controller": { "equipment-controller": {
"data-get": {
"url": "/api/equipment/data",
"method": "get"
},
"export-post": { "export-post": {
"url": "/api/equipment/data/export", "url": "/api/equipment/data/export",
"method": "post" "method": "post"
...@@ -169,6 +173,10 @@ ...@@ -169,6 +173,10 @@
"url": "/api/equipment/file/upload", "url": "/api/equipment/file/upload",
"method": "post" "method": "post"
}, },
"findByShopCode-get": {
"url": "/api/equipment/findByShopCode",
"method": "get"
},
"transfer-post": { "transfer-post": {
"url": "/api/equipment/program/transfer", "url": "/api/equipment/program/transfer",
"method": "post" "method": "post"
...@@ -259,6 +267,10 @@ ...@@ -259,6 +267,10 @@
"url": "/api/v1/group", "url": "/api/v1/group",
"method": "put" "method": "put"
}, },
"page-post": {
"url": "/api/v1/group/page",
"method": "post"
},
"role-post": { "role-post": {
"url": "/api/v1/group/role", "url": "/api/v1/group/role",
"method": "post" "method": "post"
...@@ -275,6 +287,10 @@ ...@@ -275,6 +287,10 @@
"url": "/api/v1/group/tree/user", "url": "/api/v1/group/tree/user",
"method": "get" "method": "get"
}, },
"groupId-get": {
"url": "/api/v1/group/{groupId}",
"method": "get"
},
"groupId-delete": { "groupId-delete": {
"url": "/api/v1/group/{groupId}", "url": "/api/v1/group/{groupId}",
"method": "delete" "method": "delete"
...@@ -401,6 +417,14 @@ ...@@ -401,6 +417,14 @@
"url": "/api/v1/user/group/users", "url": "/api/v1/user/group/users",
"method": "get" "method": "get"
}, },
"id-get": {
"url": "/api/v1/user/id/{id}",
"method": "get"
},
"userId-delete": {
"url": "/api/v1/user/id/{userId}",
"method": "delete"
},
"no-get": { "no-get": {
"url": "/api/v1/user/no/{no}", "url": "/api/v1/user/no/{no}",
"method": "get" "method": "get"
...@@ -409,6 +433,10 @@ ...@@ -409,6 +433,10 @@
"url": "/api/v1/user/page", "url": "/api/v1/user/page",
"method": "get" "method": "get"
}, },
"page-post": {
"url": "/api/v1/user/page",
"method": "post"
},
"list-get": { "list-get": {
"url": "/api/v1/user/resource/list", "url": "/api/v1/user/resource/list",
"method": "get" "method": "get"
...@@ -609,6 +637,14 @@ ...@@ -609,6 +637,14 @@
"url": "/api/v2/workStation/delete/{id}", "url": "/api/v2/workStation/delete/{id}",
"method": "delete" "method": "delete"
}, },
"eqpRelation-post": {
"url": "/api/v2/workStation/eqpRelation",
"method": "post"
},
"eqpRelation-put": {
"url": "/api/v2/workStation/eqpRelation",
"method": "put"
},
"workPositionId-post": { "workPositionId-post": {
"url": "/api/v2/workStation/equipmentRelation/{workPositionId}", "url": "/api/v2/workStation/equipmentRelation/{workPositionId}",
"method": "post" "method": "post"
...@@ -633,6 +669,10 @@ ...@@ -633,6 +669,10 @@
"url": "/api/v2/workStation/pageEqpRelation", "url": "/api/v2/workStation/pageEqpRelation",
"method": "get" "method": "get"
}, },
"pageEquip-post": {
"url": "/api/v2/workStation/pageEquip",
"method": "post"
},
"username-get": { "username-get": {
"url": "/api/v2/workStation/pdaUser/{username}", "url": "/api/v2/workStation/pdaUser/{username}",
"method": "get" "method": "get"
...@@ -702,6 +742,10 @@ ...@@ -702,6 +742,10 @@
"busNo-get": { "busNo-get": {
"url": "/area/detail/busNo", "url": "/area/detail/busNo",
"method": "get" "method": "get"
},
"test-get": {
"url": "/area/test",
"method": "get"
} }
}, },
"report-controller": { "report-controller": {
...@@ -725,6 +769,10 @@ ...@@ -725,6 +769,10 @@
"url": "/area/oeuTrend", "url": "/area/oeuTrend",
"method": "get" "method": "get"
}, },
"runTimeList-get": {
"url": "/area/runTimeList",
"method": "get"
},
"stateTrend-get": { "stateTrend-get": {
"url": "/area/stateTrend", "url": "/area/stateTrend",
"method": "get" "method": "get"
......
...@@ -226,19 +226,19 @@ ...@@ -226,19 +226,19 @@
}, },
// 获取设备分类数据 // 获取设备分类数据
getSeviceSortSelectData () { getSeviceSortSelectData () {
let queryParams = { dicCode: 'DEVICE_SORT', hash: 'dicCode' }; let queryParams = { dicCode: 'DEVICE_SORT', hash: 'dicCode' }
this.$fetch('dict-item-controller/dicCode-get', queryParams).then(response => { this.$fetch('dict-item-controller/dicCode-get', queryParams).then(response => {
this.equipTypeData = _.cloneDeep(response); this.equipTypeData = _.cloneDeep(response)
}); });
} }
}, },
mounted () { mounted () {
setTimeout(() => { setTimeout(() => {
this.tableConfig.height = document.querySelector('.page-pack').offsetHeight - 210; this.tableConfig.height = document.querySelector('.page-pack').offsetHeight - 210
// 获取设备分类数据 // 获取设备分类数据
this.getSeviceSortSelectData(); this.getSeviceSortSelectData()
// 获取表格数据 // 获取表格数据
this.getTableList(); this.getTableList()
}, 0) }, 0)
} }
} }
......
...@@ -95,7 +95,6 @@ ...@@ -95,7 +95,6 @@
lineStyle: { lineStyle: {
color: '#234eb6' color: '#234eb6'
} }
}, },
axisLine: { axisLine: {
lineStyle: { lineStyle: {
...@@ -199,4 +198,4 @@ ...@@ -199,4 +198,4 @@
width: 607px; width: 607px;
} }
} }
</style> </style>
\ No newline at end of file
...@@ -21,8 +21,12 @@ ...@@ -21,8 +21,12 @@
<span>描述</span> <span>描述</span>
</div> </div>
</div> </div>
<div class="table-body"> <VueSeamlessScroll
<div v-if="warningList.length > 0"
:data="warningList"
:class-option="optionSingleHeight"
class="table-body">
<div
class="tr" class="tr"
v-for="(item, index) in warningList" v-for="(item, index) in warningList"
:key="index"> :key="index">
...@@ -30,15 +34,19 @@ ...@@ -30,15 +34,19 @@
<div class="th-machine">{{item.equipName}}</div> <div class="th-machine">{{item.equipName}}</div>
<div class="th-pencil">{{item.info}}</div> <div class="th-pencil">{{item.info}}</div>
</div> </div>
</div> </VueSeamlessScroll>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import Moment from 'moment' import Moment from 'moment'
import VueSeamlessScroll from 'vue-seamless-scroll'
export default { export default {
components: {
VueSeamlessScroll
},
props: { props: {
pollingRequestTime: {} pollingRequestTime: {}
}, },
...@@ -50,6 +58,13 @@ ...@@ -50,6 +58,13 @@
this.judgeTime() this.judgeTime()
} }
}, },
computed: {
optionSingleHeight () {
return {
singleHeight: 50
}
}
},
data () { data () {
return { return {
// 报警信息列表 // 报警信息列表
...@@ -64,7 +79,7 @@ ...@@ -64,7 +79,7 @@
// 请求设备异常列表 // 请求设备异常列表
getMachineWarningList () { getMachineWarningList () {
this.$fetch('report-controller/warningList-get', {}).then(response => { this.$fetch('report-controller/warningList-get', {}).then(response => {
this.warningList = _.cloneDeep(response.slice(0, 17)) this.warningList = _.cloneDeep(response)
}) })
}, },
// 时间处理 // 时间处理
...@@ -103,16 +118,16 @@ ...@@ -103,16 +118,16 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.machine-warning { .machine-warning {
width: 534px; width: 534px;
height: 881px; height: 414px;
position: absolute; position: absolute;
top: 166px; top: 166px;
right: 57px; right: 57px;
overflow: hidden; overflow: hidden;
/*background-color: rgba(1,1,1,0.5);*/
.time-warning-pack { .time-warning-pack {
width: 534px; width: 534px;
height: 60px; height: 60px;
// background-color: rgba(1,1,1,0.5);
margin-top: 27px; margin-top: 27px;
line-height: 60px; line-height: 60px;
.time { .time {
...@@ -139,9 +154,10 @@ ...@@ -139,9 +154,10 @@
.warning-message-pack { .warning-message-pack {
margin-top: 10px; margin-top: 10px;
width: 474px; width: 474px;
height: 767px; height: 317px;
padding: 0 30px; padding: 0 30px;
// background-color: rgba(1,1,1,0.5); // background-color: rgba(1,1,1,0.5);
overflow: hidden;
.table-header { .table-header {
height: 40px; height: 40px;
color: #00b4ff; color: #00b4ff;
...@@ -168,11 +184,14 @@ ...@@ -168,11 +184,14 @@
} }
} }
.table-body { .table-body {
height: 257px;
overflow: hidden;
.tr { .tr {
overflow: hidden;
div { div {
float: left; float: left;
height: 40px; height: 50px;
line-height: 40px; line-height: 50px;
font-weight: bold; font-weight: bold;
font-size: 18px; font-size: 18px;
color: #3facd9; color: #3facd9;
...@@ -196,4 +215,4 @@ ...@@ -196,4 +215,4 @@
} }
} }
} }
</style> </style>
\ No newline at end of file
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<MachineOperatingStatus <MachineOperatingStatus
:pollingRequestTime="pollingRequestTime"> :pollingRequestTime="pollingRequestTime">
</MachineOperatingStatus> </MachineOperatingStatus>
<!-- 设备状态趋势图 --> <!-- 设备累计运行时间统计 -->
<MachineStateTrend <MachineStateTrend
:pollingRequestTime="pollingRequestTime"> :pollingRequestTime="pollingRequestTime">
</MachineStateTrend> </MachineStateTrend>
......
...@@ -130,8 +130,8 @@ ...@@ -130,8 +130,8 @@
//获取工位实时信息 //获取工位实时信息
getData () { getData () {
this.$fetch('led-controller/ledInfo-get', {ledNo: '6'}).then(res => { this.$fetch('led-controller/ledInfo-get', {ledNo: '6'}).then(res => {
this.timmingData = _.cloneDeep(res); this.timmingData = _.cloneDeep(res)
this.roomInfoList = _.cloneDeep(res.roomInfoList); this.roomInfoList = _.cloneDeep(res.roomInfoList)
this.warningList = _.cloneDeep(res.warningList) this.warningList = _.cloneDeep(res.warningList)
for (let item of this.roomInfoList) { for (let item of this.roomInfoList) {
console.log('item', item) console.log('item', item)
......
...@@ -241,6 +241,6 @@ ...@@ -241,6 +241,6 @@
} }
</script> </script>
<style> <style lang="scss" scoped>
</style> </style>
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