[update] 待办推送记录
This commit is contained in:
+6
-1
@@ -160,6 +160,9 @@ const syncAsmsInterface = (params) => getAction('/docking/asms/api/lawsAsmsOpenA
|
||||
// ASMS接口管理-删除字典配置项
|
||||
const batchDelDictItemAsmsInterface = (params) => getAction('/docking/asms/api/lawsAsmsOpenApi/removeDictItemBatch', params)
|
||||
|
||||
// 待办推送记录-重新发送
|
||||
const resendMessage = (params) => postAction('/lawsUnifiedTodoLog/send', params)
|
||||
|
||||
export {
|
||||
addRole,
|
||||
editRole,
|
||||
@@ -250,5 +253,7 @@ export {
|
||||
editAsmsInterface,
|
||||
getAsmsInterfaceById,
|
||||
syncAsmsInterface,
|
||||
batchDelDictItemAsmsInterface
|
||||
batchDelDictItemAsmsInterface,
|
||||
|
||||
resendMessage
|
||||
}
|
||||
|
||||
@@ -107,5 +107,14 @@ module.exports = {
|
||||
isBringIn: '是否引入',
|
||||
haveBind: '当前零部件分类结构下已有',
|
||||
isBringInRelation: '绑定标准关联关系,是否引入对应关系?'
|
||||
},
|
||||
// 待办推送记录
|
||||
todoPushRecord: {
|
||||
messageType: '消息类型',
|
||||
pushContent: '推送内容',
|
||||
pushAddress: '推送地址',
|
||||
returnContent: '返回内容',
|
||||
resend: '重新发送',
|
||||
areYouSureResend: '确定重新发送吗'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,167 @@
|
||||
<template>
|
||||
<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"
|
||||
:scroll="{x: '100%', y: yScrollHeight}"
|
||||
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'
|
||||
import JTable from '@/components/jero/JTable'
|
||||
|
||||
export default {
|
||||
name: 'TodoPushRecord',
|
||||
components: { JTable },
|
||||
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.todoPushRecord.messageType'),
|
||||
// align: 'center',
|
||||
// width: 180,
|
||||
// dataIndex: 'messageType_dictText',
|
||||
// scopedSlots: { customRender: 'text' }
|
||||
// },
|
||||
{ // 状态
|
||||
title: this.$t('status'),
|
||||
align: 'center',
|
||||
width: 200,
|
||||
dataIndex: 'state_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 推送内容
|
||||
title: this.$t('system.todoPushRecord.pushContent'),
|
||||
align: 'center',
|
||||
width: 200,
|
||||
dataIndex: 'jsonStr',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 推送地址
|
||||
title: this.$t('system.todoPushRecord.pushAddress'),
|
||||
align: 'center',
|
||||
width: 200,
|
||||
dataIndex: 'url',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 返回内容
|
||||
title: this.$t('system.todoPushRecord.returnContent'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'responseBody',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('operation'),
|
||||
dataIndex: 'action',
|
||||
width: 180,
|
||||
align: 'center',
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
],
|
||||
operationList: [
|
||||
// 重新发送
|
||||
{
|
||||
text: this.$t('system.todoPushRecord.resend'),
|
||||
clickEvent: 'handleResend'
|
||||
}
|
||||
],
|
||||
url: {
|
||||
list: '/lawsUnifiedTodoLog/page'
|
||||
}
|
||||
// filters: {
|
||||
// state: '2'
|
||||
// }
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 重新发送
|
||||
handleResend (record) {
|
||||
this.$confirm({
|
||||
title: this.$t('system.todoPushRecord.resend'),
|
||||
content: this.$t('system.todoPushRecord.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