Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
47c26db1
提交
47c26db1
authored
6月 20, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
页面:论坛管理
上级
935be86b
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
346 行增加
和
153 行删除
+346
-153
.eslintrc
.eslintrc
+2
-1
index.tsx
src/components/richText/index.tsx
+0
-2
index.tsx
src/pages/categoryManage/category/index.tsx
+53
-60
index.scss
...nage/dynamicList/components/dynamicDetailModal/index.scss
+65
-0
index.tsx
...anage/dynamicList/components/dynamicDetailModal/index.tsx
+44
-0
index.tsx
src/pages/forumManage/dynamicList/index.tsx
+64
-0
index.tsx
src/pages/resourceManage/requirementsGathering/index.tsx
+0
-0
router.tsx
src/router/router.tsx
+118
-90
没有找到文件。
.eslintrc
浏览文件 @
47c26db1
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
],
],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/display-name": "off"
"react/display-name": "off",
"jsx-a11y/no-noninteractive-element-interactions": 'off'
}
}
}
}
src/components/richText/index.tsx
浏览文件 @
47c26db1
import
React
,
{
useEffect
}
from
'react'
;
import
React
,
{
useEffect
}
from
'react'
;
import
E
from
'wangeditor'
;
import
E
from
'wangeditor'
;
import
{
message
}
from
'antd'
;
import
{
message
}
from
'antd'
;
// import events from '@/events';
import
{
CommonAPI
}
from
'~/api'
;
import
{
CommonAPI
}
from
'~/api'
;
let
editor
:
any
=
null
;
let
editor
:
any
=
null
;
...
@@ -13,7 +12,6 @@ interface PropsType {
...
@@ -13,7 +12,6 @@ interface PropsType {
isDetail
?:
boolean
;
isDetail
?:
boolean
;
height
?:
number
;
height
?:
number
;
}
}
const
RichText
:
React
.
FC
<
PropsType
>
=
({
onChange
,
value
,
isDetail
,
height
})
=>
{
const
RichText
:
React
.
FC
<
PropsType
>
=
({
onChange
,
value
,
isDetail
,
height
})
=>
{
useEffect
(()
=>
{
useEffect
(()
=>
{
// 注:class写法需要在componentDidMount 创建编辑器
// 注:class写法需要在componentDidMount 创建编辑器
...
...
src/pages/categoryManage/category/index.tsx
浏览文件 @
47c26db1
...
@@ -23,7 +23,7 @@ import Viewer from '~/components/viewer';
...
@@ -23,7 +23,7 @@ import Viewer from '~/components/viewer';
import
'./index.scss'
;
import
'./index.scss'
;
import
events
from
'~/events'
;
import
events
from
'~/events'
;
const
Category
:
FC
=
(
props
:
any
)
=>
{
const
Category
:
FC
=
()
=>
{
const
location
=
useLocation
();
const
location
=
useLocation
();
console
.
log
(
'location'
,
location
);
console
.
log
(
'location'
,
location
);
const
navigate
=
useNavigate
();
const
navigate
=
useNavigate
();
...
@@ -57,7 +57,7 @@ const Category: FC = (props: any) => {
...
@@ -57,7 +57,7 @@ const Category: FC = (props: any) => {
width
:
'12%'
,
width
:
'12%'
,
editable
:
true
,
editable
:
true
,
ellipsis
:
true
,
ellipsis
:
true
,
render
:
(
text
:
string
,
record
:
categoryEntity
,
index
:
number
)
=>
{
render
:
(
_text
:
string
,
record
:
categoryEntity
)
=>
{
return
(
return
(
<
Tooltip
placement=
'top'
title=
{
<
span
>
{
record
.
classifyName
}
</
span
>
}
>
<
Tooltip
placement=
'top'
title=
{
<
span
>
{
record
.
classifyName
}
</
span
>
}
>
<
span
<
span
...
@@ -84,12 +84,13 @@ const Category: FC = (props: any) => {
...
@@ -84,12 +84,13 @@ const Category: FC = (props: any) => {
key
:
'icon'
,
key
:
'icon'
,
width
:
'12%'
,
width
:
'12%'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
text
:
string
,
record
:
categoryEntity
,
index
:
number
)
=>
{
render
:
(
_text
:
string
,
record
:
categoryEntity
)
=>
{
return
record
.
icon
?
(
return
record
.
icon
?
(
<
img
<
img
src=
{
record
.
icon
}
src=
{
record
.
icon
}
style=
{
{
width
:
'25px'
,
height
:
'25px'
}
}
style=
{
{
width
:
'25px'
,
height
:
'25px'
}
}
onClick=
{
()
=>
imgClick
(
record
.
icon
)
}
onClick=
{
()
=>
imgClick
(
record
.
icon
)
}
alt=
'图片'
/>
/>
)
:
(
)
:
(
''
''
...
@@ -104,7 +105,7 @@ const Category: FC = (props: any) => {
...
@@ -104,7 +105,7 @@ const Category: FC = (props: any) => {
align
:
'center'
,
align
:
'center'
,
editable
:
true
,
editable
:
true
,
ellipsis
:
true
,
ellipsis
:
true
,
render
:
(
text
:
string
,
record
:
categoryEntity
,
index
:
number
)
=>
{
render
:
(
_text
:
string
,
record
:
categoryEntity
)
=>
{
return
(
return
(
<
Tooltip
placement=
'right'
title=
{
<
span
>
{
record
.
description
}
</
span
>
}
>
<
Tooltip
placement=
'right'
title=
{
<
span
>
{
record
.
description
}
</
span
>
}
>
<
span
>
{
record
.
description
}
</
span
>
<
span
>
{
record
.
description
}
</
span
>
...
@@ -124,7 +125,7 @@ const Category: FC = (props: any) => {
...
@@ -124,7 +125,7 @@ const Category: FC = (props: any) => {
width
:
'55%'
,
width
:
'55%'
,
key
:
'option'
,
key
:
'option'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
text
:
string
,
record
:
categoryEntity
,
index
:
number
)
=>
{
render
:
(
_text
:
string
,
record
:
categoryEntity
)
=>
{
return
(
return
(
<
div
className=
'table-option-wrap'
>
<
div
className=
'table-option-wrap'
>
{
record
.
level
==
1
?
(
{
record
.
level
==
1
?
(
...
@@ -165,7 +166,7 @@ const Category: FC = (props: any) => {
...
@@ -165,7 +166,7 @@ const Category: FC = (props: any) => {
确定
确定
</
Button
>
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
cancelAddCldCgy
(
record
,
index
)
}
>
<
Button
type=
'link'
onClick=
{
()
=>
cancelAddCldCgy
(
record
)
}
>
取消
取消
</
Button
>
</
Button
>
</>
</>
...
@@ -232,8 +233,6 @@ const Category: FC = (props: any) => {
...
@@ -232,8 +233,6 @@ const Category: FC = (props: any) => {
const
[
activeViewerIndex
]
=
useState
<
number
>
(
0
);
const
[
activeViewerIndex
]
=
useState
<
number
>
(
0
);
// 新增弹窗
// 新增弹窗
const
[
isVisible
,
setIsVisible
]
=
useState
<
boolean
>
(
false
);
const
[
isVisible
,
setIsVisible
]
=
useState
<
boolean
>
(
false
);
// 删除分类id
const
[
cgyId
,
setCgyId
]
=
useState
<
number
>
(
0
);
// 弹窗title
// 弹窗title
const
[
title
,
setTitle
]
=
useState
<
string
>
(
''
);
const
[
title
,
setTitle
]
=
useState
<
string
>
(
''
);
// 当前修改的行
// 当前修改的行
...
@@ -245,13 +244,13 @@ const Category: FC = (props: any) => {
...
@@ -245,13 +244,13 @@ const Category: FC = (props: any) => {
// 分享码弹窗显示/隐藏
// 分享码弹窗显示/隐藏
const
[
isShareCodeVble
,
setShareCodeVble
]
=
useState
<
boolean
>
(
false
);
const
[
isShareCodeVble
,
setShareCodeVble
]
=
useState
<
boolean
>
(
false
);
const
[
shareCodeUrl
,
setShareCodeUrl
]
=
useState
<
string
>
(
''
);
const
[
shareCodeUrl
]
=
useState
<
string
>
(
''
);
// 按钮权限
// 按钮权限
const
btnAdd
=
true
;
//useOption(22101);
const
btnAdd
=
true
;
//useOption(22101);
const
btnUpperDown
=
true
;
//useOption(22102);
const
btnUpperDown
=
true
;
//useOption(22102);
const
btnDir
=
true
;
//useOption(22103);
//
const btnDir = true; //useOption(22103);
const
btnAddChildCgy
=
true
;
//useOption(22104);
const
btnAddChildCgy
=
true
;
//useOption(22104);
const
btnShareCode
=
true
;
//useOption(22105);
//
const btnShareCode = true; //useOption(22105);
const
btnEdit
=
true
;
//useOption(22106);
const
btnEdit
=
true
;
//useOption(22106);
const
btnDelete
=
true
;
//useOption(22107);
const
btnDelete
=
true
;
//useOption(22107);
const
btnDetail
=
true
;
//useOption(22108);
const
btnDetail
=
true
;
//useOption(22108);
...
@@ -328,44 +327,38 @@ const Category: FC = (props: any) => {
...
@@ -328,44 +327,38 @@ const Category: FC = (props: any) => {
const
handleOk
=
()
=>
{
const
handleOk
=
()
=>
{
const
addForm
=
baseRef
.
current
.
getForm
();
const
addForm
=
baseRef
.
current
.
getForm
();
if
(
title
===
'新增分类'
)
{
if
(
title
===
'新增分类'
)
{
addForm
addForm
.
validateFields
().
then
(
async
(
values
:
any
)
=>
{
.
validateFields
()
const
res
=
await
CategoryManageAPI
.
addClassification
({
.
then
(
async
(
values
:
any
)
=>
{
...
values
,
const
res
=
await
CategoryManageAPI
.
addClassification
({
pid
:
0
,
...
values
,
directoryId
:
activeTabKey
,
pid
:
0
,
type
,
directoryId
:
activeTabKey
,
});
type
,
if
(
res
.
code
==
200
)
{
});
events
.
emit
(
'removeFileList'
);
if
(
res
.
code
==
200
)
{
message
.
success
(
'新增成功'
);
events
.
emit
(
'removeFileList'
);
setIsVisible
(
false
);
message
.
success
(
'新增成功'
);
getCategoryList
(
Number
(
activeTabKey
));
setIsVisible
(
false
);
addForm
.
resetFields
();
getCategoryList
(
Number
(
activeTabKey
));
}
addForm
.
resetFields
();
});
}
})
.
catch
((
err
:
any
)
=>
{});
}
else
{
}
else
{
addForm
addForm
.
validateFields
().
then
(
async
(
values
:
any
)
=>
{
.
validateFields
()
const
res
=
await
CategoryManageAPI
.
updateClassification
({
.
then
(
async
(
values
:
any
)
=>
{
...
values
,
const
res
=
await
CategoryManageAPI
.
updateClassification
({
id
:
currentRecord
.
id
,
...
values
,
pid
:
currentRecord
.
pid
,
id
:
currentRecord
.
id
,
directoryId
:
activeTabKey
,
pid
:
currentRecord
.
pid
,
type
,
directoryId
:
activeTabKey
,
});
type
,
if
(
res
.
code
===
'200'
)
{
});
message
.
success
(
'修改成功'
);
if
(
res
.
code
===
'200'
)
{
getCategoryList
(
Number
(
activeTabKey
));
message
.
success
(
'修改成功'
);
setIsVisible
(
false
);
getCategoryList
(
Number
(
activeTabKey
));
events
.
emit
(
'removeFileList'
);
setIsVisible
(
false
);
addForm
.
resetFields
();
events
.
emit
(
'removeFileList'
);
}
addForm
.
resetFields
();
});
}
})
.
catch
((
err
:
any
)
=>
{});
}
}
};
};
const
handleCancel
=
()
=>
{
const
handleCancel
=
()
=>
{
...
@@ -403,7 +396,7 @@ const Category: FC = (props: any) => {
...
@@ -403,7 +396,7 @@ const Category: FC = (props: any) => {
}
}
};
};
// 展开监听
// 展开监听
const
onExpand
=
(
expanded
:
boolean
,
record
:
categoryEntity
)
=>
{
const
onExpand
=
(
_
expanded
:
boolean
,
record
:
categoryEntity
)
=>
{
const
index
=
expandedRowKeys
.
findIndex
((
item
:
any
)
=>
item
===
record
.
id
);
const
index
=
expandedRowKeys
.
findIndex
((
item
:
any
)
=>
item
===
record
.
id
);
if
(
index
!=
-
1
)
{
if
(
index
!=
-
1
)
{
expandedRowKeys
.
splice
(
index
,
1
);
expandedRowKeys
.
splice
(
index
,
1
);
...
@@ -461,7 +454,7 @@ const Category: FC = (props: any) => {
...
@@ -461,7 +454,7 @@ const Category: FC = (props: any) => {
});
});
};
};
// 取消新增子分类
// 取消新增子分类
const
cancelAddCldCgy
=
(
record
:
categoryEntity
,
index
:
number
)
=>
{
const
cancelAddCldCgy
=
(
record
:
categoryEntity
)
=>
{
categoryList
.
map
((
item
:
categoryEntity
)
=>
{
categoryList
.
map
((
item
:
categoryEntity
)
=>
{
if
(
item
.
children
&&
item
.
children
.
length
!=
0
)
{
if
(
item
.
children
&&
item
.
children
.
length
!=
0
)
{
const
index
:
number
=
item
.
children
.
findIndex
(
const
index
:
number
=
item
.
children
.
findIndex
(
...
@@ -599,7 +592,7 @@ const Category: FC = (props: any) => {
...
@@ -599,7 +592,7 @@ const Category: FC = (props: any) => {
selectedRowKeys
,
selectedRowKeys
,
onChange
:
onSelectChange
,
onChange
:
onSelectChange
,
hideSelectAll
:
true
,
hideSelectAll
:
true
,
renderCell
:
(
checked
:
boolean
,
record
:
categoryEntity
)
=>
{
renderCell
:
(
_
checked
:
boolean
,
record
:
categoryEntity
)
=>
{
return
<>
{
record
.
level
===
1
?
<
Checkbox
onChange=
{
()
=>
onSelectChange
(
record
)
}
/>
:
''
}
</>;
return
<>
{
record
.
level
===
1
?
<
Checkbox
onChange=
{
()
=>
onSelectChange
(
record
)
}
/>
:
''
}
</>;
},
},
};
};
...
@@ -621,14 +614,14 @@ const Category: FC = (props: any) => {
...
@@ -621,14 +614,14 @@ const Category: FC = (props: any) => {
});
});
};
};
// 分享码弹窗显示
// 分享码弹窗显示
const
showShareCode
=
async
(
record
:
any
)
=>
{
//
const showShareCode = async (record: any) => {
const
res
:
any
=
await
CategoryManageAPI
.
getAppletQRCode
({
//
const res: any = await CategoryManageAPI.getAppletQRCode({
page
:
'page-sort/sortDetail/index'
,
//
page: 'page-sort/sortDetail/index',
scene
:
`?id=
${
record
.
id
}
&backTip=1`
,
//
scene: `?id=${record.id}&backTip=1`,
});
//
});
setShareCodeUrl
(
`data:image/png;base64,
${
res
.
result
}
`
);
//
setShareCodeUrl(`data:image/png;base64,${res.result}`);
setShareCodeVble
(
true
);
//
setShareCodeVble(true);
};
//
};
const
shareCodeHandleCancel
=
()
=>
{
const
shareCodeHandleCancel
=
()
=>
{
setShareCodeVble
(
false
);
setShareCodeVble
(
false
);
};
};
...
@@ -690,7 +683,7 @@ const Category: FC = (props: any) => {
...
@@ -690,7 +683,7 @@ const Category: FC = (props: any) => {
rowKey=
'id'
rowKey=
'id'
bordered
bordered
loading=
{
isLoading
}
loading=
{
isLoading
}
rowClassName=
{
(
record
:
any
,
index
:
number
)
=>
{
rowClassName=
{
(
record
:
any
)
=>
{
if
(
record
.
children
)
{
if
(
record
.
children
)
{
return
''
;
return
''
;
}
}
...
...
src/pages/forumManage/dynamicList/components/dynamicDetailModal/index.scss
0 → 100644
浏览文件 @
47c26db1
.dynamic-detail
{
padding
:
20px
0
;
&
-media
{
}
&
-info
{
margin-top
:
40px
;
.info-title
{
color
:
#000
;
font-size
:
15px
;
font-weight
:
bold
;
}
.info-meta
{
margin-top
:
10px
;
}
.info-footer
{
margin-top
:
40px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
border-bottom
:
1px
solid
#999
;
.operate
{
display
:
flex
;
align-items
:
center
;
padding-bottom
:
15px
;
div
:first-child
{
margin-right
:
10px
;
}
}
}
}
&
-comment
{
margin-top
:
40px
;
.comment-title
{
color
:
#000
;
font-size
:
15px
;
font-weight
:
bold
;
}
.comment-item
{
margin-top
:
10px
;
&
-header
{
display
:
flex
;
align-items
:
center
;
.user-avatar
{
margin-right
:
10px
;
img
{
width
:
20px
;
height
:
20px
;
border-radius
:
50%
;
}
}
.user-name
{
}
}
&
-info
{
margin-left
:
30px
;
border-bottom
:
1px
solid
#999
;
.info-content
{
margin
:
10px
0
;
}
}
}
}
}
src/pages/forumManage/dynamicList/components/dynamicDetailModal/index.tsx
0 → 100644
浏览文件 @
47c26db1
import
{
FC
}
from
'react'
;
import
{
Button
,
Image
,
Modal
,
ModalProps
}
from
'antd'
;
import
'./index.scss'
;
const
DynamicDetailModal
:
FC
<
ModalProps
>
=
({
open
,
onCancel
})
=>
{
return
(
<
Modal
open=
{
open
}
onCancel=
{
onCancel
}
title=
'查看详情'
width=
{
800
}
>
<
div
className=
'dynamic-detail'
>
<
div
className=
'dynamic-detail-media'
>
<
Image
width=
{
200
}
height=
{
200
}
/>
</
div
>
<
div
className=
'dynamic-detail-info'
>
<
div
className=
'info-title'
>
和男同事两人去夜爬华山,男友提分手怎么办?
</
div
>
<
div
className=
'info-meta'
>
十一假期和和男同事两人去夜爬华山,男友提分手怎么办?
</
div
>
<
div
className=
'info-footer'
>
<
div
className=
'time'
>
发布于10-18
</
div
>
<
div
className=
'operate'
>
<
div
>
15人回答
</
div
>
<
Button
type=
'link'
>
88人爱心赞
</
Button
>
</
div
>
</
div
>
</
div
>
<
div
className=
'dynamic-detail-comment'
>
<
div
className=
'comment-title'
>
15条评论
</
div
>
<
div
className=
'comment-item'
>
<
div
className=
'comment-item-header'
>
<
div
className=
'user-avatar'
>
<
img
src=
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/cf528825-b958-4ccf-bf0b-a880df9e464c.jpg'
alt=
'头像'
/>
</
div
>
<
div
className=
'user-name'
>
张三
</
div
>
</
div
>
<
div
className=
'comment-item-info'
>
<
div
className=
'info-content'
>
不吐槽不骂街,咱们平和来聊聊这件事的底层逻辑。
</
div
>
<
div
className=
'info-time'
>
10-18
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
Modal
>
);
};
export
default
DynamicDetailModal
;
src/pages/forumManage/dynamicList/index.tsx
0 → 100644
浏览文件 @
47c26db1
import
SearchBox
,
{
searchColumns
}
from
'~/components/search-box'
;
import
{
Button
,
Table
}
from
'antd'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
useState
}
from
'react'
;
import
DynamicDetailModal
from
'./components/dynamicDetailModal'
;
const
DynamicList
=
()
=>
{
const
searchColumnsData
:
searchColumns
[]
=
[
{
label
:
'作者'
,
type
:
'input'
,
name
:
''
,
placeholder
:
'用户名称/用户UID/用户手机号码'
,
},
];
const
tableColumns
:
ColumnsType
<
any
>
=
[
{
title
:
'动态描述信息'
,
align
:
'center'
,
},
{
title
:
'作者(用户名称)'
,
align
:
'center'
,
},
{
title
:
'用户UID'
,
align
:
'center'
,
},
{
title
:
'用户手机号'
,
align
:
'center'
,
},
{
title
:
'操作'
,
align
:
'center'
,
render
:
()
=>
(
<>
<
Button
type=
'link'
onClick=
{
lookDynamicDetail
}
>
查看详情
</
Button
>
<
Button
type=
'link'
>
强制删除
</
Button
>
<
Button
type=
'link'
>
强制隐藏
</
Button
>
</>
),
},
];
const
[
tableData
,
setTableData
]
=
useState
<
any
>
([{
id
:
1
}]);
const
[
dynamicDetailModalShow
,
setDynamicDetailModalShow
]
=
useState
<
boolean
>
(
false
);
const
dynamicDetailModalOnCancel
=
()
=>
{
setDynamicDetailModalShow
(
false
);
};
//查看详情
const
lookDynamicDetail
=
()
=>
{
setDynamicDetailModalShow
(
true
);
};
return
(
<
div
className=
'dynamic-list'
>
<
SearchBox
search=
{
searchColumnsData
}
/>
<
Table
bordered
columns=
{
tableColumns
}
dataSource=
{
tableData
}
rowKey=
'id'
/>
<
DynamicDetailModal
open=
{
dynamicDetailModalShow
}
onCancel=
{
dynamicDetailModalOnCancel
}
/>
</
div
>
);
};
export
default
DynamicList
;
src/pages/resourceManage/requirementsGathering/index.tsx
0 → 100644
浏览文件 @
47c26db1
src/router/router.tsx
浏览文件 @
47c26db1
...
@@ -27,6 +27,7 @@ import {
...
@@ -27,6 +27,7 @@ import {
BookOutlined
,
BookOutlined
,
SketchOutlined
,
SketchOutlined
,
DribbbleOutlined
,
DribbbleOutlined
,
MessageOutlined
,
}
from
'@ant-design/icons'
;
}
from
'@ant-design/icons'
;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// @ts-ignore
...
@@ -34,6 +35,7 @@ import { AgnosticIndexRouteObject } from '@remix-run/router';
...
@@ -34,6 +35,7 @@ import { AgnosticIndexRouteObject } from '@remix-run/router';
import
{
Spin
}
from
'antd'
;
import
{
Spin
}
from
'antd'
;
// 登录
// 登录
import
LoginView
from
'~/pages/common/login'
;
import
LoginView
from
'~/pages/common/login'
;
// 积分
// 积分
// import { PointList } from '~/pages/pointManage/pointList';
// import { PointList } from '~/pages/pointManage/pointList';
// import { PointDetail } from '~/pages/pointManage/pointList/detail';
// import { PointDetail } from '~/pages/pointManage/pointList/detail';
...
@@ -42,18 +44,27 @@ import LoginView from '~/pages/common/login';
...
@@ -42,18 +44,27 @@ import LoginView from '~/pages/common/login';
// 分成
// 分成
// import DivideOrder from '~/pages/pointManage/divideOrder';
// import DivideOrder from '~/pages/pointManage/divideOrder';
// import DivideRules from '~/pages/pointManage/divideRules';
// import DivideRules from '~/pages/pointManage/divideRules';
// 客户列表
// 活动
// const ActivityList = React.lazy(() => import('src/pages/activityManage/activityList')); //活动管理
// 客户管理
import
CustomListView
from
'~/pages/customManage/customList'
;
import
CustomListView
from
'~/pages/customManage/customList'
;
import
CustomMoneyView
from
'~/pages/customManage/customMoney'
;
import
CustomMoneyView
from
'~/pages/customManage/customMoney'
;
import
CustomMoneyDetail
from
'~/pages/customManage/customMoney/detail'
;
import
CustomMoneyDetail
from
'~/pages/customManage/customMoney/detail'
;
import
AccountManageView
from
'~/pages/systemManage/accountManage'
;
//资源管理
import
CourseManageView
from
'~/pages/mallManage/courseManage'
;
import
MaterielManageView
from
'~/pages/resourceManage/materielManage'
;
import
MaterielManageView
from
'~/pages/resourceManage/materielManage'
;
import
MaterielManageDetail
from
'~/pages/resourceManage/materielManage/detail'
;
import
MaterielManageDetail
from
'~/pages/resourceManage/materielManage/detail'
;
// 活动
//论坛管理
// const ActivityList = React.lazy(() => import('src/pages/activityManage/activityList')); //活动管理
const
DynamicListView
=
React
.
lazy
(()
=>
import
(
'~/pages/forumManage/dynamicList'
));
// 订单
const
ProductOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/productOrder'
));
//销售订单
const
EquipmentOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/equipmentOrder'
));
//设备订单
const
ServiceOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/serviceOrder'
));
//服务订单
const
ProductOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/productOrder/detail'
));
const
ServiceOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/serviceOrder/detail'
));
const
EquipmentOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/equipmentOrder/detail'
));
//商品管理
//商品管理
import
CourseManageView
from
'~/pages/mallManage/courseManage'
;
//课程管理
const
ServiceListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/serviceManage/serviceList'
));
//服务列表
const
ServiceListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/serviceManage/serviceList'
));
//服务列表
const
ServiceDetailView
=
React
.
lazy
(
const
ServiceDetailView
=
React
.
lazy
(
()
=>
import
(
'~/pages/mallManage/serviceManage/serviceDetail'
),
()
=>
import
(
'~/pages/mallManage/serviceManage/serviceDetail'
),
...
@@ -74,19 +85,20 @@ const ProduceDetailView = React.lazy(
...
@@ -74,19 +85,20 @@ const ProduceDetailView = React.lazy(
()
=>
import
(
'~/pages/mallManage/produceManage/produceDetail'
),
()
=>
import
(
'~/pages/mallManage/produceManage/produceDetail'
),
);
//产品详情
);
//产品详情
const
MakeListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/makeManage/makeList'
));
const
MakeListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/makeManage/makeList'
));
// 分类管理
const
CategoryManage
=
React
.
lazy
(()
=>
import
(
'~/pages/categoryManage/category'
));
const
CategoryDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/categoryManage/category/detail'
));
// 目录管理
const
DirectoryManage
=
React
.
lazy
(()
=>
import
(
'~/pages/categoryManage/directoryManage'
));
// 系统管理
import
AccountManageView
from
'~/pages/systemManage/accountManage'
;
// const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表
// const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表
// const IndustryDetailView = React.lazy(
// const IndustryDetailView = React.lazy(
// () => import('~/pages/mallManage/industryManage/industryDetail'),
// () => import('~/pages/mallManage/industryManage/industryDetail'),
// ); //行业详情
// ); //行业详情
// 订单
const
ProductOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/productOrder'
));
//销售订单
const
EquipmentOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/equipmentOrder'
));
//设备订单
const
ServiceOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/serviceOrder'
));
//服务订单
const
ProductOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/productOrder/detail'
));
const
ServiceOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/serviceOrder/detail'
));
const
EquipmentOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/equipmentOrder/detail'
));
// 优惠券
// 优惠券
// const CouponList = React.lazy(() => import('src/pages/couponManage/couponList')); //优惠券管理
// const CouponList = React.lazy(() => import('src/pages/couponManage/couponList')); //优惠券管理
// const CouponDetail = React.lazy(() => import('src/pages/couponManage/couponList/detail')); //优惠券明细
// const CouponDetail = React.lazy(() => import('src/pages/couponManage/couponList/detail')); //优惠券明细
...
@@ -96,11 +108,6 @@ const EquipmentOrderDetail = React.lazy(() => import('~/pages/orderManage/equipm
...
@@ -96,11 +108,6 @@ const EquipmentOrderDetail = React.lazy(() => import('~/pages/orderManage/equipm
// ); // 裂变优惠券操作
// ); // 裂变优惠券操作
// const CouponDetailed = React.lazy(() => import('src/pages/couponManage/couponDetailed')); //优惠券明细
// const CouponDetailed = React.lazy(() => import('src/pages/couponManage/couponDetailed')); //优惠券明细
// 分类管理
const
CategoryManage
=
React
.
lazy
(()
=>
import
(
'~/pages/categoryManage/category'
));
const
CategoryDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/categoryManage/category/detail'
));
// 目录管理
const
DirectoryManage
=
React
.
lazy
(()
=>
import
(
'~/pages/categoryManage/directoryManage'
));
export
interface
RouteObjectType
{
export
interface
RouteObjectType
{
path
:
AgnosticIndexRouteObject
[
'path'
];
path
:
AgnosticIndexRouteObject
[
'path'
];
element
:
any
;
element
:
any
;
...
@@ -153,6 +160,99 @@ export const whiteRouterList: Array<RouteObject & RouteObjectType> = [
...
@@ -153,6 +160,99 @@ export const whiteRouterList: Array<RouteObject & RouteObjectType> = [
// 路由数组
// 路由数组
export
const
routerList
:
Array
<
RouteObjectType
>
=
[
export
const
routerList
:
Array
<
RouteObjectType
>
=
[
{
{
path
:
'/customManage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
22000
,
icon
:
<
TeamOutlined
/>,
title
:
'客户管理'
,
},
children
:
[
{
path
:
'/customManage/customList'
,
element
:
withLoadingComponent
(<
CustomListView
/>),
meta
:
{
id
:
26100
,
title
:
'客户列表'
,
icon
:
<
SolutionOutlined
/>,
},
},
{
path
:
'/customManage/customMoney'
,
element
:
withLoadingComponent
(<
CustomMoneyView
/>),
meta
:
{
id
:
26200
,
title
:
'现金管理'
,
icon
:
<
RedEnvelopeOutlined
/>,
hidden
:
true
,
},
},
{
path
:
'/customManage/customMoney/detail'
,
element
:
withLoadingComponent
(<
CustomMoneyDetail
/>),
meta
:
{
id
:
26200
,
title
:
'现金变更'
,
icon
:
<
RedEnvelopeOutlined
/>,
hidden
:
true
,
},
},
],
},
{
path
:
'/resourceManage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
30000
,
icon
:
<
DribbbleOutlined
/>,
title
:
'资源管理'
,
},
children
:
[
{
path
:
'/resourceManage/materielManage'
,
element
:
withLoadingComponent
(<
MaterielManageView
/>),
meta
:
{
id
:
30100
,
title
:
'宣传管理'
,
icon
:
<
SketchOutlined
/>,
},
},
{
path
:
'/resourceManage/materielManage/detail'
,
element
:
withLoadingComponent
(<
MaterielManageDetail
/>),
meta
:
{
id
:
30100
,
title
:
'宣传管理详情'
,
icon
:
<
SketchOutlined
/>,
hidden
:
true
,
},
},
],
},
{
path
:
'/forumManage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
40000
,
icon
:
<
MessageOutlined
/>,
title
:
'论坛管理'
,
},
children
:
[
{
path
:
'/forumManage/dynamicList'
,
element
:
withLoadingComponent
(<
DynamicListView
/>),
meta
:
{
id
:
40100
,
title
:
'动态列表'
,
icon
:
<
SketchOutlined
/>,
},
},
],
},
{
path
:
'/orderManage'
,
path
:
'/orderManage'
,
element
:
<
LayoutView
/>,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
errorElement
:
<
ErrorPage
/>,
...
@@ -472,47 +572,6 @@ export const routerList: Array<RouteObjectType> = [
...
@@ -472,47 +572,6 @@ export const routerList: Array<RouteObjectType> = [
},
},
],
],
},
},
{
path
:
'/customManage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
22000
,
icon
:
<
TeamOutlined
/>,
title
:
'客户管理'
,
},
children
:
[
{
path
:
'/customManage/customList'
,
element
:
withLoadingComponent
(<
CustomListView
/>),
meta
:
{
id
:
26100
,
title
:
'客户列表'
,
icon
:
<
SolutionOutlined
/>,
},
},
{
path
:
'/customManage/customMoney'
,
element
:
withLoadingComponent
(<
CustomMoneyView
/>),
meta
:
{
id
:
26200
,
title
:
'现金管理'
,
icon
:
<
RedEnvelopeOutlined
/>,
hidden
:
true
,
},
},
{
path
:
'/customManage/customMoney/detail'
,
element
:
withLoadingComponent
(<
CustomMoneyDetail
/>),
meta
:
{
id
:
26200
,
title
:
'现金变更'
,
icon
:
<
RedEnvelopeOutlined
/>,
hidden
:
true
,
},
},
],
},
// {
// {
// path: '/pointManage',
// path: '/pointManage',
// element: <LayoutView />,
// element: <LayoutView />,
...
@@ -681,37 +740,6 @@ export const routerList: Array<RouteObjectType> = [
...
@@ -681,37 +740,6 @@ export const routerList: Array<RouteObjectType> = [
// ],
// ],
// },
// },
{
{
path
:
'/resourceManage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
30000
,
icon
:
<
DribbbleOutlined
/>,
title
:
'资源管理'
,
},
children
:
[
{
path
:
'/resourceManage/materielManage'
,
element
:
withLoadingComponent
(<
MaterielManageView
/>),
meta
:
{
id
:
30100
,
title
:
'宣传管理'
,
icon
:
<
SketchOutlined
/>,
},
},
{
path
:
'/resourceManage/materielManage/detail'
,
element
:
withLoadingComponent
(<
MaterielManageDetail
/>),
meta
:
{
id
:
30100
,
title
:
'宣传管理详情'
,
icon
:
<
SketchOutlined
/>,
hidden
:
true
,
},
},
],
},
{
path
:
'/systemManage'
,
path
:
'/systemManage'
,
element
:
<
LayoutView
/>,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
errorElement
:
<
ErrorPage
/>,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论