起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9104|回复: 13

[结贴] 树形新增子不在对应位置上

[复制链接]

84

主题

260

帖子

921

积分

高级会员

Rank: 4

积分
921
QQ
发表于 2016-11-3 10:54:32 | 显示全部楼层 |阅读模式
版本: BeX5V3.5 小版本号: 3.5
数据库: Oracle 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 7 浏览器: Chrome
如图所示增加了两条记录,1号增加在人工费下,2号增加在直接工程费下;如果先增加2号,则2号正常显示在专业分包费后面,但是如果先在人工费下面增加了1号,再在直接工程费下增加2号是不能显示在专业分包费后面,总是显示在新增加的1号数据后面,这个增么解决。
树形录入.png

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-11-3 13:25:33 | 显示全部楼层
数据保存后,刷新数据显示的正确吗?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

84

主题

260

帖子

921

积分

高级会员

Rank: 4

积分
921
QQ
 楼主| 发表于 2016-11-3 14:27:57 | 显示全部楼层
jishuang 发表于 2016-11-3 13:25
数据保存后,刷新数据显示的正确吗?

正常,但是我不能保存,客户需求,这个时候不准保存
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-11-3 15:27:25 | 显示全部楼层
3.6版本中本地测试没问题,都是通过新增子的方式添加的数据
tree.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

84

主题

260

帖子

921

积分

高级会员

Rank: 4

积分
921
QQ
 楼主| 发表于 2016-11-3 15:49:38 | 显示全部楼层
jishuang 发表于 2016-11-3 15:27
3.6版本中本地测试没问题,都是通过新增子的方式添加的数据

我这是3.5,不能换3.6,而且我的树是通过加载json字符串生成的,这有没有影响
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-11-3 16:55:37 | 显示全部楼层
而且我的树是通过加载json字符串生成的具体怎么操作的?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

84

主题

260

帖子

921

积分

高级会员

Rank: 4

积分
921
QQ
 楼主| 发表于 2016-11-3 19:07:50 | 显示全部楼层
jishuang 发表于 2016-11-3 16:55
而且我的树是通过加载json字符串生成的具体怎么操作的?

{"rows":[{"fParentID":"38A02083A15C49529ADFB19C71892735","fXH":"一","fPARENTCODE":"chengbenkemu","fXMDW":"直接工程费","fSequence":"1","PM_CBCS_CB":"F484A49715F2450EA66D59953FB702C0","version":"0","fCODE":"01","fJB":"1","rows":[{"fParentID":"F484A49715F2450EA66D59953FB702C0","fXH":"1","fPARENTCODE":"01","fXMDW":"人工费","fSequence":"2","PM_CBCS_CB":"B0E0CFB9C3FF4C99B6D46847656CE224","version":"0","fCODE":"0101","fJB":"2"},{"fParentID":"F484A49715F2450EA66D59953FB702C0","fXH":"2","fPARENTCODE":"01","fXMDW":"主要材料费","fSequence":"5","PM_CBCS_CB":"1C630776C07049E7A6BD681969972503","version":"0","fCODE":"0102","fJB":"2"},{"fParentID":"F484A49715F2450EA66D59953FB702C0","fXH":"3","fPARENTCODE":"01","fXMDW":"大型机械费","fSequence":"13","PM_CBCS_CB":"04DAA42457534D839B1DF21166D317D4","version":"0","fCODE":"0103","fJB":"2"},{"fParentID":"F484A49715F2450EA66D59953FB702C0","fXH":"4","fPARENTCODE":"01","fXMDW":"专业分包费","fSequence":"17","PM_CBCS_CB":"DEB364BF370046DD8DCEF5D18F297F2D","version":"0","fCODE":"0104","fJB":"2"}]},{"fParentID":"38A02083A15C49529ADFB19C71892735","fXH":"二","fPARENTCODE":"chengbenkemu","fXMDW":"措施费","fSequence":"18","PM_CBCS_CB":"8D3CF95F65D74DF7B8BC0E3F1FE57667","version":"0","fCODE":"02","fJB":"1","rows": [{"fParentID":"8D3CF95F65D74DF7B8BC0E3F1FE57667","fXH":"1","fPARENTCODE":"02","fXMDW":"安全文明施工费","fSequence":"19","PM_CBCS_CB":"86510B95E5184FC7AF0BAC29EA4698B1","version":"0","fCODE":"0201","fJB":"2"},{"fParentID":"8D3CF95F65D74DF7B8BC0E3F1FE57667","fXH":"2","fPARENTCODE":"02","fXMDW":"周转工具、材料费","fSequence":"20","PM_CBCS_CB":"1FDF530AFBD0465DB3C586D826335715","version":"0","fCODE":"0202","fJB":"2"},{"fParentID":"8D3CF95F65D74DF7B8BC0E3F1FE57667","fXH":"3","fPARENTCODE":"02","fXMDW":"其他费用","fSequence":"21","PM_CBCS_CB":"2CCCF13A0FC94379BC1FA71E8E22CBC3","version":"0","fCODE":"0203","fJB":"2"}]},{"fParentID":"38A02083A15C49529ADFB19C71892735","fXH":"三","fPARENTCODE":"chengbenkemu","fXMDW":"其他项目费用","fSequence":"24","PM_CBCS_CB":"14478A21526C4B2AA4226B9E942489B4","version":"0","fCODE":"03","fJB":"1","rows": [{"fParentID":"14478A21526C4B2AA4226B9E942489B4","fXH":"1","fPARENTCODE":"03","fXMDW":"暂列金","fSequence":"25","PM_CBCS_CB":"51E8CC9E5718421C91BC6D523F86B1FD","version":"0","fCODE":"0301","fJB":"2"},{"fParentID":"14478A21526C4B2AA4226B9E942489B4","fXH":"2","fPARENTCODE":"03","fXMDW":"总包管理费","fSequence":"26","PM_CBCS_CB":"07F39DDF311A44A1B0C1FBBA25E1794C","version":"0","fCODE":"0302","fJB":"2"},{"fParentID":"14478A21526C4B2AA4226B9E942489B4","fXH":"3","fPARENTCODE":"03","fXMDW":"配合其他承包商的配合费","fSequence":"27","PM_CBCS_CB":"CC13BDD564EE4312B0DCEFEFA3F71B1D","version":"0","fCODE":"0303","fJB":"2"},{"fParentID":"14478A21526C4B2AA4226B9E942489B4","fXH":"4","fPARENTCODE":"03","fXMDW":"其他费用","fSequence":"28","PM_CBCS_CB":"EDFD079A7ADF4682B38419809343E395","version":"0","fCODE":"0304","fJB":"2"}]},{"fParentID":"38A02083A15C49529ADFB19C71892735","fXH":"四","fPARENTCODE":"chengbenkemu","fXMDW":"间接费","fSequence":"29","PM_CBCS_CB":"FF3834C7C9874A3F8C2DAA6CEF7EF6FA","version":"0","fCODE":"04","fJB":"1","rows": [{"fParentID":"FF3834C7C9874A3F8C2DAA6CEF7EF6FA","fXH":"1","fPARENTCODE":"04","fXMDW":"现场管理费","fSequence":"30","PM_CBCS_CB":"45BF4994A7E64C89B77413C91F70B26B","version":"0","fCODE":"0401","fJB":"2"},{"fParentID":"FF3834C7C9874A3F8C2DAA6CEF7EF6FA","fXH":"2","fPARENTCODE":"04","fXMDW":"财务费","fSequence":"31","PM_CBCS_CB":"FA7F932ABC064469805B5DA8B5E0C8CA","version":"0","fCODE":"0402","fJB":"2"},{"fParentID":"FF3834C7C9874A3F8C2DAA6CEF7EF6FA","fXH":"3","fPARENTCODE":"04","fXMDW":"质量安全基金","fSequence":"32","PM_CBCS_CB":"59603DBD0A974FB7B5EB22E97FB29743","version":"0","fCODE":"0403","fJB":"2"},{"fParentID":"FF3834C7C9874A3F8C2DAA6CEF7EF6FA","fXH":"4","fPARENTCODE":"04","fXMDW":"科研基金","fSequence":"33","PM_CBCS_CB":"E561151EA30F4528978629C3CB66CC3F","version":"0","fCODE":"0404","fJB":"2"},{"fParentID":"FF3834C7C9874A3F8C2DAA6CEF7EF6FA","fXH":"5","fPARENTCODE":"04","fXMDW":"保险费","fSequence":"34","PM_CBCS_CB":"6F0C6788055F4D3487DC16E0B12F0CF3","version":"0","fCODE":"0405","fJB":"2"},{"fParentID":"FF3834C7C9874A3F8C2DAA6CEF7EF6FA","fXH":"6","fPARENTCODE":"04","fXMDW":"其他缴纳费用","fSequence":"35","PM_CBCS_CB":"95840E5942634111B66587C170BAEE2F","version":"0","fCODE":"0406","fJB":"2"}]},{"fParentID":"38A02083A15C49529ADFB19C71892735","fXH":"五","fPARENTCODE":"chengbenkemu","fXMDW":"工程水电费","fSequence":"36","PM_CBCS_CB":"3B5B61B2569C41E69C4EB4CBEB988C60","version":"0","fCODE":"05","fJB":"1"},{"fParentID":"38A02083A15C49529ADFB19C71892735","fXH":"六","fPARENTCODE":"chengbenkemu","fXMDW":"税金","fSequence":"37","PM_CBCS_CB":"09517CCBC8C0427B9C5DB49BB2CC7B72","version":"0","fCODE":"06","fJB":"1"},{"fParentID":"38A02083A15C49529ADFB19C71892735","fXH":"七","fPARENTCODE":"chengbenkemu","fXMDW":"合计","fSequence":"38","PM_CBCS_CB":"08713EA7E6F14CF2A6CB99C601C4AF0D","version":"0","fCODE":"07","fJB":"1"}]}


var resultData = JSON.parse(PM.loadCOSTDataByDict(this.getContext(), "loadCOSTDataByDict_design"));
                var son_data = this.comp("detailData");
                son_data.loadData(resultData, false);
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-11-4 09:58:27 | 显示全部楼层
3.5版本中loadData加载的数据新增子
tree.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

84

主题

260

帖子

921

积分

高级会员

Rank: 4

积分
921
QQ
 楼主| 发表于 2016-11-4 15:17:55 | 显示全部楼层
jishuang 发表于 2016-11-4 09:58
3.5版本中loadData加载的数据新增子

为什么3.5版本新增跟3.4的效果不一样呢,我想让他在同级的最后显示。
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2016-11-4 17:29:08 | 显示全部楼层
你好楼主,您反馈的这个现象通过验证是产品缺陷,我们已提交到产品组(内部编号:2016110400008),感谢楼主的支持与配合。
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-27 12:01 , Processed in 0.059632 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表