|
@@ -6,11 +6,10 @@
|
|
style="width: 100%;z-index:1"
|
|
style="width: 100%;z-index:1"
|
|
:row-key="getRowKeys"
|
|
:row-key="getRowKeys"
|
|
:expand-row-keys="expands"
|
|
:expand-row-keys="expands"
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
>
|
|
>
|
|
<el-table-column type="expand">
|
|
<el-table-column type="expand">
|
|
<template slot-scope="props">
|
|
<template slot-scope="props">
|
|
- <el-table :ref="`table${props.row.id}`" :data="props.row.children" style="width: 100%;">
|
|
|
|
|
|
+ <el-table :ref="`table${props.row.id}`" :data="props.row.children" style="width: 100%;" @selection-change="handleSelectionChange">
|
|
<el-table-column type="selection" width="50" align="right"></el-table-column>
|
|
<el-table-column type="selection" width="50" align="right"></el-table-column>
|
|
<el-table-column prop label align="right" width="150">
|
|
<el-table-column prop label align="right" width="150">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
@@ -48,11 +47,12 @@
|
|
</el-table>
|
|
</el-table>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
|
|
+import bus from '@/utils/bus.js'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
selected: [],
|
|
selected: [],
|
|
- expands: []
|
|
|
|
|
|
+ expands: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
props: ["dataList"],
|
|
props: ["dataList"],
|
|
@@ -77,12 +77,16 @@ export default {
|
|
doSelect() {
|
|
doSelect() {
|
|
this.dataList.forEach(i => {
|
|
this.dataList.forEach(i => {
|
|
i.children.forEach(row => {
|
|
i.children.forEach(row => {
|
|
- this.$refs[`table${i.id}`].toggleRowSelection(row)
|
|
|
|
|
|
+ if(!row.isSatisfy){
|
|
|
|
+ this.$refs[`table${i.id}`].toggleRowSelection(row)
|
|
|
|
+ }
|
|
|
|
+
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
this.selected = val
|
|
this.selected = val
|
|
|
|
+ bus.$emit('drawLine',val)
|
|
},
|
|
},
|
|
getRowKeys(row) {
|
|
getRowKeys(row) {
|
|
return row.id;
|
|
return row.id;
|