diff --git a/src/views/marketing/coupon.vue b/src/views/marketing/coupon.vue
index 4e1bee8..710e44a 100644
--- a/src/views/marketing/coupon.vue
+++ b/src/views/marketing/coupon.vue
@@ -5,7 +5,7 @@
-
+
@@ -131,6 +132,7 @@ import Pagination from '@/components/Pagination/index.vue'
import { getShops } from '@/api/shop'
import { parseTime } from '@/utils'
import { deleteCoupon, getCoupons } from '@/api/coupon'
+import { UserModule } from '@/store/modules/user'
@Component({
name: 'CouponList',
@@ -177,9 +179,15 @@ export default class extends Vue {
filterForm: HTMLFormElement
}
- created() {
- this.getList()
- this.getRemoteDeptList('')
+ get userLevel() {
+ return UserModule.level
+ }
+
+ async created() {
+ await this.getList()
+ if (UserModule.level === 1) {
+ await this.getRemoteDeptList()
+ }
}
private async getList() {
diff --git a/src/views/marketing/coupon_edit.vue b/src/views/marketing/coupon_edit.vue
index 9d7033b..d58cf5c 100644
--- a/src/views/marketing/coupon_edit.vue
+++ b/src/views/marketing/coupon_edit.vue
@@ -7,7 +7,7 @@
label-width="121px"
class="form-container"
>
-
+