|
@@ -108,50 +108,42 @@
|
|
|
const searchForm: Partial<FormProps> = {
|
|
|
labelWidth: 100,
|
|
|
schemas: [
|
|
|
+ // {
|
|
|
+ // field: 'part',
|
|
|
+ // component: 'Select',
|
|
|
+ // label: t('routes.devices.deviceList'),
|
|
|
+ // defaultValue: '1',
|
|
|
+ // colProps: {
|
|
|
+ // span: 4,
|
|
|
+ // },
|
|
|
+ // componentProps: {
|
|
|
+ // options: [
|
|
|
+ // {
|
|
|
+ // label: '全部',
|
|
|
+ // value: '1',
|
|
|
+ // key: '1',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '正常',
|
|
|
+ // value: '2',
|
|
|
+ // key: '2',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '已关闭',
|
|
|
+ // value: '2',
|
|
|
+ // key: '2',
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
- field: 'part',
|
|
|
- component: 'Select',
|
|
|
- label: t('routes.devices.deviceList'),
|
|
|
- defaultValue: '1',
|
|
|
- colProps: {
|
|
|
- span: 4,
|
|
|
- },
|
|
|
- componentProps: {
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: '全部',
|
|
|
- value: '1',
|
|
|
- key: '1',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '正常',
|
|
|
- value: '2',
|
|
|
- key: '2',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '已关闭',
|
|
|
- value: '2',
|
|
|
- key: '2',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'phone',
|
|
|
+ field: 'searchKey',
|
|
|
label: '手机号',
|
|
|
component: 'Input',
|
|
|
colProps: {
|
|
|
span: 6,
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- field: 'fieldTime',
|
|
|
- component: 'RangePicker',
|
|
|
- label: '时间字段',
|
|
|
- colProps: {
|
|
|
- span: 8,
|
|
|
- },
|
|
|
- },
|
|
|
],
|
|
|
};
|
|
|
// { getForm }
|
|
@@ -171,6 +163,14 @@
|
|
|
listField: 'list',
|
|
|
totalField: 'totalCount',
|
|
|
},
|
|
|
+ handleSearchInfoFn: function (searchData) {
|
|
|
+ if (searchData.fieldTime) {
|
|
|
+ searchData.startDate = searchData.fieldTime[0];
|
|
|
+ searchData.endDate = searchData.fieldTime[1];
|
|
|
+ delete searchData.fieldTime;
|
|
|
+ }
|
|
|
+ return searchData;
|
|
|
+ },
|
|
|
});
|
|
|
// pagination.value = { pageSize: 20 };
|
|
|
function rendercameraTypeLabel(cameraType: number): string {
|