1000210331_edit.jsp 1.4 KB

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