表格默认折叠更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2025-01-10 10:19:53 +08:00
parent 31196e850e
commit b96f5b9910
1 changed files with 15 additions and 2 deletions

View File

@ -57,7 +57,7 @@
:data="taskQuestions"
row-key="Id"
border
default-expand-all
:expand-row-keys="expandedRows"
:height="height"
:tree-props="{children: 'Childrens', hasChildren: 'hasChildren'}"
size="mini"
@ -319,7 +319,8 @@ export default {
assessmentQuestions: [],
tLesionCount: null,
ntLesionCount: null,
openWindow: null
openWindow: null,
expandedRows: []
}
},
computed: {
@ -458,6 +459,18 @@ export default {
const arr = []
if (questions.length !== 0) {
questions.forEach((item) => {
if (this.CriterionType === 21) {
if (!this.isShowDetail) {
if (!item.RowId) {
this.expandedRows.push(item.Id)
}
} else {
this.expandedRows.push(item.Id)
}
} else {
this.expandedRows.push(item.Id)
}
//
//
//