From cbdf1ad7b71a66712158d85c12df7d807bd11022 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 31 May 2023 23:27:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=8D=87=E7=BA=A7=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#1208)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/app-store/installed/detail/index.vue | 4 +++- frontend/src/views/app-store/installed/index.vue | 2 +- frontend/src/views/website/website/create/index.vue | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/app-store/installed/detail/index.vue b/frontend/src/views/app-store/installed/detail/index.vue index ff82b5628..e43fc2f16 100644 --- a/frontend/src/views/app-store/installed/detail/index.vue +++ b/frontend/src/views/app-store/installed/detail/index.vue @@ -152,8 +152,9 @@ const paramModel = ref({ }); const rules = reactive({ params: {}, - cpuQuota: [Rules.requiredInput, checkNumberRange(0, 99999)], + cpuQuota: [Rules.requiredInput, checkNumberRange(0, 999)], memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)], + containerName: [Rules.containerName], }); const submitModel = ref({}); @@ -162,6 +163,7 @@ const acceptParams = async (props: ParamProps) => { params.value = []; paramData.value.id = props.id; paramData.value.app = props.app; + paramModel.value.params = {}; edit.value = false; await get(); open.value = true; diff --git a/frontend/src/views/app-store/installed/index.vue b/frontend/src/views/app-store/installed/index.vue index dd06aeeef..f56a52acf 100644 --- a/frontend/src/views/app-store/installed/index.vue +++ b/frontend/src/views/app-store/installed/index.vue @@ -157,7 +157,7 @@ plain round size="small" - :disabled="installed.status === 'Running'" + :disabled="installed.status !== 'Running'" @click="openOperate(installed, 'upgrade')" v-if="mode === 'upgrade'" > diff --git a/frontend/src/views/website/website/create/index.vue b/frontend/src/views/website/website/create/index.vue index d560da400..6d1516829 100644 --- a/frontend/src/views/website/website/create/index.vue +++ b/frontend/src/views/website/website/create/index.vue @@ -360,6 +360,7 @@ const rules = ref({ params: {}, cpuQuota: [Rules.requiredInput, checkNumberRange(0, 99999)], memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)], + containerName: [Rules.containerName], }, proxyType: [Rules.requiredSelect], port: [Rules.port],