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

修复bug

parent 600a9ca2
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
</div> </div>
</el-dialog> </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' }"> @selection-change="handleSelectionChange" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }">
<!-- 新增复选框 --> <!-- 新增复选框 -->
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -611,6 +611,7 @@ export default { ...@@ -611,6 +611,7 @@ export default {
data() { data() {
return { return {
commandVisible: false, commandVisible: false,
tableHeight: 0,
showArrangBtn: false, showArrangBtn: false,
showCombinationBtn: false, showCombinationBtn: false,
currentData: {}, currentData: {},
...@@ -750,6 +751,11 @@ export default { ...@@ -750,6 +751,11 @@ export default {
this.setDate(); this.setDate();
this.getList(); this.getList();
}, },
mounted(){
this.$nextTick(()=>{
this.tableHeight = window.innerHeight - 355
})
},
methods: { methods: {
//筛选日期设置默认值 //筛选日期设置默认值
setDate() { 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