art: 设备管理-我的待办-点检-增加作业指导图片预览
| | |
| | | <a-input v-model="tableRowRecord.operator_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="作业指导"> |
| | | <a-button @click="handlePreview(tableRowRecord.referenceFile)" type="primary" icon="eye">预览</a-button> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | |
| | | </template> |
| | | </a-form-model> |
| | | </a-spin> |
| | | |
| | | <lx-file-preview ref="lxFilePreview" :fileUrl="fileUrl"></lx-file-preview> |
| | | </j-modal> |
| | | </template> |
| | | |
| | |
| | | selectedRowKeys: [], |
| | | disableSubmit: false, |
| | | activeTabKey: '1', |
| | | title: '' |
| | | title: '', |
| | | fileUrl: '', |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }) |
| | | }, |
| | | |
| | | autoCompleteForm({ standardName, maintenancePeriod, standardCode }) { |
| | | autoCompleteForm({ standardName, maintenancePeriod, standardCode, referenceFile }) { |
| | | this.$set(this.tableRowRecord, 'standardName', standardName) |
| | | this.$set(this.tableRowRecord, 'maintenancePeriod', maintenancePeriod) |
| | | this.$set(this.tableRowRecord, 'standardCode', standardCode) |
| | | this.$set(this.tableRowRecord, 'referenceFile', referenceFile) |
| | | }, |
| | | |
| | | // 批量选择所有点检结果 |
| | |
| | | }) |
| | | } |
| | | }, |
| | | handlePreview: function (fileJson) { |
| | | if(fileJson) { |
| | | let obj = JSON.parse(fileJson) |
| | | if(obj.filePath) { |
| | | this.$refs.lxFilePreview.preview(obj.filePath); |
| | | }else { |
| | | that.$message.warning('没有上传操作指导图片') |
| | | } |
| | | }else { |
| | | that.$message.warning('没有上传操作指导图片') |
| | | } |
| | | |
| | | }, |
| | | } |
| | | } |
| | | </script> |