对接文档翻译

This commit is contained in:
qq787203167
2022-07-27 09:46:34 +08:00
parent 95a8f05145
commit 6d1e14bd5a
4 changed files with 163 additions and 146 deletions
@@ -257,7 +257,9 @@
serialNumber: this.selectedRowKeysRecord[0].serial_number,
title: this.selectedRowKeysRecord[0].title,
fileName: this.selectedRowKeysRecord[0].file_name,
textStatus: this.selectedRowKeysRecord[0].text_info_id
textStatus: this.selectedRowKeysRecord[0].text_info_id,
sourceFileId:this.selectedRowKeysRecord[0].id,
bussDocumentLibraryId:this.selectedRowKeysRecord[0].buss_document_library_id
}
this.confirmLoading = true
postAction('/docTranslation/docTranslationEO/add', query).then((res) => {
@@ -148,6 +148,7 @@
pageNo: 1,
queryParam: {},
userInfoQuery: {},
selectedRowKeysRecord: [],
columns: [
{
title: this.$t('standard'),
@@ -269,8 +270,9 @@
}
})
},
onSelectChange(value) {
onSelectChange(value, record) {
this.selectedRowKeys = value
this.selectedRowKeysRecord = record
},
viewClick(row) {
let newUrl = this.$router.resolve({
@@ -322,16 +324,27 @@
this.$confirm({
content: _this.$t('ConfirmBatchDeletion'),
onOk() {
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
_this.getList()
} else {
_this.$message.warning(res.message)
let idList = []
let selectedRowKeysRecord = JSON.parse(JSON.stringify(_this.selectedRowKeysRecord))
for (let i = 0; i < selectedRowKeysRecord.length; i++) {
if (selectedRowKeysRecord[i].createBy == _this.userInfo().username &&
selectedRowKeysRecord[i].releaseCondition == 'draft') {
idList.push(selectedRowKeysRecord[i].id)
}
})
}
if (idList.length > 0) {
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
} else {
_this.$message.warning(_this.$t('doNotHavePermissionDeleteData'))
}
}
})
} else {