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

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

parent 95e97142
......@@ -137,7 +137,6 @@ export default {
handler (newVal, oldVal) {
this.tableConfig = newVal
}
// deep: true
},
'tableConfig.fieldList': {
handler (newVal, oldVal) {
......
......@@ -115,13 +115,16 @@ export default {
tableConfig: {
handler (newVal, oldVal) {
this.tableConfig = newVal;
}
},
'tableConfig.fieldList': {
handler (newVal, oldVal) {
// 当数据有所变动时,强制刷新表格组件
this.tableForceUpdateToggle = false;
this.tableForceUpdateToggle = false
this.$nextTick(() => {
this.tableForceUpdateToggle = true;
});
},
deep: true
this.tableForceUpdateToggle = true
})
}
},
$route (to, from) {
// 如果路由发生变化时,强制刷新表格组件
......
......@@ -64,6 +64,7 @@
import Search from '@/components/Search';
export default {
name: 'DutyStationIndex',
components: {
Search,
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