|
@@ -112,6 +112,16 @@ module.exports = options => {
|
|
|
material.curTimes = material.status === status.checkNo ? material.times - 1 : material.times;
|
|
|
material.curOrder = material.status === status.checked ? _.max(_.map(material.auditors, 'order')) : material.curAuditor.order - 1;
|
|
|
material.filePermission = false;
|
|
|
+ } else if (this.session.sessionUser.is_admin) {
|
|
|
+ material.curTimes = material.times;
|
|
|
+ if (material.status === status.uncheck || material.status === status.checkNo) {
|
|
|
+ material.curOrder = 0;
|
|
|
+ } else if (material.status === status.checked) {
|
|
|
+ material.curOrder = _.max(_.map(material.auditors, 'order'));
|
|
|
+ } else {
|
|
|
+ material.curOrder = material.curAuditor.order;
|
|
|
+ }
|
|
|
+ material.filePermission = true;
|
|
|
} else { // 其他不可见
|
|
|
throw '您无权查看该数据';
|
|
|
}
|