| | |
| | | <el-table ref="multipleTable" v-loading="tableLoading" :border="border" :data="tableData" |
| | | :header-cell-style="{ background: '#F0F1F5', color: '#333333' }" height="calc(100vh - 18.5em)" |
| | | :highlight-current-row="highlightCurrentRow" :row-class-name="rowClassName" :row-style="rowStyle" :row-key="rowKey" |
| | | style="width: 100%" tooltip-effect="dark" @row-click="rowClick" @current-change="currentChange" |
| | | style="width: 100%" tooltip-effect="dark" @row-click="rowClick" @current-change="currentChange" :show-summary="isShowSummary" |
| | | @selection-change="handleSelectionChange" class="lims-table"> |
| | | <el-table-column align="center" type="selection" width="55" /> |
| | | <el-table-column align="center" type="selection" width="55" v-if="isSelection"/> |
| | | <el-table-column align="center" label="序号" type="index" width="60" /> |
| | | |
| | | <el-table-column v-for="(item, index) in column" :key="index" :column-key="item.columnKey" |
| | |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | isSelection: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | isShowSummary: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | highlightCurrentRow: { |
| | | type: Boolean, |
| | | default: false |
| | |
| | | }) |
| | | |
| | | // Data |
| | | const btnWidth = ref('120px') |
| | | const uploadRefs = ref([]) |
| | | const currentFiles = ref({}) |
| | | const uploadKeys = ref({}) |
| | |
| | | // 文件上传前校验 |
| | | const beforeUpload = (rawFile, index) => { |
| | | currentFiles.value[index] = {} |
| | | if (rawFile.size > 1024 * 1024 * 10) { |
| | | if (rawfile.size > 1024 * 1024 * 10 * 10) { |
| | | ElMessage.error('上传文件不超过10M') |
| | | return false |
| | | } |
| | |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | :deep(.cell) { |
| | | padding: 0 !important; |
| | | } |
| | | |
| | | .cell { |
| | | white-space: nowrap; |
| | | overflow: hidden; |