@bit-sun/business-component 2.3.21 → 2.3.22-beta10
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/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -13
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -5
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +5 -5
- package/dist/components/Business/columnSettingTable/index.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/AddSelect/helps.d.ts +13 -0
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +3 -3
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/index.esm.js +1416 -1315
- package/dist/index.js +1422 -1321
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/LocalstorageUtils.d.ts +5 -0
- package/dist/utils/utils.d.ts +1 -1
- package/lib/assets/exportFail.svg +9 -9
- package/lib/assets/exportProcessing.svg +9 -9
- package/lib/assets/exportSuccess.svg +9 -9
- package/package.json +3 -3
- package/src/assets/caidan.svg +1 -1
- package/src/assets/exportFail.svg +9 -9
- package/src/assets/exportProcessing.svg +9 -9
- package/src/assets/exportSuccess.svg +9 -9
- package/src/assets/fixed-left-active.svg +1 -1
- package/src/assets/fixed-right-active.svg +1 -1
- package/src/components/Business/AddSelectBusiness/index.tsx +352 -187
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +1 -1
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +1 -1
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +3 -3
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +4 -4
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +1 -1
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +1 -1
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +1 -1
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +1 -1
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +3 -3
- package/src/components/Business/BsLayouts/index.less +2 -2
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +7 -6
- package/src/components/Business/BsSulaQueryTable/index.tsx +1 -5
- package/src/components/Business/BsSulaQueryTable/setting.tsx +12 -9
- package/src/components/Business/BsSulaQueryTable/utils.less +1 -1
- package/src/components/Business/CommonAlert/index.tsx +1 -1
- package/src/components/Business/CommonGuideWrapper/index.less +2 -2
- package/src/components/Business/DetailPageWrapper/index.less +2 -2
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +1 -1
- package/src/components/Business/StateFlow/index.less +3 -3
- package/src/components/Business/columnSettingTable/columnSetting.tsx +8 -6
- package/src/components/Functional/AddSelect/helps.ts +65 -0
- package/src/components/Functional/AddSelect/index.tsx +15 -127
- package/src/components/Functional/BillEntry/index.tsx +6 -6
- package/src/components/Functional/SearchSelect/index.tsx +1 -1
- package/src/plugin/TableColumnSetting/index.tsx +8 -6
- package/src/styles/bsDefault.less +12 -34
- package/src/utils/LocalstorageUtils.ts +19 -0
- package/src/utils/requestUtils.ts +13 -5
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
@menu-item-color: #ffffff;
|
|
26
26
|
@menu-item-group-title-color: #ffffff;
|
|
27
27
|
@menu-item-active-bg: rgba(65, 105, 225, 0.1);
|
|
28
|
-
@primary-color: #
|
|
29
|
-
@primary-color-hover: #
|
|
28
|
+
@primary-color: #02B56E;
|
|
29
|
+
@primary-color-hover: #02B56E;
|
|
30
30
|
@menu-bg: #222224;
|
|
31
31
|
|
|
32
32
|
html,
|
|
@@ -1063,17 +1063,8 @@ ol {
|
|
|
1063
1063
|
color: #ffffff;
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
|
-
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal)
|
|
1067
|
-
.ant-menu-item-selected {
|
|
1068
|
-
background: linear-gradient(
|
|
1069
|
-
to left,
|
|
1070
|
-
#000c17 0%,
|
|
1071
|
-
#000c17 30%,
|
|
1072
|
-
rgb(0, 54, 144)
|
|
1073
|
-
);
|
|
1074
|
-
}
|
|
1075
1066
|
.ant-pro-sider .ant-menu {
|
|
1076
|
-
background: #
|
|
1067
|
+
background: #494B4A !important;
|
|
1077
1068
|
color: #b1bad4;
|
|
1078
1069
|
}
|
|
1079
1070
|
.ant-menu-dark .ant-menu-item,
|
|
@@ -1088,10 +1079,10 @@ ol {
|
|
|
1088
1079
|
display: flex;
|
|
1089
1080
|
align-items: center;
|
|
1090
1081
|
height: 48px;
|
|
1091
|
-
background: #
|
|
1082
|
+
background: #494B4A;
|
|
1092
1083
|
|
|
1093
1084
|
.ant-input {
|
|
1094
|
-
background: #
|
|
1085
|
+
background: #494B4A;
|
|
1095
1086
|
color: #fff;
|
|
1096
1087
|
}
|
|
1097
1088
|
|
|
@@ -1112,14 +1103,14 @@ ol {
|
|
|
1112
1103
|
padding-left: 32px;
|
|
1113
1104
|
color: #798094;
|
|
1114
1105
|
font-size: 12px;
|
|
1115
|
-
background: #
|
|
1106
|
+
background: #494B4A;
|
|
1116
1107
|
border: 1px solid #3d4047;
|
|
1117
1108
|
border-radius: 4px;
|
|
1118
1109
|
|
|
1119
1110
|
// 搜索功能完善 menu start
|
|
1120
1111
|
.ant-input-affix-wrapper,
|
|
1121
1112
|
.ant-input-group-addon {
|
|
1122
|
-
background: #
|
|
1113
|
+
background: #494B4A !important;
|
|
1123
1114
|
border: none;
|
|
1124
1115
|
}
|
|
1125
1116
|
.ant-input-group-addon {
|
|
@@ -1483,7 +1474,7 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
|
1483
1474
|
|
|
1484
1475
|
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
|
|
1485
1476
|
box-shadow: none !important;
|
|
1486
|
-
background-color: #
|
|
1477
|
+
background-color: #494B4A;
|
|
1487
1478
|
}
|
|
1488
1479
|
body .ant-pro-sider-logo {
|
|
1489
1480
|
background-color: #f3f3f3;
|
|
@@ -1504,18 +1495,11 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
|
1504
1495
|
.ant-menu-submenu-title,
|
|
1505
1496
|
.ant-menu-item {
|
|
1506
1497
|
border: 0px !important;
|
|
1507
|
-
border-color: #
|
|
1498
|
+
border-color: #02B56E !important;
|
|
1508
1499
|
}
|
|
1509
1500
|
|
|
1510
1501
|
.ant-menu-submenu-title:hover,
|
|
1511
1502
|
.ant-menu-item:hover {
|
|
1512
|
-
background: linear-gradient(
|
|
1513
|
-
to left,
|
|
1514
|
-
#000c17 0%,
|
|
1515
|
-
#000c17 30%,
|
|
1516
|
-
rgb(0, 54, 144)
|
|
1517
|
-
);
|
|
1518
|
-
border-left: 2px solid #005cff !important;
|
|
1519
1503
|
box-sizing: border-box;
|
|
1520
1504
|
}
|
|
1521
1505
|
|
|
@@ -1524,7 +1508,7 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
|
1524
1508
|
}
|
|
1525
1509
|
.ant-pro-sider-link:hover {
|
|
1526
1510
|
border: 0px !important;
|
|
1527
|
-
background: #
|
|
1511
|
+
background: #494B4A !important;
|
|
1528
1512
|
}
|
|
1529
1513
|
|
|
1530
1514
|
.ant-table-column-sorters {
|
|
@@ -1591,13 +1575,7 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
|
1591
1575
|
.ant-pro-sider-menu
|
|
1592
1576
|
> .ant-menu-item-group
|
|
1593
1577
|
> .ant-menu-item-group-title:hover {
|
|
1594
|
-
|
|
1595
|
-
to left,
|
|
1596
|
-
#000c17 0%,
|
|
1597
|
-
#000c17 30%,
|
|
1598
|
-
rgb(0, 54, 144)
|
|
1599
|
-
);
|
|
1600
|
-
border-left: 2px solid #005cff !important;
|
|
1578
|
+
border-left: 2px solid #02B56E !important;
|
|
1601
1579
|
box-sizing: border-box;
|
|
1602
1580
|
cursor: pointer;
|
|
1603
1581
|
color: white;
|
|
@@ -1653,7 +1631,7 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
|
1653
1631
|
}
|
|
1654
1632
|
|
|
1655
1633
|
.tab_title_content:hover {
|
|
1656
|
-
color: #
|
|
1634
|
+
color: #02B56E;
|
|
1657
1635
|
.ant-dropdown-trigger {
|
|
1658
1636
|
display: inline-block;
|
|
1659
1637
|
}
|
|
@@ -68,9 +68,28 @@ export function getEmployeeCode() {
|
|
|
68
68
|
export function getSessionId() {
|
|
69
69
|
return resposne?.sessionId || '';
|
|
70
70
|
}
|
|
71
|
+
//--------赢家项目登录信息---------
|
|
72
|
+
export function getEekaSessionId() {
|
|
73
|
+
return resposne?.sessionId || '';
|
|
74
|
+
}
|
|
75
|
+
export function getEekaAccountId() {
|
|
76
|
+
return resposne?.personDetailResDto?.accountId || -1;
|
|
77
|
+
}
|
|
78
|
+
export function getEekaEmployeeId() {
|
|
79
|
+
return resposne?.personDetailResDto?.employeeId || 2;
|
|
80
|
+
}
|
|
81
|
+
export function getEekaTenantId() {
|
|
82
|
+
return resposne?.personDetailResDto?.tenantId || 1;
|
|
83
|
+
}
|
|
84
|
+
export function getEekaToken() {
|
|
85
|
+
return resposne?.token;
|
|
86
|
+
}
|
|
87
|
+
//--------赢家项目登录信息---------
|
|
88
|
+
|
|
71
89
|
export function getAccountId() {
|
|
72
90
|
return resposne?.accountPersonDetail?.accountId || -1;
|
|
73
91
|
}
|
|
92
|
+
|
|
74
93
|
export function getUserId() {
|
|
75
94
|
return resposne.accountPersonDetail?.username;
|
|
76
95
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import ENUM from './enumConfig';
|
|
3
|
-
import { getCurrentTenantId, getEmployeeId, getSessionId, getAccountId } from './LocalstorageUtils';
|
|
3
|
+
import { getCurrentTenantId, getEmployeeId, getSessionId, getAccountId, getEekaSessionId, getEekaAccountId, getEekaEmployeeId, getEekaTenantId, getEekaToken } from './LocalstorageUtils';
|
|
4
4
|
|
|
5
5
|
export function handleRequestAuthHeader(config?: any) {
|
|
6
6
|
// https://www.kdocs.cn/l/coNbPpjamr5v这个表格里面涉及的接口,接口请求头里需要添加参数:x-biz-code 值就是列表里的code
|
|
@@ -17,10 +17,18 @@ export function handleRequestAuthHeader(config?: any) {
|
|
|
17
17
|
|
|
18
18
|
// 处理请求头
|
|
19
19
|
const handleRequestHeader = (config: any) => {
|
|
20
|
-
config.headers['sso-sessionid'] = getSessionId()
|
|
21
|
-
config.headers['x-account-id'] = getAccountId()
|
|
22
|
-
config.headers['x-employee-id'] = getEmployeeId()
|
|
23
|
-
config.headers['x-tenant-id']
|
|
20
|
+
// config.headers['sso-sessionid'] = getSessionId()
|
|
21
|
+
// config.headers['x-account-id'] = getAccountId()
|
|
22
|
+
// config.headers['x-employee-id'] = getEmployeeId()
|
|
23
|
+
// config.headers['x-tenant-id'] = getCurrentTenantId()
|
|
24
|
+
|
|
25
|
+
//赢家项目请求头
|
|
26
|
+
config.headers['x-sso-sessionid'] = getEekaSessionId()
|
|
27
|
+
config.headers['x-account-id'] = getEekaAccountId()
|
|
28
|
+
config.headers['x-employee-id'] = getEekaEmployeeId()
|
|
29
|
+
config.headers['x-tenant-id'] = getEekaTenantId()
|
|
30
|
+
config.headers['x-user-token'] = getEekaToken()
|
|
31
|
+
|
|
24
32
|
if (localStorage.getItem('x-user-auth-context')) {
|
|
25
33
|
config.headers['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
26
34
|
}
|