feat: There is no way the,
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
class="details-content-modular clearfix"
|
||||
v-for="(item, index) in dynamicFormField"
|
||||
:key="index"
|
||||
v-if="item.isShowImp === '0'"
|
||||
>
|
||||
<el-collapse v-model="activeNames" @change="handleChange">
|
||||
<div v-if="item.label === '基础信息'" class="details-content-modular basic-information"
|
||||
@@ -167,7 +166,7 @@
|
||||
</el-collapse>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="!isMoreAwayBtn" class="more" @click="moreClick">更多<img src="@/assets/images/shangqi/img/more.png"></div>
|
||||
<!-- <div v-show="!isMoreAwayBtn" class="more" @click="moreClick">更多<img src="@/assets/images/shangqi/img/more.png"></div>-->
|
||||
<!-- <div v-show="isMoreAwayBtn" class="put-away" @click="putAwayClick">收起<img src="@/assets/images/shangqi/img/more.png"></div>-->
|
||||
<!--查看标准条目列表-->
|
||||
<el-drawer
|
||||
@@ -897,7 +896,7 @@ import {dateFormat} from '../../../common/date'
|
||||
import { getBusStandFileByAttId } from 'api/process'
|
||||
|
||||
|
||||
const sarType = 'LAWS_STAND'
|
||||
const sarType = 'FOREIGN_LAWS'
|
||||
export default {
|
||||
name: 'OtherLawsStandDetails',
|
||||
components: {
|
||||
@@ -1125,6 +1124,7 @@ export default {
|
||||
console.log(val)
|
||||
},
|
||||
handleChange1(val) {
|
||||
console.log(val)
|
||||
if(val && val === '基础信息'){
|
||||
this.activeState = true
|
||||
}
|
||||
@@ -2150,6 +2150,7 @@ export default {
|
||||
}
|
||||
})
|
||||
})
|
||||
console.log(displayLocation)
|
||||
displayLocation.forEach(location => {
|
||||
|
||||
// 动态属性字段-SYRZ 单独添加至基础信息
|
||||
@@ -2158,17 +2159,9 @@ export default {
|
||||
if (!list2[0].child) {
|
||||
location['child2'] = []
|
||||
}else {
|
||||
const childList = list2[0].child.filter ( item => item.attrField === 'YYRZLAWS');
|
||||
location['child2'] = childList
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
if(list2[0].child){
|
||||
const childList = list2[0].child.filter ( item => item.attrField === 'YYRZLAWS');
|
||||
location['child2'] = childList
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2183,8 +2176,24 @@ export default {
|
||||
})
|
||||
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
|
||||
})
|
||||
|
||||
for (let i = 0; i < displayLocation.length; i++) {
|
||||
// sss
|
||||
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
|
||||
if(displayLocation[i].child !== undefined){
|
||||
let childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
|
||||
if(childList.length === 0){
|
||||
displayLocation.splice(i,1)
|
||||
i -= 1
|
||||
}
|
||||
}else {
|
||||
displayLocation.splice(i,1)
|
||||
i -= 1
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(displayLocation)
|
||||
this.dynamicFormField = displayLocation
|
||||
console.log(this.dynamicFormField)
|
||||
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
|
||||
this.loading = false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user