From 6113c388b7fc58b11ca19ff05cc1286d096c8d28 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 30 Oct 2024 15:19:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E4=B8=8D=E8=83=BD=E6=8C=89=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/certd-client/src/views/certd/history/crud.tsx | 9 +++++++++ .../src/controller/pipeline/history-controller.ts | 1 + .../plugin-host/plugin/host-shell-execute/index.ts | 1 + 3 files changed, 11 insertions(+) diff --git a/packages/ui/certd-client/src/views/certd/history/crud.tsx b/packages/ui/certd-client/src/views/certd/history/crud.tsx index 2402fd42..1898c38a 100644 --- a/packages/ui/certd-client/src/views/certd/history/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/history/crud.tsx @@ -65,6 +65,15 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat } } }, + search: { + formItem: { + labelCol: { + style: { + width: "120px" + } + } + } + }, rowHandle: { minWidth: 200, fixed: "right", diff --git a/packages/ui/certd-server/src/controller/pipeline/history-controller.ts b/packages/ui/certd-server/src/controller/pipeline/history-controller.ts index f090c13d..f30500ee 100644 --- a/packages/ui/certd-server/src/controller/pipeline/history-controller.ts +++ b/packages/ui/certd-server/src/controller/pipeline/history-controller.ts @@ -47,6 +47,7 @@ export class HistoryController extends CrudController { let pipelineIds: any = null; const pipelineTitle = body.query?.pipelineTitle; + delete body.query.pipelineTitle; if (pipelineTitle) { const pipelines = await this.pipelineService.list({ query: pipelineQuery, diff --git a/packages/ui/certd-server/src/plugins/plugin-host/plugin/host-shell-execute/index.ts b/packages/ui/certd-server/src/plugins/plugin-host/plugin/host-shell-execute/index.ts index e64798cc..f671577d 100644 --- a/packages/ui/certd-server/src/plugins/plugin-host/plugin/host-shell-execute/index.ts +++ b/packages/ui/certd-server/src/plugins/plugin-host/plugin/host-shell-execute/index.ts @@ -6,6 +6,7 @@ import { SshClient } from '../../lib/ssh.js'; title: '执行远程主机脚本命令', icon: 'tabler:brand-powershell', group: pluginGroups.host.key, + desc: '可以执行重启nginx等操作让证书生效', input: {}, default: { strategy: {