From eafd90c248a7e0560f98c957eaf05cb6e71e2f3b Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期四, 09 二月 2023 10:40:47 +0800
Subject: [PATCH] 2022/2/9 肖辉 部门管理处理
---
src/views/systemSetting/device/grid/components/main/index.vue | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/src/views/systemSetting/device/grid/components/main/index.vue b/src/views/systemSetting/device/grid/components/main/index.vue
index 6bcbe6e..0f0803c 100644
--- a/src/views/systemSetting/device/grid/components/main/index.vue
+++ b/src/views/systemSetting/device/grid/components/main/index.vue
@@ -25,8 +25,14 @@
</header>
<!-- 鏁版嵁灞曠ず -->
<el-table
+ border
+ stripe
ref="multipleTable"
- :header-cell-style="{ 'font-weight': '650', 'line-height': '45px' }"
+ :header-cell-style="{
+ background: '#F5F5F5',
+ 'font-weight': '650',
+ 'line-height': '45px',
+ }"
:data="tableData"
style="width: 100%"
:row-class-name="tableRowClassName"
@@ -173,22 +179,16 @@
// 鑾峰彇鍒楄〃
getList() {
const that = this;
- const { currentPage, pageSize, context } = this;
+ const { currentPage, pageSize, context } = this;
this.getOrgGridList({
currentPage,
pageSize,
name: context,
- })
- .then((res) => {
- if (res.code === 200) {
- res.data.records.forEach((item) => {
- item.status === 1 ? (item.status = true) : (item.status = false);
- });
- that.totalNum = res.data.total;
- that.tableData = res.data.records;
- this.renderFlag = true;
- }
- });
+ }).then((res) => {
+ that.totalNum = res.total;
+ that.tableData = res.records;
+ this.renderFlag = true;
+ });
},
handleAdd() {
this.handheldGrid = {
@@ -267,7 +267,7 @@
background-color: white;
display: flex;
.headerContent {
- padding: 10px;
+ padding: 10px 0;
display: flex;
justify-content: space-between;
align-items: center;
@@ -302,7 +302,7 @@
.el-button {
padding: 12px 25px;
- border-radius: 20px;
+ //border-radius: 20px;
}
}
::v-deep .el-form {
@@ -337,10 +337,10 @@
line-height: 20px;
padding: 10px 20px;
margin-left: auto;
- border-radius: 20px;
+ //border-radius: 20px;
.el-button {
padding: 12px 25px;
- border-radius: 20px;
+ //border-radius: 20px;
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0