.
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<nav class="menu" data-ride="menu">
|
||||
<ul class="nav nav-primary">
|
||||
<li class="active show nav-parent" style="width: 100%;">
|
||||
<a href="javascript:;"><i class="icon icon-tasks"></i> <span v-text="pageId"></span></a>
|
||||
<!--<a href="javascript:;"><i class="icon icon-tasks"></i> <span v-text="pageId"></span></a>-->
|
||||
<ul class="nav">
|
||||
<!-- item in menus -->
|
||||
<li v-for="item in menus" @click="loadPage(item)" :class="{active:page.url==item.url}">
|
||||
@@ -89,6 +89,9 @@
|
||||
import { logout } from './api/user.js'
|
||||
let { refresh } = meta
|
||||
let { platList } = plat
|
||||
let { dictData } = dict
|
||||
|
||||
let dictKv = {} //字典数据
|
||||
let vm = new Vue({
|
||||
el: ".container-fluid",
|
||||
data: {
|
||||
@@ -115,11 +118,12 @@
|
||||
{url:"/qtask/debug.html", name:"QTask-Debug", icon:"icon-bug"},
|
||||
]
|
||||
},
|
||||
/*{
|
||||
{
|
||||
name: "其他服务", url: "/plat/db.html", nodes: [
|
||||
{url:"/plat/db.html", name:"文件服务", icon: "icon-database"},
|
||||
{url:"/oth/index.html", name:"业务平台管理", icon: "icon-database"},
|
||||
{url:"/oth/file.html", name:"文件服务", icon: "icon-database"},
|
||||
]
|
||||
},*/
|
||||
},
|
||||
{
|
||||
name: "业务平台", url: "/qtask", nodes: [
|
||||
{url:"/plat/index.html", name:"业务平台", icon:"icon-server"},
|
||||
@@ -138,6 +142,20 @@
|
||||
{url:"/single/metaFlow.html", name:"MetaKit使用", icon:"icon-server"},
|
||||
]
|
||||
},
|
||||
{name: "Zhub", url: "/zhub", nodes: [
|
||||
{url:"/zhub/monitor.html", name:"Monitor", icon:"icon-server"},
|
||||
{url:"/zhub/topic.html", name:"Topics", icon:"icon-server"},
|
||||
{url:"/zhub/delay.html", name:"Delays", icon:"icon-server"},
|
||||
{url:"/zhub/timer.html", name:"Timer", icon:"icon-server"},
|
||||
]
|
||||
},
|
||||
{name: "微信公众号", url: "/weixin", nodes: [
|
||||
{url:"/weixin/wxapp.html", name:"公众号管理", icon:"icon-server"},
|
||||
{url:"/weixin/user.html", name:"用户管理", icon:"icon-server"},
|
||||
{url:"/weixin/templateMessage.html", name:"模板消息", icon:"icon-server"},
|
||||
{url:"/weixin/timer.html", name:"Timer", icon:"icon-server"},
|
||||
]
|
||||
},
|
||||
|
||||
],
|
||||
menus: {},
|
||||
@@ -179,17 +197,36 @@
|
||||
refresh().then(res => {
|
||||
platList().then(res => { // 刷新平台列表缓存
|
||||
let rows = res.rows
|
||||
this.sysPlats = rows;
|
||||
red.setData("sysPlats", rows);
|
||||
this.sysPlats = rows
|
||||
red.setData("sysPlats", rows)
|
||||
})
|
||||
this.loadDictData()
|
||||
red.showOk()
|
||||
})
|
||||
},
|
||||
logout() {
|
||||
logout()
|
||||
},
|
||||
|
||||
loadDictData() {
|
||||
|
||||
|
||||
dictData().then(res => {
|
||||
let data = {}
|
||||
for (let k in res) {
|
||||
let vs = {}
|
||||
for(let i in res[k]) {
|
||||
vs[res[k][i]['value']] = res[k][i]['label']
|
||||
}
|
||||
data[k] = vs
|
||||
}
|
||||
red.setData("dictKv", data)
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.loadDictData()
|
||||
|
||||
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'])
|
||||
|
||||
Reference in New Issue
Block a user