|
@@ -121,7 +121,7 @@ module.exports = app => {
|
|
|
change.class = classIndex ? classIndex : changeConst.class.A.value;
|
|
|
const qualityIndex = planInfo.quality && this._.indexOf(changeConst.qualityName, planInfo.quality) !== -1 ? this._.indexOf(changeConst.qualityName, planInfo.quality) : 0;
|
|
|
change.quality = qualityIndex ? qualityIndex : changeConst.quality.common.value;
|
|
|
- change.content = planInfo.reason + '\r\n' + planInfo.content;
|
|
|
+ change.content = planInfo.reason.replace(/[\r\n]/g, '\r\n') + '\r\n' + planInfo.content.replace(/[\r\n]/g, '\r\n');
|
|
|
}
|
|
|
}
|
|
|
const operate = await this.transaction.insert(this.tableName, change);
|