diff --git a/src/pages/config/pages/roleManage/index.vue b/src/pages/config/pages/roleManage/index.vue index 1ee302ba5..02201fc96 100644 --- a/src/pages/config/pages/roleManage/index.vue +++ b/src/pages/config/pages/roleManage/index.vue @@ -171,7 +171,7 @@ :data="treeData3" :props="defaultProps3" :default-checked-keys="nodeList2" - default-expand-all + :default-expanded-keys="defaultExpandedKeys" highlight-current :expand-on-click-node="false" :show-checkbox="true" @@ -202,7 +202,7 @@ :data="treeData4" :props="defaultProps3" :default-checked-keys="nodeList4" - default-expand-all + :default-expanded-keys="defaultExpandedKeys" highlight-current :expand-on-click-node="false" :show-checkbox="true" @@ -468,7 +468,8 @@ export default { children: 'children', label: 'menuName' }, - nodeList: [] + nodeList: [], + defaultExpandedKeys:[]//默认展开的key } }, methods: { @@ -685,6 +686,8 @@ export default { this.treeData4 = this.sortByKey(list1,"displaySeq") } + // 默认展开的key + this.defaultExpandedKeys = list1.map(item=>item.id) }, sortByKey(ary, key) { diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index 5afcf5de7..8cf108884 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -2161,7 +2161,10 @@ export default { child6Func(child6) { const list = [] if (child6 && child6.length > 1) { - list.push(child6[0]) + for(let i = 0 ; i < child6.length ; i++){ + list.push(child6[i]) + } + // list.push(child6[0]) return list } return child6 diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index f1f5dc88c..4f2ea4784 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -756,6 +756,7 @@ :disabled="formdisableflag" :show-modify-name="true" @fileSuccess="fileSuccess" + :limit="['FBGBJBD','FBGYWBD','XDB','KWJ','ZBJBD'].some(item => item===field.attrField) ? 20 : 8" > @@ -1207,6 +1209,7 @@ v-model="sarStandardsInfoEO[field.attrField]" :disabled="formdisableflag" @fileSuccess="fileSuccess" + :limit="['XDB','KWJ','ZBJBD'].some(item => item===field.attrField) ? 20 : 8" >