Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个小bug #4

Open
578394545 opened this issue Feb 3, 2018 · 0 comments
Open

一个小bug #4

578394545 opened this issue Feb 3, 2018 · 0 comments

Comments

@578394545
Copy link

578394545 commented Feb 3, 2018

bug描述:
在办公管理-通知公告菜单中,选择任意公告点击编辑按钮,弹出窗中类型项下拉菜单,显示值为列表读取的最后一条,并非当前数据对应的类型(如第一条数据“火箭五连败”类型为活动通告,但打开编辑窗口显示为会议通告)。
修复建议:
controller部分:在后台读取字典时,对应的setRemark,设置值为“selected”,代码如下:
for (DictDO dictDO:dictDOS){
if(type.equals(dictDO.getValue())){
dictDO.setRemarks("selected");
}
}
html部分:将代码
th:each="oaNotifyType : ${oaNotifyTypes}" th:value="${oaNotifyType.value}" th:text="${oaNotifyType.name}" th:if="${oaNotifyType.remarks ==checked}" th:selected="selected">
改为:
th:each="oaNotifyType : ${oaNotifyTypes}" th:value="${oaNotifyType.value}" th:text="${oaNotifyType.name}" th:selected="${oaNotifyType.remarks}">
经调试测试,可显示正确的类型项

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant