Forráskód Böngészése

Merge branch 'master' of http://120.55.44.4:10080/xujunjie/BomApp

xujunjie 1 éve
szülő
commit
6d6c8a72ee
1 módosított fájl, 8 hozzáadás és 0 törlés
  1. 8 0
      pages/audit/detail.vue

+ 8 - 0
pages/audit/detail.vue

@@ -84,12 +84,17 @@
 					},
 				},
 				isAuditor: false,
+				options: {}
 			};
 		},
 		onLoad(options) {
 			this.templateNodeId = options.templateNodeId
 			this.versionId = options.versionId
 			this.projectId = Number(options.projectId)
+			if(!uni.getStorageSync('token')){
+				uni.setStorageSync("token", options['JWT-TOKEN']);
+			}
+			this.options = options
 			this.init()
 		},
 		methods: {
@@ -221,6 +226,9 @@
 							this.isAuditor = true;
 						}
 					}
+					if(this.options['JWT-TOKEN']){
+						this.isAuditor = true;
+					}
 				}
 			},
 			toExcelDetail() {