|
@@ -11,6 +11,7 @@
|
|
|
:show-close="false"
|
|
:show-close="false"
|
|
|
:visible.sync="dialogFormVisible"
|
|
:visible.sync="dialogFormVisible"
|
|
|
size="600px"
|
|
size="600px"
|
|
|
|
|
+ @close="onCancel"
|
|
|
>
|
|
>
|
|
|
<div slot="title" style="font-size: 15px">
|
|
<div slot="title" style="font-size: 15px">
|
|
|
<span style="margin-right: 16px"
|
|
<span style="margin-right: 16px"
|
|
@@ -123,7 +124,7 @@
|
|
|
<div class="fixed__btn__panel">
|
|
<div class="fixed__btn__panel">
|
|
|
<el-button
|
|
<el-button
|
|
|
size="small"
|
|
size="small"
|
|
|
- @click="dialogFormVisible = false"
|
|
|
|
|
|
|
+ @click="onCancel"
|
|
|
class="normal-btn-width"
|
|
class="normal-btn-width"
|
|
|
>{{ $t("取 消") }}</el-button
|
|
>{{ $t("取 消") }}</el-button
|
|
|
>
|
|
>
|
|
@@ -201,9 +202,14 @@ export default {
|
|
|
});
|
|
});
|
|
|
this.tool.showMessage(res, () => {
|
|
this.tool.showMessage(res, () => {
|
|
|
this.$emit("onSuccess");
|
|
this.$emit("onSuccess");
|
|
|
|
|
+ this.$refs["form"].resetFields();
|
|
|
this.dialogFormVisible = false;
|
|
this.dialogFormVisible = false;
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ onCancel() {
|
|
|
|
|
+ this.dialogFormVisible = false;
|
|
|
|
|
+ this.$refs["form"].resetFields();
|
|
|
},
|
|
},
|
|
|
modelChange(data) {
|
|
modelChange(data) {
|
|
|
this.form.type = this.serveModelList.find(
|
|
this.form.type = this.serveModelList.find(
|