|
|
@@ -5,28 +5,28 @@ |
|
|
|
<template #search> |
|
|
|
<!-- <el-input maxlength="60"v-trim clearable v-model="searchForm.cardId" style="width: 200px" placeholder="收款账号开户行名称" /> --> |
|
|
|
<el-input maxlength="60" v-trim clearable v-model="searchForm.name" style="width: 200px" placeholder="客户端名称" /> |
|
|
|
<el-input maxlength="60" v-trim clearable v-model="searchForm.appId" style="width: 200px" placeholder="客户端唯一标识" /> |
|
|
|
</template> |
|
|
|
<template #CustomButton> |
|
|
|
<el-button type="primary" icon="Plus" @click="() => { |
|
|
|
addOrEditTitle = '新增' |
|
|
|
isAddShow = true |
|
|
|
} |
|
|
|
"> |
|
|
|
新增 |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
<template v-slot:operation="data"> |
|
|
|
<el-button type="primary" @click="editBtn(data.scope)" size="small"> |
|
|
|
编辑 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" @click="modifyBtn(data.scope)" size="small"> |
|
|
|
通道 |
|
|
|
</el-button> |
|
|
|
<el-button type="danger" @click="deleteBtn(data.scope)" size="small"> |
|
|
|
删除 |
|
|
|
</el-button> |
|
|
|
<el-input maxlength="60" v-trim clearable v-model="searchForm.messageType" style="width: 200px" placeholder="客户端唯一标识" /> |
|
|
|
</template> |
|
|
|
<!-- <template #CustomButton>--> |
|
|
|
<!-- <el-button type="primary" icon="Plus" @click="() => {--> |
|
|
|
<!-- addOrEditTitle = '新增'--> |
|
|
|
<!-- isAddShow = true--> |
|
|
|
<!-- }--> |
|
|
|
<!-- ">--> |
|
|
|
<!-- 新增--> |
|
|
|
<!-- </el-button>--> |
|
|
|
<!-- </template>--> |
|
|
|
<!-- <template v-slot:operation="data">--> |
|
|
|
<!-- <el-button type="primary" @click="editBtn(data.scope)" size="small">--> |
|
|
|
<!-- 编辑--> |
|
|
|
<!-- </el-button>--> |
|
|
|
<!-- <el-button type="primary" @click="modifyBtn(data.scope)" size="small">--> |
|
|
|
<!-- 通道--> |
|
|
|
<!-- </el-button>--> |
|
|
|
<!-- <el-button type="danger" @click="deleteBtn(data.scope)" size="small">--> |
|
|
|
<!-- 删除--> |
|
|
|
<!-- </el-button>--> |
|
|
|
<!-- </template>--> |
|
|
|
</crud-template> |
|
|
|
<addOrEditDialog v-model="isAddShow" @addHandle="addHandle" :formData="formData" :title="addOrEditTitle" /> |
|
|
|
<modifyDialog v-if="isRenovate" v-model="isChannelShow" @modifyHandle="modifyHandle" :currentId="currentId" /> |
|
|
@@ -59,7 +59,7 @@ const crudRef = ref() |
|
|
|
// 获取数据,查询条件 |
|
|
|
const searchForm = ref({ |
|
|
|
name: '', //客户端名字 |
|
|
|
appId: '', //客户端唯一标识 |
|
|
|
messageType: '', //客户端唯一标识 |
|
|
|
}) |
|
|
|
const tableData = ref([]) |
|
|
|
// 搜索按钮 |
|
|
@@ -72,7 +72,7 @@ function refreshLeft() { |
|
|
|
field.value.paging.currentPage = 1 |
|
|
|
searchForm.value = { |
|
|
|
name: '', //客户端名字 |
|
|
|
appId: '', //客户端唯一标识 |
|
|
|
messageType: '', //客户端唯一标识 |
|
|
|
} |
|
|
|
getList() |
|
|
|
tableData.value = [] |
|
|
@@ -97,12 +97,12 @@ const handleParams = () => { |
|
|
|
function getList() { |
|
|
|
const params = handleParams() |
|
|
|
crudRef.value.tableLoding = true //表格loading效果 |
|
|
|
BaseService.post('/msgw/clientconfig/page', params).then( |
|
|
|
BaseService.post('/msgw/client/page', params).then( |
|
|
|
(res: any) => { |
|
|
|
crudRef.value.tableLoding = false |
|
|
|
if (res && res.statusCode === 0) { |
|
|
|
let bizContent = res.data |
|
|
|
let data = bizContent.data || [] |
|
|
|
let data = bizContent.result || [] |
|
|
|
tableData.value = data |
|
|
|
field.value.paging.total = bizContent.totalCount |
|
|
|
} else { |
|
|
@@ -179,7 +179,7 @@ const editBtn = (scope: any) => { |
|
|
|
isAddShow.value = true |
|
|
|
formData.value = { |
|
|
|
id: scope.row.id, |
|
|
|
appId: scope.row.appId, |
|
|
|
messageType: scope.row.messageType, |
|
|
|
name: scope.row.name, |
|
|
|
} |
|
|
|
} |
|
|
@@ -194,7 +194,7 @@ const deleteBtn = (scope) => { |
|
|
|
.then(() => { |
|
|
|
let params = { |
|
|
|
id: scope.row.id, |
|
|
|
appId: scope.row.appId, |
|
|
|
messageType: scope.row.messageType, |
|
|
|
name: scope.row.name, |
|
|
|
} |
|
|
|
BaseService.post('/msgw/clientconfig/delete', params).then( |