MaiXinRong 1 year ago
parent
commit
de8c5a1d16
1 changed files with 10 additions and 0 deletions
  1. 10 0
      app/lib/rm/change.js

+ 10 - 0
app/lib/rm/change.js

@@ -17,7 +17,17 @@ class rptMemChange extends RptMemBase {
         super(ctx, bindData);
     }
 
+    _getChangeConstName(define, value) {
+        for (const prop in define) {
+            if (define[prop].value === value) {
+                return define[prop].name;
+            }
+        }
+        return '';
+    }
+
     async _anaylisChange(change) {
+        const self = this;
         const types = this.ctx.helper._.map(change.type.split(','), function (t) {
             return self._getChangeConstName(changeConst.type, this.ctx.helper._.toInteger(t));
         });