chromesetting
杨树林 5 years ago
parent 0d602462ce
commit 6043704e9a

@ -225,17 +225,6 @@ class TPMDataset extends Component {
}
showModal = (id, status) => {
};
handleOk = (id, editid) => {
};
handleCancel = (e) => {
};
paginationonChanges = (pageNumber) => {
// //console.log('Page: ');
this.setState({
@ -245,6 +234,7 @@ class TPMDataset extends Component {
this.getdatastwo(pageNumber,10);
}
onSelectChange = (selectedRowKeys, selectedRows) => {
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
this.setState(
@ -280,7 +270,7 @@ class TPMDataset extends Component {
console.log("handleChange1fileLists");
// if(fileList.length===0){
let fileLists = info.fileList;
console.log(fileLists);
// console.log(fileLists);
this.setState({
// fileList:appendFileSizeToUploadFileAll(fileList),
fileList: fileLists,
@ -324,10 +314,14 @@ class TPMDataset extends Component {
}
deleteRemovedata(){
// console.log("删除");
// console.log(this.state.selectedRowKeysdata);
if(this.state.selectedRowKeysdata===undefined || this.state.selectedRowKeysdata===null ||this.state.selectedRowKeysdata.length===0){
this.props.showNotification(`请选择要删除的文件`);
return
}
confirm({
title: '确定要删除附件吗?',
title: '确定要删除件吗?',
okText: '确定',
cancelText: '取消',
// content: 'Some descriptions',
@ -359,7 +353,7 @@ class TPMDataset extends Component {
}
deleteAttachment = (file) => {
console.log(file);
// console.log(file);
let id=file.response ==undefined ? file.id : file.response.id
const url = `/attachements/destroy_files.json`
axios.delete(url, {

Loading…
Cancel
Save