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/pedigree-chart/components/AddSublevelForm.vue | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/culture/src/views/pedigree-chart/components/AddSublevelForm.vue b/culture/src/views/pedigree-chart/components/AddSublevelForm.vue index 30597c8..2513aea 100644 --- a/culture/src/views/pedigree-chart/components/AddSublevelForm.vue +++ b/culture/src/views/pedigree-chart/components/AddSublevelForm.vue @@ -95,6 +95,7 @@ </template> <script> +import moment from 'moment'; export default { data() { return { @@ -160,25 +161,27 @@ thisTime: value.form.vaccinateTime ? value.form.vaccinateTime : formatTime, + confirmTime: value.confirmTime ? moment(value.confirmTime).format('YYYY-MM-DD HH:mm:ss') : moment().format('YYYY-MM-DD HH:mm:ss') }; this.dialogVisible = true; }, + close(){ + this.dialogVisible = false; + }, closeDialog() { - console.log(41515151541561541564156); - this.dialogVisible = false; // 重置表单数据 - this.form = { - thisName: "", - thisTime: "", - strainCode: "", - strainName: "", - strainCode1: "", - strainName1: "", - status: 1, - confirmTime: "", - discardReason: "", - }; + // this.form = { + // thisName: "", + // thisTime: "", + // strainCode: "", + // strainName: "", + // strainCode1: "", + // strainName1: "", + // status: 1, + // confirmTime: "", + // discardReason: "", + // }; // 重置表单验证 this.$refs.form && this.$refs.form.resetFields(); }, -- Gitblit v1.7.1