Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
6c481de1
Commit
6c481de1
authored
Jun 17, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix0618' into 'v2-220618'
feat: 订单添加SRM报表页 See merge request linkseeks-design/pro-platform!1096
parents
16d2882c
76a78177
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
69 additions
and
8 deletions
+69
-8
index.ts
config/routes/index.ts
+2
-2
index.ts
config/routes/orderRoute/index.ts
+5
-3
orderSrm.ts
config/routes/orderRoute/orderSrm.ts
+21
-0
app.tsx
src/app.tsx
+3
-0
index.tsx
src/pages/formView/form/index.tsx
+1
-1
index.less
src/pages/order/orderStatistics/orderSrm/index.less
+9
-0
index.tsx
src/pages/order/orderStatistics/orderSrm/index.tsx
+26
-0
cryptoAes.ts
src/utils/cryptoAes.ts
+2
-2
No files found.
config/routes/index.ts
View file @
6c481de1
...
@@ -20,7 +20,7 @@ import asyncRoutes from '../router.config.json';
...
@@ -20,7 +20,7 @@ import asyncRoutes from '../router.config.json';
// const isDev = process.env.NODE_ENV === 'development'
// const isDev = process.env.NODE_ENV === 'development'
const
isDev
=
fals
e
const
isDev
=
tru
e
const
homeRoute
=
{
const
homeRoute
=
{
path
:
`/memberCenter/home`
,
path
:
`/memberCenter/home`
,
...
@@ -238,7 +238,7 @@ const srmPurchaserHomeRoute = {
...
@@ -238,7 +238,7 @@ const srmPurchaserHomeRoute = {
// isDev ? [ homeRoute, OrderRoute ] :
// isDev ? [ homeRoute, OrderRoute ] :
// const routes = asyncRoutes;
// const routes = asyncRoutes;
const
routes
=
isDev
?
[
homeRoute
,
MemberRoute
,
customerAbility
Route
]
:
asyncRoutes
;
const
routes
=
isDev
?
[
homeRoute
,
MemberRoute
,
Order
Route
]
:
asyncRoutes
;
const
memberCenterRoute
=
{
const
memberCenterRoute
=
{
path
:
'/memberCenter'
,
path
:
'/memberCenter'
,
...
...
config/routes/orderRoute/index.ts
View file @
6c481de1
...
@@ -8,6 +8,7 @@ import DeliveryNoticeManagement from './deliveryNoticeManagement'
...
@@ -8,6 +8,7 @@ import DeliveryNoticeManagement from './deliveryNoticeManagement'
import
DeliveryNoticeCollaboration
from
'./deliveryNoticeCollaboration'
import
DeliveryNoticeCollaboration
from
'./deliveryNoticeCollaboration'
import
DeliveryNoticed
from
'./deliveryNotice'
import
DeliveryNoticed
from
'./deliveryNotice'
import
ReceivingNote
from
'./receivingNote'
import
ReceivingNote
from
'./receivingNote'
import
OrderSrm
from
'./orderSrm'
const
OrderRoute
=
{
const
OrderRoute
=
{
path
:
"/memberCenter/order"
,
path
:
"/memberCenter/order"
,
...
@@ -25,8 +26,10 @@ const OrderRoute = {
...
@@ -25,8 +26,10 @@ const OrderRoute = {
// 送货单
// 送货单
...
DeliveryNoticed
,
...
DeliveryNoticed
,
// 收货单
// 收货单
...
ReceivingNote
...
ReceivingNote
,
// 订单统计
...
OrderSrm
,
]
]
}
}
export
default
OrderRoute
;
export
default
OrderRoute
;
\ No newline at end of file
config/routes/orderRoute/orderSrm.ts
0 → 100644
View file @
6c481de1
/**
* 订单能力 -- SRM报表
*/
const
OrderSrm
=
[
{
path
:
'/memberCenter/order/orderStatistics'
,
name
:
'订单统计'
,
routes
:
[
{
/** 订单统计 订单报表*/
path
:
'/memberCenter/order/orderStatistics/orderSrm'
,
name
:
'订单报表(SRM)'
,
component
:
'@/pages/order/orderStatistics/orderSrm'
,
noMargin
:
false
},
]
}
]
export
default
OrderSrm
src/app.tsx
View file @
6c481de1
...
@@ -61,6 +61,7 @@ const removeLogin = () => {
...
@@ -61,6 +61,7 @@ const removeLogin = () => {
removeAuth
()
removeAuth
()
removeRouters
()
removeRouters
()
history
.
replace
(
'/user/login'
)
history
.
replace
(
'/user/login'
)
sessionStorage
.
removeItem
(
'als'
)
}
}
const
devRoute
=
[
const
devRoute
=
[
...
@@ -129,6 +130,8 @@ export async function render(oldRender: Function) {
...
@@ -129,6 +130,8 @@ export async function render(oldRender: Function) {
const
resAuth
=
await
getMemberAuthList
({})
const
resAuth
=
await
getMemberAuthList
({})
if
(
resAuth
.
code
===
1000
)
{
if
(
resAuth
.
code
===
1000
)
{
realTimeAuthLists
=
resAuth
.
data
realTimeAuthLists
=
resAuth
.
data
// 仅供系统-页面模板菜单显示
sessionStorage
.
setItem
(
'als'
,
resAuth
.
data
)
oldRender
()
oldRender
()
}
else
{
}
else
{
removeLogin
()
removeLogin
()
...
...
src/pages/formView/form/index.tsx
View file @
6c481de1
...
@@ -2,10 +2,10 @@ import React, { useEffect, useState } from 'react';
...
@@ -2,10 +2,10 @@ import React, { useEffect, useState } from 'react';
import
{
history
}
from
'umi'
import
{
history
}
from
'umi'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
Button
}
from
'antd'
import
{
Button
}
from
'antd'
import
{
SchemaForm
}
from
'@linkseeks/designable-component'
;
import
{
Base64
}
from
'@/utils/cryptoAes'
;
import
{
Base64
}
from
'@/utils/cryptoAes'
;
import
{
DESIGNABLE_URL
}
from
'@/constants'
;
import
{
DESIGNABLE_URL
}
from
'@/constants'
;
import
{
getTemplateLowMemberTemplateContentDetail
,
getTemplateLowMemberTemplateDetail
,
getTemplateLowMemberTemplatePage
}
from
'@/services/TemplateV2Api'
;
import
{
getTemplateLowMemberTemplateContentDetail
,
getTemplateLowMemberTemplateDetail
,
getTemplateLowMemberTemplatePage
}
from
'@/services/TemplateV2Api'
;
import
SchemaForm
from
'@formily/antd'
;
const
FormLayout
=
()
=>
{
const
FormLayout
=
()
=>
{
const
[
formProps
,
setFormProps
]
=
useState
({
const
[
formProps
,
setFormProps
]
=
useState
({
...
...
src/pages/order/orderStatistics/orderSrm/index.less
0 → 100644
View file @
6c481de1
.dashboard {
width: 100%;
margin: 0 auto;
}
.dashboard iframe {
width: 100%;
height: 100vh;
border: 0;
}
src/pages/order/orderStatistics/orderSrm/index.tsx
0 → 100644
View file @
6c481de1
import
Reac
from
'react'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
Card
}
from
'antd'
import
styles
from
'./index.less'
import
{
getAuth
}
from
'@/utils/auth'
;
import
{
encryptedByAES
}
from
'@/utils/cryptoAes'
;
const
Index
=
()
=>
{
const
{
memberId
,
userId
}
=
getAuth
()
const
params
=
encryptedByAES
(
`
${
memberId
}
,
${
userId
}
`
)
return
(
<
PageHeaderWrapper
>
<
Card
>
<
div
className=
{
styles
.
dashboard
}
>
<
iframe
src=
{
`http://10.0.1.207:5000/superset/dashboard/orderSrm?tenantId=${params}`
}
frameBorder=
"0"
></
iframe
>
</
div
>
</
Card
>
</
PageHeaderWrapper
>
)
}
export
default
Index
src/utils/cryptoAes.ts
View file @
6c481de1
...
@@ -7,10 +7,10 @@ const key = CryptoJS.enc.Utf8.parse('GzSsyLingxi2.0.0');
...
@@ -7,10 +7,10 @@ const key = CryptoJS.enc.Utf8.parse('GzSsyLingxi2.0.0');
* @auth xjm
* @auth xjm
* 加密方法
* 加密方法
*/
*/
export
const
encryptedByAES
=
(
source
:
string
)
=>
{
export
const
encryptedByAES
=
(
source
:
string
,
isHex
?:
boolean
)
=>
{
const
password
=
CryptoJS
.
enc
.
Utf8
.
parse
(
source
);
const
password
=
CryptoJS
.
enc
.
Utf8
.
parse
(
source
);
const
encrypted
=
CryptoJS
.
AES
.
encrypt
(
password
,
key
,
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
});
//CryptoJS.pad.Pkcs7
const
encrypted
=
CryptoJS
.
AES
.
encrypt
(
password
,
key
,
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
});
//CryptoJS.pad.Pkcs7
return
encrypted
.
toString
()
// 加密后的base64
return
isHex
?
encrypted
.
toString
(
CryptoJS
.
format
.
Hex
)
:
encrypted
.
toString
()
// 加密后的base64或16进制
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment