YY 2 年之前
父节点
当前提交
319f5cb6ca
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      src/views/zr/zrOrder/parts/detail-1.vue

+ 2 - 5
src/views/zr/zrOrder/parts/detail-1.vue

@@ -82,11 +82,8 @@ export default {
         condition[`buy_time@end`] = _.last(condition.buy_time);
         delete condition.buy_time;
       }
-      if (this.user.role.code == 'sadmin') {
-        info.shop = '';
-      } else {
-        info.shop = this.user.shop.id;
-      }
+      if (this.user.role.code == 'sadmin') info.shop = '';
+      else info.shop = this.user.shop.id;
       let res = await this.query({ skip, limit, ...condition, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);