|
|
|
@ -11,10 +11,10 @@ const Index = () => {
|
|
|
|
|
|
|
|
|
|
// 定义默认值
|
|
|
|
|
const initialFormValues = {
|
|
|
|
|
crt_mei_firstname: '', // 客人名字默认空
|
|
|
|
|
crt_coli_id: '', // 客人名字默认空
|
|
|
|
|
dateRange: [dayjs().startOf('M'), dayjs().endOf('M')], // 默认本月
|
|
|
|
|
crt_status: '' // 状态默认所有
|
|
|
|
|
};
|
|
|
|
|
crt_status: '', // 状态默认所有
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 搜索表单提交
|
|
|
|
|
const onFinish = (values) => {
|
|
|
|
@ -54,23 +54,34 @@ const Index = () => {
|
|
|
|
|
]
|
|
|
|
|
// 表格列定义
|
|
|
|
|
const columns = [
|
|
|
|
|
{ title: '序列号', dataIndex: 'crt_sn', key: 'crt_sn' },
|
|
|
|
|
{ title: '模板', dataIndex: 'crt_template', key: 'crt_template' },
|
|
|
|
|
{ title: '状态', dataIndex: 'crt_status', key: 'crt_status' },
|
|
|
|
|
{ title: '团号', dataIndex: 'crt_coli_id', key: 'crt_coli_id' },
|
|
|
|
|
{ title: '客人', dataIndex: 'crt_mei_firstname', key: 'crt_mei_firstname', render: (text, record) => record.crt_mei_firstname + ' ' + record.crt_mei_lastname },
|
|
|
|
|
{ title: '国家', dataIndex: 'crt_coi2_country', key: 'crt_coi2_country' },
|
|
|
|
|
// { title: '时区', dataIndex: 'ct_coi_code', key: 'ct_coi_code' },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|
dataIndex: 'crt_status',
|
|
|
|
|
key: 'crt_status',
|
|
|
|
|
render: (status) => {
|
|
|
|
|
if (status == '0') {
|
|
|
|
|
return '待发送'
|
|
|
|
|
} else if (status == '99') {
|
|
|
|
|
return '已发送'
|
|
|
|
|
}
|
|
|
|
|
return '失败'
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{ title: '发送时间', dataIndex: 'crt_send_datetime', key: 'crt_send_datetime' },
|
|
|
|
|
{ title: '客人名', dataIndex: 'crt_mei_firstname', key: 'crt_mei_firstname' },
|
|
|
|
|
{ title: '客人姓', dataIndex: 'crt_mei_lastname', key: 'crt_mei_lastname' },
|
|
|
|
|
{ title: '模板', dataIndex: 'crt_template', key: 'crt_template' },
|
|
|
|
|
{ title: 'WhatsApp', dataIndex: 'crt_whatsapp', key: 'crt_whatsapp' },
|
|
|
|
|
{ title: '邮箱', dataIndex: 'crt_mei_maillist', key: 'crt_mei_maillist' },
|
|
|
|
|
{ title: '关联序列号', dataIndex: 'crt_coli_sn', key: 'crt_coli_sn' },
|
|
|
|
|
{ title: '国家', dataIndex: 'crt_coi2_country', key: 'crt_coi2_country' },
|
|
|
|
|
{ title: '创建时间', dataIndex: 'ct_datetime', key: 'ct_datetime' },
|
|
|
|
|
{ title: '国家代码', dataIndex: 'ct_coi_code', key: 'ct_coi_code' },
|
|
|
|
|
{ title: '客人国家', dataIndex: 'crt_mei_country', key: 'crt_mei_country' },
|
|
|
|
|
{ title: '会话ID', dataIndex: 'crt_conversation_id', key: 'crt_conversation_id' },
|
|
|
|
|
{ title: '消息ID', dataIndex: 'crt_message_id', key: 'crt_message_id' },
|
|
|
|
|
];
|
|
|
|
|
// { title: '邮箱', dataIndex: 'crt_mei_maillist', key: 'crt_mei_maillist' },
|
|
|
|
|
// { title: '创建时间', dataIndex: 'ct_datetime', key: 'ct_datetime' },
|
|
|
|
|
// { title: '客人国家', dataIndex: 'crt_mei_country', key: 'crt_mei_country' },
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
@ -86,7 +97,7 @@ const Index = () => {
|
|
|
|
|
<Select placeholder='请选择状态' style={{ width: 120 }}>
|
|
|
|
|
<Option value=''>所有</Option>
|
|
|
|
|
<Option value='0'>待发送</Option>
|
|
|
|
|
<Option value='99'>已完成</Option>
|
|
|
|
|
<Option value='99'>已发送</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item>
|
|
|
|
@ -98,7 +109,7 @@ const Index = () => {
|
|
|
|
|
|
|
|
|
|
{/* 搜索结果 */}
|
|
|
|
|
|
|
|
|
|
<span>搜索结果总数: {tasksList&&tasksList.length}</span>
|
|
|
|
|
<span>搜索结果总数: {tasksList && tasksList.length}</span>
|
|
|
|
|
|
|
|
|
|
<Table dataSource={tasksList} columns={columns} pagination={false} rowKey='crt_sn' loading={loading} />
|
|
|
|
|
</>
|
|
|
|
|