From 14d684bdfde5e7c35f4470c66f0363f3675b449d Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Tue, 26 Jul 2022 10:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E5=8F=B0=E5=BF=85=E5=A1=AB=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/capacityOnTheShelf/Application.vue | 21 ++- .../components/PutOnTheShelf.vue | 162 +++++++++++------- 2 files changed, 114 insertions(+), 69 deletions(-) diff --git a/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue index 64b5abc6..a2de4f76 100644 --- a/front/src/views/capacityOnTheShelf/Application.vue +++ b/front/src/views/capacityOnTheShelf/Application.vue @@ -301,6 +301,9 @@ if (!dataFrom.value.name) { notFilled.value.push('应用名称') } + if (!dataFrom.value.shareCondition) { + notFilled.value.push('共享条件') + } if (!dataFrom.value.description) { notFilled.value.push('应用描述') } @@ -337,15 +340,15 @@ ) { notFilled.value.push('应用类型') } - if ( - !dataFrom.value.infoList.filter( - (val) => val.attrType === '共享条件' - )[0] || - !dataFrom.value.infoList.filter((val) => val.attrType === '共享条件')[0] - .attrValue - ) { - notFilled.value.push('共享条件') - } + // if ( + // !dataFrom.value.infoList.filter( + // (val) => val.attrType === '共享条件' + // )[0] || + // !dataFrom.value.infoList.filter((val) => val.attrType === '共享条件')[0] + // .attrValue + // ) { + // notFilled.value.push('共享条件') + // } if (notFilled.value.length > 0) { message.warning('请填写必填字段') console.log(notFilled.value) diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index 2c5bf849..0e8cc563 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -14,9 +14,8 @@