Ver código fonte

图片上传

zhulizhen 5 anos atrás
pai
commit
0f8896e915

+ 4 - 1
src/components/uploadImg.vue

@@ -48,7 +48,9 @@ export default {
   },
   components: { zoomImage },
   props: ["souseArr"],
-  mounted() {},
+  mounted() {
+    console.log(this.souseArr)
+  },
   methods: {
     distinctFile(a) {
       return Array.from(new Set(a));
@@ -80,6 +82,7 @@ export default {
                 if (xhr.status == 200) {
                   let src = that.getPreviewSrc(event.raw);
                   // that.tempArr.push(that.fileName);
+                  console.log(that.fileName)
                   that.souseArr.push(that.fileName);
                   that.$emit("setPic", that.souseArr);
                   that.Uploading = false;

+ 0 - 1
src/store/index.js

@@ -36,7 +36,6 @@ const store = new Vuex.Store({
   },
   mutations: {
     setProjects(state, projects) {
-      console.log(projects)
       state.projects = projects
     },
     setProId(state, projectId) {

+ 2 - 2
src/views/audit/index.vue

@@ -74,7 +74,7 @@
               </span>
             </div>
             <div>
-              <upload-img :souseArr="auditObj.pics"></upload-img>
+              <upload-img :souseArr="auditObj.pics || []"></upload-img>
             </div>
           </div>
           <div class="opinion">
@@ -203,7 +203,7 @@ export default {
       let params = {
         postParams: {
           criteria: {
-            projectId: this.$store.stae.projectId,
+            projectId: this.$store.state.projectId,
             trackerId: 3,
             status: 302
           },

+ 2 - 2
src/views/evaluate/evSnapshotsDialog.vue

@@ -105,7 +105,7 @@
         <span>实际冷量</span>
         <span>{{chillerCommand.nowPlantLoad || 0}} KW</span>
         <span>未来1小时预测冷量</span>
-        <span>{{chillerCommand.predictedLoad1h || 0}}</span>
+        <span>{{chillerCommand.predictedLoad1h || 0}} KW</span>
       </div>
     </div>
     <div class="snapshotss-foot">
@@ -605,7 +605,7 @@ export default {
       padding-left: 24px;
     }
     .snapshotss-cont2-box1 {
-      padding-right: 140px;
+      padding-right: 120px;
       span:nth-of-type(1) {
         height: 22px;
         font-size: 14px;