Compare commits

..

No commits in common. "8be597f9cf193a02302d00990457922150e60cea" and "73ef6f5bdc527fa53d1d9602bd911af1d40c3d53" have entirely different histories.

2 changed files with 70 additions and 115 deletions

View File

@ -301,9 +301,6 @@
if (!dataFrom.value.name) { if (!dataFrom.value.name) {
notFilled.value.push('应用名称') notFilled.value.push('应用名称')
} }
if (!dataFrom.value.shareCondition) {
notFilled.value.push('共享条件')
}
if (!dataFrom.value.description) { if (!dataFrom.value.description) {
notFilled.value.push('应用描述') notFilled.value.push('应用描述')
} }
@ -340,15 +337,15 @@
) { ) {
notFilled.value.push('应用类型') notFilled.value.push('应用类型')
} }
// if ( if (
// !dataFrom.value.infoList.filter( !dataFrom.value.infoList.filter(
// (val) => val.attrType === '' (val) => val.attrType === '共享条件'
// )[0] || )[0] ||
// !dataFrom.value.infoList.filter((val) => val.attrType === '')[0] !dataFrom.value.infoList.filter((val) => val.attrType === '共享条件')[0]
// .attrValue .attrValue
// ) { ) {
// notFilled.value.push('') notFilled.value.push('共享条件')
// } }
if (notFilled.value.length > 0) { if (notFilled.value.length > 0) {
message.warning('请填写必填字段') message.warning('请填写必填字段')
console.log(notFilled.value) console.log(notFilled.value)

View File

@ -14,6 +14,7 @@
<div></div> <div></div>
</div> </div>
<template v-if="title.isConfigure"> <template v-if="title.isConfigure">
<a-form ref="formRef" :model="data" name="basic">
<div class="bottom"> <div class="bottom">
<!-- <div class="items" v-if="data[title.name].length > 0"> <!-- <div class="items" v-if="data[title.name].length > 0">
<div <div
@ -76,6 +77,7 @@
:key="'key2' + attr.name + index2" :key="'key2' + attr.name + index2"
> >
<span>{{ attr.name }}</span> <span>{{ attr.name }}</span>
<a-input <a-input
disabled disabled
v-model:value="val[attr.field]" v-model:value="val[attr.field]"
@ -436,51 +438,7 @@
请选择{{ item.name }} 请选择{{ item.name }}
</div> </div>
</div> </div>
<!-- 来源应用 --> </a-form>
<div class="AssociatedApplication">
<a-modal
v-model:visible="visibleAssociatedApplication"
:title="titleName"
@ok="handleOk"
@cancel="handleCancel"
style="width: 9.6rem"
>
<div>
<a-transfer
v-model:target-keys="targetKeys"
v-model:selected-keys="selectedKeys"
:data-source="mockData"
:titles="titles"
:render="(item) => item.title"
@change="handleChange"
@selectChange="handleSelectChange"
/>
</div>
</a-modal>
</div>
<!-- 关联组件 -->
<div class="AssociatedApplication">
<a-modal
v-model:visible="visibleAssociatedApplicationOther"
:title="titleName"
@ok="handleOk"
@cancel="handleCancel"
style="width: 960px"
>
<div>
<a-transfer
v-model:target-keys="targetKeysOther"
v-model:selected-keys="selectedKeysOther"
:data-source="mockDataOther"
:titles="titles"
:render="(item) => item.title"
@change="handleChangeOther"
@selectChange="handleSelectChangeOther"
/>
</div>
</a-modal>
</div>
</div>
</template> </template>
</div> </div>
</div> </div>