import React, { useEffect, useRef, useState } from 'react'; import { Button, Drawer } from 'antd'; import { connect, useModel } from "umi"; import AutoTable from '@/components/AutoTable'; import getPrem from '@/utils/getPrem';//权限判断fn import Details from "@/components/Details"; let SendList = (props) => { const { global, dispatch } = props; const actionRef = useRef(), [details, cdetails] = useState({ totalTitle: "推送记录详情", visible: false, dataSource: {}, totalCard: [] }); let columns = [ { "title": "推送时间", "dataIndex": "sendTime", "key": "sendTimeList", "valueType": "dateRange" }, { "title": "接收用户", "dataIndex": "userName", "key": "userName" }, { "title": "推送方式", "dataIndex": "sendMethodName", "key": "sendMethodName", search: false }, { "title": "推送内容", "dataIndex": "msgContent", "key": "msgContent" }, { "title": "状态", "dataIndex": "sendResultName", "key": "sendResult", "valueType": "select", options: [ { "label": "成功", "value": 1 }, { "label": "失败", "value": 2 } ] }, { title: '操作', valueType: 'option', width: 120, render: (text, row, _, action) => extraAction(text, row, _, action) }, ] function extraAction(text, record, _, action) { return (