feat: There is no way the,Laws
This commit is contained in:
@@ -62,8 +62,13 @@
|
||||
<p class="half"><label style=" margin-right: 192px;">年度</label><span>{{ sarStandardsInfoEO.lawsYear || '-' }}</span></p>
|
||||
<p class="half"><label style=" margin-right: 192px;">标签</label><span>{{ sarStandardsInfoEO.lawsLabel || '-' }}</span></p>
|
||||
<p class="half"><label style=" margin-right: 192px;">备注</label><span>{{ sarStandardsInfoEO.lawsRemark || '-' }}</span></p>
|
||||
<p class="half"><label style=" margin-right: 192px;"></label><span></span></p>
|
||||
</div>
|
||||
<template v-for="(child, childIndex) in item.child2">
|
||||
<p class="half">
|
||||
<label style=" margin-right: 156px;">{{child.attrName}}</label><span>
|
||||
{{ child.value || '-' }}
|
||||
</span>
|
||||
</p>
|
||||
</template> </div>
|
||||
</div>
|
||||
</template>
|
||||
<template
|
||||
@@ -2095,16 +2100,39 @@ export default {
|
||||
})
|
||||
})
|
||||
displayLocation.forEach(location => {
|
||||
|
||||
// 动态属性字段-SYRZ 单独添加至基础信息
|
||||
const list2 = displayLocation.filter ( item => item.label === '适用范围');
|
||||
if(location.label === '基础信息' && list2 && list2.length > 0){
|
||||
if (!list2[0].child) {
|
||||
location['child2'] = []
|
||||
}else {
|
||||
const childList = list2[0].child.filter ( item => item.attrField === 'YYRZLAWS');
|
||||
location['child2'] = childList
|
||||
}
|
||||
}
|
||||
|
||||
const child = location.child || []
|
||||
const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM']
|
||||
const fieldsIsTextAreaOrFile = child.filter(field => {
|
||||
return !halfType.includes(field.attrType)
|
||||
return field.attrField !== 'YYRZLAWS' && !halfType.includes(field.attrType)
|
||||
})
|
||||
const fieldOthers = child.filter(field => {
|
||||
return halfType.includes(field.attrType)
|
||||
})
|
||||
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
|
||||
})
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user