import {BasicColumn} from '/@/components/Table'; import {FormSchema} from '/@/components/Table'; import { rules} from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; //列表数据 export const columns: BasicColumn[] = [ { title: '校区', align: "center", dataIndex: 'xq' }, { title: '项目', align: "center", dataIndex: 'xm' }, { title: '教学楼ID', align: "center", dataIndex: 'jxlId' }, { title: '教学楼名称', align: "center", dataIndex: 'jxlName' }, { title: '教室编号', align: "center", dataIndex: 'jsbh' }, { title: '教室名称', align: "center", dataIndex: 'jsmc' }, { title: 'ip', align: "center", dataIndex: 'ip' }, { title: '账号', align: "center", dataIndex: 'user' }, { title: '密码', align: "center", dataIndex: 'mima' }, { title: '推流地址(rtmp)', align: "center", dataIndex: 'pushUrl' }, { title: '播放地址(http)', align: "center", dataIndex: 'pullUrl' }, { title: '备注', align: "center", dataIndex: 'bz' }, { title: '是否有效',//0-有效 1-无效 align: "center", dataIndex: 'sfyx', customRender: ({ text }) => { let map = ['有效','无效'] return map[text] }, }, ]; //查询数据 export const searchFormSchema: FormSchema[] = [ ]; //表单数据 export const formSchema: FormSchema[] = [ { label: '校区', field: 'xq', component: 'Input', }, { label: '项目', field: 'xm', component: 'Input', }, { label: '新ip', field: 'ip', component: 'Input', }, { label: '账号', field: 'user', component: 'Input', }, { label: '密码', field: 'mima', component: 'Input', }, { label: '备注', field: 'bz', component: 'Input', }, // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', component: 'Input', show: false, }, ];