Commit bb649c36 authored by dragondean@qq.com's avatar dragondean@qq.com

部分情况下订单列表报错

parent 1e1f3ba6
...@@ -240,10 +240,10 @@ ...@@ -240,10 +240,10 @@
'ecw:order:split_log', 'ecw:order:split_log',
// 下面几个是特价里的 // 下面几个是特价里的
'ecw:order:discount', 'ecw:order:discount',
'ecw:order:reduce', 'ecw:order:reduce',
'ecw:order:commission', 'ecw:order:commission',
'ecw:order:heavy', 'ecw:order:heavy',
'ecw:order:bulky' 'ecw:order:bulky'
]" > ]" >
<el-button type="text">{{$t('操作')}}</el-button> <el-button type="text">{{$t('操作')}}</el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
...@@ -766,7 +766,11 @@ export default { ...@@ -766,7 +766,11 @@ export default {
} }
// 执行查询 // 执行查询
func(this.combinedQueryParams).then(response => { func(this.combinedQueryParams).then(response => {
this.list = response.data.list; // 部分情况下,订单后面的操作下拉菜单会显示按钮,但是下来没有选项,在elTable组件更新的时候会导致渲染错误,所以要在更新渲染前清空一次list让table彻底重新渲染,避免部分更新导致异常
this.list = []
this.$nextTick(() => {
this.list = response.data.list
})
this.total = response.data.total; this.total = response.data.total;
this.loading = false; this.loading = false;
}); });
......
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