1000110004_edit.jsp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div id="space-content" style="background-color: #e8edf7;">
  6. <el-container class="space-container">
  7. <div class="space-aside-midel">
  8. <div class="aside-midel-tree niceScrollAuto" style="height: 100%;">
  9. <el-tree class="filter-tree" :data="departmentList" empty-text="数据加载中" default-expand-all @node-click="treeNodeClick">
  10. </el-tree>
  11. </div>
  12. </div>
  13. <div class="space-tbs have-midel-rigth">
  14. <iframe class="have-midel-rigth-iframe" :src="winSrc"></iframe>
  15. </div>
  16. </el-container>
  17. </div>
  18. </body>
  19. <script type="text/javascript">
  20. space.vue = new Vue({
  21. el: space.appContent,
  22. data() {
  23. return {
  24. winSrc: undefined,
  25. rightURI: '@service{ name:`department_list_right`, page:`department_list_right` }@',
  26. departmentList: [],
  27. };
  28. },
  29. methods: {
  30. initDepartmentData() {
  31. var _this = this;
  32. space.utils.ajax({
  33. url: '@service{ name:`department_list` }@',
  34. dataType: 'json',
  35. callback: function(data) {
  36. _this.departmentList = data.data;
  37. }
  38. });
  39. },
  40. treeNodeClick(data) {
  41. if(space.utils.notNull(data.value) && data.value != "-1") {
  42. space.plugins.loading.top.show();
  43. this.winSrc = space.utils.appendRandom(this.rightURI + "&departmentid=" + data.value);
  44. } else {
  45. this.winSrc = space.utils.appendRandom(this.rightURI);
  46. }
  47. }
  48. },
  49. created: function() {
  50. this.winSrc = this.rightURI;
  51. }
  52. })
  53. // 树数据
  54. function resultCallback() {
  55. space.vue.initDepartmentData();
  56. }
  57. </script>
  58. </html>