| | |
| | | :show-overflow-tooltip="item.dataType === 'action' || item.dataType === 'slot' ? false : true" |
| | | :min-width="item.dataType == 'action' ? btnWidth : getTitleWidth(item)" :sortable="item.sortable ? true : false" |
| | | :type="item.type" |
| | | :width="item.dataType == 'action' ? btnWidth : (column.length < 6 ? 'auto' : getTitleWidth(item))" |
| | | :width="item.dataType == 'action' ? btnWidth : (column.length < 10 ? 'auto' : getTitleWidth(item))" |
| | | align="center"> |
| | | <!-- <div class="123" v-if="item.type == ''"> --> |
| | | <template v-if="item.hasOwnProperty('colunmTemplate')" :slot="item.colunmTemplate" slot-scope="scope"> |
| | |
| | | :before-upload="(file) => beforeUpload(file, scope.$index)" |
| | | :on-change="(file, fileList) => handleChange(file, fileList, scope.$index)" |
| | | :on-error="(error, file, fileList) => onError(error, file, fileList, scope.$index)" |
| | | :on-success="(response, file, fileList) => handleSuccessUp(response, file, fileList, scope.$index)" |
| | | :on-success="(response, file, fileList) => handleSuccessUp(response, file, fileList, scope.$index, o)" |
| | | :on-exceed="onExceed" :show-file-list="false"> |
| | | <el-button :size="o.size ? o.size : 'small'" type="text" |
| | | :disabled="o.disabled ? o.disabled(scope.row) : false">{{ o.name }}</el-button> |
| | |
| | | return count * 15 + 50 + "px"; |
| | | }, |
| | | getTitleWidth(row) { |
| | | if (row.label.includes('时间') || row.label.includes('编号') || row.label.includes('样品名称') || row.label.includes('零件')) { |
| | | if (row.label.includes('时间') || row.label.includes('号') || row.label.includes('样品名称') || row.label.includes('零件')) { |
| | | return 160 |
| | | } else if (row.label.includes('产品') || row.label.includes('模板名称')) { |
| | | return 200 |
| | |
| | | setCurrent(row) { |
| | | this.$refs.multipleTable.setCurrentRow(); |
| | | }, |
| | | handleSuccessUp(response, file, fileList, index) { |
| | | handleSuccessUp(response, file, fileList, index, o) { |
| | | if (response.code == 200) { |
| | | // 清除文件列表并更新当前文件 |
| | | if (this.uploadRefs[index]) { |
| | |
| | | this.$message.success("上传成功"); |
| | | // 重置组件状态 |
| | | this.resetUploadComponent(index); |
| | | |
| | | // 成功后回调函数 |
| | | if (o.handleSuccessUp) { |
| | | o.handleSuccessUp() |
| | | } |
| | | } else { |
| | | this.$message.error(response.message); |
| | | } |
| | |
| | | .lims-table .highlight-danger-row-border td:last-child { |
| | | border-right: 4px solid #f56c6c; |
| | | } |
| | | |
| | | >>>.is-disabled { |
| | | color: #C0C4CC !important; |
| | | } |
| | | </style> |