Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
cust_web
Commits
5acc603d
Commit
5acc603d
authored
Feb 10, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改黑名单
parent
0d1abf00
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1142 additions
and
0 deletions
+1142
-0
memGoldCoinFlow.js
src/api/contentManagement/memGoldCoinFlow.js
+68
-0
opmBlackList.js
src/api/contentManagement/opmBlackList.js
+68
-0
index.vue
src/views/operationsManagement/memGoldCoinFlow/index.vue
+397
-0
index.vue
src/views/operationsManagement/message/index.vue
+306
-0
index.vue
src/views/operationsManagement/opmBlackList/index.vue
+303
-0
No files found.
src/api/contentManagement/memGoldCoinFlow.js
0 → 100644
View file @
5acc603d
import
request
from
'@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询金币流水表列表
export
function
listMemGoldCoinFlow
(
query
)
{
return
request
({
url
:
'/memGoldCoinFlow/list'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询金币流水表详细信息
export
function
getMemGoldCoinFlow
(
businessId
)
{
return
request
({
url
:
'/memGoldCoinFlow/detail/'
+
businessId
,
method
:
'get'
})
}
// 3. 新增金币流水表
export
function
addMemGoldCoinFlow
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/memGoldCoinFlow/add'
,
method
:
'post'
,
data
:
data
})
}
// 4. 修改金币流水表
export
function
updateMemGoldCoinFlow
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/memGoldCoinFlow/update/'
+
businessId
,
method
:
'put'
,
data
})
}
// 5. 逻辑删除金币流水表
export
function
delMemGoldCoinFlow
(
businessId
)
{
return
request
({
url
:
'/memGoldCoinFlow/deleteLogical/'
+
businessId
,
method
:
'delete'
})
}
// 6. 导出金币流水表
export
function
exportMemGoldCoinFlow
(
query
)
{
return
request
({
url
:
'/memGoldCoinFlow/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
src/api/contentManagement/opmBlackList.js
0 → 100644
View file @
5acc603d
import
request
from
'@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询黑名单表列表
export
function
listOpmBlackList
(
query
)
{
return
request
({
url
:
'/opmblacklist/list'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询黑名单表详细信息
export
function
getOpmBlackList
(
businessId
)
{
return
request
({
url
:
'/opmblacklist/detail/'
+
businessId
,
method
:
'get'
})
}
// 3. 新增黑名单表
export
function
addOpmBlackList
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/opmblacklist/add'
,
method
:
'post'
,
data
:
data
})
}
// 4. 修改黑名单表
export
function
updateOpmBlackList
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/opmblacklist/update/'
+
businessId
,
method
:
'put'
,
data
})
}
// 5. 逻辑删除黑名单表
export
function
delOpmBlackList
(
businessId
)
{
return
request
({
url
:
'/opmblacklist/deleteLogical/'
+
businessId
,
method
:
'delete'
})
}
// 6. 导出黑名单表
export
function
exportOpmBlackList
(
query
)
{
return
request
({
url
:
'/opmblacklist/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
src/views/operationsManagement/memGoldCoinFlow/index.vue
0 → 100644
View file @
5acc603d
This diff is collapsed.
Click to expand it.
src/views/operationsManagement/message/index.vue
0 → 100644
View file @
5acc603d
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"发送人"
prop=
"userId"
>
<el-input
v-model=
"queryParams.userId"
placeholder=
"请输入发送人"
clearable
:maxlength=
"50"
size=
"small"
style=
"width: 150px"
/>
</el-form-item>
<el-form-item
label=
"接收人"
prop=
"targetId"
>
<el-input
v-model=
"queryParams.targetId"
placeholder=
"请输入接收人"
clearable
:maxlength=
"50"
size=
"small"
style=
"width: 150px"
/>
</el-form-item>
<el-form-item>
<el-button
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:icon=
"commonField.queryIcon"
:size=
"commonField.smallSize"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
:class=
"commonField.resetClass"
:icon=
"commonField.resetIcon"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
留言列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"opmBlackListList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"发送人"
prop=
"userId"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
userId
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"接收人"
prop=
"targetId"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
targetId
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"留言内容"
prop=
"targetId"
:show-overflow-tooltip=
"true"
>
<span>
1111111111
</span>
</el-table-column>
<el-table-column
label=
"留言时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createDate
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<el-button
:class=
"commonField.delClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.rows"
@
pagination=
"getList"
/>
<!-- 添加或修改黑名单表配置对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"90px"
>
<el-form-item
label=
"用户id"
prop=
"userId"
>
<el-input
v-model
.
trim=
"form.userId"
show-word-limit
:maxlength=
"50"
placeholder=
"请输入用户id"
/>
</el-form-item>
<el-form-item
label=
"目标id"
prop=
"targetId"
>
<el-input
v-model
.
trim=
"form.targetId"
show-word-limit
:maxlength=
"50"
placeholder=
"请输入目标id"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"cancelBtn"
@
click=
"cancel"
>
取 消
</el-button>
<el-button
class=
"submitBtn"
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listOpmBlackList
,
getOpmBlackList
,
delOpmBlackList
,
addOpmBlackList
,
updateOpmBlackList
,
exportOpmBlackList
}
from
'@/api/contentManagement/opmBlackList'
import
commonField
from
'@/utils/commonField'
export
default
{
name
:
'OpmBlackList'
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 总条数
total
:
0
,
// 黑名单表表格数据
opmBlackListList
:
[],
// 弹出层标题
title
:
''
,
// 是否显示弹出层
open
:
false
,
// 状态菜单
statusOptions
:
[
{
dictLabel
:
'启用'
,
dictValue
:
'1'
},
{
dictLabel
:
'停用'
,
dictValue
:
'0'
}
],
// 查询参数
queryParams
:
{
page
:
1
,
rows
:
10
,
userId
:
undefined
,
targetId
:
undefined
,
flag
:
''
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
}
},
computed
:
{
commonField
()
{
return
commonField
}
},
created
()
{
this
.
getList
()
// 列表查询
},
methods
:
{
/** 查询黑名单表列表 */
getList
()
{
this
.
loading
=
true
listOpmBlackList
(
this
.
queryParams
).
then
(
response
=>
{
this
.
opmBlackListList
=
response
.
data
this
.
total
=
response
.
total
this
.
loading
=
false
}
)
},
// 取消按钮
cancel
()
{
this
.
open
=
false
this
.
reset
()
},
// 表单重置
reset
()
{
this
.
form
=
{
businessId
:
undefined
,
userId
:
undefined
,
targetId
:
undefined
,
flag
:
'1'
}
this
.
resetForm
(
'form'
)
},
/** 查询按钮操作 */
handleQuery
()
{
this
.
queryParams
.
page
=
1
this
.
getList
()
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
queryParams
=
{
page
:
1
,
rows
:
10
,
userId
:
undefined
,
targetId
:
undefined
,
flag
:
''
}
this
.
handleQuery
()
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
()
this
.
open
=
true
this
.
title
=
'添加黑名单表'
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
()
const
id
=
row
.
businessId
getOpmBlackList
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
open
=
true
this
.
title
=
'修改黑名单表'
})
},
// 改变状态
handleStatusChange
(
row
)
{
const
text
=
row
.
flag
===
'1'
?
'启用'
:
'停用'
this
.
$confirm
(
'确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
updateOpmBlackList
(
row
)
}).
then
(()
=>
{
this
.
$message
({
message
:
text
+
'成功'
,
type
:
'success'
})
}).
catch
(
function
()
{
row
.
flag
=
row
.
flag
===
'0'
?
'1'
:
'0'
})
},
/** 提交按钮 */
submitForm
:
function
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
businessId
!==
undefined
)
{
updateOpmBlackList
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
getList
()
})
}
else
{
addOpmBlackList
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
})
}
}
})
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
delOpmBlackList
(
id
)
}).
then
(()
=>
{
this
.
getList
()
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
}).
catch
(
function
()
{
})
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
this
.
$confirm
(
'是否确认操作?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
exportOpmBlackList
(
queryParams
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
downloadElement
.
href
=
href
downloadElement
.
download
=
'黑名单表信息'
+
'.xls'
// 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
)
// 释放掉blob对象
})
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.app-container
{
font-size
:
18px
;
padding
:
0
;
.placeholder
{
height
:
1
.3vh
;
background-color
:
#F4F4F4
;
margin-bottom
:
10px
}
}
</
style
>
src/views/operationsManagement/opmBlackList/index.vue
0 → 100644
View file @
5acc603d
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"用户"
prop=
"userId"
>
<el-input
v-model=
"queryParams.userId"
placeholder=
"请输入用户"
clearable
:maxlength=
"50"
size=
"small"
style=
"width: 150px"
/>
</el-form-item>
<el-form-item
label=
"被拉黑人"
prop=
"targetId"
>
<el-input
v-model=
"queryParams.targetId"
placeholder=
"请输入被拉黑人"
clearable
:maxlength=
"50"
size=
"small"
style=
"width: 150px"
/>
</el-form-item>
<el-form-item>
<el-button
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:icon=
"commonField.queryIcon"
:size=
"commonField.smallSize"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
:class=
"commonField.resetClass"
:icon=
"commonField.resetIcon"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
黑名单表列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"opmBlackListList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"用户"
prop=
"userId"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
userId
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"被拉黑人"
prop=
"targetId"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
targetId
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"拉黑时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createDate
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<el-button
:class=
"commonField.delClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.rows"
@
pagination=
"getList"
/>
<!-- 添加或修改黑名单表配置对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"90px"
>
<el-form-item
label=
"用户id"
prop=
"userId"
>
<el-input
v-model
.
trim=
"form.userId"
show-word-limit
:maxlength=
"50"
placeholder=
"请输入用户id"
/>
</el-form-item>
<el-form-item
label=
"目标id"
prop=
"targetId"
>
<el-input
v-model
.
trim=
"form.targetId"
show-word-limit
:maxlength=
"50"
placeholder=
"请输入目标id"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"cancelBtn"
@
click=
"cancel"
>
取 消
</el-button>
<el-button
class=
"submitBtn"
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listOpmBlackList
,
getOpmBlackList
,
delOpmBlackList
,
addOpmBlackList
,
updateOpmBlackList
,
exportOpmBlackList
}
from
'@/api/contentManagement/opmBlackList'
import
commonField
from
'@/utils/commonField'
export
default
{
name
:
'OpmBlackList'
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 总条数
total
:
0
,
// 黑名单表表格数据
opmBlackListList
:
[],
// 弹出层标题
title
:
''
,
// 是否显示弹出层
open
:
false
,
// 状态菜单
statusOptions
:
[
{
dictLabel
:
'启用'
,
dictValue
:
'1'
},
{
dictLabel
:
'停用'
,
dictValue
:
'0'
}
],
// 查询参数
queryParams
:
{
page
:
1
,
rows
:
10
,
userId
:
undefined
,
targetId
:
undefined
,
flag
:
''
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
}
},
computed
:
{
commonField
()
{
return
commonField
}
},
created
()
{
this
.
getList
()
// 列表查询
},
methods
:
{
/** 查询黑名单表列表 */
getList
()
{
this
.
loading
=
true
listOpmBlackList
(
this
.
queryParams
).
then
(
response
=>
{
this
.
opmBlackListList
=
response
.
data
this
.
total
=
response
.
total
this
.
loading
=
false
}
)
},
// 取消按钮
cancel
()
{
this
.
open
=
false
this
.
reset
()
},
// 表单重置
reset
()
{
this
.
form
=
{
businessId
:
undefined
,
userId
:
undefined
,
targetId
:
undefined
,
flag
:
'1'
}
this
.
resetForm
(
'form'
)
},
/** 查询按钮操作 */
handleQuery
()
{
this
.
queryParams
.
page
=
1
this
.
getList
()
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
queryParams
=
{
page
:
1
,
rows
:
10
,
userId
:
undefined
,
targetId
:
undefined
,
flag
:
''
}
this
.
handleQuery
()
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
()
this
.
open
=
true
this
.
title
=
'添加黑名单表'
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
()
const
id
=
row
.
businessId
getOpmBlackList
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
open
=
true
this
.
title
=
'修改黑名单表'
})
},
// 改变状态
handleStatusChange
(
row
)
{
const
text
=
row
.
flag
===
'1'
?
'启用'
:
'停用'
this
.
$confirm
(
'确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
updateOpmBlackList
(
row
)
}).
then
(()
=>
{
this
.
$message
({
message
:
text
+
'成功'
,
type
:
'success'
})
}).
catch
(
function
()
{
row
.
flag
=
row
.
flag
===
'0'
?
'1'
:
'0'
})
},
/** 提交按钮 */
submitForm
:
function
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
businessId
!==
undefined
)
{
updateOpmBlackList
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
getList
()
})
}
else
{
addOpmBlackList
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
})
}
}
})
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
delOpmBlackList
(
id
)
}).
then
(()
=>
{
this
.
getList
()
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
}).
catch
(
function
()
{
})
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
this
.
$confirm
(
'是否确认操作?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
exportOpmBlackList
(
queryParams
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
downloadElement
.
href
=
href
downloadElement
.
download
=
'黑名单表信息'
+
'.xls'
// 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
)
// 释放掉blob对象
})
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.app-container
{
font-size
:
18px
;
padding
:
0
;
.placeholder
{
height
:
1
.3vh
;
background-color
:
#F4F4F4
;
margin-bottom
:
10px
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment