Explorar o código

修改审批按钮显示位置

xjj %!s(int64=2) %!d(string=hai) anos
pai
achega
150bdd1e95
Modificáronse 1 ficheiros con 12 adicións e 14 borrados
  1. 12 14
      src/pages/Detail/TimeNode.js

+ 12 - 14
src/pages/Detail/TimeNode.js

@@ -46,25 +46,23 @@ function TimeNode(props) {
 
   if (!list || list.FlowNodes?.length != 0) {
     return (
-      <div className={styles.top}>
+      <>
         <Steps current={current} status={active == 0 ? 'error' : 'process'}>
           {list.FlowNodes.map(item => (
             <Step key={item.id} title={item.node} description={getDescription(item)} />
           ))}
         </Steps>
-        <div className={styles.btns} style={{ marginLeft: 80 }}>
-          {isAuditor && active != 0 && (
-            <>
-              <Button type="primary" onClick={() => setAuditVisible(1)}>
-                审批通过
-              </Button>
-              <Button onClick={() => setAuditVisible(2)} danger>
-                审批拒绝
-              </Button>
-            </>
-          )}
-        </div>
-      </div>
+        {isAuditor && active != 0 && (
+          <div className={styles.btns} style={{ margin: '40px 0' }}>
+            <Button type="primary" onClick={() => setAuditVisible(1)}>
+              审批通过
+            </Button>
+            <Button onClick={() => setAuditVisible(2)} danger>
+              审批拒绝
+            </Button>
+          </div>
+        )}
+      </>
     );
   }
   // else {