From 3d14449abab5055e2f370be4fa1a31c15c715453 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 24 六月 2022 10:05:51 +0800
Subject: [PATCH] 1.修改部分页面样式

---
 src/views/jcsz/yhqd.vue |   71 ++++++++++++++++++++---------------
 1 files changed, 40 insertions(+), 31 deletions(-)

diff --git a/src/views/jcsz/yhqd.vue b/src/views/jcsz/yhqd.vue
index 7df3eca..80a2903 100644
--- a/src/views/jcsz/yhqd.vue
+++ b/src/views/jcsz/yhqd.vue
@@ -1,7 +1,7 @@
 <template>
   <div>
-    <div class="body" style="background-color: #ffffff;  padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}">
-      <div style="height: 50px;">
+    <div class="body" :style="{height:mainHeight+'px'}">
+      <div style="padding: 10px 5px 0 0">
         <el-form
           ref="form"
           :model="form"
@@ -9,23 +9,24 @@
           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.UserCode" placeholder="璇疯緭鍏�" style="width: calc(100%-30px)" />
+              <el-input v-model="form.UserCode" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
             <el-form-item label="鐢ㄦ埛鍚嶇О" style=" display: flex;">
-              <el-input v-model="form.UserName" placeholder="璇疯緭鍏�" style="width: calc(100%-30px)" />
+              <el-input v-model="form.UserName" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
             <el-form-item label="鎵�灞炵粍缁�" style=" display: flex;">
               <el-cascader
                 ref="cascader"
+                filterable
                 :options="StuOrgArr"
                 :props="defaultProps"
                 @change="cascaderChange"
               />
             </el-form-item>
             <el-form-item label="宸ヨ祫绫诲瀷" style=" display: flex;">
-              <el-select v-model="form.wagetype" style="width: calc(100%-30px)" placeholder="璇烽�夋嫨">
+              <el-select v-model="form.wagetype" filterable style="width: 200px" placeholder="璇烽�夋嫨">
                 <el-option
                   v-for="item in wagetypeArr"
                   :key="item.value"
@@ -35,7 +36,7 @@
               </el-select>
             </el-form-item>
             <el-form-item label="鍦ㄨ亴鐘舵��" style=" display: flex;">
-              <el-select v-model="form.Enable" style="width: calc(100%-30px)" placeholder="璇烽�夋嫨">
+              <el-select v-model="form.Enable" filterable style="width: 200px" placeholder="璇烽�夋嫨">
                 <el-option
                   v-for="item in EnableArr"
                   :key="item.value"
@@ -51,15 +52,17 @@
           </div>
         </el-form>
       </div>
-      <div style="margin-bottom: 20px;display: flex">
+      <el-divider />
+      <div style="margin-left: 10px;display: flex">
         <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">鏂板</el-button>
         <el-button type="primary" icon="el-icon-upload2" @click="upload">瀵煎叆</el-button>
       </div>
-
-      <div style="display: flex;border: 1px solid #eee">
+      <el-divider />
+      <div class="elTableDiv">
         <el-table
           :data="tableData"
           border
+          stripe
           highlight-current-row
           :style="{width: 100+'%',height:tableHeight+'px'}"
           :header-cell-style="this.$headerCellStyle"
@@ -134,6 +137,7 @@
             prop="lm_date"
             label="鍒涘缓鏃堕棿"
             width="200"
+            show-overflow-tooltip
             sortable="custom"
           />
           <el-table-column
@@ -191,6 +195,7 @@
         <el-form-item label="鍦ㄨ亴鐘舵��" prop="Enable">
           <el-select
             v-model="dialogForm.Enable"
+            filterable
             style="width: 220px"
             placeholder="璇烽�夋嫨"
           >
@@ -207,6 +212,7 @@
             <el-cascader
               ref="dialogCascader"
               key="cascaderKey"
+              filterable
               :options="StuOrgArr"
               :props="defaultProps"
               style="width: 220px;"
@@ -216,6 +222,7 @@
           <el-form-item label="宸ヨ祫绫诲瀷" prop="wagetype">
             <el-select
               v-model="dialogForm.wagetype"
+              filterable
               style="width: 220px"
               placeholder="璇烽�夋嫨"
             >
@@ -352,7 +359,7 @@
         prop: 'lm_date', // 鎺掑簭瀛楁
         order: 'desc', // 鎺掑簭瀛楁
         page: 1, // 绗嚑椤�
-        rows: 10 // 姣忛〉澶氬皯鏉�
+        rows: 20 // 姣忛〉澶氬皯鏉�
       },
       StuOrgArr: [], // 鎵�灞炵粍缁囨暟缁�
       defaultProps: {
@@ -562,11 +569,11 @@
           AddUpdateUser(data).then(res => {
             if (res.code === '200') {
               this.$message.success(this.operation === 'add' ? '娣诲姞鎴愬姛锛�' : '淇敼鎴愬姛锛�')
+              this.dialogVisible = false
               this.getUserSearch()
             } else {
               this.$message.error(this.operation === 'add' ? '娣诲姞澶辫触锛�' : '淇敼澶辫触锛�')
             }
-            this.dialogVisible = false
           })
         }
       })
@@ -870,17 +877,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 {
@@ -893,6 +908,7 @@
   height: 30px;
   display: flex;
   align-items: center;
+  padding: 0 20px;
 }
 
 ::v-deep .el-button--default:hover {
@@ -918,11 +934,11 @@
 }
 
 ::v-deep .el-input__inner {
-  height: 30px
+  height: 30px;
+  line-height:30px;
 }
 
 ::v-deep .el-table .caret-wrapper {
-  //float: right;
   transform: scale(0.8);
 }
 
@@ -970,7 +986,6 @@
 
 ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered {
   margin: 10px 30px 0px 0;
-  //cursor: default !important;
 }
 
 ::v-deep .el-radio__input.is-checked + .el-radio__label {
@@ -982,20 +997,11 @@
 }
 
 .dialogVisibleRoles {
-  //::v-deep .el-checkbox.is-bordered.el-checkbox--medium{
-  // pointer-events: none;
-  //}
-
-  //::v-deep .el-checkbox__label{
-  //  pointer-events: none !important;
-  //  color: red;
-  //}
   .myCheckboxGroup {
     display: flex;
     flex-wrap: wrap;
 
     .myCheckbox {
-      //border: 1px solid $main_color;
       border: 1px solid #eee;
       display: flex;
       min-width: 100px;
@@ -1011,10 +1017,6 @@
 
     }
 
-    //.myCheckbox{
-    //  border: 1px solid $main_color;
-    //}
-
     input[type=checkbox] {
       cursor: pointer;
       position: relative;
@@ -1026,13 +1028,12 @@
     input[type=checkbox]::after {
       position: absolute;
       top: 0;
-      //color: rgb(130, 35, 35);
       color: $main_color;
       width: 14px;
       height: 14px;
       display: inline-block;
       visibility: visible;
-      padding-left: 0px;
+      padding-left: 0;
       text-align: center;
       content: ' ';
       border-radius: 3px
@@ -1047,6 +1048,14 @@
       background-color: $main_color;
     }
   }
+}
 
+.body ::v-deep .el-divider{
+  border: 1px solid #eee;
+  width: 99%;
+  margin: 10px auto;
+}
+::v-deep .el-form-item{
+  margin-bottom: 0;
 }
 </style>

--
Gitblit v1.9.3