menuGrpAdd.ss.jsp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div id="app" class="form-container" >
  6. <div class="content-div" ssFith="true">
  7. <table class='form'>
  8. <tr>
  9. <th style="width:87px">名称</th>
  10. <td>
  11. <inper.ss name="newMc" desc="名称" width="400px" val="${newMc}" />
  12. </td>
  13. </tr>
  14. <tr>
  15. <th style="width:102px">业务名</th>
  16. <td>
  17. <%-- <@input type="text" name="bizName"/>--%>
  18. <objp.ss name="bizName" cb="biz" inp="true"/>
  19. </td>
  20. </tr>
  21. </table>
  22. </div>
  23. <div class='bottom-div'>
  24. <%-- 再改为新UI写法 Ben(20251225) <input type="button" value="确认" class="bottom-button" onclick="confirm()"/> --%>
  25. <%-- onclick="confirm(true)。Lin --%>
  26. <ss-bottom-button
  27. text="确认"
  28. onclick="confirm()"
  29. icon-class="bottom-div-save"
  30. ></ss-bottom-button>
  31. <%-- 改为新UI写法 <input type="button" value="取消" class="bottom-button" onclick="ss.display.closeDialog()"/> --%>
  32. <ss-bottom-button
  33. text="取消"
  34. onclick='ss.display.closeDialog();'
  35. icon-class="bottom-div-close"
  36. ></ss-bottom-button>
  37. </div>
  38. <script>
  39. /* 改,去掉 bool_,都是 true。Lin
  40. function confirm(bool_) {
  41. if (bool_) {
  42. */function confirm() {
  43. var pw = wd.display.getwdDialogOpener();
  44. var data = { newMc: document.querySelector("[name=newMc]").value, bizName: document.querySelector("[name=bizName]").value };
  45. pw[wd.display.getwdDialogId() + wd.display.callback_suffix]&&pw[wd.display.getwdDialogId() + wd.display.callback_suffix](data);
  46. // } // 去掉,去掉 bool_,都是 true。Lin
  47. wd.display.closeDialog();
  48. }
  49. </script>
  50. </div>
  51. </body>
  52. </html>