Commit 3645121a by 胡锦波

1. up

parent 5b90eb2d
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
type: "radio", type: "radio",
placeholder: "", placeholder: "",
className: "mt30 mb30", className: "mt30 mb30",
require: true,
}, },
{ {
key: "phone", key: "phone",
...@@ -133,7 +134,7 @@ ...@@ -133,7 +134,7 @@
label: "税号", label: "税号",
value: "", value: "",
type: "text", type: "text",
noRequire: true, require: true,
placeholder: "请填写税号", placeholder: "请填写税号",
}, },
{ {
...@@ -276,7 +277,8 @@ ...@@ -276,7 +277,8 @@
} }
private handlerResult() { private handlerResult() {
const msg = this.type === "add" ? "添加成功" : "修改成功"; const isEditType = this.type === DialogType.Edit;
const msg = isEditType ? "修改成功" : "添加成功";
popupService.toast.success(msg); popupService.toast.success(msg);
this.$emit("confirm", this.type); this.$emit("confirm", this.type);
this.close(); this.close();
...@@ -301,11 +303,6 @@ ...@@ -301,11 +303,6 @@
} }
protected onClosing() { protected onClosing() {
if (this.type === "edit") {
this.handleDefaultData();
this.$emit("updateType", "detail");
return;
}
setTimeout(() => { setTimeout(() => {
this.formData.forEach((x) => { this.formData.forEach((x) => {
if (x.key === "default") { if (x.key === "default") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment