From 6379e064d1bd765981439c8a31d100c45eb31c2b Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 23 六月 2022 10:16:16 +0800
Subject: [PATCH] 1.处理浏览器兼容问题
---
src/views/jcsz/zzjg.vue | 44 +++++++++++++++++++++++++++++---------------
1 files changed, 29 insertions(+), 15 deletions(-)
diff --git a/src/views/jcsz/zzjg.vue b/src/views/jcsz/zzjg.vue
index 62d3680..cae3213 100644
--- a/src/views/jcsz/zzjg.vue
+++ b/src/views/jcsz/zzjg.vue
@@ -1,7 +1,8 @@
<template>
<div>
+ <!-- <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;">-->
<div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}">
- <div style="height: 50px;">
+ <div>
<el-form
ref="form"
:model="form"
@@ -9,7 +10,7 @@
inline
style="display: flex;justify-content: space-between"
>
- <div style="display: flex;justify-content: space-around;width: 85%">
+ <div class="elForm">
<el-form-item label="缁勭粐缂栫爜" style=" display: flex;">
<el-input v-model="form.OrgCode" placeholder="璇疯緭鍏�" style="width: calc(100%-30px)" />
</el-form-item>
@@ -17,7 +18,7 @@
<el-input v-model="form.OrgName" placeholder="璇疯緭鍏�" style="width: calc(100%-30px)" />
</el-form-item>
<el-form-item label="缁勭粐绫诲瀷" style=" display: flex;">
- <el-select v-model="form.OrgType" style="width: calc(100%-30px)" placeholder="璇烽�夋嫨">
+ <el-select v-model="form.OrgType" filterable style="width: calc(100%-30px)" placeholder="璇烽�夋嫨">
<el-option
v-for="item in OrgTypeArr"
:key="item.value"
@@ -46,12 +47,13 @@
<el-table
:data="tableData"
border
- highlight-current-row
:style="{width: 100+'%',height:tableHeight+'px'}"
+ highlight-current-row
:header-cell-style="this.$headerCellStyle"
:cell-style="this.$cellStyle"
@sort-change="sortChange"
>
+
<!-- <el-table-column-->
<!-- type="selection"-->
<!-- width="50"-->
@@ -97,6 +99,7 @@
<el-table-column
prop="lm_date"
label="鍒涘缓鏃堕棿"
+ show-overflow-tooltip
sortable="custom"
/>
<el-table-column
@@ -136,7 +139,6 @@
<el-form-item label="缁勭粐绫诲瀷" prop="OrgType">
<el-radio-group
v-model="dialogForm.OrgType"
- style="display: flex;align-items: end;height: 29px;"
@change="changeRadio"
>
<el-radio
@@ -157,10 +159,12 @@
<el-select
v-model="dialogForm.SupUnit"
style="width: 220px"
+ filterable
placeholder="璇烽�夋嫨"
>
<el-option
v-for="item in SupUnitArr"
+ :key="item.id"
:label="item.org_name"
:value="item.id"
/>
@@ -218,7 +222,7 @@
prop: 'lm_date', // 鎺掑簭瀛楁
order: 'desc', // 鎺掑簭瀛楁
page: 1, // 绗嚑椤�
- rows: 10 // 姣忛〉澶氬皯鏉�
+ rows: 20 // 姣忛〉澶氬皯鏉�
},
OrgTypeArr: [
{ label: '宸ュ巶', value: 'F' },
@@ -384,13 +388,12 @@
AddUpdateOrganization(data).then(res => {
if (res.code === '200') {
this.$message.success(this.operation === 'add' ? '娣诲姞鎴愬姛锛�' : '淇敼鎴愬姛锛�')
+ this.dialogVisible = false
this.getOrganizationSearch()
} else {
this.$message.error(this.operation === 'add' ? '娣诲姞澶辫触锛�' : '淇敼澶辫触锛�')
}
})
-
- this.dialogVisible = false
}
})
},
@@ -412,17 +415,25 @@
height: 30px;
display: flex;
align-items: center;
+ border: 1px solid $main_color;
+ padding: 0 20px;
}
-::v-deep .el-button--info {
+::v-deep .el-button--info{
//background-color: $main_color !important;
height: 30px;
display: flex;
align-items: center;
+ padding: 0 20px;
}
::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: $main_color !important;
+}
+
+::v-deep .el-dialog__footer {
+ display: flex;
+ justify-content: flex-end;
}
.footerButton {
@@ -435,6 +446,7 @@
height: 30px;
display: flex;
align-items: center;
+ padding: 0 20px;
}
::v-deep .el-button--default:hover {
@@ -460,7 +472,8 @@
}
::v-deep .el-input__inner {
- height: 30px
+ height: 30px;
+ line-height:30px;
}
::v-deep .el-table .caret-wrapper {
@@ -486,9 +499,10 @@
justify-content: space-between;
align-items: center;
}
-
-//::v-deep .el-message-box__btns button:nth-child(2){
-// background-color: $main_color !important;
-// border-color: $main_color !important;
-//}
+.elForm {
+ display: flex;
+ justify-content: flex-start;
+ width: 85%;
+ flex-wrap: wrap;
+}
</style>
--
Gitblit v1.9.3