渲染修改
This commit is contained in:
@@ -176,6 +176,32 @@ public class TbCrontabTask extends BaseDTO {
|
|||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description 元数据名称(来自 tb_crontab_task_meta.name)
|
||||||
|
*/
|
||||||
|
private String metaName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description 元数据描述(来自 tb_crontab_task_meta.description)
|
||||||
|
*/
|
||||||
|
private String metaDescription;
|
||||||
|
|
||||||
|
public String getMetaName() {
|
||||||
|
return metaName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMetaName(String metaName) {
|
||||||
|
this.metaName = metaName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMetaDescription() {
|
||||||
|
return metaDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMetaDescription(String metaDescription) {
|
||||||
|
this.metaDescription = metaDescription;
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getConcurrent() {
|
public Integer getConcurrent() {
|
||||||
return concurrent;
|
return concurrent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
<result column="update_time" property="updateTime" />
|
<result column="update_time" property="updateTime" />
|
||||||
<result column="delete_time" property="deleteTime" />
|
<result column="delete_time" property="deleteTime" />
|
||||||
<result column="deleted" property="deleted" />
|
<result column="deleted" property="deleted" />
|
||||||
|
<result column="meta_name" property="metaName" />
|
||||||
|
<result column="meta_description" property="metaDescription" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 字段列表 -->
|
<!-- 字段列表 -->
|
||||||
@@ -233,9 +235,33 @@
|
|||||||
|
|
||||||
<!-- 分页查询任务列表 -->
|
<!-- 分页查询任务列表 -->
|
||||||
<select id="selectTaskPage" resultMap="BaseResultMap">
|
<select id="selectTaskPage" resultMap="BaseResultMap">
|
||||||
SELECT DISTINCT ct.*
|
SELECT DISTINCT
|
||||||
|
ct.id,
|
||||||
|
ct.task_id,
|
||||||
|
ct.task_name,
|
||||||
|
ct.task_group,
|
||||||
|
ct.bean_name,
|
||||||
|
ct.method_name,
|
||||||
|
ct.method_params,
|
||||||
|
ct.meta_id,
|
||||||
|
ct.default_recipient,
|
||||||
|
ct.cron_expression,
|
||||||
|
ct.status,
|
||||||
|
ct.description,
|
||||||
|
ct.concurrent,
|
||||||
|
ct.misfire_policy,
|
||||||
|
ct.creator,
|
||||||
|
ct.updater,
|
||||||
|
ct.create_time,
|
||||||
|
ct.update_time,
|
||||||
|
ct.delete_time,
|
||||||
|
ct.deleted,
|
||||||
|
m.name AS meta_name,
|
||||||
|
m.description AS meta_description
|
||||||
FROM tb_crontab_task ct
|
FROM tb_crontab_task ct
|
||||||
<include refid="Permission_Filter" />
|
<include refid="Permission_Filter" />
|
||||||
|
LEFT JOIN tb_crontab_task_meta m
|
||||||
|
ON ct.meta_id = m.meta_id AND m.deleted = 0
|
||||||
WHERE ct.deleted = 0
|
WHERE ct.deleted = 0
|
||||||
<if test="filter != null">
|
<if test="filter != null">
|
||||||
<if test="filter.ID != null and filter.ID != ''">
|
<if test="filter.ID != null and filter.ID != ''">
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ export interface CrontabTask extends BaseDTO {
|
|||||||
creator?: string;
|
creator?: string;
|
||||||
/** 更新者 */
|
/** 更新者 */
|
||||||
updater?: string;
|
updater?: string;
|
||||||
|
/** 元数据名称(tb_crontab_task_meta.name) */
|
||||||
|
metaName?: string;
|
||||||
|
/** 元数据描述(tb_crontab_task_meta.description) */
|
||||||
|
metaDescription?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -83,20 +83,20 @@
|
|||||||
|
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="info-item">
|
<div class="info-item">
|
||||||
<span class="info-label">Bean名称:</span>
|
<span class="info-label">定时任务类型:</span>
|
||||||
<span class="info-value">{{ crawler.beanName }}</span>
|
<span class="info-value">{{ crawler.taskGroup }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-item">
|
<div class="info-item">
|
||||||
<span class="info-label">方法名称:</span>
|
<span class="info-label">定时任务:</span>
|
||||||
<span class="info-value">{{ crawler.methodName }}</span>
|
<span class="info-value">{{ crawler.metaName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-item">
|
<div class="info-item">
|
||||||
<span class="info-label">执行周期:</span>
|
<span class="info-label">执行周期:</span>
|
||||||
<span class="info-value">{{ crawler.cronExpression }}</span>
|
<span class="info-value">{{ crawler.cronExpression }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-item" v-if="crawler.description">
|
<div class="info-item" v-if="crawler.description || crawler.metaDescription">
|
||||||
<span class="info-label">描述:</span>
|
<span class="info-label">描述:</span>
|
||||||
<span class="info-value">{{ crawler.description }}</span>
|
<span class="info-value">{{ crawler.description || crawler.metaDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user