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/securityCompany/regulatoryInformation.vue | 42 ++++++++++++++++++++++++++++++------------
1 files changed, 30 insertions(+), 12 deletions(-)
diff --git a/src/views/securityCompany/regulatoryInformation.vue b/src/views/securityCompany/regulatoryInformation.vue
index 7f1f12a..927da17 100644
--- a/src/views/securityCompany/regulatoryInformation.vue
+++ b/src/views/securityCompany/regulatoryInformation.vue
@@ -1,13 +1,15 @@
-/*
- * @Author: Morpheus
- * @Date: 2021-07-07 17:30:05
- * @Last Modified by: liu
- * @Last Modified time: 2021-09-18 09:14:31
- * menu-name 监管信息
- */
+/* * @Author: Morpheus * @Date: 2021-07-07 17:30:05 * @Last Modified by: liu *
+@Last Modified time: 2021-09-18 09:14:31 * menu-name 监管信息 */
<template>
- <basic-container class="regulatoryInformation">
+ <basic-container
+ :class="[
+ 'regulatoryInformation',
+ $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+ $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
+ ]"
+ >
<avue-crud
+ class="tablesss"
:option="option"
:table-loading="loading"
:data="data"
@@ -26,6 +28,15 @@
@refresh-change="refreshChange"
@on-load="onLoad"
>
+ <template slot-scope="{ row }" slot="deptid">
+ <!-- <el-tag
+ class="rowClickSelf"
+ title="点击查看所属公司情况"
+ @click="rowClickSelf(row.deptId)"
+ >{{ row.$deptId }}</el-tag
+ > -->
+ {{ row.$deptid }}
+ </template>
</avue-crud>
</basic-container>
</template>
@@ -84,6 +95,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize,
},
selectionList: [],
option: {
@@ -100,11 +112,13 @@
calcHeight: 30,
tip: false,
searchShow: true,
+ menuWidth: 210,
searchMenuSpan: 6,
searchShowBtn: false,
index: true,
viewBtn: true,
dialogClickModal: false,
+ ...this.$store.state.control.clearOtherBut,
column: [
{
@@ -120,6 +134,7 @@
value: "id",
},
search: true,
+ slot: true,
overHidden: true,
type: "select",
rules: [
@@ -174,7 +189,7 @@
// search: true,
searchSpan: 4,
// display: false,
- width: 180,
+ width: 120,
},
{
@@ -240,6 +255,9 @@
});
return ids.join(",");
},
+ },
+ mounted() {
+ this.$store.commit("setWindowSizeHeightAdd");
},
methods: {
rowSave(row, done, loading) {
@@ -338,7 +356,8 @@
this.page.total = data.total;
this.data = data.records;
this.loading = false;
- // this.selectionClear();
+ this.$store.commit("setWindowSizeHeightAdd");
+ this.selectionClear();
});
},
@@ -356,5 +375,4 @@
};
</script>
-<style>
-</style>
+<style></style>
--
Gitblit v1.9.3