From 42feb0af0ae1d486d0474c76711fdb67c778bcf3 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期六, 28 六月 2025 10:04:30 +0800
Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory

---
 culture/src/views/pedigree-chart/components/ParentForm.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/culture/src/views/pedigree-chart/components/ParentForm.vue b/culture/src/views/pedigree-chart/components/ParentForm.vue
index 55d3ed6..60c549c 100644
--- a/culture/src/views/pedigree-chart/components/ParentForm.vue
+++ b/culture/src/views/pedigree-chart/components/ParentForm.vue
@@ -47,14 +47,14 @@
         </el-col>
         <el-col v-if="planForm.vaccinateSignature && planForm.formStatus == 'detail'" :span="10">
             <el-form-item label="接种操作人签字">
-              <el-image :src="planForm.vaccinateSignature" />
+              <el-image :src="getFullUrl(planForm.vaccinateSignature)" :preview-src-list="[getFullUrl(planForm.vaccinateSignature)]" />
             </el-form-item>
           </el-col>
           <el-col v-if="planForm.preserveSignature && planForm.formStatus == 'detail'" :span="10">
             <el-form-item label="菌种保藏人签字">
-              <el-image :src="planForm.preserveSignature" />
+              <el-image :src="getFullUrl(planForm.preserveSignature)" :preview-src-list="[getFullUrl(planForm.preserveSignature)]" />
             </el-form-item>
-          </el-col>
+          </el-col> 
       </el-row>
     </el-form>
     <div v-if="planForm.formStatus == 'add'" class="dialog-footer">
@@ -63,6 +63,7 @@
   </el-dialog>
 </template>
 <script>
+import {getFullUrl} from '@/utils/utils'
 export default {
   data() {
     return {
@@ -91,7 +92,13 @@
     };
   },
   methods: {
+    getFullUrl(url) {
+      if (url) {
+        return getFullUrl(url);
+      }
+    },
     openInitData(value) {
+      
       this.planForm = {
         ...this.planForm,
         ...value,
@@ -117,7 +124,6 @@
     handleSubmit() {
       this.$refs.planForm.validate((valid) => {
         if (valid) {
-          console.log(this.planForm, "22");
 
           this.$emit("addNodeSign", this.planForm, 1);
         }

--
Gitblit v1.7.1