Explorar o código

去掉起保日期默认时间

@dongkboy %!s(int64=2) %!d(string=hai) anos
pai
achega
b87e7ad0c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );