瀏覽代碼

客户端页面

master
zouhantao 2 天之前
父節點
當前提交
b698217e20

+ 18
- 2
src/views/messagePush/messageManagement/clientMessage/crudConfig.ts 查看文件

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

+ 27
- 27
src/views/messagePush/messageManagement/clientMessage/index.vue 查看文件

<template #search> <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.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.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>
<!-- <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> </crud-template>
<addOrEditDialog v-model="isAddShow" @addHandle="addHandle" :formData="formData" :title="addOrEditTitle" /> <addOrEditDialog v-model="isAddShow" @addHandle="addHandle" :formData="formData" :title="addOrEditTitle" />
<modifyDialog v-if="isRenovate" v-model="isChannelShow" @modifyHandle="modifyHandle" :currentId="currentId" /> <modifyDialog v-if="isRenovate" v-model="isChannelShow" @modifyHandle="modifyHandle" :currentId="currentId" />
// 获取数据,查询条件 // 获取数据,查询条件
const searchForm = ref({ const searchForm = ref({
name: '', //客户端名字 name: '', //客户端名字
appId: '', //客户端唯一标识
messageType: '', //客户端唯一标识
}) })
const tableData = ref([]) const tableData = ref([])
// 搜索按钮 // 搜索按钮
field.value.paging.currentPage = 1 field.value.paging.currentPage = 1
searchForm.value = { searchForm.value = {
name: '', //客户端名字 name: '', //客户端名字
appId: '', //客户端唯一标识
messageType: '', //客户端唯一标识
} }
getList() getList()
tableData.value = [] tableData.value = []
function getList() { function getList() {
const params = handleParams() const params = handleParams()
crudRef.value.tableLoding = true //表格loading效果 crudRef.value.tableLoding = true //表格loading效果
BaseService.post('/msgw/clientconfig/page', params).then(
BaseService.post('/msgw/client/page', params).then(
(res: any) => { (res: any) => {
crudRef.value.tableLoding = false crudRef.value.tableLoding = false
if (res && res.statusCode === 0) { if (res && res.statusCode === 0) {
let bizContent = res.data let bizContent = res.data
let data = bizContent.data || []
let data = bizContent.result || []
tableData.value = data tableData.value = data
field.value.paging.total = bizContent.totalCount field.value.paging.total = bizContent.totalCount
} else { } else {
isAddShow.value = true isAddShow.value = true
formData.value = { formData.value = {
id: scope.row.id, id: scope.row.id,
appId: scope.row.appId,
messageType: scope.row.messageType,
name: scope.row.name, name: scope.row.name,
} }
} }
.then(() => { .then(() => {
let params = { let params = {
id: scope.row.id, id: scope.row.id,
appId: scope.row.appId,
messageType: scope.row.messageType,
name: scope.row.name, name: scope.row.name,
} }
BaseService.post('/msgw/clientconfig/delete', params).then( BaseService.post('/msgw/clientconfig/delete', params).then(

Loading…
取消
儲存