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 @@