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
b8174d29
Commit
b8174d29
authored
Mar 09, 2020
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(表格组件): 解决表格组件分页不生效的问题
parent
95e97142
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
index.vue
src/components/PreviewTable/index.vue
+0
-1
index.vue
src/components/Table/index.vue
+8
-5
list.vue
src/views/DutyStation/list.vue
+1
-0
No files found.
src/components/PreviewTable/index.vue
View file @
b8174d29
...
@@ -137,7 +137,6 @@ export default {
...
@@ -137,7 +137,6 @@ export default {
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
this
.
tableConfig
=
newVal
this
.
tableConfig
=
newVal
}
}
// deep: true
},
},
'tableConfig.fieldList'
:
{
'tableConfig.fieldList'
:
{
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
...
...
src/components/Table/index.vue
View file @
b8174d29
...
@@ -115,13 +115,16 @@ export default {
...
@@ -115,13 +115,16 @@ export default {
tableConfig
:
{
tableConfig
:
{
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
this
.
tableConfig
=
newVal
;
this
.
tableConfig
=
newVal
;
}
},
'tableConfig.fieldList'
:
{
handler
(
newVal
,
oldVal
)
{
// 当数据有所变动时,强制刷新表格组件
// 当数据有所变动时,强制刷新表格组件
this
.
tableForceUpdateToggle
=
false
;
this
.
tableForceUpdateToggle
=
false
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
tableForceUpdateToggle
=
true
;
this
.
tableForceUpdateToggle
=
true
});
})
},
}
deep
:
true
},
},
$route
(
to
,
from
)
{
$route
(
to
,
from
)
{
// 如果路由发生变化时,强制刷新表格组件
// 如果路由发生变化时,强制刷新表格组件
...
...
src/views/DutyStation/list.vue
View file @
b8174d29
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
import
Search
from
'@/components/Search'
;
import
Search
from
'@/components/Search'
;
export
default
{
export
default
{
name
:
'DutyStationIndex'
,
components
:
{
components
:
{
Search
,
Search
,
Table
Table
...
...
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