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