|
@@ -48,6 +48,10 @@ export default {
|
|
|
* @param {*} projectId 项目ID
|
|
|
*/
|
|
|
async projectPermission(projectId){
|
|
|
+ const user = Store.state.user.userinfo
|
|
|
+ if(user.roleType){
|
|
|
+ return true
|
|
|
+ }
|
|
|
if(!projectId){
|
|
|
return true
|
|
|
}
|
|
@@ -81,7 +85,7 @@ export default {
|
|
|
* @param {String} str
|
|
|
*/
|
|
|
FunPermissions(str){
|
|
|
- // return true
|
|
|
+ return true
|
|
|
const user = Store.state.user.userinfo
|
|
|
if(user.roleType){
|
|
|
return true
|
|
@@ -95,10 +99,13 @@ export default {
|
|
|
* @param {*} type //类型,1是产品类别,2是产品
|
|
|
*/
|
|
|
async producePermission(id,type){
|
|
|
+ const user = Store.state.user.userinfo
|
|
|
+ if(user.roleType){
|
|
|
+ return true
|
|
|
+ }
|
|
|
if(!id || !type){
|
|
|
return false
|
|
|
}
|
|
|
- const user = Store.state.user.userinfo
|
|
|
var data = {}
|
|
|
if(type == 2){
|
|
|
var str = sessionStorage.getItem('product')
|