修改首页显示
This commit is contained in:
parent
6065853adc
commit
b0aade5fa2
@ -124,13 +124,16 @@ export default {
|
||||
async loadExamData(mapName) {
|
||||
if (mapName) {
|
||||
var data = {};
|
||||
var list = this.permissionList.filter(elem => { return elem.mapName == mapName; });
|
||||
list.forEach(elem => {
|
||||
if (!data[elem.mapProductName]) {
|
||||
data[elem.mapProductName] = elem.remains;
|
||||
} else {
|
||||
data[elem.mapProductName] += elem.remains;
|
||||
}
|
||||
var permissionType = {};
|
||||
var list = await this.$Dictionary.permissionType();
|
||||
if (list) {
|
||||
(list ||[]).forEach(elem => {
|
||||
permissionType[elem.code] = elem.name;
|
||||
});
|
||||
}
|
||||
|
||||
(this.permissionList.filter(elem => { return elem.mapName == mapName; })|| []).forEach(elem => {
|
||||
data[`${elem.mapProductName}-${permissionType[elem.type]}`] = elem.remains;
|
||||
});
|
||||
|
||||
const keys = Object.keys(data);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<transition name="el-zoom-in-center">
|
||||
<div class="map-control">
|
||||
<el-card>
|
||||
<el-card type="border-card">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>
|
||||
{{ $t('map.mapName') }}
|
||||
@ -397,9 +397,21 @@ export default {
|
||||
margin: 10px 5px;
|
||||
}
|
||||
|
||||
/deep/ {
|
||||
.view-control {
|
||||
/deep/ .view-control {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/deep/ {
|
||||
.el-tabs__nav-wrap.is-scrollable {
|
||||
padding: 0 40px;
|
||||
}
|
||||
|
||||
.el-tabs__nav-prev {
|
||||
left: 15px;
|
||||
}
|
||||
|
||||
.el-tabs__nav-next {
|
||||
right: 15px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user