diff --git a/src/views/modules/inspection/inspectionRequestList.vue b/src/views/modules/inspection/inspectionRequestList.vue
index c1072a4..8bbc521 100644
--- a/src/views/modules/inspection/inspectionRequestList.vue
+++ b/src/views/modules/inspection/inspectionRequestList.vue
@@ -245,13 +245,25 @@
height="400px"
style="width: 100%; margin-top: 10px;"
@selection-change="handleSelectionChange">
-
+
+
+
+
+
+
+
@@ -280,18 +292,6 @@
/>
-
-
-
-
-
-
diff --git a/src/views/modules/inspection/myInspectionList.vue b/src/views/modules/inspection/myInspectionList.vue
index d8e4aeb..ce94a07 100644
--- a/src/views/modules/inspection/myInspectionList.vue
+++ b/src/views/modules/inspection/myInspectionList.vue
@@ -1,7 +1,11 @@
+
+ 刷新
+
{
+
+ this.height = window.innerHeight - 170
+
+ })
+
this.getList()
},
beforeDestroy () {
- window.removeEventListener('resize', this.calcHeight)
+
},
methods: {
- // 计算表格高度
- calcHeight () {
- this.$nextTick(() => {
- this.height = window.innerHeight - 120
- })
+ handleRefresh () {
+ this.getList()
},
// 获取列表数据
@@ -102,6 +107,11 @@ export default {
this.$message.error((data && data.msg) || '获取列表失败')
}
this.loading = false
+ this.$nextTick(() => {
+ if (this.$refs.mainTable) {
+ this.$refs.mainTable.doLayout()
+ }
+ })
}).catch(() => {
this.loading = false
})
@@ -213,17 +223,9 @@ export default {