|
|
@ -19,6 +19,14 @@ export const columns: BasicColumn[] = [ |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
dataIndex: 'remark', |
|
|
|
dataIndex: 'remark', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '启停', |
|
|
|
|
|
|
|
align: "center", |
|
|
|
|
|
|
|
dataIndex: 'startstop', |
|
|
|
|
|
|
|
customRender:({text}) => { |
|
|
|
|
|
|
|
return render.renderSwitch(text, [{text:'启动',value:'Y'},{text:'停止',value:'N'}]); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
]; |
|
|
|
]; |
|
|
|
//查询数据
|
|
|
|
//查询数据
|
|
|
|
export const searchFormSchema: FormSchema[] = []; |
|
|
|
export const searchFormSchema: FormSchema[] = []; |
|
|
@ -49,6 +57,13 @@ export const formSchema: FormSchema[] = [ |
|
|
|
field: 'remark', |
|
|
|
field: 'remark', |
|
|
|
component: 'InputTextArea', |
|
|
|
component: 'InputTextArea', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: '启停', |
|
|
|
|
|
|
|
field: 'startstop', |
|
|
|
|
|
|
|
component: 'JSwitch', |
|
|
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
// TODO 主键隐藏字段,目前写死为ID
|
|
|
|
// TODO 主键隐藏字段,目前写死为ID
|
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '', |
|
|
|
label: '', |
|
|
|