Commit 1b2dbe82 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix(物流管理): 修改按钮显示

parent 5578ac36
......@@ -85,16 +85,16 @@ const LogisticsBillQuery = () => {
title: '操作',
key: 'submitOrUpdateOrDel',
dataIndex: 'submitOrUpdateOrDel',
render: (text, data) => text && <>
<Button type='link' onClick={() => history.push(`/memberCenter/logisticsAbility/logisticsBillSubmit/waitSbumitLogisticsBill/edit?id=${data.id}`)}>编辑</Button>
<Popconfirm title="确定要提交吗?" okText="是" cancelText="否" onConfirm={() => handleSubmit(data.id)}>
render: (text, data) => <>
{data.update && <Button type='link' onClick={() => history.push(`/memberCenter/logisticsAbility/logisticsBillSubmit/waitSbumitLogisticsBill/edit?id=${data.id}`)}>编辑</Button>}
{data.submit && <Popconfirm title="确定要提交吗?" okText="是" cancelText="否" onConfirm={() => handleSubmit(data.id)}>
<Button type='link'>提交</Button>
</Popconfirm>
<Popconfirm title="确定要删除吗?" okText="是" cancelText="否" onConfirm={() => handleDelete(data.id)}>
</Popconfirm>}
{data.delete && <Popconfirm title="确定要删除吗?" okText="是" cancelText="否" onConfirm={() => handleDelete(data.id)}>
<Button type='link'>
删除
</Button>
</Popconfirm>
</Popconfirm>}
</>
},
]
......
......@@ -180,8 +180,7 @@ const ReadyExamineOne = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -180,8 +180,7 @@ const ReadyExamineTwo = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -193,8 +193,7 @@ const ReadySubmit = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -210,8 +210,7 @@ const ReadySubmitExamine = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -157,8 +157,7 @@ const Search = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -178,8 +178,7 @@ const ReadyExamineOne = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -178,8 +178,7 @@ const ReadyExamineTwo = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -192,8 +192,7 @@ const ReadyLive = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -192,8 +192,7 @@ const ReadySubmit = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -207,8 +207,7 @@ const ReadySubmitExamine = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
......@@ -196,8 +196,7 @@ const Search = () => {
},
},
'[startTime,endTime]': {
type: 'string',
"x-component": "DateRangePickerUnix",
type: 'daterange',
'x-component-props': {
placeholder: ['开始时间', '结束时间'],
style: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment