临时提交

This commit is contained in:
648540858
2024-08-26 17:59:29 +08:00
parent c45bf5d6af
commit b2b7426871
16 changed files with 378 additions and 98 deletions

View File

@@ -245,15 +245,24 @@ export default {
data: this.form
}).then((res) => {
if (res.data.code === 0) {
this.$message.success("保存成功");
this.$message.success({
showClose: true,
message: "保存成功"
});
if (this.saveSuccess) {
this.saveSuccess()
}
}else {
this.$message.error(res.data.msg);
this.$message.error({
showClose: true,
message: res.data.msg
})
}
}).catch((error) => {
this.$message.error(error);
this.$message.error({
showClose: true,
message: error
});
}).finally(()=>[
this.locading = false
])
@@ -264,16 +273,25 @@ export default {
data: this.form
}).then((res) => {
if (res.data.code === 0) {
this.$message.success("保存成功");
this.$message.success({
showClose: true,
message: "保存成功"
});
this.form = res.data.data
if (this.saveSuccess) {
this.saveSuccess()
}
}else {
this.$message.error(res.data.msg);
this.$message.error({
showClose: true,
message: res.data.msg
})
}
}).catch((error) => {
this.$message.error(error);
this.$message.error({
showClose: true,
message: error
});
}).finally(()=>[
this.locading = false
])
@@ -296,7 +314,10 @@ export default {
}
}).then((res) => {
if (res.data.code === 0) {
this.$message.success("重置成功 已保存");
this.$message.success({
showClose: true,
message: "重置成功 已保存"
});
this.getCommonChannel()
}
}).catch((error) => {

View File

@@ -260,18 +260,27 @@ export default {
}
}).then((res)=> {
if (res.data.code === 0) {
this.$message.success("保存成功")
this.$message.success({
showClose: true,
message: "保存成功"
})
if (this.onChannelChange) {
this.onChannelChange()
}
node.loaded = false
node.expand();
}else {
this.$message.error(res.data.msg)
this.$message.error({
showClose: true,
message: res.data.msg
})
}
this.loading = false
}).catch((error)=> {
this.$message.error(error)
this.$message.error({
showClose: true,
message: error
})
this.loading = false
});
})
@@ -290,18 +299,27 @@ export default {
}
}).then((res)=> {
if (res.data.code === 0) {
this.$message.success("保存成功")
this.$message.success({
showClose: true,
message: "保存成功"
})
if (this.onChannelChange) {
this.onChannelChange()
}
node.loaded = false
node.expand();
}else {
this.$message.error(res.data.msg)
this.$message.error({
showClose: true,
message: res.data.msg
})
}
this.loading = false
}).catch((error)=> {
this.$message.error(error)
this.$message.error({
showClose: true,
message: error
})
this.loading = false
});
})

View File

@@ -258,18 +258,27 @@ export default {
}
}).then((res)=> {
if (res.data.code === 0) {
this.$message.success("保存成功")
this.$message.success({
showClose: true,
message: "保存成功"
})
if (this.onChannelChange) {
this.onChannelChange()
}
node.loaded = false
node.expand();
}else {
this.$message.error(res.data.msg)
this.$message.error({
showClose: true,
message: res.data.msg
})
}
this.loading = false
}).catch((error)=> {
this.$message.error(error)
this.$message.error({
showClose: true,
message: error
})
this.loading = false
});
})
@@ -288,18 +297,27 @@ export default {
}
}).then((res)=> {
if (res.data.code === 0) {
this.$message.success("保存成功")
this.$message.success({
showClose: true,
message: "保存成功"
})
if (this.onChannelChange) {
this.onChannelChange()
}
node.loaded = false
node.expand();
}else {
this.$message.error(res.data.msg)
this.$message.error({
showClose: true,
message: res.data.msg
})
}
this.loading = false
}).catch((error)=> {
this.$message.error(error)
this.$message.error({
showClose: true,
message: error
})
this.loading = false
});
})