diff --git a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js index 943bf6f9e..6a628ef79 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js @@ -28,7 +28,8 @@ class Repository extends Component { evaluationvisible:false, ischecke:false, ischeckevalue:"", - trees:undefined + trees:undefined, + treesdelecttype:true } } @@ -137,6 +138,9 @@ class Repository extends Component { }}) .then((response) => { if(response.data.status == 0) { + this.setState({ + treesdelecttype:false + }) this.props.showNotification("删除成功") if(gototype===1){ if(this.state.trees.length>1){ @@ -157,8 +161,10 @@ class Repository extends Component { } this.setState({ ischecke:false, - ischeckevalue:"" + ischeckevalue:"", + treesdelecttype:true }) + } }) .catch(function (error) { @@ -185,7 +191,7 @@ class Repository extends Component { }; render() { let { match, author, git_url, lastest_commit,repositoryLoading, commits,pathArray , TPMRightSectionData } = this.props; - let{trees}= this.state; + let{trees,treesdelecttype}= this.state; let matchpath =this.props.match.path; let Repositoryflag =""; @@ -411,10 +417,9 @@ class Repository extends Component { onSelect={this.onSelectDirectoryTree} onCheck={this.onCheck} > - { trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => { + {treesdelecttype===false || trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => { return ( - :} id={`file${index}`} key={index}> -
x
+ :} id={`file${index}`} key={index}> )})} diff --git a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFile.js b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFile.js index 9b466c2c6..ddaf1ee72 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFile.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFile.js @@ -255,7 +255,7 @@ class RepositoryAddFile extends Component { })( this.setinput(e)}/> - 提示:1.输入 文件名 可以创建一个新文件;2.输入 新文件夹名/新文件名 可以创建新文件夹和新文件; + 提示:1.输入文件名可以创建一个新文件,2.输入新文件夹名/新文件名可以创建新文件夹和新文件。 )}