Explorar o código

考试管理时间字段筛选修复

tianxinyu hai 2 meses
pai
achega
3c1b53ba61
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/platform/examination/exam/list.vue

+ 1 - 1
src/views/platform/examination/exam/list.vue

@@ -389,7 +389,7 @@ export default {
             const addDateCondition = (key, field) => {
                 const dateParam = parameters.find(i => i.key.includes(key))
                 if (dateParam) {
-                    params += ` and (${field} >= '${temp[key + '0']}' and ${field} <= '${temp[key + '1']}' or ${field} is null)`
+                    params += ` and (${field} >= '${temp[key + '0']} 00:00:00' and ${field} <= '${temp[key + '1']} 23:59:59' or ${field} is null)`
                 }
             }
             addDateCondition('createTime', 'ex.chuang_jian_shi_j')