Нет описания

allindex.js 1.2KB

123456789101112131415161718192021222324252627282930
  1. ;
  2. spa_define(function () {
  3. return $.use(["spa", "pagedatagrid", "util"], function (spa, pdgf, util) {
  4. return {
  5. main: function () {
  6. var root = spa.findInMain(".sys_customer_allindex");
  7. var pdg = pdgf.build(root);
  8. pdg.code.shell("showDay", function (env) {
  9. if (env.cd && env.cd[this.k]) {
  10. var day = env.cd[this.k];
  11. return day.substring(0, 4) + "-" + day.substring(4, 6) + "-" + day.substring(6, 8);
  12. }
  13. return "";
  14. });
  15. pdg.code.listen($.dict.doTransfer);
  16. root.find(".opt-query").on("click", function () {
  17. pdg.load();
  18. });
  19. pdg.load();
  20. var event = function () {
  21. root.find(".table-opt a.name").on("click", function () {
  22. var professorId = $(this).parent().attr("professorId");
  23. window.open('http://www.ekexiu.com/information-brow.html?professorId=' + professorId);
  24. });
  25. };
  26. pdg.code.listen(event);
  27. }
  28. };
  29. });
  30. });