Commit b8174d29 authored by 李志鸣's avatar 李志鸣

fea(表格组件): 解决表格组件分页不生效的问题

parent 95e97142
...@@ -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) {
......
...@@ -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) {
// 如果路由发生变化时,强制刷新表格组件 // 如果路由发生变化时,强制刷新表格组件
......
...@@ -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
......
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