Commit de2f1ccc authored by 沈翠玲's avatar 沈翠玲

修复bug

parent 600a9ca2
......@@ -204,7 +204,7 @@
</div>
</el-dialog>
<el-table v-loading="loading" :data="workorderList" row-key="workorderId" default-expand-all max-height="339"
<el-table v-loading="loading" :data="workorderList" row-key="workorderId" default-expand-all :max-height="tableHeight"
@selection-change="handleSelectionChange" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }">
<!-- 新增复选框 -->
<el-table-column type="selection" width="55" align="center" />
......@@ -611,6 +611,7 @@ export default {
data() {
return {
commandVisible: false,
tableHeight: 0,
showArrangBtn: false,
showCombinationBtn: false,
currentData: {},
......@@ -750,6 +751,11 @@ export default {
this.setDate();
this.getList();
},
mounted(){
this.$nextTick(()=>{
this.tableHeight = window.innerHeight - 355
})
},
methods: {
//筛选日期设置默认值
setDate() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment