.
This commit is contained in:
@@ -95,13 +95,14 @@
|
||||
<!--<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>-->
|
||||
<script type="module">
|
||||
import { logout } from './api/user.js'
|
||||
let { platList } = plat
|
||||
/*import meta from './api/meta.js'*/
|
||||
//import { getServiceInfo, getServiceDetail, getServiceList } from './api/meta.js'
|
||||
var vm = new Vue({
|
||||
el: ".container-fluid",
|
||||
data: {
|
||||
sysPlat: red.getData("sysPlat"),
|
||||
sysPlats: red.getData("sysPlats"),
|
||||
sysPlat: red.getData('sysPlat'),
|
||||
sysPlats: red.getData('sysPlats'),
|
||||
pages: [
|
||||
/*{name: "DDL", url: "/qtask/ddl.html"},*/
|
||||
{name: "MetaData", url: "/meta", nodes: [
|
||||
@@ -132,16 +133,9 @@
|
||||
{name: "关于", url: "/single/about.html"}
|
||||
|
||||
],
|
||||
menus: red.getData("menus", {name: "MetaData", url: "/meta", nodes: [
|
||||
/*{url:"/metadata/metatable/list.html", name:"TableList"},*/
|
||||
{url:"/metadata/metatable/metaTable.html", name:"MetaTable"},
|
||||
/*{url:"/metadata/metaLink.html", name:"MetaLink"},*/
|
||||
{url:"/metadata/metaService.html", name:"MetaService"},
|
||||
{url:"/metadata/dataList.html", name:"数据查询"},
|
||||
]
|
||||
}),
|
||||
page: red.getData("page", {url:"/qtask/list.html", name:"QTask"}),
|
||||
pageId: red.getData("pageId", "QTask")
|
||||
menus: {},
|
||||
page: {},
|
||||
pageId: ''
|
||||
},
|
||||
watch: {
|
||||
page: function () {
|
||||
@@ -174,6 +168,9 @@
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.menus = red.getData('menus', this.pages[0]['nodes'])
|
||||
this.page = red.getData('page', this.menus[0])
|
||||
this.pageId = red.getData("pageId", this.page['mame'])
|
||||
//绑定事件
|
||||
$('.menu .nav').on('click', 'li:not(.nav-parent) > a', function() {
|
||||
var $this = $(this);
|
||||
|
||||
Reference in New Issue
Block a user