yq1 1 year ago
parent
commit
dfad379bbd
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/xt_pages/outpatientCharges/components/prescriptionTable.vue

+ 14 - 0
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

4
       v-if="prescription.type == 1"
4
       v-if="prescription.type == 1"
5
       :data="prescription.advices"
5
       :data="prescription.advices"
6
       border
6
       border
7
+      ref="multipleTable"
7
       height="370"
8
       height="370"
8
       style="width: 99%"
9
       style="width: 99%"
9
       :row-style="changColor"
10
       :row-style="changColor"
144
       :data="prescription.project"
145
       :data="prescription.project"
145
       border
146
       border
146
       height="370"
147
       height="370"
148
+      ref="multipleTable"
147
       style="width: 99%"
149
       style="width: 99%"
148
       :row-style="changColor"
150
       :row-style="changColor"
149
       :header-cell-style="{
151
       :header-cell-style="{
334
     return {
336
     return {
335
       drugways: [],
337
       drugways: [],
336
       efs: [],
338
       efs: [],
339
+      // tableDate:prescription.project
337
     };
340
     };
338
   },
341
   },
342
+  created(){
343
+    console.log('rrrrr',this.prescription.project);
344
+  },
339
   mounted() {
345
   mounted() {
340
     // getInitData().then(response => {
346
     // getInitData().then(response => {
341
     //   if (response.data.state == 0) {
347
     //   if (response.data.state == 0) {
387
       return name;
393
       return name;
388
     },
394
     },
389
   },
395
   },
396
+  watch:{
397
+    prescription:function(){
398
+      this.$nextTick(() => {
399
+        this.$refs.multipleTable.doLayout();
400
+        // table加ref="multipleTable"
401
+      })
402
+    }
403
+  }
390
 };
404
 };
391
 </script>
405
 </script>
392
 
406