Browse Source

客户端页面

master
zouhantao 1 day ago
parent
commit
b698217e20

+ 18
- 2
src/views/messagePush/messageManagement/clientMessage/crudConfig.ts View File

@@ -33,7 +33,7 @@ export default function crudConfig() {
isToLead:false,//导入
},
tableSize: -1,
operateShow: true, //是否为表格添加操作栏(默认true)
operateShow: false, //是否为表格添加操作栏(默认true)
operateTitle: '操作', //操作栏标题(默认为"")
operateFixed: false, //操作栏是否固定(默认false)
operateWidth: '300', //操作栏宽度
@@ -61,14 +61,30 @@ export default function crudConfig() {
prop: 'name',
label: '客户端名称',
},
{
label: '发送客户端类型',
prop: 'messageType',
},
{
label: '客户端唯一标识',
prop: 'appId',
prop: 'clientCode',
},
{
label: '注册时间',
prop: 'insertTime',
},
{
label: '状态',
prop: 'status',
form: {
listData: [
{ value: "ENABLE", label: '启用' },
{ value: "DISABLE", label: '停用' },
],
hideEdit: true,
type: 'select',
},
},
],
})
return {

+ 27
- 27
src/views/messagePush/messageManagement/clientMessage/index.vue View File

@@ -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(

Loading…
Cancel
Save