| | |
| | | <el-upload ref='upload' :action="fileAction" :auto-upload="true" :before-upload="fileBeforeUpload" |
| | | :data="{ id: currentId }" :headers="uploadHeader" :on-error="onError" :on-success="handleSuccessUp" |
| | | :show-file-list="false" accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' |
| | | style="width: 80px !important;"> |
| | | style="width: 80px !important;" v-if="!isLook"> |
| | | <el-button size="small" style="height: 38px" type="primary">附件上传</el-button> |
| | | </el-upload> |
| | | </div> |
| | |
| | | limsTable, |
| | | filePreview, |
| | | }, |
| | | props: ['currentId'], |
| | | props: { |
| | | currentId: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | isLook: { |
| | | type: Boolean, |
| | | default: false |
| | | } |
| | | }, |
| | | computed: { |
| | | fileAction() { |
| | | return this.javaApi + '/workShop/uploadFile' |
| | |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.delete(row); |
| | | }, |
| | | showHide: (row) => { |
| | | return !this.isLook |
| | | } |
| | | }, |
| | | { |
| | | name: '预览', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | console.log('预览文件信息:', row) |
| | | this.currentInfo = row |
| | | this.lookDialogVisible = true |
| | | } |