| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <html>
- <head>
- </head>
- <body>
- <div id="space-content">
- <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="数据加载中" @node-click="treeNodeClick"
- default-expand-all>
- </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:`post_list`, page:`post_list` }@',
- departmentList: [],
- };
- },
- methods: {
- initDepartmentData: function () {
- 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)) {
- space.plugins.loading.top.show();
- this.winSrc = space.utils.appendRandom(this.rightURI + "&departmentid=" + data.value);
- }
- }
- },
- created: function () {
- this.initDepartmentData();
- this.winSrc = this.rightURI;
- }
- })
- </script>
- </html>
|