🔨 查询字段.
This commit is contained in:
@@ -29,7 +29,6 @@ import lombok.Data;
|
|||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计划任务主机 视图响应对象
|
* 计划任务主机 视图响应对象
|
||||||
@@ -56,16 +55,4 @@ public class ExecJobHostVO implements Serializable {
|
|||||||
@Schema(description = "主机id")
|
@Schema(description = "主机id")
|
||||||
private Long hostId;
|
private Long hostId;
|
||||||
|
|
||||||
@Schema(description = "创建时间")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
@Schema(description = "修改时间")
|
|
||||||
private Date updateTime;
|
|
||||||
|
|
||||||
@Schema(description = "创建人")
|
|
||||||
private String creator;
|
|
||||||
|
|
||||||
@Schema(description = "修改人")
|
|
||||||
private String updater;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,6 +93,12 @@ public class ExecJobVO implements Serializable {
|
|||||||
@Schema(description = "修改时间")
|
@Schema(description = "修改时间")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
@Schema(description = "修改人")
|
||||||
|
private String updater;
|
||||||
|
|
||||||
@Schema(description = "执行主机")
|
@Schema(description = "执行主机")
|
||||||
private List<Long> hostIdList;
|
private List<Long> hostIdList;
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import lombok.Data;
|
|||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 字典配置项 视图响应对象
|
* 字典配置项 视图响应对象
|
||||||
@@ -61,4 +62,16 @@ public class DictKeyVO implements Serializable {
|
|||||||
@Schema(description = "配置描述")
|
@Schema(description = "配置描述")
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@Schema(description = "修改时间")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
@Schema(description = "修改人")
|
||||||
|
private String updater;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,12 +68,12 @@ public class HistoryValueServiceImpl implements HistoryValueService {
|
|||||||
@Override
|
@Override
|
||||||
public DataGrid<HistoryValueVO> getHistoryValuePage(HistoryValueQueryRequest request) {
|
public DataGrid<HistoryValueVO> getHistoryValuePage(HistoryValueQueryRequest request) {
|
||||||
// 条件
|
// 条件
|
||||||
LambdaQueryWrapper<HistoryValueDO> wrapper = this.buildQueryWrapper(request);
|
LambdaQueryWrapper<HistoryValueDO> wrapper = this.buildQueryWrapper(request)
|
||||||
|
.orderByDesc(HistoryValueDO::getId);
|
||||||
// 查询
|
// 查询
|
||||||
return historyValueDAO.of()
|
return historyValueDAO.of()
|
||||||
.wrapper(wrapper)
|
.wrapper(wrapper)
|
||||||
.page(request)
|
.page(request)
|
||||||
.order(request, HistoryValueDO::getId)
|
|
||||||
.dataGrid(HistoryValueConvert.MAPPER::to);
|
.dataGrid(HistoryValueConvert.MAPPER::to);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ export interface ExecJobQueryResponse extends TableData {
|
|||||||
execUsername: string;
|
execUsername: string;
|
||||||
createTime: number;
|
createTime: number;
|
||||||
updateTime: number;
|
updateTime: number;
|
||||||
|
creator: string;
|
||||||
|
updater: string;
|
||||||
hostIdList: Array<number>;
|
hostIdList: Array<number>;
|
||||||
hostList: Array<HostQueryResponse>;
|
hostList: Array<HostQueryResponse>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import type { DataGrid, OrderDirection, Pagination } from '@/types/global';
|
import type { DataGrid, Pagination } from '@/types/global';
|
||||||
import type { TableData } from '@arco-design/web-vue';
|
import type { TableData } from '@arco-design/web-vue';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 历史归档查询请求
|
* 历史归档查询请求
|
||||||
*/
|
*/
|
||||||
export interface HistoryValueQueryRequest extends Pagination, OrderDirection {
|
export interface HistoryValueQueryRequest extends Pagination {
|
||||||
searchValue?: string;
|
searchValue?: string;
|
||||||
relId?: number;
|
relId?: number;
|
||||||
type?: string;
|
type?: string;
|
||||||
|
|||||||
@@ -39,6 +39,10 @@ export interface DictKeyQueryResponse extends TableData {
|
|||||||
valueType: string;
|
valueType: string;
|
||||||
extraSchema: string;
|
extraSchema: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
createTime: number;
|
||||||
|
updateTime: number;
|
||||||
|
creator: string;
|
||||||
|
updater: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import type { OrderDirection, Pagination } from '@/types/global';
|
import type { Pagination } from '@/types/global';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统消息查询请求
|
* 系统消息查询请求
|
||||||
*/
|
*/
|
||||||
export interface MessageQueryRequest extends Pagination, OrderDirection {
|
export interface MessageQueryRequest extends Pagination {
|
||||||
maxId?: number;
|
maxId?: number;
|
||||||
classify?: string;
|
classify?: string;
|
||||||
queryUnread?: boolean;
|
queryUnread?: boolean;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<!-- 顶部按钮 -->
|
<!-- 顶部按钮 -->
|
||||||
<div class="table-adjust-popover-header">
|
<div class="table-adjust-popover-header">
|
||||||
<span class="table-adjust-title">
|
<span class="table-adjust-title">
|
||||||
表格展示字段
|
卡片展示字段
|
||||||
</span>
|
</span>
|
||||||
<a-button type="text"
|
<a-button type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
|||||||
@@ -133,12 +133,14 @@
|
|||||||
<!-- 最近执行 -->
|
<!-- 最近执行 -->
|
||||||
<template #recentLog="{ record }">
|
<template #recentLog="{ record }">
|
||||||
<div class="flex-center" v-if="record.recentLogId && record.recentLogStatus">
|
<div class="flex-center" v-if="record.recentLogId && record.recentLogStatus">
|
||||||
|
<!-- 执行时间 -->
|
||||||
|
<span class="mr8">
|
||||||
|
{{ dateFormat(new Date(record.recentLogTime), 'MM-dd HH:mm:ss') }}
|
||||||
|
</span>
|
||||||
<!-- 执行状态 -->
|
<!-- 执行状态 -->
|
||||||
<a-tag class="mr8" :color="getDictValue(execStatusKey, record.recentLogStatus, 'color')">
|
<a-tag :color="getDictValue(execStatusKey, record.recentLogStatus, 'color')">
|
||||||
{{ getDictValue(execStatusKey, record.recentLogStatus) }}
|
{{ getDictValue(execStatusKey, record.recentLogStatus) }}
|
||||||
</a-tag>
|
</a-tag>
|
||||||
<!-- 执行时间 -->
|
|
||||||
{{ dateFormat(new Date(record.recentLogTime), 'MM-dd HH:mm:ss') }}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 无任务 -->
|
<!-- 无任务 -->
|
||||||
<div v-else class="mx8">-</div>
|
<div v-else class="mx8">-</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user