| | |
| | | this.saveClick() |
| | | }, |
| | | removeTab(index) { |
| | | console.log(3333,this.$refs[`com-${this.tabs[index].k}`],this.tabs[index]) |
| | | let obj = this.$refs[`com-${this.tabs[index].k}`][0] |
| | | if(obj.state&&obj.state==1&&this.tabs[index].v=='检验任务'&&(obj.version===0||obj.version===1)){ |
| | | this.$confirm('请确认当前数据是否全部保存,是否关闭当前页面?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.tabs.splice(index, 1); |
| | | let data = this.tabs[this.tabs.length - 1] |
| | | this.upTabActive(data.k) |
| | | }) |
| | | return |
| | | } |
| | | this.tabs.splice(index, 1); |
| | | let data = this.tabs[this.tabs.length - 1] |
| | | this.upTabActive(data.k) |