Просмотр исходного кода

fix:修改以往体系运行记录上传日期显示

liujiayin 2 лет назад
Родитель
Сommit
5c88a1a5d6
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/views/platform/bpmn/bpmInstHis/oldFilesUploadList.vue

+ 3 - 3
src/views/platform/bpmn/bpmInstHis/oldFilesUploadList.vue

@@ -151,11 +151,11 @@ export default {
         },
         // 表格字段配置
         columns: [
+          { prop: 'nian_du_', label: '年度', width: 80,dateFormat: 'yyyy' },
           { prop: 'fen_lei_', label: '记录表单分类', width: 120 },
           { prop: 'biao_dan_ming_che', label: '表单名称', width: 350 },
           { prop: 'shi_wu_shuo_ming_', label: '事务说明', width: 350 },
 
-          { prop: 'nian_du_', label: '年度', width: 80 },
           { prop: 'bian_zhi_shi_jian', label: '上传时间', width: 100 },
           //   { prop: 'bm_name', label: '上传部门', width: 120 },
           { prop: 'ry_name', label: '上传人', width: 100 },
@@ -212,7 +212,7 @@ export default {
       if (this.depth == '0') {
 
         let nianduWhere = this.niandu ? (
-          startTimeWhere ? ` where  nian_du_ = '${this.niandu}' and` + startTimeWhere : ` where  nian_du_ = '${this.niandu}'`
+          startTimeWhere ? ` where  nian_du_ like '%${this.niandu}%' and` + startTimeWhere : ` where  nian_du_ like '%${this.niandu}%'`
         ) : (
           startTimeWhere ? ' where ' + startTimeWhere : ''
         )
@@ -262,7 +262,7 @@ export default {
         }
 
         let nianduWhere = this.niandu ? (
-          startTimeWhere ? ` where  nian_du_ = '${this.niandu}' and` + startTimeWhere : ` where  nian_du_ = '${this.niandu}'`
+          startTimeWhere ? ` where  nian_du_ like '%${this.niandu}%' and` + startTimeWhere : ` where  nian_du_ like '%${this.niandu}%'`
         ) : (
           startTimeWhere ? ' where ' + startTimeWhere : ''
         )