Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jingqi.liu
pica-admin-consultation
提交
fbf3c0ce
提交
fbf3c0ce
编写于
5月 17, 2019
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加置顶功能
上级
69ea3a2d
变更
6
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
871 行增加
和
837 行删除
+871
-837
package-lock.json
package-lock.json
+803
-803
App.vue
src/App.vue
+0
-2
common.scss
src/style/common.scss
+1
-1
add-edit.vue
src/views/discuss/add-edit.vue
+12
-0
index.vue
src/views/discuss/index.vue
+4
-6
index.vue
src/views/topicManage/index.vue
+51
-25
未找到文件。
package-lock.json
浏览文件 @
fbf3c0ce
此差异已折叠。
点击以展开。
src/App.vue
浏览文件 @
fbf3c0ce
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
</el-container>
</el-container>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
VHeader
from
'./views/layout/header.vue'
import
VHeader
from
'./views/layout/header.vue'
import
VSlidebar
from
'./views/layout/slidebar.vue'
import
VSlidebar
from
'./views/layout/slidebar.vue'
...
@@ -103,7 +102,6 @@ export default {
...
@@ -103,7 +102,6 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
// @import './style/common';
// @import './style/common';
@import
'./style/global'
;
@import
'./style/global'
;
...
...
src/style/common.scss
浏览文件 @
fbf3c0ce
...
@@ -14,7 +14,7 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l
...
@@ -14,7 +14,7 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l
border
:
none
;
border
:
none
;
// color: #333;
// color: #333;
font-weight
:
normal
;
font-weight
:
normal
;
font-family
:
"
PingFangSC"
,
"Microsoft Yahei
"
;
font-family
:
"
Helvetica Neue"
,
Helvetica
,
"PingFang SC"
,
"Hiragino Sans GB"
,
"Microsoft YaHei"
,
SimSun
,
"sans-serif
"
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-tap-highlight-color
:transparent
;
-webkit-tap-highlight-color
:transparent
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
...
...
src/views/discuss/add-edit.vue
浏览文件 @
fbf3c0ce
...
@@ -65,6 +65,11 @@
...
@@ -65,6 +65,11 @@
<el-input
v-model=
"form.commentBtnText"
size=
"mini"
style=
"width: 100px;"
:maxLength=
"maxBtn"
></el-input>
<el-input
v-model=
"form.commentBtnText"
size=
"mini"
style=
"width: 100px;"
:maxLength=
"maxBtn"
></el-input>
</div>
</div>
</el-form-item>
<el-form-item
label=
"话题详情页评论文案"
required
label-width=
"140px"
>
<div>
<el-input
v-model=
"form.commentDetails"
size=
"mini"
style=
"width: 100px;"
:maxLength=
"maxBtn"
></el-input>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-form-item
label=
"备注"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -119,6 +124,7 @@ export default {
...
@@ -119,6 +124,7 @@ export default {
rz
:
8
,
rz
:
8
,
topicBtnText
:
'发布话题'
,
topicBtnText
:
'发布话题'
,
commentBtnText
:
'发布评论'
,
commentBtnText
:
'发布评论'
,
commentDetails
:
'全部评论'
,
displayTopicBtn
:
true
,
//是否显示发布话题按钮
displayTopicBtn
:
true
,
//是否显示发布话题按钮
dispalyCommentBtn
:
true
,
//是否显示评论按钮
dispalyCommentBtn
:
true
,
//是否显示评论按钮
remark
:
''
,
remark
:
''
,
...
@@ -193,6 +199,11 @@ export default {
...
@@ -193,6 +199,11 @@ export default {
this
.
showError
(
'请输入二级页按钮文字'
);
this
.
showError
(
'请输入二级页按钮文字'
);
return
;
return
;
}
}
if
(
this
.
form
.
commentDetails
==
''
){
this
.
showError
(
'话题详情页评论文案'
);
return
;
}
auditRules
=
Number
(
this
.
form
.
wz
)
+
Number
(
this
.
form
.
tp
)
auditRules
=
Number
(
this
.
form
.
wz
)
+
Number
(
this
.
form
.
tp
)
...
@@ -200,6 +211,7 @@ export default {
...
@@ -200,6 +211,7 @@ export default {
let
parm
=
{
let
parm
=
{
"auditrules"
:
auditRules
,
"auditrules"
:
auditRules
,
"commentbtntext"
:
this
.
form
.
commentBtnText
,
"commentbtntext"
:
this
.
form
.
commentBtnText
,
"commentDetails"
:
this
.
form
.
commentDetails
,
//"deleteflag": 0,
//"deleteflag": 0,
//"derivedid": 0,
//"derivedid": 0,
"category"
:
this
.
form
.
deriverName
,
"category"
:
this
.
form
.
deriverName
,
...
...
src/views/discuss/index.vue
浏览文件 @
fbf3c0ce
...
@@ -51,7 +51,6 @@
...
@@ -51,7 +51,6 @@
</el-col>
</el-col>
</el-form>
</el-form>
</el-row>
</el-row>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData"
style=
"width: 100%"
v-loading=
"loading"
>
style=
"width: 100%"
v-loading=
"loading"
>
...
@@ -141,7 +140,9 @@ export default {
...
@@ -141,7 +140,9 @@ export default {
value
:
'3'
value
:
'3'
}
}
],
],
tableData
:
[],
tableData
:
[{
id
:
'1'
}],
totalRows
:
0
,
totalRows
:
0
,
loading
:
false
,
loading
:
false
,
...
@@ -223,7 +224,6 @@ export default {
...
@@ -223,7 +224,6 @@ export default {
})
})
this
.
getData
()
this
.
getData
()
},
},
creatFun
(
index
){
creatFun
(
index
){
if
(
index
==
1
){
if
(
index
==
1
){
this
.
$router
.
push
({
path
:
'/report-set'
})
this
.
$router
.
push
({
path
:
'/report-set'
})
...
@@ -309,6 +309,4 @@ export default {
...
@@ -309,6 +309,4 @@ export default {
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/topicManage/index.vue
浏览文件 @
fbf3c0ce
...
@@ -59,19 +59,24 @@
...
@@ -59,19 +59,24 @@
<el-table-column
prop=
"createdName"
label=
"创建人"
min-width=
"50"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdName"
label=
"创建人"
min-width=
"50"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdtime"
label=
"创建日期"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdtime"
label=
"创建日期"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"modifiedName"
label=
"最后修改人"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"modifiedName"
label=
"最后修改人"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"modifiedName"
label=
"话题来源"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
official
?
'官方'
:
'用户'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"modifiedtime"
label=
"修改日期"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"modifiedtime"
label=
"修改日期"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
min-width=
"80"
align=
"center"
>
<el-table-column
prop=
"status"
label=
"状态"
min-width=
"80"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
official
?
'已发布'
:
'未发布'
}}
</span>
<span>
{{
scope
.
row
.
releaseStatus
==
1
?
'已发布'
:
'未发布'
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"200"
>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"200"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
type=
"primary"
v-if=
"scope.row.releaseStatus ==
0
"
size=
"small"
@
click=
"optFun(scope.row)"
disabled
>
发布
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
type=
"primary"
v-if=
"scope.row.releaseStatus ==
2
"
size=
"small"
@
click=
"optFun(scope.row)"
disabled
>
发布
</el-button>
<el-button
type=
"primary"
v-if=
"scope.row.releaseStatus == 1"
size=
"small"
@
click=
"optFun(scope.row)"
disabled
>
下线
</el-button>
<el-button
type=
"primary"
v-if=
"scope.row.releaseStatus == 1"
size=
"small"
@
click=
"optFun(scope.row)"
disabled
>
下线
</el-button>
<el-button
disabled
v-if=
"scope.$index == 0"
type=
"info"
size=
"small"
@
click=
"topicManage(scope.row
)"
>
置顶
</el-button>
<el-button
v-if=
"scope.row.toporder == 0"
type=
"primary"
size=
"small"
@
click=
"topicManage(scope.row,'置顶'
)"
>
置顶
</el-button>
<el-button
v-else
type=
"primary"
size=
"small"
@
click=
"topicManage(scope.row
)"
>
置顶
</el-button>
<el-button
v-else
type=
"primary"
size=
"small"
@
click=
"topicManage(scope.row
,'取消置顶')"
>
取消
置顶
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<div
slot=
"empty"
>
<div
slot=
"empty"
>
...
@@ -142,7 +147,11 @@ export default {
...
@@ -142,7 +147,11 @@ export default {
value
:
'3'
value
:
'3'
}
}
],
],
tableData
:
[],
tableData
:
[
{
}
],
totalRows
:
0
,
totalRows
:
0
,
loading
:
false
,
loading
:
false
,
isShow
:
false
,
isShow
:
false
,
...
@@ -163,7 +172,7 @@ export default {
...
@@ -163,7 +172,7 @@ export default {
created
()
{
created
()
{
this
.
discussId
=
Number
(
this
.
$route
.
query
.
id
)
;
this
.
discussId
=
Number
(
this
.
$route
.
query
.
id
)
this
.
getData
()
this
.
getData
()
//this.sun()
//this.sun()
},
},
...
@@ -179,7 +188,7 @@ export default {
...
@@ -179,7 +188,7 @@ export default {
getFun
(
obj
){
getFun
(
obj
){
console
.
log
(
obj
)
console
.
log
(
obj
)
this
.
isShow
=
false
;
this
.
isShow
=
false
if
(
obj
){
if
(
obj
){
this
.
getData
()
this
.
getData
()
}
}
...
@@ -253,23 +262,40 @@ export default {
...
@@ -253,23 +262,40 @@ export default {
// this.$message.error(error);
// this.$message.error(error);
});
});
},
},
topicManage
(
item
){
// 置顶
topicManage
(
item
,
str
){
///topic/topicTop
///topic/topicTop
console
.
log
(
item
)
let
_this
=
this
;
let
_this
=
this
;
_this
.
GET
(
'/interaction/topic/topicTop'
,{
topicId
:
item
.
id
}).
then
((
res
)
=>
{
let
status
=
0
;
if
(
res
.
code
==
"000000"
)
{
if
(
str
==
'置顶'
){
_this
.
$message
({
status
=
1
type
:
'success'
,
}
else
if
(
str
==
'取消置顶'
){
message
:
'操作成功!'
status
=
2
});
}
_this
.
setTimeFun
()
this
.
$confirm
(
'确定要'
+
str
+
'该讨论吗?'
,
'提示'
,
{
}
confirmButtonText
:
'确定'
,
}).
catch
(
function
(
error
)
{
cancelButtonText
:
'取消'
,
// this.$message.error(error);
type
:
'warning'
});
}).
then
(()
=>
{
_this
.
GET
(
'/interaction/topic/topicTop'
,{
topicId
:
item
.
id
,
topNum
:
status
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"000000"
)
{
_this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
});
_this
.
setTimeFun
()
}
}).
catch
(
function
(
error
)
{
// this.$message.error(error);
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
})
})
},
},
setTimeFun
(){
setTimeFun
(){
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -282,13 +308,13 @@ export default {
...
@@ -282,13 +308,13 @@ export default {
let
status
=
0
,
str
=
''
,
_this
=
this
,
index
=
0
;
let
status
=
0
,
str
=
''
,
_this
=
this
,
index
=
0
;
str
=
row
.
releaseStatus
==
1
?
'下架'
:
'发布'
str
=
row
.
releaseStatus
==
1
?
'下架'
:
'发布'
if
(
row
.
releaseStatus
==
1
){
if
(
row
.
releaseStatus
==
1
){
index
=
0
index
=
2
}
else
if
(
row
.
releaseStatus
==
0
){
}
else
if
(
row
.
releaseStatus
==
2
){
index
=
1
index
=
1
}
}
let
parm
=
{
let
parm
=
{
topic
:{
topic
:{
id
:
row
.
id
,
official
:
index
id
:
row
.
id
,
releaseStatus
:
index
}
}
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录