From 6bd005efa5bb1b9aa0bbb312378d57440c29366c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 05 一月 2023 16:47:22 +0800
Subject: [PATCH] 1.节拍工价  编辑行功能优化

---
 src/views/jcsz/yhqd.vue |   45 ++++++++++++++++++++++++++++++++++-----------
 1 files changed, 34 insertions(+), 11 deletions(-)

diff --git a/src/views/jcsz/yhqd.vue b/src/views/jcsz/yhqd.vue
index b137601..840f709 100644
--- a/src/views/jcsz/yhqd.vue
+++ b/src/views/jcsz/yhqd.vue
@@ -17,10 +17,10 @@
           :model="form"
           label-width="100px"
           inline
-          style="display: flex;justify-content: space-between"
+          style="display: flex;"
         >
           <div class="elForm">
-            <el-form-item label-width="70px" label="鐢ㄦ埛缂栫爜" style=" display: flex;">
+            <el-form-item label="鐢ㄦ埛缂栫爜" style=" display: flex;">
               <el-input v-model="form.UserCode" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
             <el-form-item label="鐢ㄦ埛鍚嶇О" style=" display: flex;">
@@ -54,7 +54,7 @@
                 />
               </el-select>
             </el-form-item>
-            <el-form-item v-show="isExpandForm" label-width="70px" label="鍦ㄨ亴鐘舵��" style=" display: flex;">
+            <el-form-item v-show="isExpandForm" label="鍦ㄨ亴鐘舵��" style=" display: flex;">
               <el-select
                 v-model="form.Enable"
                 :popper-append-to-body="false"
@@ -71,7 +71,10 @@
               </el-select>
             </el-form-item>
           </div>
-          <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened?'5%':'10%'}">
+          <div
+            class="bodySearchReset"
+            :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"
+          >
             <el-button type="primary" icon="el-icon-search" @click="search">鏌ヨ</el-button>
             <el-button type="info" icon="el-icon-refresh" @click="reset">閲嶇疆</el-button>
           </div>
@@ -241,7 +244,12 @@
             width="110"
           >
             <template slot-scope="{row}">
-              <i v-if="row.is_role==='Y'" :style="{color:$store.state.settings.theme}" class="el-icon-share" @click="roleClick({row})" />
+              <i
+                v-if="row.is_role==='Y'"
+                :style="{color:$store.state.settings.theme}"
+                class="el-icon-share"
+                @click="roleClick({row})"
+              />
               <i
                 v-if="row.is_role==='N'"
                 class="el-icon-share"
@@ -258,7 +266,11 @@
             <template slot-scope="{row}">
               <div class="operationClass">
                 <el-tooltip class="item" effect="dark" content="缂栬緫" placement="top">
-                  <i :style="{color:$store.state.settings.theme}" class="el-icon-edit-outline" @click="edit('edit',row)" />
+                  <i
+                    :style="{color:$store.state.settings.theme}"
+                    class="el-icon-edit-outline"
+                    @click="edit('edit',row)"
+                  />
                 </el-tooltip>
                 <el-tooltip v-del-tab-index class="item" effect="dark" content="鍒犻櫎" placement="top">
                   <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row.id)" />
@@ -426,10 +438,12 @@
               class="myCheckboxInput"
               :value="item.code"
               :name="item.name"
+              :label="item.name"
               :checked="item.isSelected2"
               @change="myCheckboxInputClick(item)"
-            >{{ item.name }}
-            </el-checkbox>
+            />
+            <div class="myCheckboxInputLabel">{{ item.name }}</div>
+
           </div>
         </div>
       </div>
@@ -1386,17 +1400,25 @@
     .myCheckbox {
       border: 1px solid #eee;
       display: flex;
-      min-width: 110px;
+      min-width: 100px;
       padding: 10px;
       margin: 10px 30px 0 0;
       border-radius: 5px;
       cursor: default;
+      position: relative;
 
       .myCheckboxInput {
         margin: 1px 5px 0 0;
         cursor: pointer;
       }
 
+      .myCheckboxInputLabel {
+        position: absolute;
+        left: 29px;
+        padding: 5px;
+        top: 6px;
+        color: transparent;
+      }
     }
 
     input[type=checkbox] {
@@ -1542,13 +1564,14 @@
 
 </style>
 <style>
-.osloading{
+.osloading {
   font-size: 26px !important;
 }
 
-.el-loading-text{
+.el-loading-text {
   font-size: 26px !important;
 }
+
 .el-table .custom-row {
   background: #f8f8fa;
 }

--
Gitblit v1.9.3