Leo il y a 2 ans
Parent
commit
cdaef64ed6

+ 2 - 3
src/module/datasource/component/DatasourceEdit.jsx

@@ -1,5 +1,4 @@
 import {
-  ModalForm,
   ProFormSelect,
   ProFormText,
   ProFormRadio,
@@ -129,11 +128,11 @@ export default function DatasourceAdd({ ds_id, ds_info, setDsModalVisible }) {
         params['use_ssl'] = useSSL ? 1 : 0
         params['kerberos'] = kerbsValid ? 1 : 0
         if (kerbsValid) {
-          if (!keytabFile.length) {
+          if (keytabFile && !keytabFile.length) {
             const keytab = await uploadKerbFile(keytabFile)
             params['keytab'] = keytab
           }
-          if (!krd5File.length) {
+          if (krd5File && !krd5File.length) {
             const krb5config = await uploadKerbFile(krd5File)
             params['krb5config'] = krb5config
           }

+ 2 - 2
src/module/workmgmt/component/JobStepThree.jsx

@@ -21,7 +21,7 @@ const StepTwo = styled.div`
     border: 1px solid #c8d3e9;
     .dtsource {
       .ant-form-item-label {
-        width: 120px;
+        width: 200px;
       }
       .ant-select {
         width: 80%;
@@ -292,7 +292,7 @@ export default function JobStepTwo({ OutputDataForm, dagData, checkSync }) {
                   <FormItem
                     name={`datasource${index}`}
                     rules={[{ required: true, message: '请选择数据源!' }]}
-                    label={item.name}
+                    label={`Dag节点 ${item.name}`}
                     className="dtsource">
                     <Select
                       showSearch