chromesetting
杨树林 6 years ago
parent 06689ff96e
commit 02873910ac

@ -264,7 +264,7 @@ class TPMDataset extends Component {
} }
onSelectChange = (selectedRowKeys, selectedRows) => { onSelectChange = (selectedRowKeys, selectedRows) => {
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); // console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
this.setState( this.setState(
{ {
selectedRowKeys selectedRowKeys
@ -278,7 +278,7 @@ class TPMDataset extends Component {
this.setState({ this.setState({
selectedRowKeysdata:mydata, selectedRowKeysdata:mydata,
}) })
console.log(mydata); // console.log(mydata);
@ -289,9 +289,9 @@ class TPMDataset extends Component {
return className; return className;
} }
handleChange = (info) => { handleChange = (info) => {
console.log("handleChange123123"); // console.log("handleChange123123");
console.log(info); // console.log(info);
debugger // debugger
if(info.file.status == "done" || info.file.status == "uploading" || info.file.status === 'removed'){ if(info.file.status == "done" || info.file.status == "uploading" || info.file.status === 'removed'){
let fileList = info.fileList; let fileList = info.fileList;
this.setState({ this.setState({
@ -303,6 +303,8 @@ debugger
} }
if(info.file.response){ if(info.file.response){
if(info.file.response.status===-1||info.file.response.status==="-1"){ if(info.file.response.status===-1||info.file.response.status==="-1"){
// console.log("准备显示弹框了");
// console.log(info);
this.setState({ this.setState({
showmodel:true, showmodel:true,
tittest:info.file.response.message, tittest:info.file.response.message,
@ -436,11 +438,6 @@ debugger
const uploadProps = { const uploadProps = {
width: 600, width: 600,
fileList, fileList,
data:{
attachtype: 2,
container_id:this.props.match.params.shixunId,
container_type: "Shixun",
},
multiple: false, multiple: false,
//multiple 是否支持多选 查重的时候不能多选 不然弹许多框出来 //multiple 是否支持多选 查重的时候不能多选 不然弹许多框出来
// https://github.com/ant-design/ant-design/issues/15505 // https://github.com/ant-design/ant-design/issues/15505
@ -452,7 +449,7 @@ debugger
onRemove: this.onAttachmentRemove, onRemove: this.onAttachmentRemove,
beforeUpload: (file) => { beforeUpload: (file) => {
//上传前的操作 //上传前的操作
console.log('beforeUpload', file.name); // console.log('beforeUpload', file.name);
const isLt150M = file.size / 1024 / 1024 < 150; const isLt150M = file.size / 1024 / 1024 < 150;
if (!isLt150M) { if (!isLt150M) {
this.props.showNotification('文件大小必须小于150MB!'); this.props.showNotification('文件大小必须小于150MB!');
@ -460,6 +457,8 @@ debugger
return isLt150M; return isLt150M;
}, },
}; };
// console.log("showmodelshowmodel");
// console.log(this.state.showmodel);
return ( return (
<React.Fragment> <React.Fragment>
<div className="tpmComment educontent clearfix mt30 mb80"> <div className="tpmComment educontent clearfix mt30 mb80">
@ -467,7 +466,7 @@ debugger
<div className="with65 fl edu-back-white commentsDelegateParent"> <div className="with65 fl edu-back-white commentsDelegateParent">
{ {
this.state.showmodel===true? this.state.showmodel===true?
<Tpmdatasetmodel modalCancel={this.ModalSave()} tittest={this.state.tittest} modalsType={this.state.showmodel}></Tpmdatasetmodel> <Tpmdatasetmodel modalCancel={()=>this.ModalSave()} tittest={this.state.tittest} modalsType={this.state.showmodel}></Tpmdatasetmodel>
:"" :""
} }
<TPMNav <TPMNav

@ -33,13 +33,13 @@ class Tpmdatasetmodel extends Component {
visible={this.props.modalsType===undefined?false:this.props.modalsType} visible={this.props.modalsType===undefined?false:this.props.modalsType}
width="530px" width="530px"
> >
<div className="educouddiv"> <div className="educouddiv intermediatecenter">
<div className={"tabeltext-alignleft mt10"}><p>文件名重复</p></div> <div className={"tabeltext-alignleftysl mt10"}><p>文件名重复</p></div>
<div className={"tabeltext-alignleft mt10"}><p>{this.props.tittest}</p></div> <div className={"tabeltext-alignleftysltwo mt10"}><p>{this.props.tittest}</p></div>
<div className="clearfix mt30 edu-txt-center"> <div className="clearfix mt30 edu-txt-center task-btn-blues">
{/*<a className="task-btn mr30" onClick={()=>this.modalCancel()}>先试试看</a>*/} {/*<a className="task-btn mr30" onClick={()=>this.modalCancel()}>先试试看</a>*/}
{/*<a className="task-btn task-btn-orange" onClick={()=>this.setDownload()}>立即申请授权</a>*/} {/*<a className="task-btn task-btn-orange" onClick={()=>this.setDownload()}>立即申请授权</a>*/}
<a className="task-btn task-btn-blue bth100" onClick={()=>this.modalCancel()}>我知道啦</a> <a className=" task-btn-blue-test bth100 " onClick={()=>this.modalCancel()}>我知道啦</a>
</div> </div>
</div> </div>
</Modal> </Modal>

@ -275,4 +275,44 @@
} }
#log_reg_content { #log_reg_content {
padding: 38px 30px 20px !important; padding: 38px 30px 20px !important;
} }
.task-btn-blues{
background:#5091FF;
color:#fff;
width:100px;
height:32px;
border-radius:4px;
}
a:hover.task-btn-blue-test{
height:16px;
font-size:14px;
font-family:MicrosoftYaHei;
color:#FFFFff;
line-height:30px;
}
.task-btn-blue-test{
height:16px;
font-size:14px;
font-family:MicrosoftYaHei;
color:#FFFFff;
line-height:30px;
}
.tabeltext-alignleftysl{
font-size:14px;
color:#000000;
line-height:19px;
}
.tabeltext-alignleftysltwo{
font-size:14px;
color:#848282;
line-height:19px;
}
/* 中间居中 */
.intermediatecenter{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

Loading…
Cancel
Save