|
@@ -329,7 +329,7 @@ class StageIm {
|
|
|
(!im.code || im.code === d.code) &&
|
|
|
(!im.name || im.name === d.name) &&
|
|
|
(!im.unit || im.unit === d.unit) &&
|
|
|
- self.ctx.helper.checkZero(self.ctx.helper.sub(im[up_field], d[up_field])) &&
|
|
|
+ self.ctx.helper.checkZero(self.ctx.helper.sub(im[self.up_field], d[self.up_field])) &&
|
|
|
(!im.pid || im.pid === d.pid) &&
|
|
|
(!im.pos_name || im.pos_name === d.pos_name);
|
|
|
});
|
|
@@ -340,7 +340,7 @@ class StageIm {
|
|
|
(!im.code || im.code === d.code) &&
|
|
|
(!im.name || im.name === d.name) &&
|
|
|
(!im.unit || im.unit === d.unit) &&
|
|
|
- self.ctx.helper.checkZero(self.ctx.helper.sub(im[up_field], d[up_field])) &&
|
|
|
+ self.ctx.helper.checkZero(self.ctx.helper.sub(im[self.up_field], d[self.up_field])) &&
|
|
|
(!im.pid || im.pid === d.pid) &&
|
|
|
(!im.pos_name || im.pos_name === d.pos_name);
|
|
|
});
|
|
@@ -839,7 +839,7 @@ class StageIm {
|
|
|
let im = nodeImData.find(function(d) {
|
|
|
return d.lid === node.id &&
|
|
|
d.code === p.b_code && p.name === d.name && p.unit === d.unit &&
|
|
|
- self.ctx.helper.checkZero(self.ctx.helper.sub(p[up_field], d[up_field]));
|
|
|
+ self.ctx.helper.checkZero(self.ctx.helper.sub(p[self.up_field], d[self.up_field]));
|
|
|
});
|
|
|
if (!im) {
|
|
|
const peg = this._getPegNode(node);
|