Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 1 year ago
parent
commit
53f78f5672
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,6 +4,7 @@
4 4
       v-if="prescription.type == 1"
5 5
       :data="prescription.advices"
6 6
       border
7
+      ref="multipleTable"
7 8
       height="370"
8 9
       style="width: 99%"
9 10
       :row-style="changColor"
@@ -144,6 +145,7 @@
144 145
       :data="prescription.project"
145 146
       border
146 147
       height="370"
148
+      ref="multipleTable"
147 149
       style="width: 99%"
148 150
       :row-style="changColor"
149 151
       :header-cell-style="{
@@ -334,8 +336,12 @@ export default {
334 336
     return {
335 337
       drugways: [],
336 338
       efs: [],
339
+      // tableDate:prescription.project
337 340
     };
338 341
   },
342
+  created(){
343
+    console.log('rrrrr',this.prescription.project);
344
+  },
339 345
   mounted() {
340 346
     // getInitData().then(response => {
341 347
     //   if (response.data.state == 0) {
@@ -387,6 +393,14 @@ export default {
387 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 405
 </script>
392 406