|
@@ -59,7 +59,7 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<el-table size="small" :data="pageResult" height="590" border v-loading="loading" highlight-current-row stripe
|
|
<el-table size="small" :data="pageResult" height="590" border v-loading="loading" highlight-current-row stripe
|
|
|
- @row-click="handleRowClick" ref="expandTable"
|
|
|
|
|
|
|
+ @row-click="handleRowClick" ref="expandTable" :row-class-name="getRowClass"
|
|
|
:header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#606266' }">
|
|
:header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#606266' }">
|
|
|
<el-table-column type="expand">
|
|
<el-table-column type="expand">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -1110,6 +1110,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getRowClass(scope,rowIndex){
|
|
|
|
|
+ if(scope.row.insAreaCompanyList.length==0){ //判断当前行是否有子数据或者根据实际情况设置
|
|
|
|
|
+ return 'row-expand-cover'
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
//联级选择器触发事件
|
|
//联级选择器触发事件
|
|
|
handleChange(val) {
|
|
handleChange(val) {
|
|
|
if (val.length !== 0) {
|
|
if (val.length !== 0) {
|
|
@@ -1712,12 +1717,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
-<style>
|
|
|
|
|
|
|
+<style scoped>
|
|
|
.saomazhifucodeClass .el-dialog__body,
|
|
.saomazhifucodeClass .el-dialog__body,
|
|
|
.saomazhifucodeClass .el-dialog__header {
|
|
.saomazhifucodeClass .el-dialog__header {
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+/deep/ .el-table .row-expand-cover .cell .el-table__expand-icon {
|
|
|
|
|
+ display: none;
|
|
|
|
|
+}
|
|
|
.ORcodebody {
|
|
.ORcodebody {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: auto;
|
|
height: auto;
|