Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
128a2f8b
提交
128a2f8b
authored
10月 07, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
43324671
d86ff303
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
40 行增加
和
13 行删除
+40
-13
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
index.scss
src/pages/forumManage/dynamicList/index.scss
+12
-5
index.tsx
src/pages/forumManage/dynamicList/index.tsx
+7
-2
index.tsx
.../forumManage/topicList/components/addTopicModal/index.tsx
+13
-5
index.tsx
src/pages/forumManage/topicList/index.tsx
+7
-0
没有找到文件。
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
128a2f8b
...
...
@@ -14,4 +14,4 @@ patches:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag
:
5ee7e014e51f387d5eaaf208b66cf1d55d47b605
newTag
:
6fbb4c210cb5b7bffe02b2d4e1e5d440b72d5241
src/pages/forumManage/dynamicList/index.scss
浏览文件 @
128a2f8b
.forum-description
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
cursor
:
pointer
;
.dynamic-list
{
.forum-description
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
cursor
:
pointer
;
}
.forum-topic
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
src/pages/forumManage/dynamicList/index.tsx
浏览文件 @
128a2f8b
import
SearchBox
,
{
searchColumns
}
from
'~/components/search-box'
;
import
{
Button
,
message
,
Modal
,
Table
,
T
ag
,
T
ooltip
}
from
'antd'
;
import
{
Button
,
message
,
Modal
,
Table
,
Tooltip
}
from
'antd'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
useEffect
,
useState
}
from
'react'
;
import
DynamicDetailModal
from
'./components/dynamicDetailModal'
;
...
...
@@ -47,7 +47,12 @@ const DynamicList = () => {
title
:
'话题'
,
align
:
'center'
,
dataIndex
:
'gambitName'
,
render
:
(
text
:
string
[])
=>
text
?.
map
((
v
,
index
)
=>
<
Tag
key=
{
index
}
>
{
v
}
</
Tag
>),
ellipsis
:
true
,
render
:
(
text
:
string
[])
=>
(
<
Tooltip
title=
{
text
.
join
(
','
)
}
>
<
div
className=
'forum-topic'
>
{
text
.
join
(
','
)
}
</
div
>
</
Tooltip
>
),
},
{
title
:
'作者(用户名称)'
,
...
...
src/pages/forumManage/topicList/components/addTopicModal/index.tsx
浏览文件 @
128a2f8b
...
...
@@ -26,7 +26,7 @@ const AddTopicModal: FC<ModalProps & selfProps> = ({ open, onCancel, onOk, curre
form
.
validateFields
().
then
((
values
)
=>
{
ForumManageAPI
[
currentTopicItem
?
'updateGambit'
:
'addGambit'
]({
...
values
,
gambitName
:
values
.
gambitName
,
gambitName
:
'#'
+
values
.
gambitName
,
id
:
currentTopicItem
?
currentTopicItem
.
id
:
undefined
,
}).
then
(({
code
})
=>
{
if
(
code
===
'200'
)
{
...
...
@@ -61,7 +61,7 @@ const AddTopicModal: FC<ModalProps & selfProps> = ({ open, onCancel, onOk, curre
form
.
setFieldsValue
({
gambitCover
:
currentTopicItem
.
gambitCover
||
undefined
,
gambitIcon
:
currentTopicItem
.
gambitIcon
||
undefined
,
gambitName
:
currentTopicItem
.
gambitName
,
gambitName
:
currentTopicItem
.
gambitName
?.
replace
(
/^#/
,
''
)
,
gambitProperty
:
currentTopicItem
.
gambitProperty
,
});
setGambitIconFileList
(
...
...
@@ -98,9 +98,13 @@ const AddTopicModal: FC<ModalProps & selfProps> = ({ open, onCancel, onOk, curre
name=
'gambitName'
rules=
{
[{
required
:
true
,
message
:
'请输入名称'
}]
}
>
<
Input
placeholder=
'请输入名称'
maxLength=
{
30
}
/>
<
Input
placeholder=
'请输入名称'
maxLength=
{
30
}
prefix=
'#'
/>
</
Form
.
Item
>
<
Form
.
Item
label=
'图标'
name=
'gambitIcon'
>
<
Form
.
Item
label=
'图标'
name=
'gambitIcon'
rules=
{
[{
required
:
true
,
message
:
'请上传图标'
}]
}
>
<
Uploader
fileUpload
listType=
'picture-card'
...
...
@@ -111,7 +115,11 @@ const AddTopicModal: FC<ModalProps & selfProps> = ({ open, onCancel, onOk, curre
<
UploadOutlined
/>
</
Uploader
>
</
Form
.
Item
>
<
Form
.
Item
label=
'封面'
name=
'gambitCover'
>
<
Form
.
Item
label=
'封面'
name=
'gambitCover'
rules=
{
[{
required
:
true
,
message
:
'请上传封面'
}]
}
>
<
Uploader
fileUpload
listType=
'picture-card'
...
...
src/pages/forumManage/topicList/index.tsx
浏览文件 @
128a2f8b
...
...
@@ -18,6 +18,7 @@ const TopicList = () => {
title
:
'名称'
,
align
:
'center'
,
dataIndex
:
'gambitName'
,
width
:
'20%'
,
},
{
title
:
'属性'
,
...
...
@@ -40,6 +41,12 @@ const TopicList = () => {
render
:
(
text
:
string
)
=>
<
Image
src=
{
text
}
width=
{
50
}
height=
{
50
}
/>,
},
{
title
:
'帖子数'
,
dataIndex
:
'postCount'
,
align
:
'center'
,
render
:
(
text
:
number
)
=>
text
||
0
,
},
{
title
:
'操作'
,
align
:
'center'
,
width
:
'20%'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论