Browse Source

去掉起保日期默认时间

@dongkboy 2 năm trước cách đây
mục cha
commit
b87e7ad0c1
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      src/components/Form/retrievalForm.vue

+ 1 - 1
src/components/Form/retrievalForm.vue

@@ -82,7 +82,7 @@ export default {
   },
   created() {
     this.fields.forEach((field) => {
-      if (field.type === 'date' && !this.formData[field.list]) {
+      if (field.label === '报价时间' && !this.formData[field.list]) {
         this.$set(this.formData, field.list, [this.currentDate, this.currentDate]);
         this.$set(this.formData, field.name[0], this.currentDate);
         this.$set(this.formData, field.name[1],this.currentDate );