|
|
@ -103,8 +103,8 @@ class TPMDataset extends Component {
|
|
|
|
selectedRowKeysdata:mydata,
|
|
|
|
selectedRowKeysdata:mydata,
|
|
|
|
selectedRowKeys: datas,
|
|
|
|
selectedRowKeys: datas,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log(mydata);
|
|
|
|
// console.log(mydata);
|
|
|
|
console.log(datas);
|
|
|
|
// console.log(datas);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -237,6 +237,7 @@ class TPMDataset extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
// 附件相关 START
|
|
|
|
// 附件相关 START
|
|
|
|
handleChange = (info) => {
|
|
|
|
handleChange = (info) => {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if(info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') {
|
|
|
|
if(info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') {
|
|
|
|
let {fileList} = this.state;
|
|
|
|
let {fileList} = this.state;
|
|
|
|
|
|
|
|
|
|
|
@ -256,6 +257,7 @@ class TPMDataset extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onAttachmentRemove = (file) => {
|
|
|
|
onAttachmentRemove = (file) => {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if(!file.percent || file.percent == 100){
|
|
|
|
if(!file.percent || file.percent == 100){
|
|
|
|
confirm({
|
|
|
|
confirm({
|
|
|
|
title: '确定要删除这个附件吗?',
|
|
|
|
title: '确定要删除这个附件吗?',
|
|
|
@ -357,7 +359,7 @@ class TPMDataset extends Component {
|
|
|
|
onChange: this.handleChange,
|
|
|
|
onChange: this.handleChange,
|
|
|
|
onRemove: this.onAttachmentRemove,
|
|
|
|
onRemove: this.onAttachmentRemove,
|
|
|
|
beforeUpload: (file, fileList) => {
|
|
|
|
beforeUpload: (file, fileList) => {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if (this.state.fileList.length >= 1) {
|
|
|
|
if (this.state.fileList.length >= 1) {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|