Commit 4c5bad19e582d460d9c5f164b3d53bd7fcaaadc9

Authored by Shinner
1 parent 18552cea

预览任务按钮显示与是否审批无关;调整样式

src/pages/order3/SaleTask/index.tsx
... ... @@ -247,13 +247,20 @@ function SaleTaskList() {
247 247 </Button>
248 248 </Row>
249 249 ) : (
250   - !isReadOnly && (
251   - <Row align="middle" justify="center" style={{ marginTop: 50 }}>
  250 + <Row align="middle" justify="center" style={{ marginTop: 50 }}>
  251 + {!isReadOnly && (
252 252 <Button type="primary" onClick={() => setApproveOpen(true)}>
253 253 提交审批
254 254 </Button>
255   - </Row>
256   - )
  255 + )}
  256 + <Button
  257 + type="primary"
  258 + style={{ marginLeft: 10 }}
  259 + onClick={handlePreviewTask}
  260 + >
  261 + 预览任务
  262 + </Button>
  263 + </Row>
257 264 )}
258 265 </Card>
259 266 <Modal
... ...
src/pages/order3/SaleTask/subpages/TaskEdit/components/AdviserTaskEdit.tsx
... ... @@ -116,7 +116,7 @@ function AdviserTaskEdit(props: AdviserTaskEditProps, ref: any) {
116 116 };
117 117  
118 118 return (
119   - <div style={{ width: 1050, margin: "0 auto" }}>
  119 + <>
120 120 <div style={{ width: 950, margin: "0 auto", paddingTop: 40 }}>
121 121 <Form
122 122 {...layout}
... ... @@ -405,7 +405,7 @@ function AdviserTaskEdit(props: AdviserTaskEditProps, ref: any) {
405 405 setSeriesVisible(false);
406 406 }}
407 407 />
408   - </div>
  408 + </>
409 409 );
410 410 }
411 411  
... ...
src/pages/order3/SaleTask/subpages/TaskEdit/components/ShopTask.tsx
... ... @@ -114,7 +114,7 @@ export default function ShopTask({ form }: ShopTaskProps) {
114 114 };
115 115  
116 116 return (
117   - <div style={{ width: 1200, margin: "0 auto" }}>
  117 + <>
118 118 <div style={{ width: 880, margin: "0 auto", paddingTop: 24 }}>
119 119 <Form
120 120 {...layout}
... ... @@ -414,6 +414,6 @@ export default function ShopTask({ form }: ShopTaskProps) {
414 414 setSeriesVisible(false);
415 415 }}
416 416 />
417   - </div>
  417 + </>
418 418 );
419 419 }
... ...