缴费,案件详情问题处理
This commit is contained in:
@@ -47,4 +47,26 @@ export function checkRole(value) {
|
||||
console.error(`need roles! Like checkRole="['admin','editor']"`)
|
||||
return false
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
}
|
||||
|
||||
/**
|
||||
* 状态权限校验
|
||||
* @param {Number} value 校验值
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
export function statusRole(value) {
|
||||
let caseStatusStr = sessionStorage.getItem('caseStatus');
|
||||
let caseStatus = [];
|
||||
caseStatus = JSON.parse(caseStatusStr);
|
||||
if (caseStatus.length == 0) {
|
||||
return false
|
||||
}
|
||||
if (caseStatus.includes(value)) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
>>>>>>> 0ca62df (缴费,案件详情问题处理)
|
||||
}
|
||||
Reference in New Issue
Block a user