| | |
| | | import { getErrorMessage } from '/@/utils/error-code/index' |
| | | import { commonColor } from '/@/utils/color' |
| | | import { ExclamationCircleOutlined, UploadOutlined } from '@ant-design/icons-vue' |
| | | import { timestampToTime } from '/@/utils/time' |
| | | |
| | | const store = useMyStore() |
| | | const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId)! |
| | |
| | | const searchQuery = reactive<TaskQueryParam>({ |
| | | taskType: '' |
| | | }) |
| | | |
| | | function getSearchTime (n:number) { |
| | | const nowStamp = new Date().getTime() |
| | | const timestamp = nowStamp + (n * 60 * 60 * 1000 * 24) |
| | | const time = timestampToTime(timestamp) |
| | | return time |
| | | } |
| | | |
| | | const statusArr = reactive([]) |
| | | const timeRangeArr = reactive({ |
| | | data: [] as string[] |
| | | data: [getSearchTime(-3), getSearchTime(3)] as string[] |
| | | }) |
| | | |
| | | const body: IPage = { |
| | |
| | | } |
| | | |
| | | function getPlans () { |
| | | searchQuery.startTime = timeRangeArr.data[0] |
| | | searchQuery.endTime = timeRangeArr.data[1] |
| | | |
| | | console.log('计划查询请求参数', searchQuery) |
| | | tableLoading.value = true |
| | | getWaylineJobs(workspaceId, body, searchQuery).then(res => { |