|
|
|
@ -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 {
|
|
|
|
|
<div className="with65 fl edu-back-white commentsDelegateParent">
|
|
|
|
|
{
|
|
|
|
|
this.state.showmodel===true?
|
|
|
|
|
<Tpmdatasetmodel modalCancel={()=>this.ModalSave()} tittest={this.state.tittest} modalsType={this.state.showmodel}></Tpmdatasetmodel>
|
|
|
|
|
<Tpmdatasetmodel itemtypebool={this.state.itemtypebool} modalCancel={()=>this.ModalSave()} tittest={this.state.tittest} modalsType={this.state.showmodel}></Tpmdatasetmodel>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
<TPMNav
|
|
|
|
|