Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
94e5c0f5
Commit
94e5c0f5
authored
Apr 08, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
班次
parent
5c09df87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
index.vue
pages/basicData/calendar/class/index.vue
+12
-2
No files found.
pages/basicData/calendar/class/index.vue
View file @
94e5c0f5
<
template
>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:height=
"tableHeight"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
...
...
@@ -47,6 +47,7 @@ components:{
data
()
{
return
{
action
:
Api
.
index
,
tableHeight
:
''
,
// 表格高度
easySearch
:
{
keys
:{
op
:
"shiftWorkSchedCode,shiftName"
,
value
:
null
}
},
...
...
@@ -86,8 +87,17 @@ data() {
},],
}
},
mounted
(){
created
(){
this
.
tableHeight
=
window
.
innerHeight
-
230
},
mounted
()
{
console
.
log
(
this
);
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
window
.
screenHeight
=
window
.
innerHeight
this
.
tableHeight
=
window
.
screenHeight
-
230
})()
}
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment