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
黄庭坚
jinfa-platform
Commits
4f7dc6fe
Commit
4f7dc6fe
authored
Jan 19, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
b3a00853
21b0566a
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
30 additions
and
27 deletions
+30
-27
README.md
README.md
+2
-3
Fav.jpg
public/static/imgs/Fav.jpg
+0
-0
useTreeData.ts
src/hooks/useTreeData.ts
+4
-2
BasicLayout.tsx
src/layouts/BasicLayout.tsx
+1
-1
BaseFooter.tsx
src/layouts/components/BaseFooter.tsx
+2
-3
en-US.ts
src/locales/en-US.ts
+1
-1
ko-KR.ts
src/locales/ko-KR.ts
+1
-1
zh-CN.ts
src/locales/zh-CN.ts
+1
-1
common.ts
src/locales/zh-CN/common.ts
+1
-1
components.ts
src/locales/zh-CN/components.ts
+3
-3
403.tsx
src/pages/403.tsx
+1
-1
404.tsx
src/pages/404.tsx
+1
-1
500.tsx
src/pages/500.tsx
+1
-1
memberDetail.tsx
src/pages/authConfig/memberSystem/memberDetail.tsx
+8
-5
index.ts
src/pages/editor/configs/componentConfigs/LingXiUI/index.ts
+1
-1
topbar.tsx
...components/WebDesignPanel/components/WebLayout/topbar.tsx
+1
-1
register.tsx
src/pages/user/register.tsx
+1
-1
No files found.
README.md
View file @
4f7dc6fe
## god-template
## god-template
### 为
数商云
&醒电构建项目提供react脚手架模板
### 为&醒电构建项目提供react脚手架模板
-
god页面模板, 依赖于
[
umi
](
https://umijs.org/
)
, 更多配置可以查看
-
god页面模板, 依赖于
[
umi
](
https://umijs.org/
)
, 更多配置可以查看
-
god组件库
[
文档
](
http://10.0.0.22:8080/
)
-
god组件库
[
文档
](
http://10.0.0.22:8080/
)
...
@@ -24,4 +24,4 @@
...
@@ -24,4 +24,4 @@
1.
样式
1.
样式
-
全局样式需写在src/global/global.less下, 涉及到color, size之类的属性尽量变量化 并且储存在/styles/theme.less中
-
全局样式需写在src/global/global.less下, 涉及到color, size之类的属性尽量变量化 并且储存在/styles/theme.less中
"umi-plugin-antd-theme": "^2.1.2"
"umi-plugin-antd-theme": "^2.1.2"
\ No newline at end of file
public/static/imgs/Fav.jpg
View replaced file @
b3a00853
View file @
4f7dc6fe
2.6 KB
|
W:
|
H:
2.11 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/hooks/useTreeData.ts
View file @
4f7dc6fe
...
@@ -4,6 +4,7 @@ import { Modal } from 'antd'
...
@@ -4,6 +4,7 @@ import { Modal } from 'antd'
import
{
TabTreeActions
}
from
'@/components/TabTree'
import
{
TabTreeActions
}
from
'@/components/TabTree'
import
{
ISchemaFormActions
}
from
'@formily/antd'
import
{
ISchemaFormActions
}
from
'@formily/antd'
import
{
isObject
}
from
'@/utils'
import
{
isObject
}
from
'@/utils'
import
{
usePageStatus
}
from
'./usePageStatus'
export
enum
FormState
{
export
enum
FormState
{
FREE
,
// 空闲状态
FREE
,
// 空闲状态
...
@@ -13,7 +14,7 @@ export enum FormState {
...
@@ -13,7 +14,7 @@ export enum FormState {
export
interface
useTreeTabOptions
{
export
interface
useTreeTabOptions
{
selectCallback
?(
selectKey
?,
node
?),
selectCallback
?(
selectKey
?,
node
?),
fetchMenuData
?(),
fetchMenuData
?(
roleId
?:
number
),
fetchItemDetailData
?(
id
),
fetchItemDetailData
?(
id
),
// 重置右侧详情
// 重置右侧详情
resetDetail
?(),
resetDetail
?(),
...
@@ -47,13 +48,14 @@ export const useTreeData = (options: useTreeTabOptions = {}) => {
...
@@ -47,13 +48,14 @@ export const useTreeData = (options: useTreeTabOptions = {}) => {
const
[
nodeRecord
,
setNodeRecord
]
=
useState
<
any
>
(
null
)
const
[
nodeRecord
,
setNodeRecord
]
=
useState
<
any
>
(
null
)
const
[
isEditForm
,
setIsEditForm
]
=
useState
<
boolean
>
(
false
)
const
[
isEditForm
,
setIsEditForm
]
=
useState
<
boolean
>
(
false
)
const
{
id
}
=
usePageStatus
();
useEffect
(()
=>
{
useEffect
(()
=>
{
resetMenu
()
resetMenu
()
},
[])
},
[])
const
resetMenu
=
async
()
=>
{
const
resetMenu
=
async
()
=>
{
if
(
fetchMenuData
)
{
if
(
fetchMenuData
)
{
const
res
=
await
fetchMenuData
()
const
res
=
await
fetchMenuData
(
Number
(
id
)
)
setTreeData
(
res
.
data
||
[])
setTreeData
(
res
.
data
||
[])
}
}
}
}
...
...
src/layouts/BasicLayout.tsx
View file @
4f7dc6fe
...
@@ -55,7 +55,7 @@ export const getSelectedMenuKeys = (
...
@@ -55,7 +55,7 @@ export const getSelectedMenuKeys = (
const
defaultFooterDom
=
(
const
defaultFooterDom
=
(
<
DefaultFooter
<
DefaultFooter
// copyright={`瓴犀-${new Date().getFullYear()} 前端组体验出品
`}
copyright=
{
`全链数字化解决方案
`
}
links=
{
[]
}
links=
{
[]
}
/>
/>
);
);
...
...
src/layouts/components/BaseFooter.tsx
View file @
4f7dc6fe
...
@@ -4,8 +4,8 @@ import cx from 'classnames'
...
@@ -4,8 +4,8 @@ import cx from 'classnames'
const
BaseFooter
:
React
.
FC
=
(
props
)
=>
{
const
BaseFooter
:
React
.
FC
=
(
props
)
=>
{
return
(
return
(
<
footer
className=
{
cx
(
styles
.
lingxiBusinessUserFooter
)
}
>
Copy Right©广州市数商云网络科技有限公司 粤ICP备13044797号-5
</
footer
>
<
footer
className=
{
cx
(
styles
.
lingxiBusinessUserFooter
)
}
>
全链数字化解决方案
</
footer
>
)
)
}
}
export
default
BaseFooter
export
default
BaseFooter
\ No newline at end of file
src/locales/en-US.ts
View file @
4f7dc6fe
...
@@ -37,7 +37,7 @@ import marketing from './en-US/marketing'
...
@@ -37,7 +37,7 @@ import marketing from './en-US/marketing'
import
responseCode
from
'./en-US/responseCode'
import
responseCode
from
'./en-US/responseCode'
export
default
{
export
default
{
'global.siteName'
:
'
瓴犀
'
,
'global.siteName'
:
''
,
...
common
,
...
common
,
...
menu
,
...
menu
,
...
home
,
...
home
,
...
...
src/locales/ko-KR.ts
View file @
4f7dc6fe
...
@@ -37,7 +37,7 @@ import marketing from './ko-KR/marketing'
...
@@ -37,7 +37,7 @@ import marketing from './ko-KR/marketing'
import
responseCode
from
'./ko-KR/responseCode'
import
responseCode
from
'./ko-KR/responseCode'
export
default
{
export
default
{
'global.siteName'
:
'
瓴犀
'
,
'global.siteName'
:
''
,
...
common
,
...
common
,
...
menu
,
...
menu
,
...
home
,
...
home
,
...
...
src/locales/zh-CN.ts
View file @
4f7dc6fe
...
@@ -37,7 +37,7 @@ import marketing from './zh-CN/marketing'
...
@@ -37,7 +37,7 @@ import marketing from './zh-CN/marketing'
import
responseCode
from
'./zh-CN/responseCode'
import
responseCode
from
'./zh-CN/responseCode'
export
default
{
export
default
{
'global.siteName'
:
'
瓴犀
'
,
'global.siteName'
:
''
,
...
common
,
...
common
,
...
menu
,
...
menu
,
...
home
,
...
home
,
...
...
src/locales/zh-CN/common.ts
View file @
4f7dc6fe
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
'common.error.diannaoweilianjie'
:
'电脑未连接到网络'
,
'common.error.diannaoweilianjie'
:
'电脑未连接到网络'
,
'common.error.fanghuoqianghuosha'
:
'防火墙或杀毒软件阻止'
,
'common.error.fanghuoqianghuosha'
:
'防火墙或杀毒软件阻止'
,
'common.error.shuaxinyemianshi'
:
'刷新页面试试'
,
'common.error.shuaxinyemianshi'
:
'刷新页面试试'
,
'common.error.shushangyunfu'
:
'
数商云
服务'
,
'common.error.shushangyunfu'
:
'服务'
,
/** 其他 */
/** 其他 */
'common.money'
:
'¥'
,
'common.money'
:
'¥'
,
...
...
src/locales/zh-CN/components.ts
View file @
4f7dc6fe
...
@@ -239,11 +239,11 @@ export default {
...
@@ -239,11 +239,11 @@ export default {
'components.daoruwanchengqingdianjidao'
:
'导入完成请点击导入完成'
,
'components.daoruwanchengqingdianjidao'
:
'导入完成请点击导入完成'
,
'components.daorujiancha'
:
'导入检查'
,
'components.daorujiancha'
:
'导入检查'
,
'components.shujudaoru'
:
'数据导入'
,
'components.shujudaoru'
:
'数据导入'
,
'components.shangyeshuzihuayoulingxi'
:
'商业数字化
有瓴犀
'
,
'components.shangyeshuzihuayoulingxi'
:
'商业数字化'
,
'components.dianjixiazaishoujikehu'
:
'点击下载手机客户端'
,
'components.dianjixiazaishoujikehu'
:
'点击下载手机客户端'
,
'components.dianjiyoushangjiaoxuanzeliu'
:
'点击右上角选择浏览器打开'
,
'components.dianjiyoushangjiaoxuanzeliu'
:
'点击右上角选择浏览器打开'
,
'components.lingxishangchengAPP'
:
'
瓴犀
商城APP'
,
'components.lingxishangchengAPP'
:
'商城APP'
,
'components.CopyRightguangzhoushishushangyun'
:
'
Copy Right©广州市数商云网络科技有限公司 粤ICP备13044797号-5
'
,
'components.CopyRightguangzhoushishushangyun'
:
'
全链数字化解决方案
'
,
'components.mianzhaishengming'
:
'免责声明'
,
'components.mianzhaishengming'
:
'免责声明'
,
'components.fuwutiaokuan'
:
'服务条款'
,
'components.fuwutiaokuan'
:
'服务条款'
,
'components.lianxiwomen'
:
'联系我们'
,
'components.lianxiwomen'
:
'联系我们'
,
...
...
src/pages/403.tsx
View file @
4f7dc6fe
...
@@ -28,7 +28,7 @@ const NoFoundPage: React.FC<{}> = () => {
...
@@ -28,7 +28,7 @@ const NoFoundPage: React.FC<{}> = () => {
</
div
>
</
div
>
</
Col
>
</
Col
>
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
img
className=
{
styles
.
image
}
src=
{
Img
}
alt=
{
intl
.
formatMessage
({
id
:
'common.error.shushangyunfu'
,
defaultMessage
:
'
数商云
服务'
})
}
/>
<
img
className=
{
styles
.
image
}
src=
{
Img
}
alt=
{
intl
.
formatMessage
({
id
:
'common.error.shushangyunfu'
,
defaultMessage
:
'服务'
})
}
/>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</
div
>
</
div
>
...
...
src/pages/404.tsx
View file @
4f7dc6fe
...
@@ -33,7 +33,7 @@ const NoFoundPage: React.FC<{}> = () => {
...
@@ -33,7 +33,7 @@ const NoFoundPage: React.FC<{}> = () => {
</
div
>
</
div
>
</
Col
>
</
Col
>
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
img
className=
{
styles
.
image
}
src=
{
Img
}
alt=
{
intl
.
formatMessage
({
id
:
'common.error.shushangyunfu'
,
defaultMessage
:
'
数商云
服务'
})
}
/>
<
img
className=
{
styles
.
image
}
src=
{
Img
}
alt=
{
intl
.
formatMessage
({
id
:
'common.error.shushangyunfu'
,
defaultMessage
:
'服务'
})
}
/>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</
div
>
</
div
>
...
...
src/pages/500.tsx
View file @
4f7dc6fe
...
@@ -33,7 +33,7 @@ const InternetError: React.FC<{}> = () => {
...
@@ -33,7 +33,7 @@ const InternetError: React.FC<{}> = () => {
</
div
>
</
div
>
</
Col
>
</
Col
>
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
img
className=
{
styles
.
image
}
src=
{
Img
}
alt=
{
intl
.
formatMessage
({
id
:
'common.error.shushangyunfu'
,
defaultMessage
:
'
数商云
服务'
})
}
/>
<
img
className=
{
styles
.
image
}
src=
{
Img
}
alt=
{
intl
.
formatMessage
({
id
:
'common.error.shushangyunfu'
,
defaultMessage
:
'服务'
})
}
/>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</
div
>
</
div
>
...
...
src/pages/authConfig/memberSystem/memberDetail.tsx
View file @
4f7dc6fe
...
@@ -54,11 +54,6 @@ const TabFormErrors = props => {
...
@@ -54,11 +54,6 @@ const TabFormErrors = props => {
);
);
};
};
const
fetchMenuData
=
async
()
=>
{
const
res
=
await
getMemberRoleAuthTree
();
return
{
data
:
res
.
data
.
menus
};
};
const
TabsItem
=
Tabs
.
TabPane
;
const
TabsItem
=
Tabs
.
TabPane
;
const
menuActions
=
createFormActions
();
const
menuActions
=
createFormActions
();
...
@@ -109,6 +104,14 @@ const MemberDetail: React.FC<{}> = () => {
...
@@ -109,6 +104,14 @@ const MemberDetail: React.FC<{}> = () => {
}
=
useTreeTabs
({
}
=
useTreeTabs
({
fetchMenuData
:
fetchOrgsTreeData
,
fetchMenuData
:
fetchOrgsTreeData
,
});
});
const
fetchMenuData
=
useCallback
(
async
(
roleId
:
number
)
=>
{
const
res
=
await
getMemberRoleAuthTree
({
memberRoleId
:
roleId
});
return
{
data
:
res
.
data
.
menus
};
},
[]);
const
{
treeData
,
handleSelect
}
=
useTreeData
({
const
{
treeData
,
handleSelect
}
=
useTreeData
({
fetchMenuData
,
fetchMenuData
,
fetchItemDetailData
:
({
id
})
=>
fetchItemDetailData
:
({
id
})
=>
...
...
src/pages/editor/configs/componentConfigs/LingXiUI/index.ts
View file @
4f7dc6fe
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Date: 2021-01-28 10:32:29
* @Date: 2021-01-28 10:32:29
* @LastEditTime: 2021-03-01 11:39:28
* @LastEditTime: 2021-03-01 11:39:28
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description:
瓴犀
装修组件配置集合
* @Description: 装修组件配置集合
* @FilePath: /lingxi-business-paltform/src/pages/editor/configs/componentConfigs/LingXiUI/index.ts
* @FilePath: /lingxi-business-paltform/src/pages/editor/configs/componentConfigs/LingXiUI/index.ts
*/
*/
import
TopBar
from
'./TopBar'
import
TopBar
from
'./TopBar'
...
...
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/fixtures/components/WebDesignPanel/components/WebLayout/topbar.tsx
View file @
4f7dc6fe
...
@@ -13,7 +13,7 @@ const TopBar = () => {
...
@@ -13,7 +13,7 @@ const TopBar = () => {
<
div
className=
{
styles
.
topBar
}
>
<
div
className=
{
styles
.
topBar
}
>
<
div
className=
{
styles
[
'topBar-content'
]
}
>
<
div
className=
{
styles
[
'topBar-content'
]
}
>
<
div
>
<
div
>
<
div
>
瓴犀
企业商城
</
div
>
<
div
>
企业商城
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
right
}
>
<
div
className=
{
styles
.
right
}
>
<
div
className=
{
styles
.
toLogin
}
>
你好,请登录
</
div
>
<
div
className=
{
styles
.
toLogin
}
>
你好,请登录
</
div
>
...
...
src/pages/user/register.tsx
View file @
4f7dc6fe
...
@@ -256,7 +256,7 @@ const UserRegistry = () => {
...
@@ -256,7 +256,7 @@ const UserRegistry = () => {
<
title
>
{
intl
.
formatMessage
({
id
:
'user.yonghuzhuce'
})
}
</
title
>
<
title
>
{
intl
.
formatMessage
({
id
:
'user.yonghuzhuce'
})
}
</
title
>
</
Helmet
>
</
Helmet
>
<
div
className=
{
cx
(
'register'
,
globalStyles
.
lingxiBusinessContent1024
)
}
>
<
div
className=
{
cx
(
'register'
,
globalStyles
.
lingxiBusinessContent1024
)
}
>
{
/* <h3>欢迎您注册
数商云
账号</h3> */
}
{
/* <h3>欢迎您注册账号</h3> */
}
<
div
className=
{
cx
(
'registerBox'
,
globalStyles
.
lingxiBusinessMarginContent
)
}
>
<
div
className=
{
cx
(
'registerBox'
,
globalStyles
.
lingxiBusinessMarginContent
)
}
>
<
Steps
current=
{
current
}
className=
{
'stepWrap'
}
size=
'small'
>
<
Steps
current=
{
current
}
className=
{
'stepWrap'
}
size=
'small'
>
{
stepList
.
map
(
v
=>
<
Steps
.
Step
title=
{
v
.
title
}
key=
{
v
.
key
}
></
Steps
.
Step
>)
}
{
stepList
.
map
(
v
=>
<
Steps
.
Step
title=
{
v
.
title
}
key=
{
v
.
key
}
></
Steps
.
Step
>)
}
...
...
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