优化模板信息

This commit is contained in:
java110 2022-02-26 17:48:53 +08:00
parent e14f624b86
commit 659da36d6d
5 changed files with 66 additions and 31 deletions

View File

@ -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">
<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}}

View File

@ -5,7 +5,8 @@
var vm = new Vue({
el: '#breadcrumb',
data: {
breadCrumbs: []
breadCrumbs: [],
indexPage: 1,
},
mounted: function() {
//this._freshBreadCrumbByUrl();
@ -14,7 +15,25 @@
// e.target matches elem
vm.breadCrumbs = [];
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);
},
methods: {
_freshBreadCrumbByUrl: function() {

View File

@ -13,7 +13,7 @@
</li>
<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>
<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>

View File

@ -60,7 +60,8 @@
_menus.sort(function(a, b) {
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);
vc.setMenus(vm.menus);
vm.miniMenu();

View File

@ -1,20 +1,52 @@
<!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>
<meta charset="UTF-8">
<meta charset="UTF-8" />
<title>HC智慧物业管理系统</title>
<vc:create path="frame/commonTop" location="head"></vc:create>
<!-- import 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" />
<!-- 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/plugins/bootstrap-submenu/bootstrap-submenu.css">
<script src="/js/bootstrap/jquery-3.3.1.min.js"></script>
<script src="/js/vue/vue.min.js"></script>
<script src="/js/vue/vue-resource.min.js"></script>
<script src="/js/popper.min.js"></script>
<script src="/js/bootstrap/bootstrap.min.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/plugins/jsTree/jstree.min.js"></script>
<!-- QQMap 腾讯地图KEY-->
<script src="https://map.qq.com/api/gljs?v=1.exp&key="></script>
</head>
<body class="vc-body">
@ -25,39 +57,22 @@
<div class="border-bottom">
<vc:create path="frame/nav"></vc:create>
</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>
</div>
<vc:create path="frame/copyright"></vc:create>
</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>
<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>