no message
This commit is contained in:
parent
54f15f1504
commit
e242e86acd
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<p v-else-if="item.columntype=='tag' || item.columntype=='time'" @click="handleClick(row, item)" v-time.tip="row[item.name]"></p>
|
<p v-else-if="item.columntype=='tag' || item.columntype=='time'" @click="handleClick(row, item)" v-time.tip="row[item.name]"></p>
|
||||||
|
|
||||||
<slot v-else :name="item.name" v-bind="scope">
|
<slot v-else :name="item.name">
|
||||||
{{ item.columntype=='select' && item.options && item.options.items ? getNameByValue( row[item.name], item.options.items ) : row[item.name] }}
|
{{ item.columntype=='select' && item.options && item.options.items ? getNameByValue( row[item.name], item.options.items ) : row[item.name] }}
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,14 +6,14 @@
|
|||||||
<template v-for="(item, index) in column" :key="index">
|
<template v-for="(item, index) in column" :key="index">
|
||||||
<el-table-column :align="item.align || 'left'" :label="item.label" v-if="item.column && item.column.length>0">
|
<el-table-column :align="item.align || 'left'" :label="item.label" v-if="item.column && item.column.length>0">
|
||||||
<el-table-column v-for="(items, indexs) in item.column" :key="indexs" :align="items.align || 'left'" :column-key="items.prop||items.name" :label="items.label" :prop="items.prop||items.name" :width="items.width || 'auto'" :min-width="items.minWidth || 'auto'" :sortable="items.sortable" :fixed="items.fixed" :filters="items.filters" :filter-method="remoteFilter||!items.filters?null:filterHandler" :show-overflow-tooltip="items.showOverflowTooltip">
|
<el-table-column v-for="(items, indexs) in item.column" :key="indexs" :align="items.align || 'left'" :column-key="items.prop||items.name" :label="items.label" :prop="items.prop||items.name" :width="items.width || 'auto'" :min-width="items.minWidth || 'auto'" :sortable="items.sortable" :fixed="items.fixed" :filters="items.filters" :filter-method="remoteFilter||!items.filters?null:filterHandler" :show-overflow-tooltip="items.showOverflowTooltip">
|
||||||
<template #default="scope">
|
<template #default="{ row }">
|
||||||
<columnItem :row="scope.row" :item="items" @xtableupdate="xtableupdate"> </columnItem>
|
<columnItem :row="row" :item="items" @xtableupdate="xtableupdate"> </columnItem>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column v-else-if="!item.hide && (item.name || item.prop)" :align="item.align || 'left'" :column-key="item.prop||item.name" :label="item.label" :prop="item.prop||item.name" :width="item.width || 'auto'" :min-width="item.minWidth || 'auto'" :sortable="item.sortable" :fixed="item.fixed" :filters="item.filters" :filter-method="remoteFilter||!item.filters?null:filterHandler" :show-overflow-tooltip="item.showOverflowTooltip">
|
<el-table-column v-else-if="!item.hide && (item.name || item.prop)" :align="item.align || 'left'" :column-key="item.prop||item.name" :label="item.label" :prop="item.prop||item.name" :width="item.width || 'auto'" :min-width="item.minWidth || 'auto'" :sortable="item.sortable" :fixed="item.fixed" :filters="item.filters" :filter-method="remoteFilter||!item.filters?null:filterHandler" :show-overflow-tooltip="item.showOverflowTooltip">
|
||||||
<template #default="scope">
|
<template #default="{ row }">
|
||||||
<columnItem :row="scope.row" :item="item" @xtableupdate="xtableupdate"> </columnItem>
|
<columnItem :row="row" :item="item" @xtableupdate="xtableupdate"> </columnItem>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
@ -85,7 +85,7 @@
|
|||||||
props: {
|
props: {
|
||||||
name: { type: String, default: "" },
|
name: { type: String, default: "" },
|
||||||
tableColumn: { type: Object, default: () => {} },
|
tableColumn: { type: Object, default: () => {} },
|
||||||
api: { type: Object, default: () => {} },
|
api: { type: String, default: () => {} },
|
||||||
apiObj: { type: Object, default: () => {} },
|
apiObj: { type: Object, default: () => {} },
|
||||||
params: { type: Object, default: () => ({}) },
|
params: { type: Object, default: () => ({}) },
|
||||||
data: { type: Object, default: () => {} },
|
data: { type: Object, default: () => {} },
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
import xFilterBar from '@/components/xFilterBar';
|
import xFilterBar from '@/components/xFilterBar';
|
||||||
import xEcharts from '@/components/xEcharts'
|
import xEcharts from '@/components/xEcharts'
|
||||||
export default {
|
export default {
|
||||||
name: 'propertyAuth',
|
name: 'systemTable',
|
||||||
components: {
|
components: {
|
||||||
xStat,
|
xStat,
|
||||||
xEcharts,
|
xEcharts,
|
||||||
|
Loading…
Reference in New Issue
Block a user