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

不能转办给自己
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', 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', 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', 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:'只能选择流程状态为清单待提交的数据', youCanOnlySelectStatusClearSubmit:'只能选择流程状态为清单待提交的数据',
note:'注:附件包括测试项目清单、测试报告.测试标准或技术规范', note:'注:附件包括测试项目清单、测试报告.测试标准或技术规范',
format:'支持doc/docx/pdf格式,大小50M以内', format:'支持doc/docx/pdf格式,大小50M以内',
cantTransferToYourself:"不能转办给自己",
} }
@@ -1383,13 +1383,13 @@
for (let i = 0; i < this.selectedRowKeysList.length; i++) { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') { if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') {
isTrue = true isTrue = true
}else{ } else {
isTrue = false isTrue = false
this.$message.warning(this.$t('youCanOnlySelectStatusClearSubmit')) this.$message.warning(this.$t('youCanOnlySelectStatusClearSubmit'))
return return
} }
} }
if (isTrue){ if (isTrue) {
this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys))) this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys)))
} }
} else { } else {
@@ -1453,6 +1453,11 @@
}, },
//转办接口 //转办接口
SelectedByForm(userIds) { SelectedByForm(userIds) {
if (this.userInfo().id == userIds) {
this.$refs.SelectedByRef.submitLoading = false
this.$message.warning(this.$t('cantTransferToYourself'))
return
}
let query = { let query = {
transferUserId: userIds, transferUserId: userIds,
'projectLibraryId': this.$route.query.id, 'projectLibraryId': this.$route.query.id,
@@ -2511,7 +2511,7 @@
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
this.selectedRowKeys = [] _this.selectedRowKeys = []
_this.getList() _this.getList()
} else { } else {
_this.$message.warning(_this.$t('operationFailed')) _this.$message.warning(_this.$t('operationFailed'))