apply base-table
This commit is contained in:
parent
374da7b1e9
commit
93912aa193
@ -23,7 +23,7 @@
|
|||||||
filter-placement="top"
|
filter-placement="top"
|
||||||
:align="head.align"
|
:align="head.align"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template v-if="head.prop" slot-scope="scope">
|
||||||
<component v-if="head.subcomponent" :is="head.subcomponent" :key="idx + 'sub'" :inject-data="{ ...scope.row, head }" @emitData="handleSubEmitData" />
|
<component v-if="head.subcomponent" :is="head.subcomponent" :key="idx + 'sub'" :inject-data="{ ...scope.row, head }" @emitData="handleSubEmitData" />
|
||||||
<span v-else>{{ scope.row[head.prop] | commonFilter(head.filter) }}</span>
|
<span v-else>{{ scope.row[head.prop] | commonFilter(head.filter) }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -73,6 +73,8 @@ import BaseTable from '@/components/base-table'
|
|||||||
import AddOrUpdate from './equipment-add-or-update'
|
import AddOrUpdate from './equipment-add-or-update'
|
||||||
|
|
||||||
const tableConfigs = [
|
const tableConfigs = [
|
||||||
|
{ type: 'selection' },
|
||||||
|
{ type: 'index', name: 'No' },
|
||||||
{ prop: 'id', name: 'id' },
|
{ prop: 'id', name: 'id' },
|
||||||
{ prop: 'code', name: '编码' },
|
{ prop: 'code', name: '编码' },
|
||||||
{ prop: 'name', name: '设备名称' },
|
{ prop: 'name', name: '设备名称' },
|
||||||
|
Loading…
Reference in New Issue
Block a user