diff --git a/public/react/src/modules/tpm/TPMDataset.js b/public/react/src/modules/tpm/TPMDataset.js index 5745a6321..619dea9e1 100644 --- a/public/react/src/modules/tpm/TPMDataset.js +++ b/public/react/src/modules/tpm/TPMDataset.js @@ -84,6 +84,7 @@ class TPMDataset extends Component { loadingstate:false, checked: false, showmodel:false, + itemtypebool:false, } } @@ -304,10 +305,18 @@ class TPMDataset extends Component { if(info.file.response){ if(info.file.response.status===-1||info.file.response.status==="-1"){ // console.log("准备显示弹框了"); - // console.log(info); + // console.log(info);false + let itemtype=-1; + try { + itemtype=info.file.response.message.indexOf('文件名已经存在'.toLowerCase()); + + }catch (e) { + + } this.setState({ showmodel:true, tittest:info.file.response.message, + itemtypebool:itemtype>-1?true:itemtype<=-1?false:false, }) } } @@ -466,7 +475,7 @@ class TPMDataset extends Component {
{ this.state.showmodel===true? - this.ModalSave()} tittest={this.state.tittest} modalsType={this.state.showmodel}> + this.ModalSave()} tittest={this.state.tittest} modalsType={this.state.showmodel}> :"" } -

加载实训出错,是否

this.updatamakedowns()}>重新加载

+

加载实训失败,

this.updatamakedowns()}>重新加载