|
@@ -77,7 +77,7 @@ export default {
|
|
|
|| this.memberId === '' || this.memberId == undefined || this.memberId == null || this.memberId.length <= 0
|
|
|
|| this.signleProduct === '' || this.signleProduct == undefined || this.signleProduct == null || this.signleProduct.length <= 0
|
|
|
) {
|
|
|
- this.$message.error('Missing required information')
|
|
|
+ this.$message.error({message: 'Missing required information', duration: 5000})
|
|
|
return
|
|
|
}
|
|
|
if (this.singleLoading) return
|
|
@@ -95,15 +95,18 @@ export default {
|
|
|
}, 1000)
|
|
|
if (res.data.code === 200 && res.data.msg == ' Assign Success!') {
|
|
|
this.$message({
|
|
|
+ duration: 5000,
|
|
|
message: 'Assign Success!',
|
|
|
type: 'success'
|
|
|
})
|
|
|
} else if(res.data.code === 700 && res.data.msg == 'Please add the user to a team which has remaining license first'){
|
|
|
this.$message.error({
|
|
|
+ duration: 5000,
|
|
|
message: 'Please add the user to a team which has remaining license first',
|
|
|
})
|
|
|
} else if(res.data.code === 700 && res.data.msg == 'Please allocate more license to the team first'){
|
|
|
this.$message.error({
|
|
|
+ duration: 5000,
|
|
|
message: 'Please allocate more license to the team first',
|
|
|
})
|
|
|
}
|
|
@@ -113,7 +116,7 @@ export default {
|
|
|
if (this.teamAssign === ''
|
|
|
|| this.teamProduct === '' || this.teamProduct == undefined || this.teamProduct == null || this.teamProduct.length <= 0
|
|
|
) {
|
|
|
- this.$message.error('Missing required information')
|
|
|
+ this.$message.error({duration: 5000,message: 'Missing required information'})
|
|
|
return
|
|
|
}
|
|
|
if (this.teamLoading) return
|
|
@@ -130,15 +133,18 @@ export default {
|
|
|
}, 1000)
|
|
|
if (res.data.code === 200 && res.data.msg == ' Assign Success!') {
|
|
|
this.$message({
|
|
|
+ duration: 5000,
|
|
|
message: 'Assign Success!',
|
|
|
type: 'success'
|
|
|
})
|
|
|
} else if(res.data.code === 700 && res.data.msg == 'Please add the user to a team which has remaining license first'){
|
|
|
this.$message.error({
|
|
|
+ duration: 5000,
|
|
|
message: 'Please add the user to a team which has remaining license first',
|
|
|
})
|
|
|
} else if(res.data.code === 700 && res.data.msg == 'Please allocate more license to the team first'){
|
|
|
this.$message.error({
|
|
|
+ duration: 5000,
|
|
|
message: 'Please allocate more license to the team first',
|
|
|
})
|
|
|
}
|