| | |
| | | apiCount: { |
| | | agv_state: 0, |
| | | laser_data: 0, |
| | | current_teaching:0 |
| | | }, |
| | | addLog(item) { |
| | | if (!getApp().globalData.withLog) { |
| | |
| | | } |
| | | this.apiCount.agv_state = 1; |
| | | } |
| | | if (item.url.indexOf("laser_data") > 0) { |
| | | |
| | | if (ret.data?.base_map?.image_base64) { |
| | | this.apiCount.laser_data++; |
| | | } else { |
| | | if (this.apiCount.laser_data % 20 != 0) { |
| | | this.apiCount.laser_data++; |
| | | return |
| | | } |
| | | this.apiCount.laser_data = 1; |
| | | if (item.url.indexOf("get_current_teaching_data") > 0) { |
| | | |
| | | if (this.apiCount.current_teaching % 20 != 0) { |
| | | this.apiCount.current_teaching++; |
| | | return |
| | | } |
| | | this.apiCount.current_teaching = 1; |
| | | } |
| | | |
| | | // if (item.url.indexOf("laser_data") > 0) { |
| | | |
| | | // if (ret.data?.base_map?.image_base64) { |
| | | // this.apiCount.laser_data++; |
| | | // } else { |
| | | // if (this.apiCount.laser_data % 20 != 0) { |
| | | // this.apiCount.laser_data++; |
| | | // return |
| | | // } |
| | | // this.apiCount.laser_data = 1; |
| | | // } |
| | | // } |
| | | const res = ret.data |
| | | if (res) { |
| | | if (item.url.indexOf("getMapUrl") > 0) { |
| | |
| | | options.method = options.method || this.common.method; |
| | | options.dataType = options.dataType || this.common.dataType; |
| | | |
| | | if (options.url.indexOf("get_agv_state") < 0 && options.url.indexOf("laser_data") < 0 && options.url.indexOf( |
| | | "taskGroupStatus") < 0) { |
| | | if (options.url.indexOf("get_agv_state") < 0 && options.url.indexOf("laser_data") < 0 |
| | | && options.url.indexOf("taskGroupStatus") < 0 &&options.url.indexOf("get_current_teaching_data") < 0) { |
| | | console.log("url", options.url, options.data) |
| | | } |
| | | return new Promise((resolve, reject) => { |
| | |
| | | method: options.method, |
| | | dataType: options.dataType, |
| | | success: (result) => { |
| | | if (options.url.indexOf("get_agv_state") < 0 && options.url.indexOf( |
| | | "laser_data") < 0) { // |
| | | if (options.url.indexOf("get_agv_state") < 0 && options.url.indexOf("laser_data") < 0 |
| | | && options.url.indexOf("taskGroupStatus") < 0 &&options.url.indexOf("get_current_teaching_data") < 0) { // |
| | | console.log("result", result) |
| | | } |
| | | |