From bad2bc143be3f8ddb93a1c9f984127b3ccf43e8f Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 31 三月 2025 17:47:14 +0800 Subject: [PATCH] 11 --- src/views/doctor/inspectCheck/index.vue | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/doctor/inspectCheck/index.vue b/src/views/doctor/inspectCheck/index.vue index 398854f..4733eb7 100644 --- a/src/views/doctor/inspectCheck/index.vue +++ b/src/views/doctor/inspectCheck/index.vue @@ -6,6 +6,7 @@ size="small" :inline="true" label-width="68px" + @submit.native.prevent > <el-form-item label="浣撴鍙�" prop="reportDoctorCode"> <el-input @@ -61,6 +62,7 @@ style="width: 100%" @selection-change="handleSelectionChange" :header-cell-style="{ background: '#aad8df' }" + height="350" > <el-table-column fixed @@ -120,6 +122,7 @@ align="center" prop="examinationDate" width="150px" + :formatter="formatDate" /> <el-table-column @@ -281,10 +284,11 @@ </div> <el-table border - max-height="280" + height="350" ref="tab1" :data="checkList" v-loading="loading" + style="width: 100%" @selection-change="handleSelectionChangeSecond" > <el-table-column type="selection" width="55"> </el-table-column> @@ -345,6 +349,7 @@ <script> import { getlisList, getJyTjList, asyncPacs } from "@/api/doctor/pacsCheck"; +import moment from "moment"; export default { dicts: ["dict_tj_status"], @@ -429,6 +434,17 @@ this.queryParams.end = null; } console.log("Query Params:", this.queryParams); + }, + formatDate(row) { + if (!row.examinationDate) return ""; + + // 浣跨敤 moment 瑙f瀽鎸囧畾鏍煎紡鐨勬棩鏈熷瓧绗︿覆 + const date = moment(row.examinationDate, "MM DD YYYY hh:mmA"); + + if (!date.isValid()) return "鏃犳晥鏃ユ湡"; + + // 鏍煎紡鍖栦负鎵�闇�鏍煎紡 + return date.format("YYYY-MM-DD HH:mm"); }, // isSelectable(row) { // return !!row.mzh; @@ -594,7 +610,7 @@ .table-title { text-align: center; - margin-bottom: 15px; + margin-bottom: 10px; } .row-disabled { color: #ccc; /* 璁剧疆绂佺敤琛岀殑瀛椾綋棰滆壊 */ -- Gitblit v1.8.0