Commit 13c2ccd3 authored by wuting's avatar wuting

fix: 按钮权限

parent 65cb75ab
......@@ -119,7 +119,7 @@ const ReadyAddBid: React.FC<ReadyAddBidProps> = (props) => {
formilyChilds={{
children: <Space>
<AuthButton btnCode='readyAddBid.add' >
<AuthButton btnCode='mallReadyAddBid.add' >
<Button
icon={<PlusCircleOutlined />}
type='primary'
......@@ -128,10 +128,10 @@ const ReadyAddBid: React.FC<ReadyAddBidProps> = (props) => {
{intl.formatMessage({ id: 'table.purchase.added' })}
</Button>
</AuthButton>
<AuthButton btnCode='readyAddBid.batchsubmit' >
<AuthButton btnCode='mallReadyAddBid.batchsubmit' >
<Button onClick={handleBitchPush} loading={submitLoading}>{intl.formatMessage({ id: 'table.purchase.submitBatch' })}</Button>
</AuthButton>
<AuthButton btnCode='readyAddBid.batchdel' >
<AuthButton btnCode='mallReadyAddBid.batchdel' >
<Button onClick={handleBitchRemove} loading={submitLoading}>{intl.formatMessage({ id: 'table.purchase.deleteBatch' })}</Button>
</AuthButton>
......
......@@ -66,7 +66,7 @@ const AddInquiry = () => {
render: (text: any, record: any) => (
<>
{(record.button === BUTTONAUTHORITY.ONE) &&
<AuthButton btnCode='purchaseInquiry.submit' >
<AuthButton btnCode='mallPurchaseInquiry.submit' >
<Popconfirm title={intl.formatMessage({ id: 'table.purchase.popconfirm' })} okText={intl.formatMessage({ id: 'table.purchase.okText' })} cancelText={intl.formatMessage({ id: 'table.purchase.cancelText' })} onConfirm={() => fetchSubmitBatch(record.id)}>
<Button type='link'>
{intl.formatMessage({ id: 'table.purchase.submit' })}
......@@ -75,12 +75,12 @@ const AddInquiry = () => {
</AuthButton>
}
{(record.button === BUTTONAUTHORITY.ONE || record.button === BUTTONAUTHORITY.TWO) &&
<AuthButton btnCode='purchaseInquiry.edit' >
<AuthButton btnCode='mallPurchaseInquiry.edit' >
<Button type='link' onClick={() => history.push(`/memberCenter/procurementAbility/purchaseInquiry/addMallInquiry/edit?id=${record.id}&number=${record.purchaseInquiryNo}`)}>{intl.formatMessage({ id: 'table.purchase.eidt' })}</Button>
</AuthButton>
}
{(record.button === BUTTONAUTHORITY.ONE) &&
<AuthButton btnCode='purchaseInquiry.del' >
<AuthButton btnCode='mallPurchaseInquiry.del' >
<Popconfirm title={intl.formatMessage({ id: 'table.purchase.popconfirm2' })} okText={intl.formatMessage({ id: 'table.purchase.okText' })} cancelText={intl.formatMessage({ id: 'table.purchase.cancelText' })} onConfirm={() => fetchDeleteBatch(record.id)}>
<Button type='link'>
{intl.formatMessage({ id: 'table.purchase.delete' })}
......@@ -158,7 +158,7 @@ const AddInquiry = () => {
<Col span={24}>
<Space direction="horizontal" size={16}>
<AuthButton btnCode='purchaseInquiry.added' >
<AuthButton btnCode='mallPurchaseInquiry.added' >
<Button
onClick={() => addFn()}
type="primary"
......@@ -168,7 +168,7 @@ const AddInquiry = () => {
</Button>
</AuthButton>
<AuthButton btnCode='purchaseInquiry.batchsubmit' >
<AuthButton btnCode='mallPurchaseInquiry.batchsubmit' >
<Button
onClick={() => fetchSubmitBatch()}
disabled={rowkeys.length === 0}
......@@ -177,7 +177,7 @@ const AddInquiry = () => {
</Button>
</AuthButton>
<AuthButton btnCode='purchaseInquiry.batchdel' >
<AuthButton btnCode='mallPurchaseInquiry.batchdel' >
<Button
onClick={() => fetchDeleteBatch()}
disabled={rowkeys.length === 0}
......
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