Commit 94e5c0f5 authored by 康振飞's avatar 康振飞

班次

parent 5c09df87
<template> <template>
<div> <div>
<DataGrid :columns="columns" ref="grid" :action="action"> <DataGrid :columns="columns" ref="grid" :action="action" :height="tableHeight">
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys"> <FormItem prop="keys">
...@@ -47,6 +47,7 @@ components:{ ...@@ -47,6 +47,7 @@ components:{
data() { data() {
return { return {
action: Api.index, action: Api.index,
tableHeight: '',// 表格高度
easySearch: { easySearch: {
keys:{op:"shiftWorkSchedCode,shiftName",value:null} keys:{op:"shiftWorkSchedCode,shiftName",value:null}
}, },
...@@ -86,8 +87,17 @@ data() { ...@@ -86,8 +87,17 @@ data() {
},], },],
} }
}, },
mounted(){ created(){
this.tableHeight = window.innerHeight - 230
},
mounted() {
console.log(this); console.log(this);
window.onresize = () => {///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 230
})()
}
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
......
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