| | |
| | | <!-- |
| | | * @Date: 2024-01-05 22:26:22 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-29 23:51:52 |
| | | * @LastEditTime: 2024-03-08 09:07:05 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/mapPreviewDetail/index.vue |
| | | --> |
| | | <template> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="center-bottom"> |
| | | <img src="./img/jq.png" alt=""> |
| | | <img :src="deviceInfo.pic || png" alt=""> |
| | | </div> |
| | | </div> |
| | | <div class="right"> |
| | |
| | | <span class="img-status standby" v-if="deviceInfo.status === 'IDLE'">待机</span> |
| | | <span class="img-status alerm" v-if="deviceInfo.status === 'ALARM'">报警</span> |
| | | </p> |
| | | <!-- <p>待机原因: {{}}</p> --> |
| | | <p>待机原因: {{status.yy}}</p> |
| | | </div> |
| | | <div class="right_2"> |
| | | <p>加工数据</p> |
| | |
| | | </template> |
| | | <script> |
| | | import Nav from '@/components/nav' |
| | | import png from './img/jq.png' |
| | | import { getRequest, getFormRequest } from '@/api/Api' |
| | | export default { |
| | | components: { |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | png, |
| | | cycleTime: '', |
| | | name: '', |
| | | deviceInfo: { |
| | |
| | | this.$router.go(-1) |
| | | }, |
| | | init() { |
| | | |
| | | getFormRequest('getbyid', { |
| | | machineId: this.$route.query.id |
| | | }).then(res => { |
| | | var axisNames |
| | | if (res.status.var4 != null) { |
| | | if (res.data.status.var4 != null) { |
| | | axisNames = res.status.var4.split(':') |
| | | } |
| | | var positions |
| | | if (res.status.var5 != null) { |
| | | if (res.data.status.var5 != null) { |
| | | positions = res.status.var5.split(':') |
| | | } |
| | | var servoLoads |
| | | if (res.status.var6 != null) { |
| | | if (res.data.status.var6 != null) { |
| | | servoLoads = res.status.var6.split(':') |
| | | } |
| | | for (let i = 0; i < 3; i++) { |
| | |
| | | } |
| | | this.status = res.data.status |
| | | this.tableData = res.data.list |
| | | this.cycleTime = this.formatSeconds(res.msg.cycleTime)// 运行时间 |
| | | this.cycleTime = this.formatSeconds(res.data.msg.cycleTime)// 运行时间 |
| | | console.log(res) |
| | | }) |
| | | try { |
| | |
| | | left: 50%; |
| | | top: 50%; |
| | | transform: translate(-50%, -50%); |
| | | font-size: 46px; |
| | | font-size: 26px; |
| | | font-weight: bold; |
| | | color: #C3E1E1; |
| | | } |
| | |
| | | |
| | | .center { |
| | | flex: 1 1 auto; |
| | | |
| | | display: flex; |
| | | flex-direction: column; |
| | | .center-top { |
| | | display: flex; |
| | | justify-content: space-around; |
| | |
| | | } |
| | | |
| | | .center-bottom { |
| | | flex: 1 1 auto; |
| | | margin-bottom: 50px; |
| | | margin-top: 50px; |
| | | display: flex; |
| | | justify-content: center; |
| | | |
| | | img { |
| | | width: 629px; |
| | | height: 648px; |
| | | max-width: 100%; |
| | | max-height: 100%; |
| | | } |
| | | } |
| | | } |
| | |
| | | background: url('./img/right_1.png'); |
| | | padding: 0 14px; |
| | | overflow: hidden; |
| | | |
| | | background-size: contain; |
| | | &>p { |
| | | font-size: 21px; |
| | | font-family: PingFangSC, PingFang SC; |
| | |
| | | width: 100%; |
| | | height: 208px; |
| | | background: url('./img/right_2.png'); |
| | | |
| | | background-size: contain; |
| | | p { |
| | | font-size: 16px; |
| | | color: #F7F8FA; |
| | |
| | | width: 100%; |
| | | height: 208px; |
| | | background: url('./img/right_2.png'); |
| | | background-size: contain; |
| | | } |
| | | |
| | | .right_3 { |