mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化模板信息
This commit is contained in:
parent
e14f624b86
commit
659da36d6d
@ -1,4 +1,4 @@
|
|||||||
<div id="breadcrumb" class="border-bottom white-bg" v-if="breadCrumbs.length > 0">
|
<div id="breadcrumb" class="border-bottom white-bg" v-if="breadCrumbs.length > 0 && indexPage == '1'">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="nav-item" v-for="(item,index) in breadCrumbs">
|
<li class="nav-item" v-for="(item,index) in breadCrumbs">
|
||||||
<span class="nav-link nav-link-breadcrumb" v-bind:class="{'active':item.active=='1'}" aria-current="page" @click="_changeSmallTab(item)">{{item.pageName}}
|
<span class="nav-link nav-link-breadcrumb" v-bind:class="{'active':item.active=='1'}" aria-current="page" @click="_changeSmallTab(item)">{{item.pageName}}
|
||||||
|
|||||||
@ -5,7 +5,8 @@
|
|||||||
var vm = new Vue({
|
var vm = new Vue({
|
||||||
el: '#breadcrumb',
|
el: '#breadcrumb',
|
||||||
data: {
|
data: {
|
||||||
breadCrumbs: []
|
breadCrumbs: [],
|
||||||
|
indexPage: 1,
|
||||||
},
|
},
|
||||||
mounted: function() {
|
mounted: function() {
|
||||||
//this._freshBreadCrumbByUrl();
|
//this._freshBreadCrumbByUrl();
|
||||||
@ -14,7 +15,25 @@
|
|||||||
// e.target matches elem
|
// e.target matches elem
|
||||||
vm.breadCrumbs = [];
|
vm.breadCrumbs = [];
|
||||||
vm._freshBreadCrumbByUrl();
|
vm._freshBreadCrumbByUrl();
|
||||||
|
|
||||||
|
let _hash = location.hash
|
||||||
|
|
||||||
|
if (!_hash) {
|
||||||
|
vm.indexPage = '0';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (_hash.indexOf('?') != -1) {
|
||||||
|
_hash = _hash.substring(0, _hash.indexOf('?'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!_hash) {
|
||||||
|
vm.indexPage = '0';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
vm.indexPage = '1';
|
||||||
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
_freshBreadCrumbByUrl: function() {
|
_freshBreadCrumbByUrl: function() {
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li v-for="menu in menus" v-bind:class="{ active: menu.active }" :key="menu.id">
|
<li v-for="menu in menus" v-bind:class="{ active: menu.active }" :key="menu.id">
|
||||||
<a v-if="menu.childs != undefined && menu.childs.length >0" href="#" v-on:click="switchMenu(menu.id)">
|
<a v-if="menu.childs != undefined && menu.childs.length >0" href="javascript:void(0)" v-on:click="switchMenu(menu.id)">
|
||||||
<i class="fa " v-bind:class="menu.icon"></i>
|
<i class="fa " v-bind:class="menu.icon"></i>
|
||||||
<span class="nav-label">{{vc.i18n(menu.name)}}</span>
|
<span class="nav-label">{{vc.i18n(menu.name)}}</span>
|
||||||
<span v-if="menu.label != undefined && menu.label != ''" class="float-right label label-primary">{{menu.label}}</span>
|
<span v-if="menu.label != undefined && menu.label != ''" class="float-right label label-primary">{{menu.label}}</span>
|
||||||
|
|||||||
@ -60,7 +60,8 @@
|
|||||||
_menus.sort(function(a, b) {
|
_menus.sort(function(a, b) {
|
||||||
return a.seq - b.seq
|
return a.seq - b.seq
|
||||||
});
|
});
|
||||||
var _currentMenusId = vc.getCurrentMenu() == null ? _menus[0].id : vc.getCurrentMenu();
|
//var _currentMenusId = vc.getCurrentMenu() == null ? _menus[0].id : vc.getCurrentMenu();
|
||||||
|
let _currentMenusId = _menus[0].id;
|
||||||
vm.menus = vm.refreshMenuActive(_menus, _currentMenusId);
|
vm.menus = vm.refreshMenuActive(_menus, _currentMenusId);
|
||||||
vc.setMenus(vm.menus);
|
vc.setMenus(vm.menus);
|
||||||
vm.miniMenu();
|
vm.miniMenu();
|
||||||
|
|||||||
@ -1,20 +1,52 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:vc="http://www.thymeleaf.org">
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>HC智慧物业管理系统</title>
|
<title>HC智慧物业管理系统</title>
|
||||||
<vc:create path="frame/commonTop" location="head"></vc:create>
|
<vc:create path="frame/commonTop" location="head"></vc:create>
|
||||||
|
<!-- import CSS -->
|
||||||
|
|
||||||
<link rel="stylesheet" href="/css/bootstrap/bootstrap.min.css" />
|
<link rel="stylesheet" href="/css/bootstrap/bootstrap.min.css" />
|
||||||
|
<link href="/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
||||||
|
<link href="/css/plugins/select2/select2.min.css" rel="stylesheet">
|
||||||
|
<link href="/css/animate.css" rel="stylesheet" />
|
||||||
|
<link rel="stylesheet" href="/css/bootstrap/bootstrap-datetimepicker.min.css" />
|
||||||
|
<link rel="stylesheet" href="/css/bootstrap/bootstrap-select.min.css" />
|
||||||
<link rel="stylesheet" href="/css/toastr.css" />
|
<link rel="stylesheet" href="/css/toastr.css" />
|
||||||
|
<!-- SUMMERNOTE 富文本组件-->
|
||||||
|
<link href="/css/plugins/summernote/summernote-bs4.min.css" rel="stylesheet">
|
||||||
|
<link href="/css/plugins/jsTree/style.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="/css/vc-ui.css" />
|
<link rel="stylesheet" href="/css/vc-ui.css" />
|
||||||
|
<link rel="stylesheet" href="/css/plugins/bootstrap-submenu/bootstrap-submenu.css">
|
||||||
|
|
||||||
<script src="/js/bootstrap/jquery-3.3.1.min.js"></script>
|
<script src="/js/bootstrap/jquery-3.3.1.min.js"></script>
|
||||||
<script src="/js/vue/vue.min.js"></script>
|
<script src="/js/vue/vue.min.js"></script>
|
||||||
<script src="/js/vue/vue-resource.min.js"></script>
|
<script src="/js/vue/vue-resource.min.js"></script>
|
||||||
<script src="/js/popper.min.js"></script>
|
<script src="/js/popper.min.js"></script>
|
||||||
<script src="/js/bootstrap/bootstrap.min.js"></script>
|
<script src="/js/bootstrap/bootstrap.min.js"></script>
|
||||||
<script src="/js/bootstrap/bootstrap-datetimepicker.js"></script>
|
<script src="/js/bootstrap/bootstrap-datetimepicker.js"></script>
|
||||||
|
<script src="/js/bootstrap/bootstrap-select.min.js"></script>
|
||||||
|
<script src="/js/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
|
||||||
|
<script src="/js/bootstrap/bootstrap-submenu.js"></script>
|
||||||
|
|
||||||
|
<script src="/js/plugins/select2/select2.full.min.js"></script>
|
||||||
|
<script src="/js/plugins/echart/echarts.min.js"></script>
|
||||||
|
<script src="/js/plugins/echart/china.js"></script>
|
||||||
|
|
||||||
|
<script src="/js/plugins/summernote/summernote-bs4.min.js"></script>
|
||||||
|
<script src="/js/plugins/summernote/summernote-zh-CN.min.js"></script>
|
||||||
|
<script src="/js/plugins/xss/xss.min.js"></script>
|
||||||
|
<link href="/css/jquery.step.css" rel="stylesheet" />
|
||||||
|
<script src="/js/jquery.step.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="/css/bootstrap/bootstrap-treeview.min.css" />
|
||||||
|
<script src="/js/bootstrap/bootstrap-treeview.min.js"></script>
|
||||||
|
<script src="/js/plugins/qrcode/qrcode.min.js"></script>
|
||||||
<script src="/js/toastr.min.js"></script>
|
<script src="/js/toastr.min.js"></script>
|
||||||
|
<script src="/js/plugins/jsTree/jstree.min.js"></script>
|
||||||
|
<!-- QQMap 腾讯地图KEY-->
|
||||||
|
<script src="https://map.qq.com/api/gljs?v=1.exp&key="></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="vc-body">
|
<body class="vc-body">
|
||||||
@ -25,39 +57,22 @@
|
|||||||
<div class="border-bottom">
|
<div class="border-bottom">
|
||||||
<vc:create path="frame/nav"></vc:create>
|
<vc:create path="frame/nav"></vc:create>
|
||||||
</div>
|
</div>
|
||||||
<div id="component" class="vc-wrapper vc-content" vc-path="/common/chooseEnterCommunity">
|
<div class="vc-wrapper vc-content padding-top-xs" style="padding-bottom: 0px;">
|
||||||
|
<vc:create path="frame/breadcrumb"></vc:create>
|
||||||
|
</div>
|
||||||
|
<!-- -->
|
||||||
|
<div id="component" class="vc-wrapper vc-content padding-top-xs animated fadeInRight" vc-path="/common/chooseEnterCommunity">
|
||||||
<vc:create path="/pages/property/indexContext"></vc:create>
|
<vc:create path="/pages/property/indexContext"></vc:create>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<vc:create path="frame/copyright"></vc:create>
|
<vc:create path="frame/copyright"></vc:create>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<link href="/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
|
||||||
<link href="/css/plugins/select2/select2.min.css" rel="stylesheet">
|
|
||||||
<link href="/css/animate.css" rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" href="/css/bootstrap/bootstrap-datetimepicker.min.css" />
|
|
||||||
<!-- SUMMERNOTE 富文本组件-->
|
|
||||||
<link href="/css/plugins/summernote/summernote-bs4.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<vc:create path="frame/commonBottom" location="body"></vc:create>
|
|
||||||
|
|
||||||
<script src="/js/plugins/summernote/summernote-bs4.min.js"></script>
|
|
||||||
<script src="/js/plugins/summernote/summernote-zh-CN.min.js"></script>
|
|
||||||
<script src="/js/plugins/xss/xss.min.js"></script>
|
|
||||||
<link href="/css/jquery.step.css" rel="stylesheet" />
|
|
||||||
<script src="/js/jquery.step.min.js"></script>
|
|
||||||
<link rel="stylesheet" href="/css/bootstrap/bootstrap-treeview.min.css" />
|
|
||||||
<script src="/js/bootstrap/bootstrap-treeview.min.js"></script>
|
|
||||||
<script src="/js/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
|
|
||||||
<script src="/js/bootstrap/bootstrap-submenu.js"></script>
|
|
||||||
<script src="/js/plugins/select2/select2.full.min.js"></script>
|
|
||||||
<script src="/js/plugins/echart/echarts.min.js"></script>
|
|
||||||
<script src="/js/plugins/echart/china.js"></script>
|
|
||||||
<script src="/vcCore/vc-zh.js"></script>
|
|
||||||
<script src="/vcCore/vcFramework.js"></script>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
<script src="/vcCore/vc-zh.js"></script>
|
||||||
|
<script src="/js/jessibuca/renderer.js"></script>
|
||||||
|
<script src="/vcCore/vcFramework.js"></script>
|
||||||
|
<vc:create path="frame/commonBottom" location="body"></vc:create>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user