Browse Source

时间选择器

1178232204@qq.com 3 years ago
parent
commit
d40c02175d
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/components/FieldProblem/index.js

+ 2 - 4
src/components/FieldProblem/index.js

@@ -144,10 +144,8 @@ function FieldProblem() {
         getColumnResultPage()
     }
     const onFinish = (value) => {
-        if (value.time) {
-            value.behospitalStartDate = moment(value.time[0]).format('YYYY-MM-DD 00:00:00');
-            value.behospitalEndDate = moment(value.time[1]).format('YYYY-MM-DD 23:23:59');
-        }
+        value.behospitalStartDate = moment(value.tbehospitalStartDate).format('YYYY-MM-DD 00:00:00');
+        value.behospitalEndDate = moment(value.behospitalEndDate).format('YYYY-MM-DD 23:23:59');
         delete value.time
         const param = {
             ...data,