Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b7784f6e
authored
Nov 23, 2022
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
敏感词列表问题修复
1 parent
e5ee7947
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
55 deletions
linkwe-pc/src/views/conversation/security/setSensitiveWord.vue
linkwe-pc/src/views/conversation/security/setSensitiveWord.vue
View file @
b7784f6
...
@@ -3,27 +3,23 @@
...
@@ -3,27 +3,23 @@
<div
class=
"add-sensitive-word"
>
<div
class=
"add-sensitive-word"
>
<el-form
:inline=
"true"
:model=
"form"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"form"
class=
"demo-form-inline"
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<el-button
type=
"primary"
class=
"add-btn"
icon=
"el-icon-plus"
@
click=
"addSensitive"
<el-button
type=
"primary"
class=
"add-btn"
icon=
"el-icon-plus"
@
click=
"addSensitive"
>
添加敏感词
</el-button>
>
添加敏感词
</el-button
>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-input
v-model=
"form.patternWords"
placeholder=
"搜索关键词"
style=
"width: 300px"
>
<el-input
v-model=
"form.patternWords"
placeholder=
"搜索关键词"
style=
"width: 300px
;
"
>
<el-button
slot=
"prepend"
icon=
"el-icon-search"
@
click=
"getSettingList"
></el-button>
<el-button
slot=
"prepend"
icon=
"el-icon-search"
@
click=
"getSettingList"
></el-button>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
<el-table
:data=
"tableData"
stripe
style=
"width: 100%;"
:header-cell-style=
"
{ background: '#fff' }">
:data=
"tableData"
stripe
style=
"width: 100%"
:header-cell-style=
"
{ background: '#fff' }"
>
<el-table-column
prop=
"strategyName"
label=
"策略名称"
>
</el-table-column>
<el-table-column
prop=
"strategyName"
label=
"策略名称"
>
</el-table-column>
<el-table-column
prop=
"patternWords"
label=
"匹配词"
>
</el-table-column>
<el-table-column
prop=
"patternWords"
label=
"匹配词"
>
</el-table-column>
<el-table-column
prop=
"auditScopeName"
label=
"审计范围"
>
<el-table-column
prop=
"auditScopeName"
label=
"审计范围"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"
{ row }">
<el-tag
size=
"medium"
>
{{
scope
.
row
.
auditUserScope
[
0
].
auditScopeName
}}
</el-tag>
<template
v-if=
"row.auditUserScope && row.auditUserScope.length"
>
<TagEllipsis
:list=
"row.auditUserScope[0].auditScopeName.split(',')"
></TagEllipsis>
</
template
>
<
template
v-else
>
全体成员
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"auditUserName"
label=
"审计人"
>
</el-table-column>
<el-table-column
prop=
"auditUserName"
label=
"审计人"
>
</el-table-column>
...
@@ -39,12 +35,8 @@
...
@@ -39,12 +35,8 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
>
修改
</el-button
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -56,13 +48,7 @@
...
@@ -56,13 +48,7 @@
@
pagination=
"getSettingList()"
@
pagination=
"getSettingList()"
/>
/>
<!-- 添加敏感词 -->
<!-- 添加敏感词 -->
<el-dialog
<el-dialog
title=
"添加敏感词"
:visible
.
sync=
"open"
width=
"600px"
append-to-body
:close-on-click-modal=
"false"
>
title=
"添加敏感词"
:visible
.
sync=
"open"
width=
"600px"
append-to-body
:close-on-click-modal=
"false"
>
<el-form
ref=
"addForm"
:model=
"addForm"
:rules=
"rules"
label-width=
"130px"
>
<el-form
ref=
"addForm"
:model=
"addForm"
:rules=
"rules"
label-width=
"130px"
>
<el-form-item
label=
"敏感词策略名称"
prop=
"strategyName"
>
<el-form-item
label=
"敏感词策略名称"
prop=
"strategyName"
>
<el-input
v-model=
"addForm.strategyName"
placeholder=
"例:红包"
/>
<el-input
v-model=
"addForm.strategyName"
placeholder=
"例:红包"
/>
...
@@ -72,26 +58,22 @@
...
@@ -72,26 +58,22 @@
<div
class=
"sub-title"
>
匹配词间用逗号隔开
</div>
<div
class=
"sub-title"
>
匹配词间用逗号隔开
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"审计范围"
:error=
"rangeErrorMsg"
>
<el-form-item
label=
"审计范围"
:error=
"rangeErrorMsg"
>
<div
class=
"tag-input"
style=
"width: auto"
@
click=
"openAuditUserRange"
>
<div
class=
"tag-input"
style=
"width: auto
;
"
@
click=
"openAuditUserRange"
>
<span
class=
"tag-place"
v-if=
"!auditUserRange.length"
<span
class=
"tag-place"
v-if=
"!auditUserRange.length"
>
请选择
<span
class=
"prompt-title"
>
若不选择,则默认全体成员
</span></span
>
请选择
<span
class=
"prompt-title"
>
若不选择,则默认全体成员
</span></span
>
>
<
template
v-else
>
<
template
v-else
>
<el-tag
type=
"info"
v-for=
"(unit, unique) in auditUserRange"
:key=
"unique"
>
{{
<el-tag
type=
"info"
v-for=
"(unit, unique) in auditUserRange"
:key=
"unique"
>
{{
unit
.
name
}}
</el-tag>
unit
.
name
}}
</el-tag>
</
template
>
</
template
>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"审计人"
:required=
"true"
:error=
"errorMsg"
>
<el-form-item
label=
"审计人"
:required=
"true"
:error=
"errorMsg"
>
<div
class=
"tag-input"
style=
"width: auto"
@
click=
"openAuditUser"
>
<div
class=
"tag-input"
style=
"width: auto
;
"
@
click=
"openAuditUser"
>
<span
class=
"tag-place"
v-if=
"!auditUser.length"
<span
class=
"tag-place"
v-if=
"!auditUser.length"
>
请选择
<span
class=
"prompt-title"
>
请选择部门负责人
</span></span
>
请选择
<span
class=
"prompt-title"
>
请选择部门负责人
</span></span
>
>
<
template
v-else
>
<
template
v-else
>
<el-tag
type=
"info"
v-for=
"(unit, unique) in auditUser"
:key=
"unique"
>
{{
<el-tag
type=
"info"
v-for=
"(unit, unique) in auditUser"
:key=
"unique"
>
{{
unit
.
name
}}
</el-tag>
unit
.
name
}}
</el-tag>
</
template
>
</
template
>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -105,11 +87,7 @@
...
@@ -105,11 +87,7 @@
</div>
</div>
</el-dialog>
</el-dialog>
<!-- 选择审计范围弹窗 -->
<!-- 选择审计范围弹窗 -->
<SelectUser
<SelectUser
:visible
.
sync=
"dialogVisibleSelectUser"
title=
"选择添加人"
@
success=
"selectedUser"
></SelectUser>
:visible
.
sync=
"dialogVisibleSelectUser"
title=
"选择添加人"
@
success=
"selectedUser"
></SelectUser>
<!-- 选择审计人弹窗 -->
<!-- 选择审计人弹窗 -->
<SelectUser
<SelectUser
:visible
.
sync=
"dialogVisibleSelectAuditUser"
:visible
.
sync=
"dialogVisibleSelectAuditUser"
...
@@ -120,9 +98,9 @@
...
@@ -120,9 +98,9 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
*
as
sensitiveApis
from
'@/api/conversation/security'
import
*
as
sensitiveApis
from
'@/api/conversation/security'
import
SelectUser
from
'@/components/SelectUser'
import
SelectUser
from
'@/components/SelectUser'
export
default
{
export
default
{
components
:
{
components
:
{
SelectUser
SelectUser
},
},
...
@@ -258,7 +236,7 @@ export default {
...
@@ -258,7 +236,7 @@ export default {
},
},
// 修改敏感词
// 修改敏感词
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
//
console.log(row)
console
.
log
(
row
)
this
.
submitFlag
=
'modify'
this
.
submitFlag
=
'modify'
this
.
errorMsg
=
''
this
.
errorMsg
=
''
this
.
rowId
=
row
.
id
this
.
rowId
=
row
.
id
...
@@ -295,29 +273,29 @@ export default {
...
@@ -295,29 +273,29 @@ export default {
},
},
handleStatusChange
(
row
)
{}
handleStatusChange
(
row
)
{}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.demo-form-inline
{
.demo-form-inline
{
background
:
#efefef
;
background
:
#efefef
;
padding
:
18px
10px
0
10px
;
padding
:
18px
10px
0
10px
;
}
}
::v-deep
.add-btn
{
::v-deep
.add-btn
{
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.content
{
.content
{
margin-top
:
15px
;
margin-top
:
15px
;
padding
:
10px
;
padding
:
10px
;
}
}
.prompt-title
{
.prompt-title
{
margin-left
:
10px
;
margin-left
:
10px
;
color
:
#999
;
color
:
#999
;
}
}
.tag-place
{
.tag-place
{
color
:
#1890ff
;
color
:
#1890ff
;
}
}
.sub-title
{
.sub-title
{
font-size
:
13px
;
font-size
:
13px
;
color
:
#999
;
color
:
#999
;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment