Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhongtong-avi-web
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
中通客车项目
zhongtong-avi-web
Commits
233168c4
Commit
233168c4
authored
Nov 17, 2019
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(表格组件): 表格组件错位问题修复
parent
6098f48c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
18 deletions
+12
-18
index.vue
src/components/Table/index.vue
+6
-10
ViewDialog.vue
src/views/DryingRoomChart/components/ViewDialog.vue
+1
-1
list.vue
src/views/DryingRoomChart/list.vue
+5
-7
No files found.
src/components/Table/index.vue
View file @
233168c4
...
...
@@ -114,18 +114,14 @@ export default {
watch
:
{
tableConfig
:
{
handler
(
newVal
,
oldVal
)
{
this
.
tableConfig
=
newVal
}
// deep: true
},
'tableConfig.fieldList'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
tableConfig
=
newVal
;
// 当数据有所变动时,强制刷新表格组件
this
.
tableForceUpdateToggle
=
false
this
.
tableForceUpdateToggle
=
false
;
this
.
$nextTick
(()
=>
{
this
.
tableForceUpdateToggle
=
true
})
}
this
.
tableForceUpdateToggle
=
true
;
});
},
deep
:
true
},
$route
(
to
,
from
)
{
// 如果路由发生变化时,强制刷新表格组件
...
...
src/views/DryingRoomChart/components/ViewDialog.vue
View file @
233168c4
<
template
>
<el-dialog
title=
"烘干室
监控
折线图"
title=
"烘干室
温度
折线图"
:show-close=
"false"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
...
...
src/views/DryingRoomChart/list.vue
View file @
233168c4
...
...
@@ -52,24 +52,23 @@
@
onCurrentPageChange=
"onCurrentPageChange"
>
<template
slot=
"beginTime"
>
<el-table-column
label=
"开始时间"
width=
"150"
>
label=
"开始时间"
>
<template
slot-scope=
"scope"
>
{{
formatTime
(
scope
.
row
.
beginTime
,
'YYYY-MM-DD'
)
}}
{{
formatTime
(
scope
.
row
.
beginTime
,
'YYYY-MM-DD
HH:mm:ss
'
)
}}
</
template
>
</el-table-column>
</template>
<
template
slot=
"endTime"
>
<el-table-column
label=
"结束时间"
width=
"150"
>
label=
"结束时间"
>
<template
slot-scope=
"scope"
>
{{
formatTime
(
scope
.
row
.
endTime
,
'YYYY-MM-DD'
)
}}
{{
formatTime
(
scope
.
row
.
endTime
,
'YYYY-MM-DD
HH:mm:ss
'
)
}}
</
template
>
</el-table-column>
</template>
<
template
slot=
"operationColumn"
>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"55"
>
<template
slot-scope=
"scope"
>
...
...
@@ -125,7 +124,6 @@
height
:
0
,
data
:
[],
fieldList
:
[
{
label
:
'设备名称'
,
value
:
'alias'
},
{
label
:
'设备编号'
,
value
:
'equipCode'
},
{
label
:
'开始时间'
,
value
:
'beginTime'
,
slot
:
'beginTime'
},
{
label
:
'结束时间'
,
value
:
'endTime'
,
slot
:
'endTime'
}
...
...
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