Ver código fonte

apply base-table

pull/1/head
lb 2 anos atrás
pai
commit
93912aa193
2 arquivos alterados com 3 adições e 1 exclusões
  1. +1
    -1
      src/components/base-table/index.vue
  2. +2
    -0
      src/views/modules/monitoring/equipment.vue

+ 1
- 1
src/components/base-table/index.vue Ver arquivo

@@ -23,7 +23,7 @@
filter-placement="top"
: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" />
<span v-else>{{ scope.row[head.prop] | commonFilter(head.filter) }}</span>
</template>


+ 2
- 0
src/views/modules/monitoring/equipment.vue Ver arquivo

@@ -73,6 +73,8 @@ import BaseTable from '@/components/base-table'
import AddOrUpdate from './equipment-add-or-update'

const tableConfigs = [
{ type: 'selection' },
{ type: 'index', name: 'No' },
{ prop: 'id', name: 'id' },
{ prop: 'code', name: '编码' },
{ prop: 'name', name: '设备名称' },


Carregando…
Cancelar
Salvar