zhangyuewww 3 лет назад
Родитель
Сommit
2bfaf6931a
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      src/views/warehouse/warehouseManagementRecord.vue

+ 6 - 1
src/views/warehouse/warehouseManagementRecord.vue

@@ -46,7 +46,7 @@
 				<el-date-picker  style="margin: 0 10px 0 0" class="dataClass" value-format='yyyy-MM-dd' v-model="value2" @change='datechange' type="daterange" align="right" unlink-panels range-separator="至"
 					start-placeholder="出入库日期起" end-placeholder="出入库日期止" >
 				</el-date-picker>
-				<el-table show-summary :summary-method="getSummaries"   :data="warehouseList.records" height="560" v-show="this.warehouseType== '1'">
+				<el-table show-summary :summary-method="getSummaries" ref="tableData" :data="warehouseList.records" height="560" v-show="this.warehouseType== '1'">
 					<el-table-column type="expand">
 						<template #default="props">
 							<ws-form ref="deptBudgetList" :model="deptBudgetList">
@@ -367,6 +367,11 @@
             this.getPassYearFormatDate()
 			this.showType = this.isShow
 		},
+		updated() {
+			this.$nextTick(() => {
+			this.$refs['tableData'].doLayout();
+			})
+		},
 		methods: {
 			//合计
 			getSummaries(param) {