Browse Source

dialog close clear selection

haojianlong 5 years ago
parent
commit
4d0cf13130

+ 1 - 0
src/components/dialogs/list/firm.vue

@@ -106,6 +106,7 @@ export default {
       if (!!this.radio) {
         this.$emit("changeFirm", this.radio)
         this.dialog.firm = false
+        this.radio = ''
       } else {
         this.$message("请选择型号")
       }

+ 1 - 0
src/components/dialogs/list/insurerDialog.vue

@@ -146,6 +146,7 @@ export default {
       if (!!this.radio) {
         this.$emit("changeInsurer", this.radio)
         this.dialog.insurer = false
+        this.radio = ''
       } else {
         this.$message("请选择一个生产厂商")
       }

+ 1 - 1
src/components/dialogs/list/maintainerDialog.vue

@@ -143,9 +143,9 @@ export default {
     //发生修改
     getChange() {
       if (!!this.radio) {
-        console.log(this.radio, "radio")
         this.$emit("changeMaintainer", this.radio)
         this.dialog.maintainer = false
+        this.radio = ''
       } else {
         this.$message("请选择一个生产厂商")
       }

+ 1 - 0
src/components/dialogs/list/supplierDialog.vue

@@ -145,6 +145,7 @@ export default {
       if (!!this.radio) {
         this.$emit("changeSupplier", this.radio)
         this.dialog.supplier = false
+        this.radio = ''
       } else {
         this.$message("请选择一个生产厂商")
       }