浏览代码

Merge branch 'dev' into test

1178232204@qq.com 3 年之前
父节点
当前提交
31434ce3e8
共有 1 个文件被更改,包括 2 次插入4 次删除
  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,