From 6a462fcca2e65cc3a38ed79522d966306756341f Mon Sep 17 00:00:00 2001 From: wujian <14790700720@163.com> Date: 星期一, 13 五月 2024 15:15:02 +0800 Subject: [PATCH] fix 页面自动定位 add 外部接口调用 --- jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue | 36 +++++++++++++++++++++++++----------- 1 files changed, 25 insertions(+), 11 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue index 5c077d1..3cc833e 100644 --- a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue @@ -187,26 +187,21 @@ </div> </template> <script> -import {listWorkReport} from "@/api/main/om/workReport/workReport"; -import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; +import {getIpv4, listStationConf} from "@/api/main/sc/stationConf"; import { - listFormulaChild, noPageListFormulaChild, - releaseCheck, - updateResults, - updateTighteningFormula, - workpieceRelease, yzUpdateResults, yzUpdateTighteningFormula + workpieceRelease, + yzUpdateResults, + yzUpdateTighteningFormula } from "@/api/main/bs/formulaChild/formulaChild"; import MySerialPort from "@/utils/MySerialPort"; import USBDevice from "@/utils/usb.json"; -import {listProductionOrde} from "@/api/main/om/productionOrde/productionOrde"; import {addPassingStationCollection} from "@/api/main/da/passingStationCollection/passingStationCollection"; import { - addBasicParameters, - addParamCollection, addTighteningParameters, + replaceAssemblyCode, saveCampaignTimeParameters, - replaceAssemblyCode, yzAddBasicParameters, + yzAddBasicParameters, } from "@/api/main/da/paramCollection/paramCollection"; export default { @@ -382,6 +377,25 @@ console.log(this.formulaChildParams) noPageListFormulaChild(this.formulaChildParams).then(response => { this.formulaChildList = response.rows; + if (this.formulaChildList.length >0){ + let pos = 0 + const tempArr = this.formulaChildList.filter(x=> 'OK' === x.results) + if (tempArr.length>0){ + pos = tempArr.length + this.$nextTick(() => { + let temp33 = document.getElementsByClassName('el-table__row') + console.log('temp33',temp33) + console.log('len',temp33.item(pos)) + if (temp33.length > 0){ + console.log('1111111111111111') + let arr = temp33[pos-1] + console.log('srr',arr) + arr.scrollIntoView({ block: 'center' }) + } + }) + } + + } }); }, endClear(){ -- Gitblit v1.9.3