| | |
| | | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { Button, message, Modal, Tag } from 'antd'; |
| | | import { Button, message, Modal, Tag } from 'antd'; |
| | | import { |
| | | FooterToolbar, |
| | | PageContainer, |
| | |
| | | valueType: 'text', |
| | | hidden: false, |
| | | width: 140, |
| | | render: (_, record) => { |
| | | return <a target='_blank' href={`${_}`} style={{ fontWeight: "bold" }} >{_}</a> |
| | | }, |
| | | filterDropdown: (props) => <TextFilter |
| | | name='wms' |
| | | {...props} |
| | |
| | | valueType: 'text', |
| | | hidden: false, |
| | | width: 140, |
| | | render: (_, record) => { |
| | | return <a target='_blank' href={`${_}`} style={{ fontWeight: "bold" }} >{_}</a> |
| | | }, |
| | | filterDropdown: (props) => <TextFilter |
| | | name='wcs' |
| | | {...props} |
| | |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'option', |
| | | width: 140, |
| | | width: 180, |
| | | valueType: 'option', |
| | | render: (_, record) => [ |
| | | <Button |
| | |
| | | }} |
| | | > |
| | | <FormattedMessage id='page.edit' defaultMessage='编辑' /> |
| | | </Button>, |
| | | <Button |
| | | type="link" |
| | | key="edit" |
| | | onClick={() => { |
| | | }} |
| | | > |
| | | <FormattedMessage id='page.reset' defaultMessage='一键重启' /> |
| | | </Button>, |
| | | <Button |
| | | type="link" |
| | | danger |
| | | onClick={() => { |
| | | }} |
| | | > |
| | | <FormattedMessage id='page.reset' defaultMessage='异常日志' /> |
| | | </Button>, |
| | | <Button |
| | | type="link" |
| | |
| | | persistenceKey: TABLE_KEY, |
| | | persistenceType: 'localStorage', |
| | | defaultValue: { |
| | | // memo: { show: repairBug(TABLE_KEY, 'memo', false) }, |
| | | uuid: { show: repairBug(TABLE_KEY, 'uuid', false) }, |
| | | createTime$: { show: repairBug(TABLE_KEY, 'createTime$', false) }, |
| | | updateTime$: { show: repairBug(TABLE_KEY, 'updateTime$', false) }, |
| | | createBy$: { show: repairBug(TABLE_KEY, 'createBy$', false) }, |
| | | updateBy$: { show: repairBug(TABLE_KEY, 'updateBy$', false) }, |
| | | memo: { show: repairBug(TABLE_KEY, 'memo', false) }, |
| | | option: { fixed: 'right', disable: true }, |
| | | }, |
| | | onChange(value) { |