需求新增
This commit is contained in:
parent
ac7f284645
commit
4c1c3ff628
|
@ -39,76 +39,72 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SubMenu from "./main-sidebar-sub-menu";
|
import SubMenu from './main-sidebar-sub-menu'
|
||||||
export default {
|
export default {
|
||||||
name: "sub-menu",
|
name: 'sub-menu',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
browserTabOpenList: ["1156748733921165314"],
|
browserTabOpenList: ['1156748733921165314']
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
menu: {
|
menu: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true,
|
required: true
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
SubMenu,
|
SubMenu
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.$refs.li) {
|
if (this.$refs.li) {
|
||||||
let $li = this.$refs.li.$el;
|
const $li = this.$refs.li.$el
|
||||||
let $a = $li.firstElementChild;
|
const $a = $li.firstElementChild
|
||||||
if ($a) {
|
if ($a) {
|
||||||
let pl = "0",
|
let pl = '0'
|
||||||
pr = "0";
|
let pr = '0'
|
||||||
if ($li.currentStyle) {
|
if ($li.currentStyle) {
|
||||||
pl = $li.currentStyle["paddingLeft"];
|
pl = $li.currentStyle.paddingLeft
|
||||||
pr = $li.currentStyle["paddingRight"];
|
pr = $li.currentStyle.paddingRight
|
||||||
} else {
|
} else {
|
||||||
pl = window.document.defaultView.getComputedStyle($li, null)[
|
pl = window.document.defaultView.getComputedStyle($li, null).paddingLeft
|
||||||
"paddingLeft"
|
pr = window.document.defaultView.getComputedStyle($li, null).paddingRight
|
||||||
];
|
|
||||||
pr = window.document.defaultView.getComputedStyle($li, null)[
|
|
||||||
"paddingRight"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
$li.setAttribute("style", `padding-left: 0; padding-right: 0;`);
|
$li.setAttribute('style', 'padding-left: 0; padding-right: 0;')
|
||||||
$a.setAttribute(
|
$a.setAttribute(
|
||||||
"style",
|
'style',
|
||||||
`padding-left: ${pl}; padding-right: ${pr};`
|
`padding-left: ${pl}; padding-right: ${pr};`
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 是否通过浏览器Tab打开菜单
|
// 是否通过浏览器Tab打开菜单
|
||||||
isBrowserTabOpen (menuId) {
|
isBrowserTabOpen (menuId) {
|
||||||
return (
|
return (
|
||||||
this.browserTabOpenList.filter((item) => item === menuId).length >= 1
|
this.browserTabOpenList.filter((item) => item === menuId).length >= 1
|
||||||
);
|
)
|
||||||
},
|
},
|
||||||
// 获取浏览器Tab打开菜单URL
|
// 获取浏览器Tab打开菜单URL
|
||||||
getBrowserTabOpenURL (menuId) {
|
getBrowserTabOpenURL (menuId) {
|
||||||
var route = window.SITE_CONFIG["dynamicMenuRoutes"].filter(
|
var route = window.SITE_CONFIG.dynamicMenuRoutes.filter(
|
||||||
(item) => item.meta.menuId === menuId
|
(item) => item.meta.menuId === menuId
|
||||||
)[0];
|
)[0]
|
||||||
return route ? route.meta.iframeURL : "";
|
return route ? route.meta.iframeURL : ''
|
||||||
},
|
},
|
||||||
// 通过menuId与动态(菜单)路由进行匹配跳转至指定路由
|
// 通过menuId与动态(菜单)路由进行匹配跳转至指定路由
|
||||||
gotoRouteHandle (menuId) {
|
gotoRouteHandle (menuId) {
|
||||||
var route = window.SITE_CONFIG["dynamicMenuRoutes"].filter(
|
var route = window.SITE_CONFIG.dynamicMenuRoutes.filter(
|
||||||
(item) => item.meta.menuId === menuId
|
(item) => item.meta.menuId === menuId
|
||||||
)[0];
|
)[0]
|
||||||
if (route) {
|
if (route) {
|
||||||
this.$router.push({ name: route.name });
|
this.$router.push({ name: route.name })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: kongjun qdkongjun@gmail.com
|
* @Author: kongjun qdkongjun@gmail.com
|
||||||
* @Date: 2022-06-20 09:29:59
|
* @Date: 2022-06-20 09:29:59
|
||||||
* @LastEditors: hisense.wuhongjian
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-10-18 15:46:51
|
* @LastEditTime: 2022-11-04 15:21:13
|
||||||
* @FilePath: \back\src\views\main-sidebar.vue
|
* @FilePath: \back\src\views\main-sidebar.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
|
@ -95,6 +95,9 @@ export default {
|
||||||
}
|
}
|
||||||
menu.total = daibanNum
|
menu.total = daibanNum
|
||||||
}
|
}
|
||||||
|
if (menu.id == '1588427411604197378') {
|
||||||
|
menu.total = Number(this.numObject.resourcemountapply)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.$store.state.sidebarMenuList = menuList
|
this.$store.state.sidebarMenuList = menuList
|
||||||
})
|
})
|
||||||
|
@ -124,5 +127,12 @@ export default {
|
||||||
width: 266px;
|
width: 266px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.tabNum{
|
||||||
|
color: #ffffff;
|
||||||
|
margin-left: 5px;
|
||||||
|
background: red;
|
||||||
|
padding:1px 4px;
|
||||||
|
border-radius:5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<!--
|
<!--
|
||||||
* @Author: Light
|
* @Author: Light
|
||||||
* @Date: 2022-10-31 09:24:38
|
* @Date: 2022-10-31 09:24:38
|
||||||
* @LastEditors: Light
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-11-03 14:46:01
|
* @LastEditTime: 2022-11-04 14:38:09
|
||||||
* @Description: 能力溯源分析
|
* @Description: 能力溯源分析
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -361,9 +361,9 @@ export default {
|
||||||
yunshow: false,
|
yunshow: false,
|
||||||
tabList: ['总体情况', '部门情况', '地市情况'],
|
tabList: ['总体情况', '部门情况', '地市情况'],
|
||||||
selectTab: '总体情况',
|
selectTab: '总体情况',
|
||||||
allSituation: [{ name: '注册项目', num: '100个' }, { name: '注册系统', num: '100个' }, { name: '视频资源', num: '100万路' }, { name: 'GIS图层', num: '100项' }, { name: '云网资源', num: '100个' }, { name: '组件资源', num: '100项' }],
|
allSituation: [{ name: '注册项目', num: '133个' }, { name: '注册系统', num: '266个' }, { name: '视频资源', num: '120万路' }, { name: 'GIS图层', num: '220项' }, { name: '云网资源', num: '30个' }, { name: '组件资源', num: '226项' }],
|
||||||
allSituationDept: [{ name: '注册项目', num: '100个' }, { name: '注册系统', num: '100个' }, { name: '视频资源', num: '100万路' }, { name: 'GIS图层', num: '100项' }, { name: '云网资源', num: '100个' }, { name: '组件资源', num: '100项' }],
|
allSituationDept: [{ name: '注册项目', num: '80个' }, { name: '注册系统', num: '145个' }, { name: '视频资源', num: '60万路' }, { name: 'GIS图层', num: '100项' }, { name: '云网资源', num: '10个' }, { name: '组件资源', num: '100项' }],
|
||||||
allSituationDept2: [{ name: '注册地市', num: '100个' }, { name: '注册项目', num: '100个' }, { name: '注册系统', num: '100个' }, { name: '视频资源', num: '100万路' }, { name: 'GIS图层', num: '100项' }, { name: '云网资源', num: '100个' }, { name: '组件资源', num: '100项' }],
|
allSituationDept2: [{ name: '注册地市', num: '17个' }, { name: '注册项目', num: '53个' }, { name: '注册系统', num: '121个' }, { name: '视频资源', num: '60万路' }, { name: 'GIS图层', num: '120项' }, { name: '云网资源', num: '20个' }, { name: '组件资源', num: '126项' }],
|
||||||
tableData1: [{
|
tableData1: [{
|
||||||
deptName: '山东省信访局',
|
deptName: '山东省信访局',
|
||||||
project: '2',
|
project: '2',
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2020-07-07 16:03:23
|
* @Date: 2020-07-07 16:03:23
|
||||||
* @LastEditors: Light
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-11-02 17:15:39
|
* @LastEditTime: 2022-11-04 14:48:01
|
||||||
* @Description: 系统静态参数配置
|
* @Description: 系统静态参数配置
|
||||||
*/
|
*/
|
||||||
var _global = {}
|
var _global = {}
|
||||||
|
@ -86,7 +86,7 @@ var CONFIGITEM = {
|
||||||
userPwd: '',
|
userPwd: '',
|
||||||
},
|
},
|
||||||
backUrl: 'http://localhost:8001',
|
backUrl: 'http://localhost:8001',
|
||||||
previewUrl: 'http://192.168.124.233:9796/',
|
previewUrl: 'http://192.168.124.236:9796/',
|
||||||
websocketURL: '192.168.124.233:8888/ucs-admin',
|
websocketURL: '192.168.124.233:8888/ucs-admin',
|
||||||
// websocketURL: '10.18.1.99:8889/ucs-admin',
|
// websocketURL: '10.18.1.99:8889/ucs-admin',
|
||||||
POI_URL:
|
POI_URL:
|
||||||
|
|
Loading…
Reference in New Issue