Browse Source

feat:作业修改

Leo 2 years ago
parent
commit
f0af43d1f4

+ 17 - 0
src/module/taskmgmt/page/TaskMgmtView.jsx

@@ -113,10 +113,27 @@ const TaskMgmtView = () => {
       dataIndex: 'executionCycle',
       key: 'executionCycle',
     },
+    {
+      title: '下次执行时间',
+      key: 'action',
+      align: 'center',
+      render: (_, record) => (
+        <Space size="middle">
+          <span
+            onClick={() => {
+              runTimeOnce(record.key)
+            }}
+            style={{ color: '#1881DA', cursor: 'pointer' }}>
+            查看
+          </span>
+        </Space>
+      ),
+    },
     {
       title: '历史运行情况',
       dataIndex: 'historicalRuntime',
       key: 'historicalRuntime',
+      align: 'center',
       render: list => (
         <div>
           {list.map((item, index) => {

+ 36 - 27
src/module/workmgmt/component/JobStepThree.jsx

@@ -76,6 +76,13 @@ const StepTwo = styled.div`
         margin-left: 115px;
       }
     }
+    .detail-content {
+      height: 350px;
+      overflow: auto;
+      ::-webkit-scrollbar {
+        display: none;
+      }
+    }
     .detail-item {
       display: flex;
       .icon {
@@ -323,34 +330,36 @@ export default function JobStepTwo({ OutputDataForm, dagData, checkSync }) {
           <span className="datasourceFont">数据源</span>
           <span className="schemaFont">Dag输出源结构</span>
         </div>
-        {selectedNode?.map((item, index) => (
-          <div key={index} className="detail-item">
-            <div
-              className="dataSource"
-              style={{
-                display: item?.datasource?.dataField ? 'block' : 'none',
-              }}>
-              <Tooltip
-                title={`${item?.datasource?.dataField}.${item?.datasource?.dataType}`}>
-                <span>{`${item?.datasource?.dataField}.${item?.datasource?.dataType}`}</span>
-              </Tooltip>
-            </div>
-            <span className="icon">
-              <img
-                src={item?.result ? syncUrl : waringUrl}
-                alt=""
-                style={{ width: '20px', height: '20px' }}
-              />
-            </span>
-            <div
-              className="dataSource Dagdatasource"
-              style={{
-                display: item?.dag?.dataField ? 'block' : 'none',
-              }}>
-              <span>{`${item?.dag?.dataField}.${item?.dag?.dataType}`}</span>
+        <div className="detail-content">
+          {selectedNode?.map((item, index) => (
+            <div key={index} className="detail-item">
+              <div
+                className="dataSource"
+                style={{
+                  display: item?.datasource?.dataField ? 'block' : 'none',
+                }}>
+                <Tooltip
+                  title={`${item?.datasource?.dataField}.${item?.datasource?.dataType}`}>
+                  <span>{`${item?.datasource?.dataField}.${item?.datasource?.dataType}`}</span>
+                </Tooltip>
+              </div>
+              <span className="icon">
+                <img
+                  src={item?.result ? syncUrl : waringUrl}
+                  alt=""
+                  style={{ width: '20px', height: '20px' }}
+                />
+              </span>
+              <div
+                className="dataSource Dagdatasource"
+                style={{
+                  display: item?.dag?.dataField ? 'block' : 'none',
+                }}>
+                <span>{`${item?.dag?.dataField}.${item?.dag?.dataType}`}</span>
+              </div>
             </div>
-          </div>
-        ))}
+          ))}
+        </div>
       </div>
     </StepTwo>
   )

+ 36 - 27
src/module/workmgmt/component/JobStepTwo.jsx

@@ -76,6 +76,13 @@ const StepTwo = styled.div`
         margin-left: 115px;
       }
     }
+    .detail-content {
+      height: 350px;
+      overflow: auto;
+      ::-webkit-scrollbar {
+        display: none;
+      }
+    }
     .detail-item {
       display: flex;
       .icon {
@@ -323,34 +330,36 @@ export default function JobStepTwo({ InputDataForm, dagData, checkSync }) {
           <span className="datasourceFont">数据源</span>
           <span className="schemaFont">Dag输入源结构</span>
         </div>
-        {selectedNode?.map((item, index) => (
-          <div key={index} className="detail-item">
-            <div
-              className="dataSource"
-              style={{
-                display: item?.datasource?.dataField ? 'block' : 'none',
-              }}>
-              <Tooltip
-                title={`${item?.datasource?.dataField}.${item?.datasource?.dataType}`}>
-                <span>{`${item?.datasource?.dataField}.${item?.datasource?.dataType}`}</span>
-              </Tooltip>
-            </div>
-            <span className="icon">
-              <img
-                src={item?.result ? syncUrl : waringUrl}
-                alt=""
-                style={{ width: '20px', height: '20px' }}
-              />
-            </span>
-            <div
-              className="dataSource Dagdatasource"
-              style={{
-                display: item?.dag?.dataField ? 'block' : 'none',
-              }}>
-              <span>{`${item?.dag?.dataField}.${item?.dag?.dataType}`}</span>
+        <div className="detail-content">
+          {selectedNode?.map((item, index) => (
+            <div key={index} className="detail-item">
+              <div
+                className="dataSource"
+                style={{
+                  display: item?.datasource?.dataField ? 'block' : 'none',
+                }}>
+                <Tooltip
+                  title={`${item?.datasource?.dataField}.${item?.datasource?.dataType}`}>
+                  <span>{`${item?.datasource?.dataField}.${item?.datasource?.dataType}`}</span>
+                </Tooltip>
+              </div>
+              <span className="icon">
+                <img
+                  src={item?.result ? syncUrl : waringUrl}
+                  alt=""
+                  style={{ width: '20px', height: '20px' }}
+                />
+              </span>
+              <div
+                className="dataSource Dagdatasource"
+                style={{
+                  display: item?.dag?.dataField ? 'block' : 'none',
+                }}>
+                <span>{`${item?.dag?.dataField}.${item?.dag?.dataType}`}</span>
+              </div>
             </div>
-          </div>
-        ))}
+          ))}
+        </div>
       </div>
     </StepTwo>
   )