Commit fc4b10fc authored by 罗林杰's avatar 罗林杰

修改黑名单

parent 5acc603d
...@@ -14,7 +14,7 @@ import Qs from 'qs' ...@@ -14,7 +14,7 @@ import Qs from 'qs'
// 1. 查询黑名单表列表 // 1. 查询黑名单表列表
export function listOpmBlackList(query) { export function listOpmBlackList(query) {
return request({ return request({
url: '/opmblacklist/list', url: '/opmBlackList/list',
method: 'get', method: 'get',
params: query params: query
}) })
...@@ -23,7 +23,7 @@ export function listOpmBlackList(query) { ...@@ -23,7 +23,7 @@ export function listOpmBlackList(query) {
// 2. 查询黑名单表详细信息 // 2. 查询黑名单表详细信息
export function getOpmBlackList(businessId) { export function getOpmBlackList(businessId) {
return request({ return request({
url: '/opmblacklist/detail/' + businessId, url: '/opmBlackList/detail/' + businessId,
method: 'get' method: 'get'
}) })
} }
...@@ -32,7 +32,7 @@ export function getOpmBlackList(businessId) { ...@@ -32,7 +32,7 @@ export function getOpmBlackList(businessId) {
export function addOpmBlackList(data) { export function addOpmBlackList(data) {
data = Qs.stringify(data) data = Qs.stringify(data)
return request({ return request({
url: '/opmblacklist/add', url: '/opmBlackList/add',
method: 'post', method: 'post',
data: data data: data
}) })
...@@ -43,7 +43,7 @@ export function updateOpmBlackList(data) { ...@@ -43,7 +43,7 @@ export function updateOpmBlackList(data) {
const businessId = data.businessId const businessId = data.businessId
data = Qs.stringify(data) data = Qs.stringify(data)
return request({ return request({
url: '/opmblacklist/update/' + businessId, url: '/opmBlackList/update/' + businessId,
method: 'put', method: 'put',
data data
}) })
...@@ -52,7 +52,7 @@ export function updateOpmBlackList(data) { ...@@ -52,7 +52,7 @@ export function updateOpmBlackList(data) {
// 5. 逻辑删除黑名单表 // 5. 逻辑删除黑名单表
export function delOpmBlackList(businessId) { export function delOpmBlackList(businessId) {
return request({ return request({
url: '/opmblacklist/deleteLogical/' + businessId, url: '/opmBlackList/delete/' + businessId,
method: 'delete' method: 'delete'
}) })
} }
...@@ -60,7 +60,7 @@ export function delOpmBlackList(businessId) { ...@@ -60,7 +60,7 @@ export function delOpmBlackList(businessId) {
// 6. 导出黑名单表 // 6. 导出黑名单表
export function exportOpmBlackList(query) { export function exportOpmBlackList(query) {
return request({ return request({
url: '/opmblacklist/export', url: '/opmBlackList/export',
method: 'get', method: 'get',
params: query, params: query,
responseType: 'blob' responseType: 'blob'
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true"> <el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true">
<el-form-item label="用户" prop="userId"> <el-form-item label="用户" prop="userId">
<el-input <el-input
v-model="queryParams.userId" v-model="queryParams.memNickName"
placeholder="请输入用户" placeholder="请输入用户"
clearable clearable
:maxlength="50" :maxlength="50"
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</el-form-item> </el-form-item>
<el-form-item label="被拉黑人" prop="targetId"> <el-form-item label="被拉黑人" prop="targetId">
<el-input <el-input
v-model="queryParams.targetId" v-model="queryParams.targetName"
placeholder="请输入被拉黑人" placeholder="请输入被拉黑人"
clearable clearable
:maxlength="50" :maxlength="50"
...@@ -43,12 +43,12 @@ ...@@ -43,12 +43,12 @@
<el-table-column type="index" label="序号" width="55" align="center" /> <el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column label="用户" prop="userId" :show-overflow-tooltip="true"> <el-table-column label="用户" prop="userId" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.userId || '-' }} {{ scope.row.memNickName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="被拉黑人" prop="targetId" :show-overflow-tooltip="true"> <el-table-column label="被拉黑人" prop="memNickName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.targetId || '-' }} {{ scope.row.targetName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="拉黑时间" prop="createDate" :show-overflow-tooltip="true"> <el-table-column label="拉黑时间" prop="createDate" :show-overflow-tooltip="true">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment