|
@@ -24,7 +24,7 @@ module.exports = app => {
|
|
|
|
|
|
async getStageData(sid) {
|
|
|
const data = await this.getAllDataByCondition({where: { sid: sid }});
|
|
|
- if (this.ctx.stage.readOnly && this.ctx.stage.status !== auditConst.status.checked) {
|
|
|
+ if (this.ctx.stage && this.ctx.stage.readOnly && this.ctx.stage.status !== auditConst.status.checked) {
|
|
|
for (const d of data) {
|
|
|
const his = d.shistory ? JSON.parse(d.shistory) : [];
|
|
|
const h = this.ctx.helper._.find(his, {
|