feat(workbench): 新增工单列表更新功能
Co-Authored-By: '黄星炤' <huangxz@xiaopeng.com>
| | |
| | | pointLonAndLat: '', |
| | | createBy: '', |
| | | createTime: null as [number, number] | null, |
| | | updateBy: '', |
| | | updateTime: null as [number, number] | null, |
| | | } |
| | | |
| | | const stationInitialModel = { |
| | |
| | | pointLonAndLat: normalizePointLonAndLatInput(pointModel.value.pointLonAndLat), |
| | | startTime: pointModel.value.createTime ? dayjs(pointModel.value.createTime[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined, |
| | | endTime: pointModel.value.createTime ? dayjs(pointModel.value.createTime[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined, |
| | | updateStartTime: pointModel.value.updateTime ? dayjs(pointModel.value.updateTime[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined, |
| | | updateEndTime: pointModel.value.updateTime ? dayjs(pointModel.value.updateTime[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined, |
| | | } |
| | | delete params.createTime |
| | | delete params.updateTime |
| | | delete params.operationStatus |
| | | delete params.fenceAndStationList |
| | | params.fenceAndStationList = getSelectedPointAreaList() |
| | |
| | | render: () => <NInput v-model:value={pointModel.value.createBy} placeholder="请输入" />, |
| | | }, |
| | | { |
| | | label: '更新人', |
| | | path: 'updateBy', |
| | | render: () => <NInput v-model:value={pointModel.value.updateBy} placeholder="请输入" />, |
| | | }, |
| | | { |
| | | label: '创建时间', |
| | | path: 'createTime', |
| | | render: () => <NDatePicker v-model:value={pointModel.value.createTime} type="daterange" format="yyyy/MM/dd" clearable actions={[]} close-on-select={true} start-placeholder="开始时间" end-placeholder="结束时间" separator="-" />, |
| | | }, |
| | | { |
| | | label: '更新时间', |
| | | path: 'updateTime', |
| | | render: () => <NDatePicker v-model:value={pointModel.value.updateTime} type="daterange" format="yyyy/MM/dd" clearable actions={[]} close-on-select={true} start-placeholder="开始时间" end-placeholder="结束时间" separator="-" />, |
| | | }, |
| | | ] |
| | | }) |
| | |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '更新人', |
| | | key: 'updateBy', |
| | | width: 160, |
| | | ellipsis: true, |
| | | render(row) { |
| | | return row.updateBy || '-' |
| | | }, |
| | | }, |
| | | { |
| | | title: '创建时间', |
| | | key: 'createTime', |
| | | width: 200, |
| | | ellipsis: true, |
| | | render(row) { |
| | | return row.createTime ? dayjs(row.createTime).format('YYYY/MM/DD HH:mm') : '-' |
| | | }, |
| | | }, |
| | | { |
| | | title: '更新时间', |
| | | key: 'updateTime', |
| | | width: 200, |
| | | ellipsis: true, |
| | | render(row) { |
| | | return row.updateTime ? dayjs(row.updateTime).format('YYYY/MM/DD HH:mm') : '-' |
| | | }, |
| | | }, |
| | | { |
| | |
| | | return showCityColumn.value ? 1960 : 1840 |
| | | if (activeTab.value === 'station') |
| | | return showCityColumn.value ? 1660 : 1540 |
| | | return showCityColumn.value ? 2060 : 1940 |
| | | return showCityColumn.value ? 2420 : 2300 |
| | | }) |
| | | |
| | | const cardClassName = computed(() => activeTab.value === 'point' ? 'point-management-list' : '') |