Browse Source

修改清单列表名称

Renxy 3 years ago
parent
commit
c73d7546da
1 changed files with 13 additions and 9 deletions
  1. 13 9
      src/pages/PurchaseAdmin/PurchaseList/Detail/FlowModal.js

+ 13 - 9
src/pages/PurchaseAdmin/PurchaseList/Detail/FlowModal.js

@@ -221,15 +221,19 @@ function FlowModal(props) {
             <Flow meta={{ type: 'view' }} flowDetail={graphData} onSelectNode={handleSelectNode} />
           </Col>
           <Col span={8}>
-            {isOut && data.length == 1 && !data[0].children && (
-              <Button
-                type="primary"
-                style={{ float: 'right', marginBottom: '10px' }}
-                onClick={() => setVersionVisible(true)}
-              >
-                新建清单
-              </Button>
-            )}
+            <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
+              <div style={{ fontSize: '16px' }}>清单列表</div>
+              {isOut && (
+                <Button
+                  type="primary"
+                  style={{ float: 'right', marginBottom: '10px' }}
+                  onClick={() => setVersionVisible(true)}
+                >
+                  新建清单
+                </Button>
+              )}
+            </div>
+
             <div style={{ width: '100%' }}>
               <Table
                 style={{ maxHeight: '90%' }}