From 10ffa741546c5d36b14932e4a6c17faa81e479bd Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期五, 16 五月 2025 14:41:07 +0800 Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory --- culture/src/views/strain-library/breeding-record/add.vue | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 51 insertions(+), 5 deletions(-) diff --git a/culture/src/views/strain-library/breeding-record/add.vue b/culture/src/views/strain-library/breeding-record/add.vue index 977cc70..4fc6c3f 100644 --- a/culture/src/views/strain-library/breeding-record/add.vue +++ b/culture/src/views/strain-library/breeding-record/add.vue @@ -88,7 +88,7 @@ <div>一、培养基分离记录</div> </div> <div class="header-title-right"> - <el-button @click="showChoose = true" class="el-icon-circle-plus-outline" type="primary"> + <el-button @click="showSeparationDialog = true" class="el-icon-circle-plus-outline" type="primary"> 新增培养皿分离记录</el-button> </div> </div> @@ -112,7 +112,7 @@ <div>二、培养皿生物学形态观察记录</div> </div> <div class="header-title-right"> - <el-button @click="showChoose = true" class="el-icon-circle-plus-outline" type="primary"> + <el-button @click="showObservationDialog = true" class="el-icon-circle-plus-outline" type="primary"> 新增观察记录</el-button> </div> </div> @@ -134,7 +134,7 @@ <div>三、接种斜面记录</div> </div> <div class="header-title-right"> - <el-button @click="showChoose = true" class="el-icon-circle-plus-outline" type="primary"> + <el-button @click="showInoculationDialog = true" class="el-icon-circle-plus-outline" type="primary"> 新增斜面记录</el-button> </div> </div> @@ -163,7 +163,7 @@ <div>四、菌种保藏记录</div> </div> <div class="header-title-right"> - <el-button @click="showChoose = true" class="el-icon-circle-plus-outline" type="primary"> + <el-button @click="showPreserveDialog = true" class="el-icon-circle-plus-outline" type="primary"> 新增菌种保藏记录</el-button> </div> </div> @@ -182,6 +182,23 @@ </el-table-column> </template> </Table> + <!-- 弹窗组件 --> + <SeparationRecordDialog + :visible.sync="showSeparationDialog" + @confirm="handleSeparationConfirm" + /> + <SlantRecordDialog + :visible.sync="showObservationDialog" + @ok="handleObservationConfirm" + /> + <InoculationSlopeRecordDialog + :visible.sync="showInoculationDialog" + @save="handleInoculationConfirm" + /> + <PreserveStrainRecordDialog + :visible.sync="showPreserveDialog" + @save="handlePreserveConfirm" + /> <div class="end-btn"> <el-button type="primary">发送</el-button> <el-button type="default">存草稿</el-button> @@ -192,8 +209,19 @@ </template> <script> import AiEditor from "@/components/AiEditor"; +import SeparationRecordDialog from "./separation-record-dialog.vue"; +import SlantRecordDialog from "./SlantRecordDialog.vue"; +import InoculationSlopeRecordDialog from "./inoculation-slope-record-dialog.vue"; +import PreserveStrainRecordDialog from "./preserve-strain-record-dialog.vue"; + export default { - components: { AiEditor }, + components: { + AiEditor, + SeparationRecordDialog, + SlantRecordDialog, + InoculationSlopeRecordDialog, + PreserveStrainRecordDialog, + }, name: "AddBreedingRecord", data() { return { @@ -229,8 +257,26 @@ status: "1", remark: "", queryForm: {}, + showSeparationDialog: false, + showObservationDialog: false, + showInoculationDialog: false, + showPreserveDialog: false, }; }, + methods: { + handleSeparationConfirm(data) { + console.log("培养皿分离记录确认", data); + }, + handleObservationConfirm(data) { + console.log("培养皿观察记录确认", data); + }, + handleInoculationConfirm(data) { + console.log("接种斜面记录确认", data); + }, + handlePreserveConfirm(data) { + console.log("菌种保藏记录确认", data); + }, + }, }; </script> -- Gitblit v1.7.1