| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import type { BasicColumn } from '@/components/Table';
- import { brands } from './constant';
- import { h } from 'vue';
- export const columns: BasicColumn[] = [
- {
- label: '序号',
- minWidth: 60,
- type: 'index',
- },
- {
- label: '名称',
- prop: 'name',
- minWidth: 100,
- },
- {
- label: '设备品牌',
- prop: 'nvrType',
- minWidth: 140,
- render(record) {
- return h('span', {}, brands.find((item) => item.value === record.row.nvrType)?.label);
- },
- },
- {
- label: '设备编号',
- prop: 'code',
- minWidth: 100,
- },
- {
- label: 'IP地址',
- prop: 'nvrIp',
- minWidth: 140,
- },
- {
- label: '负责人',
- prop: 'principalName',
- minWidth: 140,
- },
- ];
|