Преглед изворни кода

去掉起保日期默认时间

@dongkboy пре 2 година
родитељ
комит
b87e7ad0c1
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );