Commit 4a10c024 authored by 廖旭伟's avatar 廖旭伟

Merge remote-tracking branch 'origin/master'

parents 36f62b76 4b4caef2
...@@ -16,37 +16,35 @@ ...@@ -16,37 +16,35 @@
:height="height" :height="height"
style="width: 100%" style="width: 100%"
> >
<template v-for="column in columns"> <el-table-column
v-for="column in columns"
:key="column.prop"
:type="column.type"
:index="handleIndexMethod"
:selectable="handleSelectableMethod"
:prop="column.prop"
:label="column.label"
:width="column.width"
:sortable="column.sortable"
:show-overflow-tooltip="column.tooltip"
:align="column.align || 'center'"
:formatter="column.formatter"
:reserve-selection="column.reserveSelection"
:subColumns="column.subColumns"
:fixed="column.fixed"
>
<el-table-column <el-table-column
v-if="column.show" v-for="sunColumn in column.subColumns"
:key="column.prop" :key="sunColumn.prop"
:type="column.type" :type="sunColumn.type"
:index="handleIndexMethod" :prop="sunColumn.prop"
:selectable="handleSelectableMethod" :label="sunColumn.label"
:prop="column.prop" :width="sunColumn.width"
:label="column.label" :sortable="sunColumn.sortable"
:width="column.width" :align="sunColumn.align || 'center'"
:sortable="column.sortable" :formatter="sunColumn.formatter"
:show-overflow-tooltip="column.tooltip" />
:align="column.align || 'center'" </el-table-column>
:formatter="column.formatter"
:reserve-selection="column.reserveSelection"
:subColumns="column.subColumns"
:fixed="column.fixed"
>
<el-table-column
v-for="sunColumn in column.subColumns"
:key="sunColumn.prop"
:type="sunColumn.type"
:prop="sunColumn.prop"
:label="sunColumn.label"
:width="sunColumn.width"
:sortable="sunColumn.sortable"
:align="sunColumn.align || 'center'"
:formatter="sunColumn.formatter"
/>
</el-table-column>
</template>
</el-table> </el-table>
</template> </template>
......
...@@ -346,6 +346,7 @@ export default { ...@@ -346,6 +346,7 @@ export default {
this.tableData.staff.refreshDate, this.tableData.staff.refreshDate,
6 6
); );
this.$refs.layoutTable.showType = "tableSelect";
}, },
}, },
data() { data() {
...@@ -367,6 +368,7 @@ export default { ...@@ -367,6 +368,7 @@ export default {
url: process.env.VUE_APP_API_BASE_URL + "/staff/importData", url: process.env.VUE_APP_API_BASE_URL + "/staff/importData",
}, },
config: { config: {
showType: "tableSelect",
search: [ search: [
{ {
name: "name", name: "name",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment