[add] 飞书推送失败记录
This commit is contained in:
+7
-1
@@ -166,6 +166,10 @@ const batchDelDictItemAsmsInterface = (params) => getAction('/docking/asms/api/l
|
||||
// 分组管理下拉
|
||||
const getGroupList = (params) => getAction('/sys/group/list', params)
|
||||
|
||||
// 未发送成功消息(飞书推得待办记录)-重新发送
|
||||
const resendMessage = (params) => postAction('/lawsUnifiedTodoLog/send', params)
|
||||
|
||||
|
||||
export {
|
||||
addRole,
|
||||
editRole,
|
||||
@@ -260,5 +264,7 @@ export {
|
||||
syncAsmsInterface,
|
||||
batchDelDictItemAsmsInterface,
|
||||
|
||||
getGroupList
|
||||
getGroupList,
|
||||
|
||||
resendMessage
|
||||
}
|
||||
|
||||
@@ -100,5 +100,13 @@ module.exports = {
|
||||
peopleNumber: 'Number of people',
|
||||
groupMembers: 'Group members',
|
||||
userName: 'User Name'
|
||||
},
|
||||
// 未发送成功的消息管理
|
||||
notSentMessage: {
|
||||
messageType: 'Message type',
|
||||
pushContent: 'Push content',
|
||||
pushAddress: 'Push address',
|
||||
resend: 'Resend',
|
||||
areYouSureResend: 'Are you sure to resend it'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,5 +116,13 @@ module.exports = {
|
||||
peopleNumber: '人数',
|
||||
groupMembers: '组内人员',
|
||||
userName: '用户名称'
|
||||
},
|
||||
// 未发送成功的消息管理
|
||||
notSentMessage: {
|
||||
messageType: '消息类型',
|
||||
pushContent: '推送内容',
|
||||
pushAddress: '推送地址',
|
||||
resend: '重新发送',
|
||||
areYouSureResend: '确定重新发送吗'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
<template>
|
||||
<!-- OA,飞书未成功发送的消息 -->
|
||||
<a-card :bordered="false">
|
||||
<!-- 查询区域 -->
|
||||
<!-- <div class="table-page-search-wrapper">-->
|
||||
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
|
||||
<!-- <a-row :gutter="24">-->
|
||||
<!-- <a-col :md="6" :sm="8">-->
|
||||
<!-- <a-form-item label="消息标题">-->
|
||||
<!-- <a-input placeholder="请输入消息标题" v-model="queryParam.esTitle"></a-input>-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <a-col :md="6" :sm="8">-->
|
||||
<!-- <a-form-item label="发送内容">-->
|
||||
<!-- <a-input placeholder="请输入发送内容" v-model="queryParam.esContent"></a-input>-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <template v-if="toggleSearchStatus">-->
|
||||
<!-- <a-col :md="6" :sm="8">-->
|
||||
<!-- <a-form-item label="接收人">-->
|
||||
<!-- <a-input placeholder="请输入接收人" v-model="queryParam.esReceiver"></a-input>-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- </template>-->
|
||||
<!-- <a-col :md="6" :sm="8">-->
|
||||
<!-- <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">-->
|
||||
<!-- <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>-->
|
||||
<!-- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>-->
|
||||
<!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
|
||||
<!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
|
||||
<!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-col>-->
|
||||
|
||||
<!-- </a-row>-->
|
||||
<!-- </a-form>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- table区域-begin -->
|
||||
<div>
|
||||
|
||||
<j-table
|
||||
:can-drag="true"
|
||||
ref="table"
|
||||
size="middle"
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
:operationList="operationList"
|
||||
@operationClick="operationClick"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
@change="handleTableChange">
|
||||
|
||||
</j-table>
|
||||
</div>
|
||||
<!-- table区域-end -->
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
||||
import { resendMessage } from '../../../api/api'
|
||||
|
||||
export default {
|
||||
name: 'NotSentSuccessfullyMessage',
|
||||
mixins: [JeroListMixin],
|
||||
data () {
|
||||
return {
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('serialNumber'),
|
||||
dataIndex: '',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
},
|
||||
{ // 消息类型
|
||||
title: this.$t('system.notSentMessage.messageType'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'messageType_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 状态
|
||||
title: this.$t('status'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'state_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 推送内容
|
||||
title: this.$t('system.notSentMessage.pushContent'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'jsonStr',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 推送地址
|
||||
title: this.$t('system.notSentMessage.pushAddress'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'url',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('operation'),
|
||||
dataIndex: 'action',
|
||||
width: 180,
|
||||
align: 'center',
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
],
|
||||
operationList: [
|
||||
// 重新发送
|
||||
{
|
||||
text: this.$t('system.notSentMessage.resend'),
|
||||
clickEvent: 'handleResend'
|
||||
}
|
||||
],
|
||||
url: {
|
||||
list: '/lawsUnifiedTodoLog/page'
|
||||
},
|
||||
filters: {
|
||||
state: '2'
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 重新发送
|
||||
handleResend (record) {
|
||||
this.$confirm({
|
||||
title: this.$t('system.notSentMessage.resend'),
|
||||
content: this.$t('system.notSentMessage.areYouSureResend'),
|
||||
onOk: () => {
|
||||
resendMessage({id: record.id}).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.loadData()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user