Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
acfee2c9
提交
acfee2c9
编写于
4月 15, 2019
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
话题
上级
f7e49685
变更
4
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
438 行增加
和
0 行删除
+438
-0
index.vue
src/views/discuss/index.vue
+5
-0
slidebar.vue
src/views/layout/slidebar.vue
+5
-0
add-edit.vue
src/views/topicManage/add-edit.vue
+118
-0
index.vue
src/views/topicManage/index.vue
+310
-0
未找到文件。
src/views/discuss/index.vue
浏览文件 @
acfee2c9
...
...
@@ -69,6 +69,7 @@
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
type=
"primary"
v-if=
"scope.row.status == 3 || scope.row.status == 1"
size=
"small"
@
click=
"optFun(scope.row,'发布')"
>
发布
</el-button>
<el-button
type=
"primary"
v-if=
"scope.row.status == 2"
size=
"small"
@
click=
"optFun(scope.row,'下线')"
>
下线
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"topicManage(scope.row)"
>
话题管理
</el-button>
</
template
>
</el-table-column>
...
...
@@ -227,6 +228,10 @@ export default {
edit
(
item
){
this
.
$router
.
push
({
path
:
'creat-discuss'
,
query
:{
id
:
item
.
id
}})
},
topicManage
(
item
){
},
// 发布、下线
optFun
(
row
,
str
)
{
...
...
src/views/layout/slidebar.vue
浏览文件 @
acfee2c9
...
...
@@ -44,6 +44,11 @@ export default {
icon
:
'el-icon-setting'
,
index
:
'discuss-list'
},
{
title
:
'话题管理'
,
icon
:
'el-icon-setting'
,
index
:
'topic-list'
},
]
},
...
...
src/views/topicManage/add-edit.vue
0 → 100644
浏览文件 @
acfee2c9
<
template
>
<el-dialog
title=
"话题"
:visible
.
sync=
"dialogFormVisible"
>
<el-form
:model=
"form"
class=
"topicOpt"
>
<el-form-item
label=
"主题"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"form.name"
auto-complete=
"off"
clearable
size=
"mini"
></el-input>
</el-form-item>
<el-form-item
label=
"内容"
:label-width=
"formLabelWidth"
>
<el-input
type=
"textarea"
v-model=
"form.name"
auto-complete=
"off"
clearable
size=
"mini"
></el-input>
</el-form-item>
<el-form-item
label=
"话题配图"
:label-width=
"formLabelWidth"
>
<el-upload
action=
"https://jsonplaceholder.typicode.com/posts/"
list-type=
"picture-card"
:on-preview=
"handlePictureCardPreview"
:on-remove=
"handleRemove"
>
<i
class=
"el-icon-plus"
></i>
</el-upload>
<el-dialog
:visible
.
sync=
"dialogVisible"
size=
"tiny"
>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
>
</el-dialog>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"dialogFormVisible = false"
>
确 定
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu-util"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
*
as
commonUtil
from
"../../utils/utils"
;
let
vm
=
null
;
export
default
{
data
()
{
return
{
formLabelWidth
:
"80px"
,
form
:{},
id
:
null
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
};
},
props
:{
isShow
:{
default
:
false
,
type
:
Boolean
}
},
computed
:
{
...
mapGetters
([
"_token"
,
"idType"
])
},
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
if
(
this
.
id
){
this
.
getDissById
(
this
.
id
)
}
this
.
dialogFormVisible
=
this
.
isShow
},
// 挂载到Dom完成时
mounted
:
function
()
{
},
methods
:
{
handlePictureCardPreview
(){
},
handleRemove
(){
},
//返回
goBack
(){
this
.
$router
.
back
(
-
1
)
},
showError
(
str
){
this
.
$message
({
message
:
str
,
type
:
'warning'
});
},
//获取讨论组件详细
getDissById
(
id
){
this
.
GET
(
'/interaction/discuss/'
+
id
).
then
((
res
)
=>
{
// closeLoading(vm)
if
(
res
.
code
==
'000000'
)
{
}
})
}
}
};
</
script
>
<
style
lang=
"scss"
>
.topicOpt
{
.el-input__inner
,
.el-textarea__inner
{
width
:
300px
;
}
.el-form-item__label
{
// line-height: 26px;
}
}
</
style
>
\ No newline at end of file
src/views/topicManage/index.vue
0 → 100644
浏览文件 @
acfee2c9
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录