| | |
| | | data() { |
| | | return { |
| | | description: '检定报告', |
| | | disableMixinCreated:true, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | |
| | | urlDownload: window._CONFIG['staticDomainURL'], |
| | | download: '/sys/upload/downloadFile', |
| | | }, |
| | | // partRoute: {}, |
| | | // equipmentSelectionRows: [], |
| | | calibrationOrderId: '', |
| | | } |
| | | }, |
| | | |
| | | watch: { |
| | | calibrationOrderId() { |
| | | this.queryParam = {}; |
| | | this.queryParam.calibrationOrderId = this.calibrationOrderId; |
| | | this.loadData(1); |
| | | }, |
| | | props:{ |
| | | calibrationOrderId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | } |
| | | }, |
| | | watch:{ |
| | | calibrationOrderId:{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(!this.calibrationOrderId){ |
| | | this.clearList() |
| | | }else{ |
| | | this.queryParam['calibrationOrderId'] = val; |
| | | this.queryParam['delFlag'] = 0; |
| | | this.loadData(1); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | // mounted() { |
| | | // this.$bus.$on('equipmentSelectionRows', (data) => { |
| | | // this.equipmentSelectionRows = data |