对接文档翻译
This commit is contained in:
@@ -1190,4 +1190,5 @@ module.exports = {
|
|||||||
selectDirectorylocation: 'Please select the directory location to add the folder',
|
selectDirectorylocation: 'Please select the directory location to add the folder',
|
||||||
Fileuploaded:'File uploaded, please wait',
|
Fileuploaded:'File uploaded, please wait',
|
||||||
uploadedbyyourself:'You can only delete files and data uploaded by yourself',
|
uploadedbyyourself:'You can only delete files and data uploaded by yourself',
|
||||||
|
doNotHavePermissionDeleteData:'Do not have permission to delete this data,'
|
||||||
}
|
}
|
||||||
@@ -1193,4 +1193,5 @@ module.exports = {
|
|||||||
Checkthepermissions: '查看权限',
|
Checkthepermissions: '查看权限',
|
||||||
onlyFilesUploaded: '只能上传.docx、.doc文件',
|
onlyFilesUploaded: '只能上传.docx、.doc文件',
|
||||||
uploadedbyyourself: '只能删除自己上传的文件数据',
|
uploadedbyyourself: '只能删除自己上传的文件数据',
|
||||||
|
doNotHavePermissionDeleteData: '没有权限删除此数据'
|
||||||
}
|
}
|
||||||
+3
-1
@@ -257,7 +257,9 @@
|
|||||||
serialNumber: this.selectedRowKeysRecord[0].serial_number,
|
serialNumber: this.selectedRowKeysRecord[0].serial_number,
|
||||||
title: this.selectedRowKeysRecord[0].title,
|
title: this.selectedRowKeysRecord[0].title,
|
||||||
fileName: this.selectedRowKeysRecord[0].file_name,
|
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
|
this.confirmLoading = true
|
||||||
postAction('/docTranslation/docTranslationEO/add', query).then((res) => {
|
postAction('/docTranslation/docTranslationEO/add', query).then((res) => {
|
||||||
|
|||||||
@@ -148,6 +148,7 @@
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
userInfoQuery: {},
|
userInfoQuery: {},
|
||||||
|
selectedRowKeysRecord: [],
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
@@ -269,8 +270,9 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onSelectChange(value) {
|
onSelectChange(value, record) {
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
|
this.selectedRowKeysRecord = record
|
||||||
},
|
},
|
||||||
viewClick(row) {
|
viewClick(row) {
|
||||||
let newUrl = this.$router.resolve({
|
let newUrl = this.$router.resolve({
|
||||||
@@ -322,7 +324,15 @@
|
|||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('ConfirmBatchDeletion'),
|
content: _this.$t('ConfirmBatchDeletion'),
|
||||||
onOk() {
|
onOk() {
|
||||||
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
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) => {
|
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
@@ -332,6 +342,9 @@
|
|||||||
_this.$message.warning(res.message)
|
_this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(_this.$t('doNotHavePermissionDeleteData'))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user