浏览代码

添加doLayout页面对其功能

jianglw 4 年之前
父节点
当前提交
30a3f4a03c

+ 3 - 1
src/dashoo.cn/frontend_animal/src/pages/samples/archived/index.vue

@@ -565,7 +565,6 @@ export default {
         .then(res => {
         .then(res => {
           this.EquipmentList = res.data
           this.EquipmentList = res.data
         })
         })
-      /*this.$refs.multipleTable.doLayout()*/
       // 获取样本扩展列表
       // 获取样本扩展列表
       service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
       service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
         .then(res => {
         .then(res => {
@@ -576,6 +575,9 @@ export default {
         .then(res => {
         .then(res => {
           this.SampleTypeList = res.data
           this.SampleTypeList = res.data
         })
         })
+      this.$nextTick(() => {
+        this.$refs.multipleTable.doLayout()
+      })
     },
     },
     GetEquipmentInfos () {
     GetEquipmentInfos () {
       if (this.DItem != ''){
       if (this.DItem != ''){

+ 3 - 1
src/dashoo.cn/frontend_animal/src/pages/samples/prerecorded/index.vue

@@ -591,7 +591,6 @@
           .then(res => {
           .then(res => {
             this.EquipmentList = res.data
             this.EquipmentList = res.data
           })
           })
-        this.$refs.multipleTable.doLayout()
         // 获取样本扩展列表
         // 获取样本扩展列表
         service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
         service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
           .then(res => {
           .then(res => {
@@ -602,6 +601,9 @@
           .then(res => {
           .then(res => {
             this.SampleTypeList = res.data
             this.SampleTypeList = res.data
           })
           })
+        this.$nextTick(() => {
+          this.$refs.multipleTable.doLayout()
+        })
       },
       },
       /* GetEquipmentInfos () {
       /* GetEquipmentInfos () {
         if (this.DItem != '') {
         if (this.DItem != '') {

+ 4 - 2
src/dashoo.cn/frontend_animal/src/pages/samples/stored/index.vue

@@ -32,7 +32,7 @@
           </el-form-item>
           </el-form-item>
         </el-form>
         </el-form>
           <el-dropdown split-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
           <el-dropdown split-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;"
-            @command="handleExportsamplesCommand">
+                       @command="handleExportsamplesCommand">
             导出
             导出
             <el-dropdown-menu slot="dropdown">
             <el-dropdown-menu slot="dropdown">
               <el-dropdown-item style="color:black;" command="exportchosen">导出所选样本</el-dropdown-item>
               <el-dropdown-item style="color:black;" command="exportchosen">导出所选样本</el-dropdown-item>
@@ -653,7 +653,6 @@
           .then(res => {
           .then(res => {
             this.EquipmentList = res.data
             this.EquipmentList = res.data
           })
           })
-        this.$refs.multipleTable.doLayout()
         // 获取样本扩展列表
         // 获取样本扩展列表
         service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
         service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
           .then(res => {
           .then(res => {
@@ -664,6 +663,9 @@
           .then(res => {
           .then(res => {
             this.SampleTypeList = res.data
             this.SampleTypeList = res.data
           })
           })
+        this.$nextTick(() => {
+          this.$refs.multipleTable.doLayout()
+        });
       },
       },
       GetEquipmentInfos () {
       GetEquipmentInfos () {
         if (this.DItem != '') {
         if (this.DItem != '') {

+ 3 - 1
src/dashoo.cn/frontend_animal/src/pages/samples/waitingstore/index.vue

@@ -554,7 +554,6 @@
           .then(res => {
           .then(res => {
             this.EquipmentList = res.data
             this.EquipmentList = res.data
           })
           })
-        this.$refs.multipleTable.doLayout()
         // 获取样本扩展列表
         // 获取样本扩展列表
         service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
         service.postRequest('dashoo.biobank.bee-0.1', 'SampleRelated', 'CustomizeSearch', {type: 'Sample'})
           .then(res => {
           .then(res => {
@@ -565,6 +564,9 @@
           .then(res => {
           .then(res => {
             this.SampleTypeList = res.data
             this.SampleTypeList = res.data
           })
           })
+        this.$nextTick(() => {
+          this.$refs.multipleTable.doLayout()
+        })
       },
       },
       GetEquipmentInfos () {
       GetEquipmentInfos () {
         if (this.DItem != ''){
         if (this.DItem != ''){