From e481b88fd80fe4e9548bb90d2360a48b25e3aaa9 Mon Sep 17 00:00:00 2001 From: lockiechen Date: Tue, 30 Jul 2024 16:47:46 +0800 Subject: [PATCH 01/13] =?UTF-8?q?feat:=20=E6=A8=A1=E6=9D=BF=E5=B8=B8?= =?UTF-8?q?=E9=87=8F,=E5=BA=94=E8=AF=A5=E5=9C=A8=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=97=B6=E5=B0=B1=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E5=90=88?= =?UTF-8?q?=E6=B3=95,=E8=80=8C=E4=B8=8D=E6=98=AF=E7=AD=89=E5=88=B0?= =?UTF-8?q?=E5=AE=9E=E4=BE=8B=E5=8C=96=E7=9A=84=E6=97=B6=E5=80=99=E6=89=8D?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=20#8125?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ContainerPropertyPanel/BuildParams.vue | 2 +- .../PipelineActionDialog/DisableDialog.vue | 31 +++++-- .../PipelineDetailTabs/VersionSelector.vue | 93 ++++++++++++++----- .../components/pipeline-param-form.vue | 4 +- .../devops-pipeline/src/utils/customRules.js | 5 + .../src/utils/validDictionary.js | 2 + 6 files changed, 103 insertions(+), 34 deletions(-) diff --git a/src/frontend/devops-pipeline/src/components/ContainerPropertyPanel/BuildParams.vue b/src/frontend/devops-pipeline/src/components/ContainerPropertyPanel/BuildParams.vue index 831c8f662e2..e8718e2da8c 100755 --- a/src/frontend/devops-pipeline/src/components/ContainerPropertyPanel/BuildParams.vue +++ b/src/frontend/devops-pipeline/src/components/ContainerPropertyPanel/BuildParams.vue @@ -127,7 +127,7 @@ :data-vv-scope="`param-${param.id}`" :disabled="disabled" :handle-change="(name, value) => handleUpdateParamId(name, value, index)" - v-validate.initial="`required|unique:${validateParams.map(p => p.id).join(',')}`" + v-validate.initial="`required|paramsIdRule|unique:${validateParams.map(p => p.id).join(',')}`" name="id" :placeholder="$t('nameInputTips')" :value="param.id" diff --git a/src/frontend/devops-pipeline/src/components/PipelineActionDialog/DisableDialog.vue b/src/frontend/devops-pipeline/src/components/PipelineActionDialog/DisableDialog.vue index 8f3b543a923..098288ad17c 100644 --- a/src/frontend/devops-pipeline/src/components/PipelineActionDialog/DisableDialog.vue +++ b/src/frontend/devops-pipeline/src/components/PipelineActionDialog/DisableDialog.vue @@ -7,10 +7,12 @@ @cancel="handleCancel" >
- +

{{ $t(lock ? 'enablePipelineConfirmTips' : 'disablePipelineConfirmTips') }}

{{ $t(pacEnabled ? 'disablePacPipelineConfirmDesc' : 'disablePipelineConfirmDesc') }} @@ -18,10 +20,18 @@

{{ $t(pacEnabled ? 'enablePacPipelineConfirmDesc' : 'enablePipelineConfirmDesc') }}

-
{{ disablePipelineYaml }}
+
{{ disablePipelineYaml }}