| | |
| | | <el-tab-pane name="first"> |
| | | <span slot="label"> <a class="el-icon-date"></a>首页</span> |
| | | <el-col :span="24"> |
| | | <el-table :cell-style="rowStyle" :data="formulaChildList"> |
| | | <el-table height="500" :cell-style="rowStyle" :data="formulaChildList"> |
| | | <el-table-column label="排序" width="60" align="center" type="index"> |
| | | </el-table-column> |
| | | <el-table-column label="操作内容" :show-overflow-tooltip='true' align="center" prop="operationSteps"> |
| | |
| | | import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; |
| | | import { |
| | | listFormulaChild, |
| | | noPageListFormulaChild, |
| | | releaseCheck, |
| | | updateResults, |
| | | updateTighteningFormula, |
| | |
| | | }, |
| | | content: '', |
| | | activeName: 'first', |
| | | url: "ws://192.168.10.198:8080/websocket/message/", |
| | | url: "ws://192.168.1.100:8080/websocket/message/", |
| | | message: "", |
| | | text_content: "", |
| | | ws: null, |
| | |
| | | input: "", |
| | | keepReading: true, |
| | | form1: { |
| | | baudRate: "9600", |
| | | baudRate: "115200", |
| | | dataBits: "8", |
| | | stopBits: "1", |
| | | parity: "none", |
| | |
| | | collectionTime: new Date() |
| | | } |
| | | updateResults(formulaChildParams).then(response => { |
| | | console.log(response) |
| | | if(response.msg === "3"){ |
| | | this.cakeLamp.release= 1 //允许放行 |
| | | } |
| | | this.getListFormulaChild() |
| | | }); |
| | | }, |
| | |
| | | this.formulaChildParams.productCode = this.workpieceInformation.productCode |
| | | this.formulaChildParams.processesCode = this.headContent.processesCode |
| | | console.log(this.formulaChildParams) |
| | | listFormulaChild(this.formulaChildParams).then(response => { |
| | | noPageListFormulaChild(this.formulaChildParams).then(response => { |
| | | this.formulaChildList = response.rows; |
| | | }); |
| | | }, |
| | |
| | | |
| | | this.formulaChildList = [] |
| | | this.headContent.sfcCode = null |
| | | this.workpieceInformation.productCode = null; |
| | | this.workpieceInformation.workOrderNo = null; |
| | | this.workpieceInformation.productModel = null; |
| | | this.workpieceInformation.productName = null; |
| | | }, |
| | | changeMenu(tab, event) { |
| | | console.log(tab, event); |
| | |
| | | this.$message('websocket连接成功!'); |
| | | }; |
| | | this.ws.onmessage = function (event) { |
| | | const DELAY_TIME = 2000; |
| | | if (event.data === "IN") { |
| | | self.cakeLamp.InPlace = 1; |
| | | } else if (event.data === "IN0") { |
| | |
| | | saveCampaignTimeParameters(param).then(response => {}); |
| | | self.cakeLamp.release = 1; |
| | | self.endClear() |
| | | |
| | | workpieceRelease(param).then(response => {}); |
| | | } else if (event.data.includes("[")) { |
| | | let formulaChilds = ""; |
| | | self.formulaChildList.sort((a, b) => a.stepSort - b.stepSort); |