@lambo-design/shared 1.0.0-beta.201 → 1.0.0-beta.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/themes/atrovirens/atrovirens.css +563 -563
- package/config/themes/blue/blue.css +563 -563
- package/config/themes/blue-white/blue-white.css +563 -563
- package/config/themes/blue-white-tight/blue-white-tight.css +564 -564
- package/config/themes/deep/deep.css +563 -563
- package/config/themes/default/default.css +563 -563
- package/config/themes/eap/eap.css +563 -563
- package/config/themes/gold/gold.css +563 -563
- package/config/themes/lime/lime.css +563 -563
- package/config/themes/orange/orange.css +563 -563
- package/config/themes/red/red.css +563 -563
- package/nstyles/common.less +197 -197
- package/nstyles/components/404.less +46 -46
- package/nstyles/components/button.less +34 -34
- package/nstyles/components/date-picker.less +37 -37
- package/nstyles/components/drawer.less +20 -20
- package/nstyles/components/dropdown.less +18 -18
- package/nstyles/components/excel-flow.less +72 -72
- package/nstyles/components/layout/collect.less +10 -10
- package/nstyles/components/layout/detail-view.less +107 -107
- package/nstyles/components/layout/full-screen.less +7 -7
- package/nstyles/components/layout/other-menu.less +142 -142
- package/nstyles/components/layout/page-view.less +101 -101
- package/nstyles/components/layout/sider-trigger.less +41 -41
- package/nstyles/components/layout/tags-nav.less +113 -113
- package/nstyles/components/modal.less +85 -85
- package/nstyles/components/panel.less +31 -31
- package/nstyles/components/select.less +3 -3
- package/nstyles/components/sign.less +27 -27
- package/nstyles/components/tree.less +159 -159
- package/nstyles/components/upload.less +131 -131
- package/nstyles/index.less +5 -5
- package/nstyles/reset.less +65 -65
- package/nstyles/third/ag.less +173 -173
- package/nstyles/third/index.less +11 -11
- package/nstyles/third/view-design.less +356 -356
- package/nstyles/variables/base.less +143 -143
- package/nstyles/variables/index.less +4 -4
- package/nstyles/variables/theme/default/button.less +7 -7
- package/nstyles/variables/theme/default/common.less +57 -57
- package/nstyles/variables/theme/default/index.less +7 -7
- package/nstyles/variables/theme/default/layout.less +40 -40
- package/nstyles/variables/theme/default/table.less +37 -37
- package/nstyles/variables/theme/default/tag.less +3 -3
- package/nstyles/variables/theme/default/upload.less +3 -3
- package/nstyles/variables/theme/index.less +13 -13
- package/nstyles/variables/theme/small/button.less +7 -7
- package/nstyles/variables/theme/small/common.less +39 -39
- package/nstyles/variables/theme/small/index.less +5 -5
- package/nstyles/variables/theme/small/layout.less +21 -21
- package/nstyles/variables/theme/small/table.less +17 -17
- package/nstyles/variables/theme/small/tag.less +3 -3
- package/package.json +1 -1
- package/styles/image/inspur.png +0 -0
- package/utils/platform.js +193 -3
- package/utils/theme.js +1 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
.ind-small-theme {
|
|
2
|
-
--ind-menu-desc-margin-top: 0px;
|
|
3
|
-
--ind-sc-padding-top: 10px; // 值来自四川
|
|
4
|
-
|
|
5
|
-
// 压缩padding
|
|
6
|
-
// --ind-padding-xs: 4px;
|
|
7
|
-
--ind-padding-sm: 8px;
|
|
8
|
-
|
|
9
|
-
// card的样式
|
|
10
|
-
--ivu-card-head-padding: 6px 12px;
|
|
11
|
-
--ivu-card-head-line-height: 36px;
|
|
12
|
-
--ivu-card-head-height: 36px;
|
|
13
|
-
--ivu-card-body-padding: 6px;
|
|
14
|
-
|
|
15
|
-
// 表单的样式
|
|
16
|
-
--input-height: 26px; //30px; // 24px; // small 24px // 值来自四川 // 又改一版
|
|
17
|
-
--ivu-form-item-label-padding: 6px 8px 6px 0; // 6px 8px 6px 0; 值来自四川 // 又改一版
|
|
18
|
-
--ivu-form-v6stle-item-label-paddingleft: 12px;
|
|
19
|
-
--ivu-form-item-content-padding: 4px 6px;
|
|
20
|
-
--ivu-form-item-label-before-left: 4px;
|
|
21
|
-
--ivu-form-item-content-line-height: 26px; //30px; //24px; // 值来自四川 // 又改一版
|
|
22
|
-
|
|
23
|
-
// tree样式
|
|
24
|
-
--ind-tree-wrapper-width: 100%;
|
|
25
|
-
--tree-content-padding: var(--ind-padding-xs);
|
|
26
|
-
--ivu-tree-margin: var(--ind-padding-xs) 0;
|
|
27
|
-
|
|
28
|
-
// drawer样式
|
|
29
|
-
--ind-drawer-content-padding: 6px;
|
|
30
|
-
--ind-drawer-footer-padding: 10px 16px;
|
|
31
|
-
|
|
32
|
-
// 报表指标样式
|
|
33
|
-
--report-index-model-panel-padding: var(--tree-content-padding);
|
|
34
|
-
--report-index-options-padding-right: var(--tree-content-padding);
|
|
35
|
-
|
|
36
|
-
// 表格
|
|
37
|
-
--ind-table-button-padding: 6px; // var(--ind-padding-xs);
|
|
38
|
-
--input-height-table: 24px; // 表格输入框的高度
|
|
39
|
-
}
|
|
1
|
+
.ind-small-theme {
|
|
2
|
+
--ind-menu-desc-margin-top: 0px;
|
|
3
|
+
--ind-sc-padding-top: 10px; // 值来自四川
|
|
4
|
+
|
|
5
|
+
// 压缩padding
|
|
6
|
+
// --ind-padding-xs: 4px;
|
|
7
|
+
--ind-padding-sm: 8px;
|
|
8
|
+
|
|
9
|
+
// card的样式
|
|
10
|
+
--ivu-card-head-padding: 6px 12px;
|
|
11
|
+
--ivu-card-head-line-height: 36px;
|
|
12
|
+
--ivu-card-head-height: 36px;
|
|
13
|
+
--ivu-card-body-padding: 6px;
|
|
14
|
+
|
|
15
|
+
// 表单的样式
|
|
16
|
+
--input-height: 26px; //30px; // 24px; // small 24px // 值来自四川 // 又改一版
|
|
17
|
+
--ivu-form-item-label-padding: 6px 8px 6px 0; // 6px 8px 6px 0; 值来自四川 // 又改一版
|
|
18
|
+
--ivu-form-v6stle-item-label-paddingleft: 12px;
|
|
19
|
+
--ivu-form-item-content-padding: 4px 6px;
|
|
20
|
+
--ivu-form-item-label-before-left: 4px;
|
|
21
|
+
--ivu-form-item-content-line-height: 26px; //30px; //24px; // 值来自四川 // 又改一版
|
|
22
|
+
|
|
23
|
+
// tree样式
|
|
24
|
+
--ind-tree-wrapper-width: 100%;
|
|
25
|
+
--tree-content-padding: var(--ind-padding-xs);
|
|
26
|
+
--ivu-tree-margin: var(--ind-padding-xs) 0;
|
|
27
|
+
|
|
28
|
+
// drawer样式
|
|
29
|
+
--ind-drawer-content-padding: 6px;
|
|
30
|
+
--ind-drawer-footer-padding: 10px 16px;
|
|
31
|
+
|
|
32
|
+
// 报表指标样式
|
|
33
|
+
--report-index-model-panel-padding: var(--tree-content-padding);
|
|
34
|
+
--report-index-options-padding-right: var(--tree-content-padding);
|
|
35
|
+
|
|
36
|
+
// 表格
|
|
37
|
+
--ind-table-button-padding: 6px; // var(--ind-padding-xs);
|
|
38
|
+
--input-height-table: 24px; // 表格输入框的高度
|
|
39
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import './button.less';
|
|
2
|
-
@import './common.less';
|
|
3
|
-
@import './layout.less';
|
|
4
|
-
@import './table.less';
|
|
5
|
-
@import './tag.less';
|
|
1
|
+
@import './button.less';
|
|
2
|
+
@import './common.less';
|
|
3
|
+
@import './layout.less';
|
|
4
|
+
@import './table.less';
|
|
5
|
+
@import './tag.less';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
.ind-small-theme {
|
|
2
|
-
// basic layout 系统布局变量 -begin
|
|
3
|
-
--ivu-menu-item-font-size: var(--ind-font-size-md);
|
|
4
|
-
|
|
5
|
-
--menu-icon-margin-right: var(--ind-padding-xs);
|
|
6
|
-
// basic layout 系统布局变量 -end
|
|
7
|
-
|
|
8
|
-
// page-view layout 系统布局变量 -begin
|
|
9
|
-
--ind-panel-vertical-margin: var(--ind-padding-xs); // 12px;
|
|
10
|
-
--ind-panel-horizon-margin: var(--ind-padding-xs); // var(--ind-padding-sm);
|
|
11
|
-
// page-view layout 系统布局变量 -end
|
|
12
|
-
|
|
13
|
-
// --input-height: 30px; // 24px; // small 24px 挪common.less去了
|
|
14
|
-
--search-margin-bottom: var(--ind-padding-xs); // var(--ind-padding-sm); // 24px; // 6px;
|
|
15
|
-
--search-button-margin: var(--ind-padding-xs); // var(--ind-padding-sm);
|
|
16
|
-
|
|
17
|
-
--menu-name-padding: 0 14px 0 10px; // var(--ind-padding-xs) 14px var(--ind-padding-xs) 10px; // 标题行padding
|
|
18
|
-
--menu-title-font-size: 16px;
|
|
19
|
-
--menu-title-color: #17233d;
|
|
20
|
-
--page-content-padding: var(--ind-padding-xs); // 12px;
|
|
21
|
-
}
|
|
1
|
+
.ind-small-theme {
|
|
2
|
+
// basic layout 系统布局变量 -begin
|
|
3
|
+
--ivu-menu-item-font-size: var(--ind-font-size-md);
|
|
4
|
+
|
|
5
|
+
--menu-icon-margin-right: var(--ind-padding-xs);
|
|
6
|
+
// basic layout 系统布局变量 -end
|
|
7
|
+
|
|
8
|
+
// page-view layout 系统布局变量 -begin
|
|
9
|
+
--ind-panel-vertical-margin: var(--ind-padding-xs); // 12px;
|
|
10
|
+
--ind-panel-horizon-margin: var(--ind-padding-xs); // var(--ind-padding-sm);
|
|
11
|
+
// page-view layout 系统布局变量 -end
|
|
12
|
+
|
|
13
|
+
// --input-height: 30px; // 24px; // small 24px 挪common.less去了
|
|
14
|
+
--search-margin-bottom: var(--ind-padding-xs); // var(--ind-padding-sm); // 24px; // 6px;
|
|
15
|
+
--search-button-margin: var(--ind-padding-xs); // var(--ind-padding-sm);
|
|
16
|
+
|
|
17
|
+
--menu-name-padding: 0 14px 0 10px; // var(--ind-padding-xs) 14px var(--ind-padding-xs) 10px; // 标题行padding
|
|
18
|
+
--menu-title-font-size: 16px;
|
|
19
|
+
--menu-title-color: #17233d;
|
|
20
|
+
--page-content-padding: var(--ind-padding-xs); // 12px;
|
|
21
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.ind-small-theme {
|
|
2
|
-
--ind-table-padding: var(--ind-padding-sm);
|
|
3
|
-
--ind-ag-cell-widget-spacing: 12px;
|
|
4
|
-
|
|
5
|
-
--ind-ag-grid-size: 4px;
|
|
6
|
-
--ind-ag-font-size: var(--ind-font-size-md); // var(--ind-font-size-sm);
|
|
7
|
-
--ind-ag-list-item-height: calc(var(--ag-grid-size) * 6);
|
|
8
|
-
--ind-ag-cell-horizontal-padding: 3px; // 0px
|
|
9
|
-
|
|
10
|
-
// 以下是 ag 没有的
|
|
11
|
-
--ind-ag-cell-icon-margin-left: 3px;
|
|
12
|
-
--ind-ag-cell-header-horizontal-padding: 0px;
|
|
13
|
-
--ind-ag-cell-line-height: 14px;
|
|
14
|
-
|
|
15
|
-
--ind-unit-switch-bottom: 10px;
|
|
16
|
-
--ind-other-button-top: 2px;
|
|
17
|
-
}
|
|
1
|
+
.ind-small-theme {
|
|
2
|
+
--ind-table-padding: var(--ind-padding-sm);
|
|
3
|
+
--ind-ag-cell-widget-spacing: 12px;
|
|
4
|
+
|
|
5
|
+
--ind-ag-grid-size: 4px;
|
|
6
|
+
--ind-ag-font-size: var(--ind-font-size-md); // var(--ind-font-size-sm);
|
|
7
|
+
--ind-ag-list-item-height: calc(var(--ag-grid-size) * 6);
|
|
8
|
+
--ind-ag-cell-horizontal-padding: 3px; // 0px
|
|
9
|
+
|
|
10
|
+
// 以下是 ag 没有的
|
|
11
|
+
--ind-ag-cell-icon-margin-left: 3px;
|
|
12
|
+
--ind-ag-cell-header-horizontal-padding: 0px;
|
|
13
|
+
--ind-ag-cell-line-height: 14px;
|
|
14
|
+
|
|
15
|
+
--ind-unit-switch-bottom: 10px;
|
|
16
|
+
--ind-other-button-top: 2px;
|
|
17
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.ind-small-theme {
|
|
2
|
-
--ind-tag-height: 18px; //22px // 16px;; // 值来自四川 // 又改一版
|
|
3
|
-
}
|
|
1
|
+
.ind-small-theme {
|
|
2
|
+
--ind-tag-height: 18px; //22px // 16px;; // 值来自四川 // 又改一版
|
|
3
|
+
}
|
package/package.json
CHANGED
|
Binary file
|
package/utils/platform.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {deepCopy} from './assist'
|
|
2
|
-
import _ from 'lodash'
|
|
3
|
-
import
|
|
1
|
+
import {deepCopy} from './assist';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import config from "../config/config";
|
|
4
|
+
import systemLogo from '../styles/image/inspur.png';
|
|
5
|
+
import {changeByThemeKey, changeThemeByThemeId} from "./theme";
|
|
6
|
+
import ajax from "./ajax";
|
|
4
7
|
|
|
5
8
|
export const TOKEN_KEY = 'lambo-token'
|
|
6
9
|
|
|
@@ -515,6 +518,80 @@ export const getChangeTableDatas = (oldData, newData) => {
|
|
|
515
518
|
return list
|
|
516
519
|
}
|
|
517
520
|
|
|
521
|
+
/**
|
|
522
|
+
* 合并数组并去重
|
|
523
|
+
* @param oldRow
|
|
524
|
+
* @param newRow
|
|
525
|
+
* @param key
|
|
526
|
+
* @returns {*[]}
|
|
527
|
+
*/
|
|
528
|
+
export const removeDup = (oldRow,newRow,key) => {
|
|
529
|
+
let resultMap = {};
|
|
530
|
+
for(let o of oldRow){
|
|
531
|
+
resultMap[o[key]] = o;
|
|
532
|
+
}
|
|
533
|
+
for (let n of newRow) {
|
|
534
|
+
resultMap[n[key]] = n;
|
|
535
|
+
}
|
|
536
|
+
let result = []
|
|
537
|
+
for (let row in resultMap) {
|
|
538
|
+
result.push(resultMap[row])
|
|
539
|
+
}
|
|
540
|
+
return result;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* 获取数组修改的数据
|
|
544
|
+
* @param oldRow
|
|
545
|
+
* @param newRow
|
|
546
|
+
* @param key
|
|
547
|
+
* @returns {{delList: *[], addList: *[]}}
|
|
548
|
+
*/
|
|
549
|
+
export const getChangeData = (oldRow,newRow,key) =>{
|
|
550
|
+
let oldMap = {};
|
|
551
|
+
for(let o of oldRow){
|
|
552
|
+
if (key){
|
|
553
|
+
oldMap[o[key]] = o;
|
|
554
|
+
} else {
|
|
555
|
+
oldMap[o] = o;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
let newMap = {}
|
|
559
|
+
for(let n of newRow){
|
|
560
|
+
if (key){
|
|
561
|
+
newMap[n[key]] = n;
|
|
562
|
+
} else {
|
|
563
|
+
newMap[n] = n;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
let addList = []
|
|
567
|
+
for (let n of newRow) {
|
|
568
|
+
if (key){
|
|
569
|
+
if (!oldMap[n[key]]) {
|
|
570
|
+
addList.push(n);
|
|
571
|
+
}
|
|
572
|
+
} else {
|
|
573
|
+
if (!oldMap[n]) {
|
|
574
|
+
addList.push(n);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
let delList = []
|
|
579
|
+
for (let o of oldRow) {
|
|
580
|
+
if (key){
|
|
581
|
+
if (!newMap[o[key]]) {
|
|
582
|
+
delList.push(o);
|
|
583
|
+
}
|
|
584
|
+
} else {
|
|
585
|
+
if (!newMap[o]) {
|
|
586
|
+
delList.push(o);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
return {
|
|
591
|
+
addList,delList
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
518
595
|
/**
|
|
519
596
|
* @param {Array} arr1
|
|
520
597
|
* @param {Array} arr2
|
|
@@ -1073,3 +1150,116 @@ export const addTimestamp = ($route) => {
|
|
|
1073
1150
|
$route.query = query;
|
|
1074
1151
|
return $route;
|
|
1075
1152
|
}
|
|
1153
|
+
/**
|
|
1154
|
+
* 根据配置信息修改系统信息
|
|
1155
|
+
* @param systemInfo
|
|
1156
|
+
*/
|
|
1157
|
+
export const changeSystemInfo = async (systemInfo) => {
|
|
1158
|
+
let defaultSystemInfo = {
|
|
1159
|
+
layoutSize: 'small',
|
|
1160
|
+
systemLogo: systemLogo,
|
|
1161
|
+
logoWidth: '150px',
|
|
1162
|
+
systemName: sessionStorage.getItem('systemName') ? sessionStorage.getItem('systemName') : config.title,
|
|
1163
|
+
nameSize: 1,
|
|
1164
|
+
navType: 'dropdown',
|
|
1165
|
+
rightTopOptButtonList: ['collect', 'fullScreen'],
|
|
1166
|
+
rightTopShowFunList: ['theme', 'personalCenter', 'noticeList', 'logout'],
|
|
1167
|
+
menuLogo: '1',
|
|
1168
|
+
titleShow: 'wrap',
|
|
1169
|
+
menuScaling: '1',
|
|
1170
|
+
footerInfo: 'Copyright © 2021 浪潮数字商业科技有限公司 版权所有<br> 辽ICP备11001865号-3',
|
|
1171
|
+
showTheme: '',
|
|
1172
|
+
theme: 'default',
|
|
1173
|
+
tabNum: 5,
|
|
1174
|
+
topMenu: 4,
|
|
1175
|
+
};
|
|
1176
|
+
if (systemInfo) {
|
|
1177
|
+
systemInfo = Object.assign(defaultSystemInfo, systemInfo);
|
|
1178
|
+
} else {
|
|
1179
|
+
systemInfo = defaultSystemInfo;
|
|
1180
|
+
}
|
|
1181
|
+
if (systemInfo.logo) {
|
|
1182
|
+
systemInfo.systemLogo = config.ossServerContext + '/anon/system/file/get/' + systemInfo.logo
|
|
1183
|
+
} else {
|
|
1184
|
+
systemInfo.systemLogo = ''
|
|
1185
|
+
}
|
|
1186
|
+
sessionStorage.setItem('systemLogo', systemInfo.systemLogo)
|
|
1187
|
+
if (systemInfo.systemLogo) {
|
|
1188
|
+
let link = document.querySelector("link[rel*='icon']") || document.createElement('link');
|
|
1189
|
+
link.setAttribute('href', systemInfo.systemLogo);
|
|
1190
|
+
if (!link.getAttribute('rel')) {
|
|
1191
|
+
link.setAttribute('rel', 'icon');
|
|
1192
|
+
}
|
|
1193
|
+
if (!link.getAttribute('type')) {
|
|
1194
|
+
link.setAttribute('type', 'image/png');
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
if (systemInfo.logoWidth) {
|
|
1198
|
+
systemInfo.logoWidth = systemInfo.logoWidth + ''
|
|
1199
|
+
}
|
|
1200
|
+
if (systemInfo.systemName) {
|
|
1201
|
+
document.title = systemInfo.systemName
|
|
1202
|
+
sessionStorage.setItem('systemName', systemInfo.systemName)
|
|
1203
|
+
}
|
|
1204
|
+
if (localStorage.getItem('theme')) {
|
|
1205
|
+
systemInfo.theme = localStorage.getItem('theme')
|
|
1206
|
+
}
|
|
1207
|
+
changeByThemeKey(systemInfo.theme)
|
|
1208
|
+
if (localStorage.getItem('themeIdCurrent')) {
|
|
1209
|
+
systemInfo.showTheme = localStorage.getItem('themeIdCurrent')
|
|
1210
|
+
}
|
|
1211
|
+
if (systemInfo.showTheme) {
|
|
1212
|
+
let showTheme = systemInfo.showTheme
|
|
1213
|
+
let split = showTheme.split('-')
|
|
1214
|
+
let systemForm = null
|
|
1215
|
+
if (split[0]) {
|
|
1216
|
+
let res = await ajax.get(config.upmsServerContext + '/anon/system/themeLineList?themeId=' + split[0])
|
|
1217
|
+
if (res.data.code == 200) {
|
|
1218
|
+
systemForm = res.data.data[0]
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
if (systemForm) {
|
|
1222
|
+
changeThemeByThemeId(split[0], split[1], split[2], systemForm)
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
if (!systemInfo.rightTopOptButtonList || systemInfo.rightTopOptButtonList.length <= 0) {
|
|
1226
|
+
systemInfo.rightTopOptButtonList = ['collect', 'fullScreen'];
|
|
1227
|
+
}
|
|
1228
|
+
if (!systemInfo.rightTopShowFunList || systemInfo.rightTopShowFunList.length <= 0) {
|
|
1229
|
+
systemInfo.rightTopShowFunList = ['theme', 'personalCenter', 'noticeList', 'logout']
|
|
1230
|
+
}
|
|
1231
|
+
return systemInfo;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export const buildHomeConfigs = (settings) => {
|
|
1235
|
+
let result = [];
|
|
1236
|
+
if (settings && settings.length > 0) {
|
|
1237
|
+
let settingMap = {}
|
|
1238
|
+
for (let st of settings) {
|
|
1239
|
+
let key = st.categoryCode;
|
|
1240
|
+
if (!key) {
|
|
1241
|
+
key = "otherCategory";
|
|
1242
|
+
}
|
|
1243
|
+
if (settingMap[key]) {
|
|
1244
|
+
let oldSt = settingMap[key];
|
|
1245
|
+
if (st.permit && oldSt.permit
|
|
1246
|
+
&& (st.permit.permissionType > oldSt.permit.permissionType
|
|
1247
|
+
|| (st.permit.permissionType == oldSt.permit.permissionType
|
|
1248
|
+
&& st.permit.createTime > oldSt.permit.createTime))) {
|
|
1249
|
+
settingMap[key] = st;
|
|
1250
|
+
}
|
|
1251
|
+
} else {
|
|
1252
|
+
settingMap[key] = st;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
if (settingMap['default']) {
|
|
1256
|
+
result.push(settingMap['default']);
|
|
1257
|
+
}
|
|
1258
|
+
for(let key in settingMap) {
|
|
1259
|
+
if (key != 'default') {
|
|
1260
|
+
result.push(settingMap[key])
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
return result;
|
|
1265
|
+
}
|