Renxy 2 anni fa
parent
commit
c5af1766f7
1 ha cambiato i file con 10 aggiunte e 12 eliminazioni
  1. 10 12
      src/pages/PurchaseAdmin/PurchaseList/Detail/AuditFlow.js

+ 10 - 12
src/pages/PurchaseAdmin/PurchaseList/Detail/AuditFlow.js

@@ -184,18 +184,16 @@ function AuditFlow(props) {
           ))}
           {/* <Step key={item.activityId} title={item?.activityName} description={renderDesc(item)} /> */}
         </Steps>
-        <div className={styles.btns} style={{ marginLeft: 80 }}>
-          {showAduit && (
-            <>
-              <Button type="primary" onClick={() => onApprove(true, tasks[current].taskid)}>
-                审批通过
-              </Button>
-              <Button onClick={() => onApprove(false, tasks[current].taskid)} danger>
-                审批拒绝
-              </Button>
-            </>
-          )}
-        </div>
+        {showAduit && (
+          <div className={styles.btns} style={{ marginLeft: 80 }}>
+            <Button type="primary" onClick={() => onApprove(true, tasks[current].taskid)}>
+              审批通过
+            </Button>
+            <Button onClick={() => onApprove(false, tasks[current].taskid)} danger>
+              审批拒绝
+            </Button>
+          </div>
+        )}
       </div>
       {status !== undefined && renderAlert()}
     </Spin>