feat: There is no way the,

This commit is contained in:
super_liu
2021-11-08 20:56:07 +08:00
parent fc0073c8fe
commit b279ec37ef
2 changed files with 35 additions and 25 deletions
@@ -71,7 +71,7 @@
<el-button v-if="child.value.length > 1" style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"
class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button>
</template>
<template v-if="child.value || child.value.length === 0">-</template>
<template v-if="!child.value && child.value.length === 0">-</template>
</p>
</template>
<p><label style=" margin-right: 157px;">中文名称</label><span>{{ sarStandardsInfoEO.standName || '-' }}</span></p>
@@ -2167,18 +2167,6 @@ export default {
})
})
console.log(displayLocation)
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
}
displayLocation.forEach(location => {
// 动态属性字段-FBGBJBD 单独添加至基础信息
const list = displayLocation.filter ( item => item.label === '过程稿件');
@@ -2203,11 +2191,17 @@ export default {
const fieldOthers = child.filter(field => {
return halfType.includes(field.attrType)
})
console.log(fieldOthers)
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
console.log(location)
})
console.log(displayLocation)
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
}
this.dynamicFormField = displayLocation
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false
@@ -2231,6 +2225,14 @@ export default {
<style lang="less" scoped>
@import '~@/assets/styles/mixins';
@import '~@/assets/styles/style';
/deep/ .el-collapse{
border: none;
}
/deep/ .el-collapse-item__wrap{
border: none;
}
/deep/ .decomposition-btn {
position: absolute;
top: 6px;
@@ -2383,12 +2385,12 @@ export default {
.modular-content{
& > div{
border-bottom: 1px solid #E5E5E5;
height: 41px;
height: 44px;
.modular-content-p-name{
display: inline-block;
width: 220px;
height: 50px;
line-height: 50px;
height: 43px;
line-height: 43px;
font-size: 16px;
color: #333333;
vertical-align: top;
@@ -2476,8 +2478,8 @@ export default {
}
.basic-information-content{
& > p{
min-height: 40px;
line-height: 40px;
min-height: 42px;
line-height: 43px;
border-bottom: 1px solid #E5E5E5;
}
}
@@ -89,7 +89,7 @@
<el-button v-if="child.value.length > 1" style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"
class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button>
</template>
<template v-if="child.value || child.value.length === 0">-</template>
<template v-if="!child.value && child.value.length === 0">-</template>
</p>
</template>
<p><label style=" margin-right: 150px;">中文名称</label><span>{{
@@ -3242,6 +3242,14 @@
}
}
/deep/ .el-collapse{
border: none;
}
/deep/ .el-collapse-item__wrap{
border: none;
}
/deep/ .el-collapse-item__content {
padding-bottom: 0px;
font-size: 13px;
@@ -3532,8 +3540,8 @@
.modular-content-p-name {
display: inline-block;
width: 220px;
height: 50px;
line-height: 50px;
height: 43px;
line-height: 43px;
font-size: 16px;
color: #333333;
vertical-align: top;
@@ -3632,7 +3640,7 @@
.basic-information-content {
& > p {
min-height: 43px;
min-height: 42px;
line-height: 43px;
border-bottom: 1px solid #E5E5E5;
}