feat: There is no way the,
This commit is contained in:
@@ -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);"
|
<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>
|
class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="child.value || child.value.length === 0">-</template>
|
<template v-if="!child.value && child.value.length === 0">-</template>
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p><label style=" margin-right: 157px;">中文名称</label><span>{{ sarStandardsInfoEO.standName || '-' }}</span></p>
|
<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 => {
|
displayLocation.forEach(location => {
|
||||||
// 动态属性字段-FBGBJBD 单独添加至基础信息
|
// 动态属性字段-FBGBJBD 单独添加至基础信息
|
||||||
const list = displayLocation.filter ( item => item.label === '过程稿件');
|
const list = displayLocation.filter ( item => item.label === '过程稿件');
|
||||||
@@ -2203,11 +2191,17 @@ export default {
|
|||||||
const fieldOthers = child.filter(field => {
|
const fieldOthers = child.filter(field => {
|
||||||
return halfType.includes(field.attrType)
|
return halfType.includes(field.attrType)
|
||||||
})
|
})
|
||||||
console.log(fieldOthers)
|
|
||||||
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
|
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
|
this.dynamicFormField = displayLocation
|
||||||
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
|
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -2231,6 +2225,14 @@ export default {
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/mixins';
|
@import '~@/assets/styles/mixins';
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
/deep/ .el-collapse{
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/deep/ .el-collapse-item__wrap{
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
/deep/ .decomposition-btn {
|
/deep/ .decomposition-btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
@@ -2383,12 +2385,12 @@ export default {
|
|||||||
.modular-content{
|
.modular-content{
|
||||||
& > div{
|
& > div{
|
||||||
border-bottom: 1px solid #E5E5E5;
|
border-bottom: 1px solid #E5E5E5;
|
||||||
height: 41px;
|
height: 44px;
|
||||||
.modular-content-p-name{
|
.modular-content-p-name{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 220px;
|
width: 220px;
|
||||||
height: 50px;
|
height: 43px;
|
||||||
line-height: 50px;
|
line-height: 43px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
@@ -2476,8 +2478,8 @@ export default {
|
|||||||
}
|
}
|
||||||
.basic-information-content{
|
.basic-information-content{
|
||||||
& > p{
|
& > p{
|
||||||
min-height: 40px;
|
min-height: 42px;
|
||||||
line-height: 40px;
|
line-height: 43px;
|
||||||
border-bottom: 1px solid #E5E5E5;
|
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);"
|
<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>
|
class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="child.value || child.value.length === 0">-</template>
|
<template v-if="!child.value && child.value.length === 0">-</template>
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p><label style=" margin-right: 150px;">中文名称</label><span>{{
|
<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 {
|
/deep/ .el-collapse-item__content {
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
@@ -3532,8 +3540,8 @@
|
|||||||
.modular-content-p-name {
|
.modular-content-p-name {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 220px;
|
width: 220px;
|
||||||
height: 50px;
|
height: 43px;
|
||||||
line-height: 50px;
|
line-height: 43px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
@@ -3632,7 +3640,7 @@
|
|||||||
|
|
||||||
.basic-information-content {
|
.basic-information-content {
|
||||||
& > p {
|
& > p {
|
||||||
min-height: 43px;
|
min-height: 42px;
|
||||||
line-height: 43px;
|
line-height: 43px;
|
||||||
border-bottom: 1px solid #E5E5E5;
|
border-bottom: 1px solid #E5E5E5;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user