import {BasicColumn} from '/@/components/Table'; import {FormSchema} from '/@/components/Table'; //列表数据 export const columns: BasicColumn[] = [ { title: '区域序号', align: "center", dataIndex: 'regionId' }, { title: '区域名称', align: "center", dataIndex: 'regionName' }, { title: '区域层级', align: "center", dataIndex: 'regionLevel' }, { title: '项目名称', align: "center", dataIndex: 'projectName' }, { title: '更新时间', align: "center", dataIndex: 'updateTime' }, { title: '区域次序', align: "center", dataIndex: 'sort' }, ]; export const searchFormSchema: FormSchema[] = [ { label: '项目', field: 'projectId', component: 'JDictSelectTag', componentProps: { dictCode: 'nu_iot_tplink_project,project_name,project_id', placeholder: '请选择项目', }, //colProps: { span: 6 }, }, ]; export const formSchema: FormSchema[] = [ { label: '', field: 'id', component: 'Input', show: false, }, { label: '项目序号', field: 'projectId', component: 'Input' }, { label: '项目名称', field: 'projectName', component: 'Input', }, { label: '创建时间', field: 'createTimeStr', component: 'Input', }, { label: '设备数量', field: 'deviceNum', component: 'Input', }, { label: '离线设备数', field: 'offlineNum', component: 'Input', }, { label: '异常设备数', field: 'abnormalNum', component: 'Input', }, { label: '运行天数', field: 'runningTimeStr', component: 'Input', }, { label: '状态', field: 'status', component: 'JDictSelectTag', defaultValue: 1, componentProps: ({}) => { return { options: [ { label: '正常', value: 1, key: '1' }, { label: '冻结', value: 2, key: '2' }, ] }; }, }, ];