| | |
| | | return |
| | | }, |
| | | saveInsContext() { |
| | | // console.profile() |
| | | // console.log(1111,this.param) |
| | | try { |
| | | if(this.param){ |
| | |
| | | } |
| | | this.$message.success('已保存') |
| | | }) |
| | | // 向 Worker 发送消息,开始处理逻辑 |
| | | this.worker.postMessage(JSON.stringify({ |
| | | type: 'saveData', |
| | | tableList:this.tableList, |
| | | param:this.param |
| | | })); |
| | | } |
| | | }catch (error) { |
| | | console.log(999,error); |
| | |
| | | }) |
| | | } |
| | | } |
| | | console.log(this.param) |
| | | // console.log(this.param) |
| | | this.saveInsContext() |
| | | }, |
| | | getAuthorizedPerson() { |
| | |
| | | Vue.prototype.$Big = Big; |
| | | |
| | | // 项目切换 |
| | | // Vue.prototype.PROJECT = '检测中心' |
| | | Vue.prototype.PROJECT = '装备电缆' |
| | | Vue.prototype.PROJECT = '检测中心' |
| | | // Vue.prototype.PROJECT = '装备电缆' |
| | | //本地 |
| | | // Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; |
| | | // const javaApi = 'http://127.0.0.1:8001'; |
| | | const javaApi = 'http://192.168.92.2:8001'; |
| | | const javaApi = 'http://192.168.92.249:8001'; |
| | | |
| | | //云 |
| | | // Vue.prototype.LOCATIONVUE = "http://114.132.189.42:8080"; |
| | |
| | | let param = null |
| | | self.onmessage = function(event) { |
| | | const data = JSON.parse(event.data); |
| | | if(data.type&&data.type=='saveData'){ |
| | | tableList = data.tableList; |
| | | param = data.param; |
| | | return |
| | | } |
| | | code = data.code; |
| | | if(tableList){ |
| | | let str = code.split('-') |