Prechádzať zdrojové kódy

[dev]
1、优化溯源记录中的对象的数据来源
2、优化溯源记录中

Neo 2 rokov pred
rodič
commit
b787685c95

+ 5 - 5
src/views/pharmacyManagement/business/deploy/index.vue

@@ -339,10 +339,10 @@
             <div class="title body">照片:</div>
           </div>
           <div class="deploy">
-            <div class="body" v-if="depolyStatusObj&&depolyStatusObj.prescriptionFiles&&depolyStatusObj.prescriptionFiles.length>0&&depolyStatusObj.prescriptionFiles[0].length>4">
+            <div class="body" v-if="depolyStatusObj&&depolyStatusObj.prescriptionFiles&&depolyStatusObj.prescriptionFiles.length>0&&depolyStatusObj.prescriptionFiles[0].url.length>4">
               <el-image v-for="img in depolyStatusObj.prescriptionFiles"
               style="width: 100px; height: 100px"
-              :src="img.length>4?img:''"
+              :src="img.url.length>4?process.env.VUE_APP_BASE_API+img.url:''"
               fit="fill"></el-image>
             </div>
           </div>
@@ -538,7 +538,7 @@ export default {
         createTime:'',
         operate:'',
         createBy:'',
-        prescriptionFiles:[''],
+        prescriptionFiles:[],
         remarks:''
       },
       effectStatus:'plain',
@@ -780,9 +780,9 @@ export default {
     handleDeploy(item) {
       console.log('item.name',item.name)
       this.currentDepoly = item.key
-      this.depolyStatusObj = this.detailData[this.currentDepoly] ||this.depolyStatusObj
+      this.depolyStatusObj = this.detailData[this.currentDepoly][0] ||{}
       // test code
-      this.depolyStatusObj.remarks = this.depolyStatusObj.remarks + this.currentDepoly
+      // this.depolyStatusObj.remarks = this.depolyStatusObj?.remarks? + this.currentDepoly
     }
   },
 };