|
|
@ -197,7 +197,7 @@ |
|
|
|
<el-tabs v-model="activeName" |
|
|
|
@tab-click="handleClick"> |
|
|
|
<el-tab-pane v-for="item in tabsList" |
|
|
|
:key="item.columnName" |
|
|
|
:key="item.groupId" |
|
|
|
:label="item.label" |
|
|
|
:name="'group' + item.groupId"> |
|
|
|
<resi-form :ref="'group' + item.groupId" |
|
|
@ -245,7 +245,7 @@ |
|
|
|
<el-tabs v-model="activeName" |
|
|
|
@tab-click="handleClick"> |
|
|
|
<el-tab-pane v-for="item in tabsList" |
|
|
|
:key="item.columnName" |
|
|
|
:key="item.groupId" |
|
|
|
:label="item.label" |
|
|
|
:name="'group' + item.groupId"> |
|
|
|
<edit-resi :ref="'group' + item.groupId" |
|
|
@ -833,10 +833,11 @@ export default { |
|
|
|
async handleChangeGroup (val) { |
|
|
|
console.log('changeguoprrrrr----', val) |
|
|
|
let { childGroup, value } = val |
|
|
|
|
|
|
|
let hasT = false |
|
|
|
let i = 0 |
|
|
|
// const list = { ...this.tabsList } |
|
|
|
this.tabsList.forEach((item, index) => { |
|
|
|
let list = [...this.tabsList] |
|
|
|
list.forEach((item, index) => { |
|
|
|
if (item.tableName === childGroup.tableName) { |
|
|
|
hasT = true |
|
|
|
i = index |
|
|
@ -853,12 +854,13 @@ export default { |
|
|
|
// console.log('') |
|
|
|
} |
|
|
|
}) |
|
|
|
this.tabsList.push(childGroup) |
|
|
|
list.push(childGroup) |
|
|
|
} |
|
|
|
} else { |
|
|
|
// console.log('changegroup----000', value) |
|
|
|
if (hasT) this.tabsList.splice(i, 1) |
|
|
|
if (hasT) list.splice(i, 1) |
|
|
|
} |
|
|
|
this.tabsList = [...list] |
|
|
|
}, |
|
|
|
formetForm () { |
|
|
|
const _baseForm = this.$refs.baseForm.handleForm() |
|
|
|