fix:期望开始时间

This commit is contained in:
shixiaohua 2024-04-23 14:45:05 +08:00
parent d6087db3f9
commit 5325ecd535
3 changed files with 10 additions and 6 deletions

View File

@ -54,10 +54,10 @@ export const DetailForm: React.FC<DetailFormProps> = (props) => {
// setTaskMessage(task.data) // setTaskMessage(task.data)
task.data.state=taskStateList.find(taskState=>taskState.code===task.data.state?.toString())?.name; task.data.state=taskStateList.find(taskState=>taskState.code===task.data.state?.toString())?.name;
task.data.priority=taskPriorityList.find(taskPriority=>taskPriority.code===task.data.priority?.toString())?.name; task.data.priority=taskPriorityList.find(taskPriority=>taskPriority.code===task.data.priority?.toString())?.name;
task.data.actualTimeRange = [task.data.expectedStartTime?dayjs(task.data.expectedStartTime,DATE_TIME):'', task.data.actualTimeRange = [task.data.actualStartTime?dayjs(task.data.actualStartTime):'',
task.data.expectedEndTime?dayjs(task.data.expectedEndTime,DATE_TIME):'']; task.data.actualEndTime?dayjs(task.data.actualEndTime):''];
task.data.expectedTimeRange = [task.data.actualStartTime?dayjs(task.data.actualStartTime,DATE_TIME):'', task.data.expectedTimeRange = [task.data.expectedStartTime?dayjs(task.data.expectedStartTime):'',
task.data.actualEndTime?dayjs(task.data.actualEndTime,DATE_TIME):'']; task.data.expectedEndTime?dayjs(task.data.expectedEndTime):''];
form.setFieldsValue(task.data) form.setFieldsValue(task.data)
}else{ }else{
message.error(task.status.message); message.error(task.status.message);

View File

@ -6,7 +6,7 @@ import {getTaskTreeResult, taskPriorityList, taskStateList, taskTreeResult} from
import {DataType, ResponseVO, ResultPage} from "@/app/lib/definitions"; import {DataType, ResponseVO, ResultPage} from "@/app/lib/definitions";
import OperationButton from "@/app/ui/task/project/OperationButton"; import OperationButton from "@/app/ui/task/project/OperationButton";
import dayjs from "dayjs"; import dayjs from "dayjs";
import "@/app/ui/task/project/detailForm.modules.css"
type TableRowSelection<T> = TableProps<T>['rowSelection']; type TableRowSelection<T> = TableProps<T>['rowSelection'];
@ -125,7 +125,8 @@ const TreeTable: React.FC<TableSearchType> = (props) => {
columns={columns} columns={columns}
// rowSelection={{ ...rowSelection, checkStrictly}} // rowSelection={{ ...rowSelection, checkStrictly}}
dataSource={data} dataSource={data}
pagination={{ pageSize: 10 }} pagination={{ pageSize: 5 }}
scroll={{ y: 280 }}
/> />
</> </>
); );

View File

@ -1,3 +1,6 @@
.ant-picker-range-separator{ .ant-picker-range-separator{
width: 60px; width: 60px;
} }
.ant-empty-image{
overflow: hidden;
}