fix:规范变量定义,去掉多余console

This commit is contained in:
shijing 2026-06-05 16:15:46 +08:00
parent c362763a25
commit aca3d91fa4
1 changed files with 6 additions and 5 deletions

View File

@ -412,6 +412,9 @@ export default {
wprInputText:"",
project_code:"",
test_file_name:"",
ocr_ip:"",
ocr_port:"",
ocr_unit:"",
canMultiple:false,
selectedAll:false,
checkAll: false,
@ -541,6 +544,9 @@ export default {
},500)
that.actionMenuClickHandler = (event) => that.handleDocumentClick(event);
document.addEventListener("click", that.actionMenuClickHandler, true);
that.ocr_ip = localStorage.getItem("ocr_ip") || "";
that.ocr_port = localStorage.getItem("ocr_port") || "";
that.ocr_unit = localStorage.getItem("ocr_unit") || "";
},
beforeUnmount() {
@ -698,7 +704,6 @@ export default {
},
timeChange(row){
let that = this;
console.log('row',row)
let index = that.mlogbwlist.indexOf(row);
if(row.work_start_time!==''&&row.work_start_time!==null&&row.work_start_time!==undefined){
let waveNum = 1;
@ -1124,9 +1129,6 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => {
//numbernumber
digital(){
let that = this;
that.ocr_ip = localStorage.getItem("ocr_ip") || "";
that.ocr_port = localStorage.getItem("ocr_port") || "";
that.ocr_unit = localStorage.getItem("ocr_unit") || "";
//number
if(!that.ocr_ip || !that.ocr_port || !that.ocr_unit){
that.$message.warning('请先在右上角"数字识别设置"配置IP、端口号和位号');
@ -1331,7 +1333,6 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => {
fullscreen: true,
text: "解析中...请稍等",
});
console.log(res);
this.$API.wpm.mlog.change.req(that.mlogId,{ test_file: res.path }).then((res) => {
loading.close();
this.$message.success("导入成功");