拆分详情修改
This commit is contained in:
@@ -184,18 +184,17 @@
|
||||
axios({
|
||||
url: '/jero-boot/split/sarFileSplitInfo/deleteBatch',
|
||||
method: 'get',
|
||||
data: params,
|
||||
params:params,
|
||||
headers: {
|
||||
// 'Content-Type': 'multipart/form-data',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'X-Access-Token':this.token
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.data.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
if(this.selectedRowKeys&&this.selectedRowKeys.length==this.tableData.length){
|
||||
this.queryParams.pageNo=this.queryParams.pageNo-1
|
||||
}
|
||||
// if(this.selectedRowKeys&&this.selectedRowKeys.length==this.tableData.length){
|
||||
// this.queryParams.pageNo=this.queryParams.pageNo-1
|
||||
// }
|
||||
this.selectedRowKeys=[]
|
||||
eventBUs.$emit('searchReset')
|
||||
// this.loadData()
|
||||
@@ -220,9 +219,9 @@
|
||||
getAction(`split/sarFileSplitInfo/delete`, { id: val.id }).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
if (this.tableData && this.tableData.length == 1 && this.queryParams.pageNo != 1) {
|
||||
this.queryParams.pageNo = this.queryParams.pageNo - 1
|
||||
}
|
||||
// if (this.tableData && this.tableData.length == 1 && this.queryParams.pageNo != 1) {
|
||||
// this.queryParams.pageNo = this.queryParams.pageNo - 1
|
||||
// }
|
||||
eventBUs.$emit('searchReset')
|
||||
// this.loadData()
|
||||
} else {
|
||||
@@ -276,14 +275,31 @@
|
||||
fileName:val.fileName,
|
||||
connectId:val.connectId
|
||||
}
|
||||
getAction(`split/sarFileSplitInfo/bindToDocumentLibrary`, params).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.loadData()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
axios({
|
||||
url: '/jero-boot/split/sarFileSplitInfo/bindToDocumentLibrary',
|
||||
method: 'get',
|
||||
params:params,
|
||||
headers: {
|
||||
// 'Content-Type': 'multipart/form-data',
|
||||
'X-Access-Token':this.token
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.data.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
eventBUs.$emit('searchReset')
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
|
||||
// getAction(`split/sarFileSplitInfo/bindToDocumentLibrary`, params).then((res) => {
|
||||
// if (res.success) {
|
||||
// this.$message.success(res.message)
|
||||
// this.loadData()
|
||||
// } else {
|
||||
// this.$message.warning(res.message)
|
||||
// }
|
||||
// })
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user