|
@@ -1617,10 +1617,7 @@ module.exports = app => {
|
|
|
async updateCustNode(ctx) {
|
|
|
const params = JSON.parse(ctx.request.body.params);
|
|
|
// console.log(params);
|
|
|
- // const custId = this.ctx.session.sessionUser.accountId;
|
|
|
- const newNodeItems = params.nodeItems;
|
|
|
- const custSelectKeys = params.custSelectKeys;
|
|
|
- // const rst = await ctx.service.rptTreeNodeCust.updateCustNode(custId, newNodeItems, custSelectKeys);
|
|
|
+ const newNodeItems = JSON.stringify(params.nodeItems);
|
|
|
const rst = await ctx.service.rptTreeNodeCust.updateCustNodeByTenderId(params.tender_id, newNodeItems);
|
|
|
// console.log(rst);
|
|
|
ctx.body = { data: rst };
|