parent
d65bb8248c
commit
9c39a6b7ca
|
@ -41,6 +41,20 @@ export const columns: BasicColumn[] = [
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'directiveName',
|
dataIndex: 'directiveName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '指令标签',
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: 'tagList',
|
||||||
|
width:150,
|
||||||
|
ellipsis: false,
|
||||||
|
format(text, record, index) {
|
||||||
|
if(!!text){
|
||||||
|
return text.map(item => item.tagName).join(',');
|
||||||
|
}else{
|
||||||
|
return '暂未设置'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// title: '收费价格',
|
// title: '收费价格',
|
||||||
// align: 'center',
|
// align: 'center',
|
||||||
|
|
|
@ -1,56 +1,70 @@
|
||||||
import {BasicColumn} from '/@/components/Table';
|
import { BasicColumn } from '/@/components/Table';
|
||||||
import {FormSchema} from '/@/components/Table';
|
import { FormSchema } from '/@/components/Table';
|
||||||
|
|
||||||
//列表数据
|
//列表数据
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '机构序号',
|
title: '项目序号',
|
||||||
align: "center",
|
align: 'center',
|
||||||
dataIndex: 'projectId'
|
dataIndex: 'projectId',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '项目名称',
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: 'projectName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '机构名称',
|
title: '机构名称',
|
||||||
align: "center",
|
align: 'center',
|
||||||
dataIndex: 'projectName'
|
dataIndex: 'institutionalId_dictText',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
align: "center",
|
align: 'center',
|
||||||
dataIndex: 'createTimeStr'
|
dataIndex: 'createTimeStr',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '设备数量',
|
title: '设备数量',
|
||||||
align: "center",
|
align: 'center',
|
||||||
dataIndex: 'deviceNum'
|
dataIndex: 'deviceNum',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '离线设备数',
|
title: '离线设备数',
|
||||||
align: "center",
|
align: 'center',
|
||||||
dataIndex: 'offlineNum'
|
dataIndex: 'offlineNum',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '异常设备数',
|
title: '异常设备数',
|
||||||
align: "center",
|
align: 'center',
|
||||||
dataIndex: 'abnormalNum'
|
dataIndex: 'abnormalNum',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '运行天数',
|
title: '运行天数',
|
||||||
align: "center",
|
align: 'center',
|
||||||
dataIndex: 'runningTimeStr'
|
dataIndex: 'runningTimeStr',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
align: "center",
|
align: 'center',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
customRender:({record})=>{
|
customRender: ({ record }) => {
|
||||||
return record.status?(record.status=='1'?'正常':'冻结'):'';
|
return record.status ? (record.status == '1' ? '正常' : '冻结') : '';
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
label: '名称',
|
label: '机构',
|
||||||
|
field: 'institutionalId',
|
||||||
|
component: 'JDictSelectTag',
|
||||||
|
componentProps: {
|
||||||
|
dictCode: 'sys_depart,depart_name,id,org_category = 1 order by depart_name asc',
|
||||||
|
placeholder: '请选择机构',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '项目名称',
|
||||||
field: 'projectName',
|
field: 'projectName',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
//colProps: { span: 6 },
|
//colProps: { span: 6 },
|
||||||
|
@ -67,7 +81,7 @@ export const searchFormSchema: FormSchema[] = [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
//colProps: { span: 6 },
|
//colProps: { span: 6 },
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const formSchema: FormSchema[] = [
|
export const formSchema: FormSchema[] = [
|
||||||
|
@ -78,45 +92,54 @@ export const formSchema: FormSchema[] = [
|
||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '机构序号',
|
label: '项目序号',
|
||||||
field: 'projectId',
|
field: 'projectId',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dynamicDisabled: true
|
dynamicDisabled: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '项目名称',
|
||||||
|
field: 'projectName',
|
||||||
|
component: 'Input',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '机构名称',
|
label: '机构名称',
|
||||||
field: 'projectName',
|
field: 'institutionalId',
|
||||||
component: 'Input',
|
component: 'JDictSelectTag',
|
||||||
|
componentProps: {
|
||||||
|
dictCode: 'sys_depart,depart_name,id,org_category = 1 order by depart_name asc',
|
||||||
|
placeholder: '请选择机构',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
field: 'createTimeStr',
|
field: 'createTimeStr',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dynamicDisabled: true
|
dynamicDisabled: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '设备数量',
|
label: '设备数量',
|
||||||
field: 'deviceNum',
|
field: 'deviceNum',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dynamicDisabled: true
|
dynamicDisabled: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '离线设备数',
|
label: '离线设备数',
|
||||||
field: 'offlineNum',
|
field: 'offlineNum',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dynamicDisabled: true
|
dynamicDisabled: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '异常设备数',
|
label: '异常设备数',
|
||||||
field: 'abnormalNum',
|
field: 'abnormalNum',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dynamicDisabled: true
|
dynamicDisabled: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '运行天数',
|
label: '运行天数',
|
||||||
field: 'runningTimeStr',
|
field: 'runningTimeStr',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dynamicDisabled: true
|
dynamicDisabled: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '状态',
|
label: '状态',
|
||||||
|
@ -128,10 +151,9 @@ export const formSchema: FormSchema[] = [
|
||||||
options: [
|
options: [
|
||||||
{ label: '正常', value: 1, key: '1' },
|
{ label: '正常', value: 1, key: '1' },
|
||||||
{ label: '冻结', value: 2, key: '2' },
|
{ label: '冻结', value: 2, key: '2' },
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
dynamicDisabled: true
|
dynamicDisabled: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue