Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
company_app
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
毛细亚
company_app
Commits
5a763bf7
提交
5a763bf7
authored
9月 02, 2025
作者:
毛细亚
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化违规记录界面样式与交互
上级
0f750f9d
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
21 行增加
和
83 行删除
+21
-83
ViolationRecord.vue
src/views/ViolationRecord.vue
+21
-83
没有找到文件。
src/views/ViolationRecord.vue
浏览文件 @
5a763bf7
<
template
>
<div
class=
"violationRecord"
>
<el-form
v-loading=
"loading"
class=
"violationRecordContent"
label-width=
"90px"
>
<el-form
v-loading=
"loading"
class=
"violationRecordContent"
label-width=
"90px"
>
<div
v-if=
"violationList.length > 0"
>
<div
v-for=
"(item, index) in violationList"
:key=
"index"
class=
"contentItem"
>
<div
v-for=
"(item, index) in violationList"
:key=
"index"
class=
"contentItem"
>
<el-form-item
label=
"违规时间:"
>
<p>
{{
item
.
violation_time
}}
</p>
</el-form-item>
...
...
@@ -31,15 +23,9 @@
<el-form-item
label=
"是否允许申诉:"
>
<p
class=
"error"
>
{{
item
.
appeal_name
}}
</p>
</el-form-item>
<el-form-item
v-if=
"item.remake != ''"
label=
"详情:"
>
<el-form-item
v-if=
"item.remake != ''"
label=
"详情:"
>
<!-- AI自动封禁 -->
<div
v-if=
"item.information_type === 6"
class=
"remarkType"
>
<div
v-if=
"item.information_type === 6"
class=
"remarkType"
>
<p>
<span
class=
"label"
>
所属项目:
</span><span>
{{
item
.
newRemake
.
project
||
""
}}
</span>
</p>
...
...
@@ -66,29 +52,16 @@
</p>
</div>
<!-- 其他类型 -->
<div
v-else
class=
"remarkType"
>
<div
v-if=
"item.remake.indexOf('src=') !== -1"
class=
"remakeImage"
>
<div
v-else
class=
"remarkType"
>
<div
v-if=
"item.remake.indexOf('src=') !== -1"
class=
"remakeImage"
>
<p
class=
"watchDetails"
>
<el-button
type=
"text"
icon=
"el-icon-view"
size=
"medium"
<el-button
type=
"text"
icon=
"el-icon-view"
size=
"medium"
style=
"z-index: 1; position: relative; margin-left: 5px"
@
click=
"showRemake(item.remake)"
>
查看大图
</el-button>
@
click=
"showRemake(item.remake)"
>
查看大图
</el-button>
</p>
<p
class=
"remakeDetails"
v-html=
"item.remake"
></p>
</div>
<div
v-else
class=
"remakeImage"
>
<div
v-else
class=
"remakeImage"
>
<p
class=
"remakeDetails"
v-html=
"item.remake"
></p>
</div>
</div>
...
...
@@ -96,38 +69,14 @@
<!-- 命中统计表格 -->
<div
v-if=
"item && item.newRemake && item.newRemake.hit"
>
<div
class=
"title"
style=
"font-weight: 600; margin-bottom: 10px"
>
<div
class=
"title"
style=
"font-weight: 600; margin-bottom: 10px"
>
命中统计
</div>
<el-table
:data=
"item.newRemake.hit"
size=
"medium"
style=
"width: 100%"
class=
"hit-statistics-table"
>
<el-table-column
prop=
"content"
label=
"文本内容"
show-overflow-tooltip
/>
<el-table-column
prop=
"type"
label=
"命中类型"
width=
"120"
/>
<el-table-column
prop=
"key"
label=
"关键字"
width=
"120"
show-overflow-tooltip
/>
<el-table-column
label=
"时间"
width=
"180"
>
<el-table
:data=
"item.newRemake.hit"
size=
"medium"
style=
"width: 100%"
class=
"hit-statistics-table"
>
<el-table-column
prop=
"content"
label=
"文本内容"
show-overflow-tooltip
/>
<el-table-column
prop=
"type"
label=
"命中类型"
width=
"120"
/>
<el-table-column
prop=
"key"
label=
"关键字"
width=
"120"
show-overflow-tooltip
/>
<el-table-column
label=
"时间"
width=
"180"
>
<template
slot-scope=
"
{ row }">
<span>
{{
$moment
(
row
.
time
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}}
</span>
</
template
>
...
...
@@ -138,27 +87,14 @@
</div>
<!-- 无数据状态 -->
<div
v-if=
"!loading && violationList.length == 0"
class=
"noContent rowFlex allCenter"
>
<div
v-if=
"!loading && violationList.length == 0"
class=
"noContent rowFlex allCenter"
>
<noContent
title=
"暂无数据"
description=
"当前没有任何数据,请稍后再试或联系管理员"
/>
</div>
</el-form>
<!-- 查看大图弹窗 -->
<el-dialog
title=
"查看大图"
:visible
.
sync=
"imageLayer"
width=
"320px"
center
append-to-body
@
close=
"imageLayer = false"
>
<div
v-html=
"imageSrc"
class=
"layerImage"
></div>
<el-dialog
title=
"查看大图"
:visible
.
sync=
"imageLayer"
width=
"320px"
center
append-to-body
@
close=
"imageLayer = false"
>
<div
v-html=
"imageSrc"
class=
"layerImage"
></div>
</el-dialog>
</div>
</template>
...
...
@@ -274,7 +210,8 @@ export default {
border-bottom
:
1px
dashed
#ebeef5
;
margin-bottom
:
20px
;
padding-bottom
:
20px
;
::v-deep
.el-form-item__label{
::v-deep
.el-form-item__label
{
line-height
:
40px
;
}
...
...
@@ -362,6 +299,7 @@ export default {
.remakeDetails
{
word-break
:
break-all
;
::v-deep
img
{
max-width
:
200px
;
max-height
:
200px
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论