Browse Source

代码提交

小妖怪 6 months ago
parent
commit
ca4af445c7
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/views/packing/setupPacking/components/openLogModal.vue

+ 10 - 0
src/views/packing/setupPacking/components/openLogModal.vue

@@ -46,6 +46,7 @@ export default class openLogModal extends Vue {
   billData: any = null;
   hideBtn = false;
   data: Array<any> = [];
+    datas=[];
   page: any = {
     pageNo: 1, //当前页
     pageSize: 10, //每页条数
@@ -77,11 +78,18 @@ export default class openLogModal extends Vue {
     this.hideBtn = false;
     console.log("数据111111111========", v);
     this.value = v;
+  }
+  mounted(){
+   
+    
   }
   setValue(data: any) {
     this.$nextTick(() => {
       // const data = localStorage.getItem("logLsit");
       // console.log("数据111111111datas========", JSON.parse(data)||null);
+      const datas:string|null = localStorage.getItem("logLsit");
+    if(datas){
+      let data=JSON.parse(datas)
       this.data=data.reverse();
       this.page.total=data.length
       // let height = (document.getElementById('openLogModal') as any).parentNode.offsetHeight;
@@ -90,6 +98,8 @@ export default class openLogModal extends Vue {
         (this.$refs.table as any).setConfig(this.config);
         (this.$refs.table as any).setValue(this.data);
       }
+    }
+      
     });
   }
   handleSizeChange(v: number) {