Browse Source

Merge branch 'vue_statistics_branch'

csx 4 years ago
parent
commit
c9ca5e7c16
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/xt_pages/user/inspection.vue

+ 4 - 1
src/xt_pages/user/inspection.vue View File

543
                 console.log(this.patient_info.remind_cycle);
543
                 console.log(this.patient_info.remind_cycle);
544
 
544
 
545
                 this.itemDate = this.form.inspect_date;
545
                 this.itemDate = this.form.inspect_date;
546
+                console.log(this.itemDate);
547
+
546
                 this.items = [];
548
                 this.items = [];
547
                 for (var index in this.projects) {
549
                 for (var index in this.projects) {
548
                   if (this.projects[index].project_id == this.form.project_id) {
550
                   if (this.projects[index].project_id == this.form.project_id) {
668
           if (response.data.state == 1) {
670
           if (response.data.state == 1) {
669
             var inspections = response.data.data.inspections;
671
             var inspections = response.data.data.inspections;
670
             this.total = response.data.data.total;
672
             this.total = response.data.data.total;
671
-            this.itemDate = response.data.data.date;
673
+            this.itemDate = response.data.data.date.split(" ")[0];
674
+            console.log("1111"+this.itemDate)
672
             this.inspections = response.data.data.inspections;
675
             this.inspections = response.data.data.inspections;
673
             if (inspections == null) {
676
             if (inspections == null) {
674
               this.inspections = [];
677
               this.inspections = [];