| | |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <el-card shadow="always"> |
| | | <span class="centerText" style="margin-top: 26px">{{productCode}}</span> |
| | | <span class="centerText" style="margin-top: 26px">{{locationCode}}</span> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="15"> |
| | | <el-card shadow="always"> |
| | | <span class="centerText">装副轴,拨叉</span> |
| | | <span class="centerText">{{locationName}}</span> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | |
| | | <script> |
| | | import {listFormulaChild} from "@/api/main/bs/formulaChild/formulaChild"; |
| | | import {listStationConf,getIp} from "@/api/main/sc/stationConf"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | locationCode: "未配置", |
| | | locationName: "未配置工位", |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | |
| | | this.tableData = [] |
| | | }, |
| | | mounted() { |
| | | this.changeProducts(this.productCode) |
| | | this.getStationConf() |
| | | // this.changeProducts(this.productCode) |
| | | this.changeProducts("2V91") |
| | | this.getNowTime() |
| | | // this.autoShow() |
| | | }, |
| | |
| | | // currentTime: |
| | | // }, |
| | | methods: { |
| | | /** 查询工位终端配置列表 */ |
| | | getStationConf() { |
| | | getIp().then(response => { |
| | | let queryParams = { |
| | | ipAddress: response.msg, |
| | | } |
| | | listStationConf(queryParams).then(response => { |
| | | this.locationName = response.rows[0].processesName |
| | | this.locationCode = response.rows[0].processesCode |
| | | }); |
| | | }); |
| | | }, |
| | | //获取当前时间 |
| | | getNowTime () { |
| | | let speed = 1000 |