瀏覽代碼

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

tianxinyu 6 月之前
父節點
當前提交
f4798e0b62
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      src/views/platform/examination/exam/list.vue

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

@@ -386,7 +386,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')