带入相关人员后,页面自动刷新;

不能转办给自己
This commit is contained in:
范强强
2023-03-27 14:10:38 +08:00
parent 3ab0177de6
commit 2c85b35e51
4 changed files with 10 additions and 3 deletions
+1
View File
@@ -1718,4 +1718,5 @@ module.exports = {
youCanOnlySelectStatusClearSubmit:'You can only select data with a process status of Clear to Submit',
note:'Note: The attachment includes the list of test items and test report. Test standard or technical specification',
format:'It supports doc/docx/pdf format and is less than 50M in size',
cantTransferToYourself:"Can't transfer to yourself",
}
+1
View File
@@ -1818,4 +1818,5 @@ module.exports = {
youCanOnlySelectStatusClearSubmit:'只能选择流程状态为清单待提交的数据',
note:':附件包括测试项目清单测试报告测试标准或技术规范',
format:'支持doc/docx/pdf格式,大小50M以内',
cantTransferToYourself:"不能转办给自己",
}
@@ -1383,13 +1383,13 @@
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') {
isTrue = true
}else{
} else {
isTrue = false
this.$message.warning(this.$t('youCanOnlySelectStatusClearSubmit'))
return
}
}
if (isTrue){
if (isTrue) {
this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys)))
}
} else {
@@ -1453,6 +1453,11 @@
},
//转办接口
SelectedByForm(userIds) {
if (this.userInfo().id == userIds) {
this.$refs.SelectedByRef.submitLoading = false
this.$message.warning(this.$t('cantTransferToYourself'))
return
}
let query = {
transferUserId: userIds,
'projectLibraryId': this.$route.query.id,
@@ -2511,7 +2511,7 @@
}).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
this.selectedRowKeys = []
_this.selectedRowKeys = []
_this.getList()
} else {
_this.$message.warning(_this.$t('operationFailed'))