From dc252ad2bd275f697c266e3c8b10cb7d540fdcaa Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Wed, 16 Feb 2022 17:08:11 +0800
Subject: [PATCH] 44个表格在1366*768下的适配,保安员管理-》保安员查询中操作栏更改,在用户表左侧控制栏同步高
---
src/views/statisticalQueryManagement/businessStatistics.vue | 36 ++++++++++++++++++++++--------------
1 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/src/views/statisticalQueryManagement/businessStatistics.vue b/src/views/statisticalQueryManagement/businessStatistics.vue
index ea02f46..aef633f 100644
--- a/src/views/statisticalQueryManagement/businessStatistics.vue
+++ b/src/views/statisticalQueryManagement/businessStatistics.vue
@@ -1,6 +1,11 @@
<template>
<div>
- <basic-container>
+ <basic-container
+ :class="[
+ $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+ $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
+ ]"
+ >
<avue-crud
:option="tableOption"
:table-loading="loading"
@@ -17,7 +22,7 @@
@refresh-change="refreshChange"
@on-load="onLoad"
@cell-click="handleRowClick"
- class="businessStatisticsStyle"
+ class="businessStatisticsStyle tablesss"
>
</avue-crud>
</basic-container>
@@ -85,6 +90,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize,
},
query: {},
value1: "",
@@ -125,11 +131,11 @@
searchShow: true,
searchMenuSpan: 6,
index: true,
- indexLabel:'序号',
+ indexLabel: "序号",
viewBtn: true,
dialogClickModal: false,
+ ...this.$store.state.control.clearOtherBut,
column: [
-
{
label: "公司名称",
prop: "enterpriseName",
@@ -204,7 +210,7 @@
searchRange: true,
searchSpan: 6,
searchLabelWidth: 120,
- labelWidth:160,
+ labelWidth: 160,
hide: true,
addDisplay: false,
editDisplay: false,
@@ -296,21 +302,22 @@
param["size"] = page.pageSize;
const { releaseTimeRange } = this.query;
let values = {
+ ...param,
+ };
+ if (releaseTimeRange) {
+ values = {
...param,
+ startTime: releaseTimeRange[0],
+ endTime: releaseTimeRange[1],
+ ...this.query,
};
- if (releaseTimeRange) {
- values = {
- ...param,
- startTime: releaseTimeRange[0],
- endTime: releaseTimeRange[1],
- ...this.query,
- };
- values.releaseTimeRange = null;
- }
+ values.releaseTimeRange = null;
+ }
selectYw(values).then((res) => {
const data = res.data.data;
this.page.total = data.total;
this.tableData = data.records;
+ this.$store.commit("setWindowSizeHeightAdd");
this.loading = false;
});
},
@@ -375,6 +382,7 @@
mounted() {
this.getSubOfficeData();
this.getDictionaryList();
+ this.$store.commit("setWindowSizeHeightAdd");
},
};
</script>
--
Gitblit v1.9.3