带入相关人员后,页面自动刷新;
不能转办给自己
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user