|
|
@ -65,7 +65,7 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- table表格渲染 --> |
|
|
|
<!-- height="calc(100vh - 350px)" --> |
|
|
|
<!-- height="calc(100vh - 434px)" --> |
|
|
|
<el-card class="box-card" shadow="never"> |
|
|
|
<span class="right-top-line" /> |
|
|
|
<span class="left-bottom-line" /> |
|
|
@ -76,7 +76,7 @@ |
|
|
|
:data="anjuanData" |
|
|
|
highlight-current-row |
|
|
|
style="width: 100%;" |
|
|
|
height="calc(100vh - 434px)" |
|
|
|
:height="anjuanTableHeight" |
|
|
|
@select-all="selectAll" |
|
|
|
@selection-change="crud.selectionChangeHandler" |
|
|
|
@row-click="clickRowHandler" |
|
|
@ -237,7 +237,6 @@ export default { |
|
|
|
anjuanQuery: {}, |
|
|
|
queryOption: [], |
|
|
|
anjuanInputSelect: '', |
|
|
|
anjuanTableHeight: null, |
|
|
|
stateOptions: [ // 搜索 - 状态选择 |
|
|
|
{ value: '0', label: '全部' }, |
|
|
|
{ value: '1', label: '未装' }, |
|
|
@ -285,17 +284,6 @@ export default { |
|
|
|
this.query.queryType = this.stateOptions[0].value |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
// this.$nextTick(() => { |
|
|
|
// console.log(this.anjuanData.length) |
|
|
|
// if (this.anjuanData.length === 0 || this.anjuanData.length < 10) { |
|
|
|
// console.log('tres') |
|
|
|
// this.anjuanTableHeight = null |
|
|
|
// } else { |
|
|
|
// console.log('666') |
|
|
|
// const h = '100vh' |
|
|
|
// this.anjuanTableHeight = `calc(${h} - 434px)` |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 文件/案卷重置query |
|
|
@ -322,7 +310,7 @@ export default { |
|
|
|
handleSizeChange(size) { |
|
|
|
this.page.size = size |
|
|
|
this.page.page = 1 |
|
|
|
this.getListCommon('anjuanData', 1) |
|
|
|
this.getListCommon('anjuanData', 'anjuanTableHeight', 1) |
|
|
|
}, |
|
|
|
// list |
|
|
|
getTableList() { |
|
|
@ -345,12 +333,12 @@ export default { |
|
|
|
this.query.responsibleby = this.anjuanQuery[this.anjuanInputSelect] |
|
|
|
break |
|
|
|
} |
|
|
|
this.getListCommon('anjuanData', 1) |
|
|
|
this.getListCommon('anjuanData', 'anjuanTableHeight', 1) |
|
|
|
}, |
|
|
|
stateSelect(val) { |
|
|
|
this.page.page = 1 |
|
|
|
this.query.queryType = val |
|
|
|
this.getListCommon('anjuanData', 1) |
|
|
|
this.getListCommon('anjuanData', 'anjuanTableHeight', 1) |
|
|
|
}, |
|
|
|
// table - 全选 |
|
|
|
selectAll(val) { |
|
|
@ -474,9 +462,8 @@ export default { |
|
|
|
padding-left: 106px !important; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-table__fixed-right-patch{ |
|
|
|
background-color:#13439e; |
|
|
|
background-color:#02255f; |
|
|
|
border-bottom: none; |
|
|
|
} |
|
|
|
</style> |