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