|
@@ -23,7 +23,8 @@
|
|
|
<div>
|
|
<div>
|
|
|
<el-table :data="props.row.children">
|
|
<el-table :data="props.row.children">
|
|
|
<el-table-column v-for="column in secondaryColumns" :key="column.prop" :prop="column.prop"
|
|
<el-table-column v-for="column in secondaryColumns" :key="column.prop" :prop="column.prop"
|
|
|
- :label="column.label" :sortable="column.sortable ?'custom' : false" :width="column.width">
|
|
|
|
|
|
|
+ :label="column.label" :sortable="column.sortable ?'custom' : false" :width="column.width"
|
|
|
|
|
+ >
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<slot name="search" :slotData="column"></slot>
|
|
<slot name="search" :slotData="column"></slot>
|
|
|
</template>
|
|
</template>
|
|
@@ -37,9 +38,9 @@
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
<ImagePreview v-else-if="column.component === 'Image'" :src="getImgTo(scope.row, column)"
|
|
<ImagePreview v-else-if="column.component === 'Image'" :src="getImgTo(scope.row, column)"
|
|
|
width="50px" height="50px"></ImagePreview>
|
|
width="50px" height="50px"></ImagePreview>
|
|
|
- <span v-else>
|
|
|
|
|
|
|
+ <template v-else>
|
|
|
{{ getDisplayText(scope.row, column) }}
|
|
{{ getDisplayText(scope.row, column) }}
|
|
|
- </span>
|
|
|
|
|
|
|
+ </template>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" fixed="right" :width="props.columnwidth">
|
|
<el-table-column label="操作" fixed="right" :width="props.columnwidth">
|
|
@@ -55,7 +56,7 @@
|
|
|
<el-table-column v-if="showIndex" type="index" label="序号" width="55" />
|
|
<el-table-column v-if="showIndex" type="index" label="序号" width="55" />
|
|
|
<el-table-column v-for="column in columns" :key="column.prop" :prop="column.prop" :label="column.label"
|
|
<el-table-column v-for="column in columns" :key="column.prop" :prop="column.prop" :label="column.label"
|
|
|
:sortable="column.sortable ?'custom' : false" :width="column.width"
|
|
:sortable="column.sortable ?'custom' : false" :width="column.width"
|
|
|
- :align="column.align ? column.align : 'center'">
|
|
|
|
|
|
|
+ :align="column.align ? column.align : 'center'" show-overflow-tooltip>
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<slot name="search" :slotData="column"></slot>
|
|
<slot name="search" :slotData="column"></slot>
|
|
|
</template>
|
|
</template>
|
|
@@ -75,7 +76,7 @@
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
<ImagePreview v-else-if="column.component === 'Image'" :src="getImgTo(scope.row, column)" width="50px"
|
|
<ImagePreview v-else-if="column.component === 'Image'" :src="getImgTo(scope.row, column)" width="50px"
|
|
|
height="50px"></ImagePreview>
|
|
height="50px"></ImagePreview>
|
|
|
- <div v-else>
|
|
|
|
|
|
|
+ <span v-else>
|
|
|
<div
|
|
<div
|
|
|
v-if="typeof getDisplayText(scope.row, column) === 'string' && getDisplayText(scope.row, column).includes('\n')"
|
|
v-if="typeof getDisplayText(scope.row, column) === 'string' && getDisplayText(scope.row, column).includes('\n')"
|
|
|
class="flex f-c ">
|
|
class="flex f-c ">
|
|
@@ -85,7 +86,7 @@
|
|
|
<span v-else>
|
|
<span v-else>
|
|
|
{{ getDisplayText(scope.row, column) }}
|
|
{{ getDisplayText(scope.row, column) }}
|
|
|
</span>
|
|
</span>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" fixed="right" :width="props.columnwidth" v-if="props.showOperation" align="center">
|
|
<el-table-column label="操作" fixed="right" :width="props.columnwidth" v-if="props.showOperation" align="center">
|