ymy 1 год назад
Родитель
Сommit
2f8b698013
2 измененных файлов с 6 добавлено и 10 удалено
  1. 4 8
      src/benyun/components/byTable/byTable.vue
  2. 2 2
      src/views/oms/shop/index.vue

+ 4 - 8
src/benyun/components/byTable/byTable.vue

@@ -164,13 +164,10 @@ export default class ByTable extends VueViews {
     })
   }
   recalculate(){
-    this.$forceUpdate();
-    this.$nextTick(()=>{
-      if(this.$refs.table){
-        (this.$refs.table as any).recalculate(true);
-      }
-    })
-    
+    if(this.$refs.table){
+      (this.$refs.table as any).recalculate(true);
+      this.$forceUpdate();
+    }
   }
   loadTableData(data:Array<any>){
     if(this.$refs.table){
@@ -189,7 +186,6 @@ export default class ByTable extends VueViews {
       this.page.pageSize = this.attrs.pageSize;
     }
     this.recalculate();
-    this.$forceUpdate();
   }
 
   //设置分页

+ 2 - 2
src/views/oms/shop/index.vue

@@ -695,7 +695,7 @@ export default class Shop extends Vue {
   }
   //删除
   del(item:any){
-    this.$confirm('此操作将永久删除 “'+item.shopName+'” 店铺, 是否继续?', '提示', {
+    this.$confirm('此操作将永久删除店铺名称为 “'+item.shopName+'” 的数据, 是否继续?', '提示', {
       confirmButtonText: '确定',
       cancelButtonText: '取消',
       type: 'warning'
@@ -712,7 +712,6 @@ export default class Shop extends Vue {
         this.load = false;
       })
     }).catch(() => {});
-    
   }
   //分页
   pagination(){
@@ -825,5 +824,6 @@ export default class Shop extends Vue {
 .shop{
   width: 100%;
   height: 100%;
+  overflow-y: hidden;
 }
 </style>