From e49e0e98c6776900bc3578ed2fe880bfceeb1c2c Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Wed, 08 Nov 2023 15:53:26 +0800
Subject: [PATCH] fix:查看详情权限修改
---
pages/actionChange/workOrderDetails/index.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/pages/actionChange/workOrderDetails/index.vue b/pages/actionChange/workOrderDetails/index.vue
index 887b070..de61d5b 100644
--- a/pages/actionChange/workOrderDetails/index.vue
+++ b/pages/actionChange/workOrderDetails/index.vue
@@ -58,13 +58,15 @@
//������������������
await this.$onLaunched
this.userInfor = JSON.parse(uni.getStorageSync('userInfor') || 'null')
+ console.log('������������������������', this.userInfor)
if (this.option.type === 'share' && this.userInfor) {
let params = {
allocationNum: this.basicInfor.allocationNum,
userId: this.userInfor.userId
}
this.$http.httpGet('/allocationApp/authority', params).then(res => {
- if (res.data === 3) {
+ console.log('������������������', res)
+ if (res.data.code === 3) {
uni.showModal({
content: '���������������������������������������������',
showCancel: false,
@@ -77,15 +79,20 @@
}
},
})
- } else if (res.data === 1) {
+ } else if (res.data.code === 1) {
// ������������
this.basicInfor.pageState = 'edit'
+ this.basicInfor.stateName = res.data.name
this.isShow = true
- } else if (res.data === 2) {
+ } else if (res.data.code === 2) {
// ���������
this.isShow = true
this.basicInfor.pageState = 'view'
+ this.basicInfor.stateName = res.data.name
}
+ }).catch(errors => {
+ console.log('���������������������', errors)
+ console.log('���������������������params', params)
})
} else {
this.isShow = true
--
Gitblit v1.8.0