diff --git a/client/containers/ProjectGroups/ProjectList/ProjectList.js b/client/containers/ProjectGroups/ProjectList/ProjectList.js index 26472a11..6c2130c8 100644 --- a/client/containers/ProjectGroups/ProjectList/ProjectList.js +++ b/client/containers/ProjectGroups/ProjectList/ProjectList.js @@ -306,7 +306,10 @@ class ProjectList extends Component { + } /> diff --git a/client/containers/ProjectGroups/ProjectList/ProjectList.scss b/client/containers/ProjectGroups/ProjectList/ProjectList.scss index db22bef5..5950d67b 100644 --- a/client/containers/ProjectGroups/ProjectList/ProjectList.scss +++ b/client/containers/ProjectGroups/ProjectList/ProjectList.scss @@ -3,6 +3,12 @@ padding: 16px 24px; box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20); border-radius: 4px; + text-align: right; +} + +.m-table { + text-align: left; + margin-top: .16rem; } .ant-input-group-wrapper { diff --git a/client/containers/ProjectGroups/ProjectList/UpDateModal.js b/client/containers/ProjectGroups/ProjectList/UpDateModal.js index 8a02545e..b7bfc9f6 100644 --- a/client/containers/ProjectGroups/ProjectList/UpDateModal.js +++ b/client/containers/ProjectGroups/ProjectList/UpDateModal.js @@ -159,7 +159,7 @@ class UpDateModal extends Component { // const that = this; const { isUpdateModalShow, projectList, handleUpdateIndex } = this.props; let initFormValues = {}; - let envMessage = [{name:'name1',host:'host1'}, {name:'name2',host:'host2'}]; + let envMessage = []; // 如果列表存在且用户点击修改按钮时,设置表单默认值 if (projectList.length !== 0 && handleUpdateIndex !== -1 ) { // console.log(projectList[handleUpdateIndex]);