Browse Source

计划外列表页面刷新优化

zhujindu 10 tháng trước cách đây
mục cha
commit
63660eac36
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      src/views/deviceOutside/index.vue

+ 4 - 3
src/views/deviceOutside/index.vue

@@ -337,7 +337,7 @@
                     客户信息
                   </p>
                 </van-col>
-                <van-col span="5" v-if="tabVal == 1" @click="storeJoinVisit(item)">
+                <van-col span="5" v-if="tabVal == 1" @click="storeJoinVisit(item, index)">
                   <img :src="jiarujihua" style="margin: 0 auto; height: 18px; display: block" />
                   <p style="text-align: center; margin: 0; font-size: 12px">加入计划内</p>
                 </van-col>
@@ -1096,10 +1096,11 @@ export default {
     cancelSearch() {
       this.$refs.item.toggle();
     },
-    storeJoinVisit(val) {
+    storeJoinVisit(val, index) {
       joinInPlan({ storeId: val.storeId }).then((res) => {
         if (res.code == 200) {
-          this.onSearch();
+          this.list.splice(index, 1);
+          // this.onSearch();
         } else {
           this.$dialog.alert({
             title: '系统提示',