Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
85d0aeba
提交
85d0aeba
authored
10月 25, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
4233a7be
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
33 行增加
和
11 行删除
+33
-11
AddPostDialog.vue
src/modules/teach/posts/components/AddPostDialog.vue
+10
-0
ReplyPostDialog.vue
src/modules/teach/posts/components/ReplyPostDialog.vue
+3
-0
ReplyPostItem.vue
src/modules/teach/posts/components/ReplyPostItem.vue
+10
-2
List.vue
src/modules/teach/posts/views/List.vue
+10
-9
没有找到文件。
src/modules/teach/posts/components/AddPostDialog.vue
浏览文件 @
85d0aeba
...
@@ -289,4 +289,14 @@ const handleChangeCourse = () => {
...
@@ -289,4 +289,14 @@ const handleChangeCourse = () => {
font-size
:
12px
;
font-size
:
12px
;
color
:
#989898
;
color
:
#989898
;
}
}
:deep
(
.el-upload-list__item
)
{
margin-right
:
20px
;
.el-upload-list__item-info
{
display
:
inline-flex
;
justify-content
:
center
;
flex-direction
:
column
;
width
:
calc
(
100%
-
100px
);
margin-left
:
4px
;
}
}
</
style
>
</
style
>
src/modules/teach/posts/components/ReplyPostDialog.vue
浏览文件 @
85d0aeba
...
@@ -113,4 +113,7 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
...
@@ -113,4 +113,7 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
font-size
:
12px
;
font-size
:
12px
;
color
:
#989898
;
color
:
#989898
;
}
}
:deep
(
.el-upload-list__item
)
{
margin-right
:
20px
;
}
</
style
>
</
style
>
src/modules/teach/posts/components/ReplyPostItem.vue
浏览文件 @
85d0aeba
...
@@ -113,7 +113,10 @@ const handleDelFloor = (val: any) => {
...
@@ -113,7 +113,10 @@ const handleDelFloor = (val: any) => {
<div
class=
"post_left"
>
<div
class=
"post_left"
>
<div
class=
"left_logo"
v-if=
"props.firstFloor?.floor === 1"
></div>
<div
class=
"left_logo"
v-if=
"props.firstFloor?.floor === 1"
></div>
<div
class=
"left_logo_txt"
>
楼主
</div>
<div
class=
"left_logo_txt"
>
楼主
</div>
<img
:src=
"props.firstFloor?.avatar"
class=
"left_avatar"
/>
<img
:src=
"props.firstFloor?.avatar || 'https://webapp-pub.ezijing.com/center_resource/avatar.png'"
class=
"left_avatar"
/>
<div
class=
"left_name"
>
{{
props
.
firstFloor
?.
name
}}
</div>
<div
class=
"left_name"
>
{{
props
.
firstFloor
?.
name
}}
</div>
<div
class=
"left_remark"
v-if=
"props.firstFloor?.tag !== '老师'"
>
<div
class=
"left_remark"
v-if=
"props.firstFloor?.tag !== '老师'"
>
<img
:src=
"imgUrl"
class=
"remark_img"
/>
<img
:src=
"imgUrl"
class=
"remark_img"
/>
...
@@ -158,7 +161,11 @@ const handleDelFloor = (val: any) => {
...
@@ -158,7 +161,11 @@ const handleDelFloor = (val: any) => {
<div
class=
"right_list"
v-if=
"props.firstFloor?.comments_total > 0"
>
<div
class=
"right_list"
v-if=
"props.firstFloor?.comments_total > 0"
>
<div
v-for=
"(item, index) in postItemList"
:key=
"index"
>
<div
v-for=
"(item, index) in postItemList"
:key=
"index"
>
<div
class=
"list_top"
>
<div
class=
"list_top"
>
<img
:src=
"item.avatar"
alt=
""
class=
"top_img"
/>
<img
:src=
"item.avatar || 'https://webapp-pub.ezijing.com/center_resource/avatar.png'"
alt=
""
class=
"top_img"
/>
<!-- <div
<!-- <div
class="top_name"
class="top_name"
v-html="
v-html="
...
@@ -246,6 +253,7 @@ const handleDelFloor = (val: any) => {
...
@@ -246,6 +253,7 @@ const handleDelFloor = (val: any) => {
.left_avatar
{
.left_avatar
{
width
:
100px
;
width
:
100px
;
height
:
100px
;
height
:
100px
;
object-fit
:
cover
;
}
}
.left_name
{
.left_name
{
font-size
:
16px
;
font-size
:
16px
;
...
...
src/modules/teach/posts/views/List.vue
浏览文件 @
85d0aeba
...
@@ -3,16 +3,12 @@ import { ElMessage, ElMessageBox } from 'element-plus'
...
@@ -3,16 +3,12 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import
{
getConditionList
,
getPostsList
,
delPosts
,
setTopPosts
}
from
'../api'
import
{
getConditionList
,
getPostsList
,
delPosts
,
setTopPosts
}
from
'../api'
import
AddPostDialog
from
'../components/AddPostDialog.vue'
import
AddPostDialog
from
'../components/AddPostDialog.vue'
import
{
useProjectList
}
from
'@/composables/useGetProjectList'
import
{
useProjectList
}
from
'@/composables/useGetProjectList'
// import { useUserStore } from '@/stores/user'
import
{
useMapStore
}
from
'@/stores/map'
import
{
useMapStore
}
from
'@/stores/map'
const
router
=
useRouter
()
const
store
=
useMapStore
()
const
store
=
useMapStore
()
const
typeList
=
store
.
getMapValuesByKey
(
'learning_discussion_type'
)
console
.
log
(
typeList
,
'123'
)
const
departmentList
:
any
=
useProjectList
(
''
,
'79806610719731712'
).
departmentList
const
departmentList
:
any
=
useProjectList
(
''
,
'79806610719731712'
).
departmentList
// 判断当前用户是不是超级管理员
const
router
=
useRouter
()
// const user = useUserStore().roles
// const isAdmin = !!user.find((item: any) => item.name === '超级管理员')
const
appList
=
ref
()
const
appList
=
ref
()
const
isShowAddDialog
=
ref
(
false
)
const
isShowAddDialog
=
ref
(
false
)
const
organ_id
=
ref
(
''
)
const
organ_id
=
ref
(
''
)
...
@@ -60,7 +56,7 @@ const listOptions = $computed(() => {
...
@@ -60,7 +56,7 @@ const listOptions = $computed(() => {
prop
:
'type'
,
prop
:
'type'
,
label
:
'帖子类型:'
,
label
:
'帖子类型:'
,
placeholder
:
'帖子类型'
,
placeholder
:
'帖子类型'
,
options
:
typeList
,
options
:
store
.
getMapValuesByKey
(
'learning_discussion_type'
)
,
labelKey
:
'label'
,
labelKey
:
'label'
,
valueKey
:
'value'
valueKey
:
'value'
},
},
...
@@ -204,7 +200,12 @@ const handleDel = (row: any) => {
...
@@ -204,7 +200,12 @@ const handleDel = (row: any) => {
// 置顶帖子
// 置顶帖子
const
handleSetTop
=
(
row
:
any
)
=>
{
const
handleSetTop
=
(
row
:
any
)
=>
{
setTopPosts
({
discussion_id
:
row
.
id
}).
then
(()
=>
{
setTopPosts
({
discussion_id
:
row
.
id
}).
then
(()
=>
{
ElMessage
.
success
(
'帖子置顶成功'
)
console
.
log
(
row
.
is_top
,
'123'
)
if
(
row
.
is_top
===
'0'
)
{
ElMessage
.
success
(
'帖子置顶成功'
)
}
else
{
ElMessage
.
success
(
'帖子取消置顶成功'
)
}
handleRefresh
()
handleRefresh
()
})
})
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论