MaiXinRong 1 年之前
父节点
当前提交
de8c5a1d16
共有 1 个文件被更改,包括 10 次插入0 次删除
  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));
         });