mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-06-16 00:43:21 +08:00
feat: ✨ 作业增加请求地址显示查询
This commit is contained in:
parent
35efc11e56
commit
585f8f4e43
@ -336,7 +336,8 @@ public sealed class JobService(BasicRepository<Sys_Job, long> rpo, IJobRecordSer
|
||||
ret = ret.WhereDynamicFilter(req.DynamicFilter)
|
||||
.WhereDynamic(req.Filter)
|
||||
.WhereIf( //
|
||||
req.Keywords?.Length > 0, a => a.Id == req.Keywords.Int64Try(0) || a.JobName.Contains(req.Keywords));
|
||||
req.Keywords?.Length > 0
|
||||
, a => a.Id == req.Keywords.Int64Try(0) || a.JobName.Contains(req.Keywords) || a.RequestUrl.Contains(req.Keywords));
|
||||
|
||||
// ReSharper disable once SwitchStatementMissingSomeEnumCasesNoDefault
|
||||
switch (req.Order) {
|
||||
|
@ -70,7 +70,7 @@
|
||||
{
|
||||
type: 'input',
|
||||
field: ['root', 'keywords'],
|
||||
placeholder: $t('作业编号 / 作业名称'),
|
||||
placeholder: $t('作业编号 / 作业名称 / 请求地址'),
|
||||
style: 'width:20rem',
|
||||
},
|
||||
]"
|
||||
@ -144,7 +144,12 @@
|
||||
stripe>
|
||||
<el-table-column type="selection" width="50" />
|
||||
<naColId :label="$t('作业编号')" prop="id" sortable="custom" width="170" />
|
||||
<el-table-column :label="$t('作业名称')" min-width="150" prop="jobName" show-overflow-tooltip sortable="custom" />
|
||||
<el-table-column :label="$t('作业名称')" min-width="150" prop="jobName" show-overflow-tooltip sortable="custom" >
|
||||
<template #default="{ row }">
|
||||
<p>{{ row.jobName }}</p>
|
||||
<p>{{ row.requestUrl.substring(row.requestUrl.lastIndexOf('/') + 1) }}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('执行计划')" align="right" prop="executionCron" sortable="custom" width="150">
|
||||
<template #default="{ row }">
|
||||
<p>{{ row.cronDescription }}</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user