Browse Source

fix(证书管理): 修复表单重置时未正确复制默认值的问题

liujt 6 months ago
parent
commit
3afa8e6dc0

+ 5 - 1
src/views/saleManage/contact/components/certificateManagement/components/add-dialog.vue

@@ -206,6 +206,9 @@
 
           // this.getOrderCode();
         }
+      },
+      holderTypeChange() {
+
       },
       async getOrderCode() {
         const data = await getCode('license_code');
@@ -226,7 +229,7 @@
 
       close() {
         this.dialogVisible = false;
-        this.form = { defaultForm };
+        this.form = { ...defaultForm };
         this.$refs.productTableRef.initData();
       },
 
@@ -246,6 +249,7 @@
             this.form.validityStartTime = this.form.date[0];
             this.form.validityEndTime = this.form.date[1];
           }
+          console.log(this.form, 'this.form~~~~~');
 
           const data = {
             ...this.form