diff --git a/src/App.vue b/src/App.vue index 6b7b710..6a9f5ad 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,9 +30,6 @@ export default { background-color: #2671E2 !important; border-color: #2671E2 !important; } -.el-scrollbar__wrap{ - height: 100vh ; -} .el-table__row{ font-size: 14px!important; } diff --git a/src/const/crud/admin/log.js b/src/const/crud/admin/log.js index f3b9f3e..ad5abae 100644 --- a/src/const/crud/admin/log.js +++ b/src/const/crud/admin/log.js @@ -1,6 +1,7 @@ export const tableOption = { border: true, index: true, + height: 527, indexLabel: "序号", stripe: true, menuAlign: "center", @@ -81,6 +82,7 @@ export const tableOption1 = { index: true, indexLabel: "序号", stripe: true, + height: 527, menuAlign: "center", menuWidth: 150, menu:false, diff --git a/src/router/axios.js b/src/router/axios.js index d8ecc09..47ff382 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -63,12 +63,11 @@ axios.interceptors.response.use(res => { NProgress.done() const status = Number(res.status) || 200 const message = res.data.msg || errorCode[status] || errorCode['default'] - - if (status === 401) { + if (status === 401 || status === 500) { idx++ if(idx==1){ Message({ - message: message, + message: '当前登录状态异常,请重新登录~', type: 'error' }) } diff --git a/src/views/Customer/AgentManagement.vue b/src/views/Customer/AgentManagement.vue index 3889a7c..566eb7b 100644 --- a/src/views/Customer/AgentManagement.vue +++ b/src/views/Customer/AgentManagement.vue @@ -56,7 +56,7 @@
- + { this.tableData = res.data.records; this.total = res.data.total; + + // 表格中设置ref属性,在数据渲染之后或者updated()之后 + this.$nextTick(() => { + this.$refs.table.doLayout(); + }); }); }, handleSizeChange(val) { diff --git a/src/views/Customer/CompanyRecord.vue b/src/views/Customer/CompanyRecord.vue index 699b5c6..04a8dec 100644 --- a/src/views/Customer/CompanyRecord.vue +++ b/src/views/Customer/CompanyRecord.vue @@ -67,7 +67,7 @@
- + @@ -180,7 +180,7 @@ --> - +
- + { + this.$refs.table.doLayout(); + }); }); }, locationsChange1(e) { diff --git a/src/views/Customer/SalesStage.vue b/src/views/Customer/SalesStage.vue index 1938025..5b75f28 100644 --- a/src/views/Customer/SalesStage.vue +++ b/src/views/Customer/SalesStage.vue @@ -38,7 +38,7 @@
- + @@ -162,6 +162,10 @@ computed: { }; this.$api.api.lifeTrackDefineList(obj).then((res) => { this.tableData = res.data; + // 表格中设置ref属性,在数据渲染之后或者updated()之后 + this.$nextTick(() => { + this.$refs.table.doLayout(); + }); }); }, //删除 diff --git a/src/views/Customer/index.vue b/src/views/Customer/index.vue index fd87352..cb97647 100644 --- a/src/views/Customer/index.vue +++ b/src/views/Customer/index.vue @@ -271,6 +271,8 @@
{ + this.$refs.table.doLayout(); + }); }); }, clearScreen() { diff --git a/src/views/Equipment/batch.vue b/src/views/Equipment/batch.vue index 7e3381e..e73b0f2 100644 --- a/src/views/Equipment/batch.vue +++ b/src/views/Equipment/batch.vue @@ -31,7 +31,8 @@ { + this.$refs.table.doLayout(); + }); }); }, handleSizeChange(val) { diff --git a/src/views/Equipment/equipmentOnlineRecordList.vue b/src/views/Equipment/equipmentOnlineRecordList.vue index 9b2f7ad..214751d 100644 --- a/src/views/Equipment/equipmentOnlineRecordList.vue +++ b/src/views/Equipment/equipmentOnlineRecordList.vue @@ -97,7 +97,7 @@