From 1a61525947d43fd7c8a6df637bf5c1c8f9cc37f3 Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期四, 26 六月 2025 14:24:32 +0800 Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory --- culture/src/views/strain-library/validation/primitive-cell/DetailConditionDialog.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/culture/src/views/strain-library/validation/primitive-cell/DetailConditionDialog.vue b/culture/src/views/strain-library/validation/primitive-cell/DetailConditionDialog.vue index 644db80..ae9ffe5 100644 --- a/culture/src/views/strain-library/validation/primitive-cell/DetailConditionDialog.vue +++ b/culture/src/views/strain-library/validation/primitive-cell/DetailConditionDialog.vue @@ -18,7 +18,7 @@ <span class="label">验证实验编号:</span>{{ detail.validationExperimentCode }} </div> <div class="info-item"> - <span class="label">实验时间:</span>{{ detail.experimentTime }} + <span class="label">实验时间:</span>{{ detail.experimentTime | formatDate }} </div> <div class="info-item"></div> </el-col> @@ -73,6 +73,8 @@ <script> import DetailConditionDialog from "./DetailConditionDialog.vue"; import { detail } from "./service.js"; +import moment from "moment"; + export default { name: "DetailConditionDialog", components: { DetailConditionDialog }, @@ -127,6 +129,15 @@ dialogIndex: null, }; }, + filters: { + formatDate(date) { + if(date){ + return moment(date).format('YYYY-MM-DD') + }else{ + return '' + } + }, + }, methods: { handleOpen() { if (this.value.id) { -- Gitblit v1.7.1