From d3e6dd6b3032c119676efa1e9fcee3a8a8043fc5 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期五, 07 三月 2025 13:40:44 +0800 Subject: [PATCH] ‘’ --- src/pages/delivergoods/query.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/pages/delivergoods/query.vue b/src/pages/delivergoods/query.vue index 52ffe24..30d54b2 100644 --- a/src/pages/delivergoods/query.vue +++ b/src/pages/delivergoods/query.vue @@ -174,11 +174,14 @@ deliverKeyName: '' } }, - + computed: { ...mapGetters(['userInfo']), isAdmin() { - return this.userInfo.userCompany ? this.userInfo.userCompany.isAdmin : false + if (this.userInfo.oaPermissions) { + return this.userInfo.oaPermissions.bF_IsDeliverManage ? true : false + } + return false }, }, onShow() { @@ -187,7 +190,9 @@ onReady() { this.$refs.formRef.setRules(this.rules); }, - onLoad() { + onLoad(options) { + // this.isAdmin = options.isAdmin + // console.log(options); this.Getdrivers() this.getCustomer() this.GetDriversOfWithin7days() @@ -448,8 +453,9 @@ if (this.deliverKeyID) { data.deliverKeyID = this.deliverKeyID } + console.log(this.isAdmin); let getListApi = null - if (this.isAdmmin) { + if (this.isAdmin) { getListApi = this.$api.GetDeliverPlans } else { getListApi = this.$api.workerGetDeliverPlans -- Gitblit v1.9.1