Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
059c44de
提交
059c44de
authored
6月 22, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
举报信息
上级
6d339e73
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
97 行增加
和
65 行删除
+97
-65
ComplainDao.xml
...admin/src/main/resources/com/platform/dao/ComplainDao.xml
+30
-20
complain.html
...form-admin/src/main/webapp/WEB-INF/page/sys/complain.html
+35
-43
index.html
platform-admin/src/main/webapp/index.html
+1
-1
complain.js
platform-admin/src/main/webapp/js/sys/complain.js
+31
-1
没有找到文件。
platform-admin/src/main/resources/com/platform/dao/ComplainDao.xml
浏览文件 @
059c44de
...
@@ -23,26 +23,36 @@
...
@@ -23,26 +23,36 @@
<result
property=
"complainUserId"
column=
"complain_user_id"
/>
<result
property=
"complainUserId"
column=
"complain_user_id"
/>
</resultMap>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.Complain
Entity
"
>
<select
id=
"queryObject"
resultType=
"com.platform.entity.Complain
Vo
"
>
select
select
`id`,
c.`id`,
`type`,
c.`type`,
`archived`,
c.`archived`,
`archived_by`,
c.`archived_by`,
`archived_date`,
c.`archived_date`,
`create_date`,
c.`create_date`,
`created_by`,
c.`created_by`,
`update_date`,
c.`update_date`,
`updated_by`,
c.`updated_by`,
`version`,
c.`version`,
`description`,
c.`description`,
`post_id`,
c.`post_id`,
`comment_id`,
c.`comment_id`,
`reply_id`,
c.`reply_id`,
`user_id`,
c.`user_id`,
status
u.nick complainUser,
from complain
u1.nick complainByUser,
where id = #{id}
p.caption caption,
c.status,
complain_user_id
from complain c
left join tb_cf_user_info u
on c.user_id=u.user_id
left join tb_cf_user_info u1
on c.complain_user_id=u1.user_id
left join post p
on c.post_id=p.id
where c.id = #{id}
</select>
</select>
<!-- <select id="queryList" resultType="com.platform.entity.ComplainVo">-->
<!-- <select id="queryList" resultType="com.platform.entity.ComplainVo">-->
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/complain.html
浏览文件 @
059c44de
...
@@ -39,60 +39,52 @@
...
@@ -39,60 +39,52 @@
</Row>
</Row>
<table
id=
"jqGrid"
></table>
<table
id=
"jqGrid"
></table>
</div>
</div>
<Modal
<Card
v-show=
"!showList"
>
v-model=
"modal1"
<p
slot=
"title"
>
{{title}}
</p>
title=
"举报信息"
@
on-ok=
"deal"
width=
"600px"
@
on-cancel=
"cancel"
>
<i-form
ref=
"formValidate"
:model=
"complain"
:rules=
"ruleValidate"
:label-width=
"80"
>
<i-form
ref=
"formValidate"
:model=
"complain"
:rules=
"ruleValidate"
:label-width=
"80"
>
<Form-item
label=
"举报类型 0:帖子 1:评论 2:回复"
prop=
"type"
>
<Form-item
label=
"被举报者:"
prop=
"complainUserId"
>
<i-input
v-model=
"complain.type"
placeholder=
"举报类型 0:帖子 1:评论 2:回复"
/>
<i-span>
{{complain.complainUserId}}
</i-span>
</Form-item>
<Form-item
label=
"0:已删除 1:正常"
prop=
"archived"
>
<i-input
v-model=
"complain.archived"
placeholder=
"0:已删除 1:正常"
/>
</Form-item>
<Form-item
label=
"删除人"
prop=
"archivedBy"
>
<i-input
v-model=
"complain.archivedBy"
placeholder=
"删除人"
/>
</Form-item>
<Form-item
label=
"删除时间"
prop=
"archivedDate"
>
<i-input
v-model=
"complain.archivedDate"
placeholder=
"删除时间"
/>
</Form-item>
<Form-item
label=
"创建时间"
prop=
"createDate"
>
<i-input
v-model=
"complain.createDate"
placeholder=
"创建时间"
/>
</Form-item>
<Form-item
label=
"创建人"
prop=
"createdBy"
>
<i-input
v-model=
"complain.createdBy"
placeholder=
"创建人"
/>
</Form-item>
<Form-item
label=
"更新时间"
prop=
"updateDate"
>
<i-input
v-model=
"complain.updateDate"
placeholder=
"更新时间"
/>
</Form-item>
</Form-item>
<Form-item
label=
"更新人"
prop=
"updatedBy"
>
<Form-item
label=
"举报类型:"
prop=
"type"
>
<i-input
v-model=
"complain.updatedBy"
placeholder=
"更新人"
/>
<i-span
v-if=
"complain.type===0"
>
帖子
</i-span>
<i-span
v-if=
"complain.type===1"
>
评论
</i-span>
<i-span
v-if=
"complain.type===2"
>
回复
</i-span>
</Form-item>
</Form-item>
<Form-item
label=
"
版本"
prop=
"version
"
>
<Form-item
label=
"
举报内容:
"
>
<i-
input
v-model=
"complain.version"
placeholder=
"版本"
/
>
<i-
span>
{{complain.caption}}
</i-span
>
</Form-item>
</Form-item>
<Form-item
label=
"举报
信息
"
prop=
"description"
>
<Form-item
label=
"举报
原因:
"
prop=
"description"
>
<i-
input
v-model=
"complain.description"
placeholder=
"举报信息"
/
>
<i-
span>
{{complain.description}}
</i-span
>
</Form-item>
</Form-item>
<Form-item
label=
"
帖子ID"
prop=
"postId
"
>
<Form-item
label=
"
举报时间:"
prop=
"createDate
"
>
<i-
input
v-model=
"complain.postId"
placeholder=
"帖子ID"
/
>
<i-
span>
{{complain.createDate}}
</i-span
>
</Form-item>
</Form-item>
<Form-item
label=
"评论ID"
prop=
"commentId"
>
<Form-item
label=
"处理结果:"
>
<i-input
v-model=
"complain.commentId"
placeholder=
"评论ID"
/>
<Checkbox-group
v-model=
"result"
@
on-change=
"change"
>
<Checkbox
label=
"不处理"
></Checkbox>
<Checkbox
label=
"禁止发言"
></Checkbox>
<Checkbox
label=
"禁止发帖"
></Checkbox>
</Checkbox-group>
</Form-item>
</Form-item>
<Form-item
label=
"回复ID"
prop=
"replyId"
>
<Form-item
v-show=
"prohibitSpeak"
label=
"禁言时间:"
>
<i-input
v-model=
"complain.replyId"
placeholder=
"回复ID"
/>
<i-col
span=
"12"
>
<Date-picker
type=
"datetime"
placeholder=
"选择日期和时间"
style=
"width: 200px"
></Date-picker>
</i-col>
</Form-item>
</Form-item>
<Form-item
label=
"举报人"
prop=
"userId"
>
<Form-item
v-show=
"prohibitPost"
label=
"禁帖时间:"
>
<i-input
v-model=
"complain.userId"
placeholder=
"举报人"
/>
<i-col
span=
"12"
>
<Date-picker
type=
"datetime"
placeholder=
"选择日期和时间"
style=
"width: 200px"
></Date-picker>
</i-col>
</Form-item>
</Form-item>
<Form-item>
<Form-item
label=
"处理原因:"
prop=
"reason"
>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
<textarea
v-model=
"reason"
style=
"width: 300px;height: 200px;"
></textarea>
<i-button
type=
"warning"
@
click=
"reload"
style=
"margin-left: 8px"
/>
返回
</i-button>
<i-button
type=
"ghost"
@
click=
"handleReset('formValidate')"
style=
"margin-left: 8px"
>
重置
</i-button>
</Form-item>
</Form-item>
</i-form>
</i-form>
</
Card
>
</
Modal
>
</div>
</div>
<script
src=
"${rc.contextPath}/js/sys/complain.js?_${date.systemTime}"
></script>
<script
src=
"${rc.contextPath}/js/sys/complain.js?_${date.systemTime}"
></script>
...
...
platform-admin/src/main/webapp/index.html
浏览文件 @
059c44de
...
@@ -215,7 +215,7 @@
...
@@ -215,7 +215,7 @@
menuList
:
{},
menuList
:
{},
user
:
{},
user
:
{},
domainList
:
[],
domainList
:
[],
domainName
:
'
chinafrica
'
domainName
:
'
Afrishop
'
},
},
methods
:
{
methods
:
{
getMenuList
:
function
(
event
)
{
getMenuList
:
function
(
event
)
{
...
...
platform-admin/src/main/webapp/js/sys/complain.js
浏览文件 @
059c44de
...
@@ -24,15 +24,21 @@ $(function () {
...
@@ -24,15 +24,21 @@ $(function () {
{
label
:
'创建时间'
,
name
:
'createDate'
,
index
:
'create_date'
,
width
:
80
},
{
label
:
'创建时间'
,
name
:
'createDate'
,
index
:
'create_date'
,
width
:
80
},
{
{
label
:
'操作'
,
index
:
'operate'
,
width
:
80
,
formatter
:
function
(
value
,
grid
,
rows
)
{
label
:
'操作'
,
index
:
'operate'
,
width
:
80
,
formatter
:
function
(
value
,
grid
,
rows
)
{
return
"<i-button class=
\"
ivu-btn ivu-btn-info
\"
type=
\"
info
\"
>审核</i-button>"
;
return
'<span class="label label-info pointer" onclick="vm.audit('
+
rows
.
id
+
')">审核</span>'
;
}
}
}]
}]
});
});
});
});
let
vm
=
new
Vue
({
let
vm
=
new
Vue
({
el
:
'#rrapp'
,
el
:
'#rrapp'
,
data
:
{
data
:
{
reason
:
''
,
prohibitSpeak
:
false
,
prohibitPost
:
false
,
result
:
[],
modal1
:
false
,
showList
:
true
,
showList
:
true
,
title
:
null
,
title
:
null
,
complain
:
{},
complain
:
{},
...
@@ -47,7 +53,31 @@ let vm = new Vue({
...
@@ -47,7 +53,31 @@ let vm = new Vue({
}
}
},
},
methods
:
{
methods
:
{
change
:
function
()
{
let
resArr
=
this
.
result
;
vm
.
prohibitSpeak
=
false
;
vm
.
prohibitPost
=
false
;
resArr
.
forEach
(
res
=>
{
if
(
res
===
'禁止发言'
)
{
vm
.
prohibitSpeak
=
true
;
}
if
(
res
===
'禁止发帖'
)
{
vm
.
prohibitPost
=
true
;
}
})
},
audit
:
function
(
id
)
{
vm
.
modal1
=
true
;
vm
.
getInfo
(
id
);
},
deal
:
function
()
{
},
cancel
:
function
()
{
},
query
:
function
()
{
query
:
function
()
{
vm
.
reload
();
vm
.
reload
();
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论