|
@@ -77,7 +77,7 @@ module.exports = app => {
|
|
|
const cBills = await this.db.get(this.tableName, this.getCondition({mid: mid, kid: kid}));
|
|
|
// 判断父节点是否是变更新建的
|
|
|
const parentBills = await this.db.get(this.tableName, this.getCondition({
|
|
|
- mid: cBills[this.setting.pid], kid: kid,
|
|
|
+ mid: mid, kid: cBills[this.setting.pid],
|
|
|
}));
|
|
|
this.newBills = parentBills !== null && parentBills !== undefined;
|
|
|
return cBills;
|
|
@@ -524,7 +524,7 @@ module.exports = app => {
|
|
|
}
|
|
|
// 选中节点--父节点 只有一个子节点时,应升级is_leaf
|
|
|
if (parent && childCount === count) {
|
|
|
- const updateParent = {id: parent.id };
|
|
|
+ const updateParent = { id: parent.id };
|
|
|
updateParent[this.setting.isLeaf] = true;
|
|
|
await this.transaction.update(this.tableName, updateParent);
|
|
|
}
|