表格默认折叠更改
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" :data="taskQuestions"
row-key="Id" row-key="Id"
border border
default-expand-all :expand-row-keys="expandedRows"
:height="height" :height="height"
:tree-props="{children: 'Childrens', hasChildren: 'hasChildren'}" :tree-props="{children: 'Childrens', hasChildren: 'hasChildren'}"
size="mini" size="mini"
@ -319,7 +319,8 @@ export default {
assessmentQuestions: [], assessmentQuestions: [],
tLesionCount: null, tLesionCount: null,
ntLesionCount: null, ntLesionCount: null,
openWindow: null openWindow: null,
expandedRows: []
} }
}, },
computed: { computed: {
@ -458,6 +459,18 @@ export default {
const arr = [] const arr = []
if (questions.length !== 0) { if (questions.length !== 0) {
questions.forEach((item) => { 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)
}
// //
// //
// //