| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <html>
- <head>
- </head>
- <body>
- <div id="space-content" style="background-color: #e8edf7;">
- <el-container class="space-container">
- <div class="space-aside-midel">
- <div class="aside-midel-tree niceScrollAuto" style="height: 100%;">
- <el-tree class="filter-tree" :data="departmentList" empty-text="数据加载中" default-expand-all @node-click="treeNodeClick">
- </el-tree>
- </div>
- </div>
- <div class="space-tbs have-midel-rigth">
- <iframe class="have-midel-rigth-iframe" :src="winSrc"></iframe>
- </div>
- </el-container>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- winSrc: undefined,
- rightURI: '@service{ name:`department_list_right`, page:`department_list_right` }@',
- departmentList: [],
- };
- },
- methods: {
- initDepartmentData() {
- var _this = this;
- space.utils.ajax({
- url: '@service{ name:`department_list` }@',
- dataType: 'json',
- callback: function(data) {
- _this.departmentList = data.data;
- }
- });
- },
- treeNodeClick(data) {
- if(space.utils.notNull(data.value) && data.value != "-1") {
- space.plugins.loading.top.show();
- this.winSrc = space.utils.appendRandom(this.rightURI + "&departmentid=" + data.value);
- } else {
- this.winSrc = space.utils.appendRandom(this.rightURI);
- }
- }
- },
- created: function() {
- this.winSrc = this.rightURI;
- }
- })
- // 树数据
- function resultCallback() {
- space.vue.initDepartmentData();
- }
- </script>
- </html>
|