班组配置请求问题

This commit is contained in:
zzyuan 2024-04-18 09:52:19 +08:00
parent a5f1a283c3
commit bb8c35bbb2
1 changed files with 19 additions and 14 deletions

View File

@ -222,13 +222,16 @@ export default {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
addTeamItem(this.temp).then((response) => {
this.$message({
showClose: true,
message: response.msg,
type: 'success',
duration: 2000
})
this.getList()
if(response.code==200){
this.$message({
showClose: true,
message: response.msg,
type: 'success',
duration: 2000
})
this.getList()
}
}).finally(() => {
this.dialogFormVisible = false
})
@ -247,13 +250,15 @@ export default {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
updateTeamItem(this.temp).then((response) => {
this.$message({
showClose: true,
message: response.msg,
type: 'success',
duration: 2000
})
this.getList()
if(response.code==200){
this.$message({
showClose: true,
message: response.msg,
type: 'success',
duration: 2000
})
this.getList()
}
}).finally(() => {
this.dialogFormVisible = false
})