Commit 3645121a by 胡锦波

1. up

parent 5b90eb2d
......@@ -119,6 +119,7 @@
type: "radio",
placeholder: "",
className: "mt30 mb30",
require: true,
},
{
key: "phone",
......@@ -133,7 +134,7 @@
label: "税号",
value: "",
type: "text",
noRequire: true,
require: true,
placeholder: "请填写税号",
},
{
......@@ -276,7 +277,8 @@
}
private handlerResult() {
const msg = this.type === "add" ? "添加成功" : "修改成功";
const isEditType = this.type === DialogType.Edit;
const msg = isEditType ? "修改成功" : "添加成功";
popupService.toast.success(msg);
this.$emit("confirm", this.type);
this.close();
......@@ -301,11 +303,6 @@
}
protected onClosing() {
if (this.type === "edit") {
this.handleDefaultData();
this.$emit("updateType", "detail");
return;
}
setTimeout(() => {
this.formData.forEach((x) => {
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