Browse Source

计划外列表页面刷新优化

zhujindu 10 months ago
parent
commit
25818770c5
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/views/deviceOutside/index.vue

+ 7 - 0
src/views/deviceOutside/index.vue

@@ -1097,7 +1097,14 @@ export default {
     storeJoinVisit(val, index) {
       joinInPlan({ storeId: val.storeId }).then((res) => {
         if (res.code == 200) {
+          // el-popover click事件需要重新绑定,强制刷新页面
           this.list.splice(index, 1);
+          let copyList = JSON.parse(JSON.stringify(this.list));
+          this.list = [];
+          this.$nextTick(() => {
+            this.list = copyList;
+            this.$forceUpdate();
+          });
           // this.onSearch();
         } else {
           this.$dialog.alert({