From e713b378b01d189f972cfb5b9eae749ee95a8b51 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 29 十月 2022 13:48:00 +0800
Subject: [PATCH] 1.解决两个账号登录,是否被挤掉的问题

---
 src/views/zzmx/gxdy.vue |  528 +++++++++++++++++++++++++++++++---------------------------
 1 files changed, 283 insertions(+), 245 deletions(-)

diff --git a/src/views/zzmx/gxdy.vue b/src/views/zzmx/gxdy.vue
index 7ab483b..edc9fc6 100644
--- a/src/views/zzmx/gxdy.vue
+++ b/src/views/zzmx/gxdy.vue
@@ -1,16 +1,22 @@
 <template>
   <div>
     <div class="body" :style="{height:mainHeight+'px'}">
-      <div style="padding: 10px 5px 0 0">
+
+      <div class="bodyTopButtonGroup">
+        <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 class="bodyTopFormGroup">
         <el-form
           ref="form"
           :model="form"
-          label-width="80px"
+          label-width="100px"
           inline
           style="display: flex;justify-content: space-between"
         >
           <div class="elForm">
-            <el-form-item label="宸ュ簭缂栫爜" style=" display: flex;">
+            <el-form-item label-width="70px" label="宸ュ簭缂栫爜" style=" display: flex;">
               <el-input v-model="form.stepcode" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
             <el-form-item label="宸ュ簭鍚嶇О" style=" display: flex;">
@@ -48,29 +54,43 @@
                 />
               </el-select>
             </el-form-item>
-            <el-form-item label="鍒涘缓浜哄憳" style=" display: flex;">
+            <el-form-item v-show="isExpandForm" label-width="70px" label="鍒涘缓浜哄憳" style=" display: flex;">
               <el-input v-model="form.createuser" style="width: 200px" placeholder="璇疯緭鍏�" />
             </el-form-item>
           </div>
-          <div style="display: flex;align-items: start;margin-top: 5px;z-index: 2">
+          <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened?'5%':'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>
         </el-form>
+        <div
+          class="bodyTopFormExpand"
+        >
+          <svg-icon
+            v-show="mouseHoverType==='mouseout'"
+            style="cursor: pointer"
+            :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'"
+            @mouseenter="mouseHoverType=$event.type"
+          />
+          <svg-icon
+            v-show="mouseHoverType==='mouseenter'"
+            style="cursor: pointer"
+            :icon-class="!isExpandForm?'doubleDown':'doubleUp'"
+            @click="isExpandForm=!isExpandForm"
+            @mouseout="mouseHoverType=$event.type"
+          />
+        </div>
       </div>
-      <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>
-      <el-divider />
+
       <div class="elTableDiv">
         <el-table
+          ref="tableDataRef"
+          class="tableFixed"
           :data="tableData"
-          :height="tableHeight"
+          :height="isExpandForm?tableHeight:(tableHeight+40)+'px'"
           border
-          stripe
-          :style="{width: 100+'%',height:tableHeight+'px',}"
+          :row-class-name="tableRowClassName"
+          :style="{width: 100+'%',height:isExpandForm?tableHeight:(tableHeight+40)+'px',}"
           highlight-current-row
           :header-cell-style="this.$headerCellStyle"
           :cell-style="this.$cellStyle"
@@ -115,7 +135,12 @@
             label="宸ュ簭鎻忚堪"
             min-width="180"
             sortable="custom"
-          />
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.descr">{{ row.descr }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="enable"
             label="鍚敤鐘舵��"
@@ -123,8 +148,14 @@
             width="110"
           >
             <template slot-scope="{row}">
-              <div v-if="row.enable==='Y'">鏄�</div>
-              <div v-if="row.enable==='N'">鍚�</div>
+              <div v-if="row.enable==='Y'">
+                <svg-icon icon-class="circleYes" style="margin-right: 2px" />
+                鏄�
+              </div>
+              <div v-if="row.enable==='N'">
+                <svg-icon icon-class="circleNo" style="margin-right: 2px" />
+                鍚�
+              </div>
             </template>
           </el-table-column>
           <el-table-column
@@ -147,7 +178,12 @@
             <template slot-scope="{row}">
               <div class="operationClass">
                 <i v-if="row.is_eqp==='Y'" class="el-icon-share" @click="workClick(row)" />
-                <i v-if="row.is_eqp==='N'" class="el-icon-share" style="color: rgb(180 ,181, 185)" @click="workClick(row)" />
+                <i
+                  v-if="row.is_eqp==='N'"
+                  class="el-icon-share"
+                  style="color: rgb(180 ,181, 185)"
+                  @click="workClick(row)"
+                />
               </div>
             </template>
           </el-table-column>
@@ -159,18 +195,28 @@
             <template slot-scope="{row}">
               <div class="operationClass">
                 <i v-if="row.is_defect==='Y'" class="el-icon-share" @click="defectClick(row)" />
-                <i v-if="row.is_defect==='N'" class="el-icon-share" style="color:rgb(180 ,181, 185);" @click="defectClick(row)" />
+                <i
+                  v-if="row.is_defect==='N'"
+                  class="el-icon-share"
+                  style="color:rgb(180 ,181, 185);"
+                  @click="defectClick(row)"
+                />
               </div>
             </template>
           </el-table-column>
           <el-table-column
             label="鎿嶄綔"
             fixed="right"
+            width="120"
           >
             <template slot-scope="{row}">
               <div class="operationClass">
-                <el-button type="text" @click="edit('edit',row)">缂栬緫</el-button>
-                <el-button type="text" @click="del(row)">鍒犻櫎</el-button>
+                <el-tooltip class="item" effect="dark" content="缂栬緫" placement="top">
+                  <i 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 class="el-icon-delete" @click="del(row)" />
+                </el-tooltip>
               </div>
             </template>
           </el-table-column>
@@ -178,12 +224,11 @@
       </div>
       <!--鍒嗛〉-->
       <pagination
-        v-show="total>0"
         :total="total"
         :page.sync="form.page"
         :limit.sync="form.rows"
         align="right"
-        layout="prev, pager, next,sizes"
+        layout="total,prev, pager, next,sizes"
         popper-class="select_bottom"
         @pagination="getStepSearch"
       />
@@ -257,7 +302,12 @@
       <span slot="footer" class="dialog-footer">
         <div class="footerButton">
           <el-button @click="dialogVisibleCancel">鍙� 娑�</el-button>
-          <el-button type="primary" @click="dialogVisibleConfirm">纭� 瀹�</el-button>
+          <el-button
+            type="primary"
+            :loading="$store.state.app.buttonIsDisabled"
+            :disabled="$store.state.app.buttonIsDisabled"
+            @click="dialogVisibleConfirm"
+          >纭� 瀹�</el-button>
         </div>
       </span>
     </el-dialog>
@@ -267,8 +317,7 @@
       title="鍏宠仈宸ヤ綔绔�"
       :visible.sync="workDialogVisible"
       width="50%"
-      top="15vh"
-      :fullscreen="isFullscreen"
+      :top="isIpad?'5vh': '15vh'"
       :close-on-click-modal="false"
       class="workDialogVisible"
       @closed="workHandleClose"
@@ -315,7 +364,7 @@
           :data="workDialogForm.workTreeArr"
           show-checkbox
           node-key="code"
-          style="height: 300px;"
+          style="height: 280px;"
           default-expand-all
           :props="workTreeDefaultProps"
           @check="checkBoxClick"
@@ -326,7 +375,12 @@
       <span slot="footer" class="dialog-footer">
         <div class="footerButton">
           <el-button @click="workDialogVisibleCancel">鍙� 娑�</el-button>
-          <el-button type="primary" @click="workDialogVisibleConfirm">纭� 瀹�</el-button>
+          <el-button
+            type="primary"
+            :loading="$store.state.app.buttonIsDisabled"
+            :disabled="$store.state.app.buttonIsDisabled"
+            @click="workDialogVisibleConfirm"
+          >纭� 瀹�</el-button>
         </div>
       </span>
     </el-dialog>
@@ -336,8 +390,7 @@
       title="宸ュ簭鍏宠仈缂洪櫡"
       :visible.sync="defectDialogVisible"
       width="50%"
-      top="15vh"
-      :fullscreen="isFullscreen"
+      :top="isIpad?'5vh':'15vh'"
       :close-on-click-modal="false"
       class="defectDialogVisible"
       @closed="defectHandleClose"
@@ -358,7 +411,7 @@
           :data="defectTree"
           show-checkbox
           node-key="code"
-          style="height: 500px;"
+          style="height: 400px;"
           default-expand-all
           :props="workTreeDefaultProps"
         />
@@ -369,7 +422,12 @@
       <span slot="footer" class="dialog-footer">
         <div class="footerButton">
           <el-button @click="defectDialogVisibleCancel">鍙� 娑�</el-button>
-          <el-button type="primary" @click="defectDialogVisibleConfirm">纭� 瀹�</el-button>
+          <el-button
+            type="primary"
+            :loading="$store.state.app.buttonIsDisabled"
+            :disabled="$store.state.app.buttonIsDisabled"
+            @click="defectDialogVisibleConfirm"
+          >纭� 瀹�</el-button>
         </div>
       </span>
     </el-dialog>
@@ -388,27 +446,18 @@
   StepSearch
 } from '@/api/zzmx'
 import $ from 'jquery'
+import { validateCode } from '@/utils/global'
 
-const SER_HZ = /^[\u4e00-\u9fa5]+$/
 export default {
   name: 'GXDY',
   components: {
     Pagination
   },
   data() {
-    const validateName = (rule, value, callback) => {
-      if (!value) {
-        return callback(new Error('璇疯緭鍏ョ紪鐮�'))
-      } else {
-        if (SER_HZ.test(value)) {
-          return callback(new Error('缂栫爜涓嶈兘涓轰腑鏂�'))
-        } else {
-          callback()
-        }
-      }
-    }
     return {
-      isFullscreen: false,
+      mouseHoverType: 'mouseout',
+      isExpandForm: false,
+      isIpad: false,
       mainHeight: 0,
       tableHeight: 0,
       form: {
@@ -446,7 +495,7 @@
       operation: '',
       dialogFormRules: {
         stepcode: [
-          { required: true, validator: validateName, trigger: ['blur', 'change'] }
+          { required: true, validator: validateCode, trigger: ['blur', 'change'] }
         ],
         stepname: [
           { required: true, message: '璇疯緭鍏ュ悕绉�', trigger: ['blur', 'change'] }
@@ -488,6 +537,9 @@
     this.getHeight()
   },
   methods: {
+    tableRowClassName({ row, rowIndex }) {
+      return 'custom-row'
+    },
     async getStepSearch() {
       const res = await StepSearch(this.form)
       this.tableData = res.data
@@ -552,6 +604,9 @@
         DeleteStep({ stepcode: row.stepcode }).then(res => {
           if (res.code === '200') {
             this.$message.success('鍒犻櫎鎴愬姛!')
+            if (this.form.page > 1 && this.tableData.length === 1) {
+              this.form.page--
+            }
             this.getStepSearch()
           }
         })
@@ -576,6 +631,7 @@
     dialogVisibleConfirm() {
       this.$refs.dialogForm.validate(valid => {
         if (valid) {
+          this.$store.state.app.buttonIsDisabled = true
           const data = {
             id: this.dialogForm.id,
             stepcode: this.dialogForm.stepcode,
@@ -587,9 +643,10 @@
           }
           AddUpdateStep(data).then(res => {
             if (res.code === '200') {
-              this.$message.success(this.operation === 'add' ? '娣诲姞鎴愬姛锛�' : '淇敼鎴愬姛锛�')
               this.dialogVisible = false
+              this.$message.success(this.operation === 'add' ? '娣诲姞鎴愬姛锛�' : '淇敼鎴愬姛锛�')
               this.getStepSearch()
+              this.$store.state.app.buttonIsDisabled = false
             } else {
               this.$message.error(this.operation === 'add' ? '娣诲姞澶辫触锛�' : '淇敼澶辫触锛�')
             }
@@ -600,65 +657,83 @@
     // 鑾峰彇椤甸潰楂樺害
     getHeight() {
       this.$nextTick(() => {
-        this.mainHeight = window.innerHeight - 250
-        this.tableHeight = this.mainHeight - 100
-        // this.isFullscreen = window.innerHeight < 800
-        if (window.innerHeight < 800) {
-          this.tableHeight = this.tableHeight - 50
+        // this.mainHeight = window.innerHeight - 250
+        this.mainHeight = window.innerHeight - 85
+        this.tableHeight = this.mainHeight - 255
+        if (window.innerHeight < 769) {
+          this.tableHeight = this.tableHeight - 40
         }
+        this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367
+        this.$refs.tableDataRef.doLayout()
       })
     },
     /* 鍏宠仈宸ヤ綔绔欐ā鍧�*/
     // 鍏宠仈宸ヤ綔绔欑偣鍑�
-    async workClick(row) {
-      this.workDialogVisible = true
+    workClick(row) {
+      const loading = this.$loading({
+        lock: true,
+        text: '姝e湪鍔犺浇鏁版嵁锛岃绋嶇瓑...',
+        spinner: 'el-icon-loading',
+        customClass: 'osloading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      })
+
       this.workDialogForm.stepcode = row.stepcode
       this.workDialogForm.stepname = row.stepname
-      const { data: res } = await StepAssociationEqp({ stepcode: this.workDialogForm.stepcode })
-      this.workDialogForm.workArr = res
-      let workGatherArr = []
-      if (row.flwtype === 'W') { // 澶栧崗鎯呭喌涓�
-        workGatherArr = this.workDialogForm.workArr.filter(item => item.type === 'W')
-      } else if (row.flwtype === 'Z') { // 鑷埗鎯呭喌涓�
-        workGatherArr = this.workDialogForm.workArr.filter(item => item.type === 'E')
-      } else { // 鑷埗锛嬪鍗�
-        workGatherArr = this.workDialogForm.workArr
-      }
-      // this.workDialogForm.workArr[1].children = []
-      const nodeKey = []// 闇�瑕佹爲褰㈡暟鏄剧殑鍊�
-      workGatherArr.forEach((item, index) => {
-        this.workDialogForm.workGatherArr.push({
-          isSelected1: index === 0,
-          isSelected2: item.flag === 'Y',
-          code: item.code,
-          name: item.name,
-          type: item.type,
-          flag: item.flag
-        })
-        if (item.flag === 'Y' && item.children && item.children.length > 0) {
-          this.$nextTick(() => {
-            $("input[name='gather']").eq(index).prop('checked', true)// 鑷畾涔夊崟閫夋鍥炴樉
-          })
-          item.children.forEach(it => {
-            if (it.flag === 'Y') {
-              nodeKey.push(it.code)
-            }
-          })
-        }
-        if (index === 0) {
-          if (item.children && item.children.length > 0) {
-            this.workDialogForm.workTreeArr = this.workDialogForm.workArr.filter(it => it.code === item.code)
-            this.workDialogForm.workTreeArr[0].name = '鍏ㄩ儴'
-          }
-        }
-        // item.flag === 'Y'&&item
-      })
-      console.log(nodeKey, 1)
-      this.$refs.workTree.setCheckedKeys(nodeKey)
-      this.workDialogForm.workTreeSelectedArr = nodeKey
+      StepAssociationEqp({ stepcode: this.workDialogForm.stepcode }).then(res => {
+        if (res.code === '200') {
+          setTimeout(() => {
+            loading.close()
+            this.workDialogVisible = true
 
-      console.log(this.workDialogForm.workGatherArr, 6)
-      console.log(this.workDialogForm.workTreeArr, 7)
+            this.workDialogForm.workArr = res.data.filter(item => item.children.length !== 0)
+
+            let workGatherArr = []
+            if (row.flwtype === 'W') { // 澶栧崗鎯呭喌涓�
+              workGatherArr = this.workDialogForm.workArr.filter(item => item.type === 'W')
+            } else if (row.flwtype === 'Z') { // 鑷埗鎯呭喌涓�
+              workGatherArr = this.workDialogForm.workArr.filter(item => item.type === 'E')
+            } else { // 鑷埗锛嬪鍗�
+              workGatherArr = this.workDialogForm.workArr
+            }
+            const nodeKey = []// 闇�瑕佹爲褰㈡暟鏄剧殑鍊�
+            workGatherArr.forEach((item, index) => {
+              this.workDialogForm.workGatherArr.push({
+                isSelected1: index === 0,
+                isSelected2: item.flag === 'Y',
+                code: item.code,
+                name: item.name,
+                type: item.type,
+                flag: item.flag
+              })
+              if (item.flag === 'Y' && item.children && item.children.length > 0) {
+                this.$nextTick(() => {
+                  $("input[name='gather']").eq(index).prop('checked', true)// 鑷畾涔夊崟閫夋鍥炴樉
+                })
+                item.children.forEach(it => {
+                  if (it.flag === 'Y') {
+                    nodeKey.push(it.code)
+                  }
+                })
+              }
+              if (index === 0) {
+                if (item.children && item.children.length > 0) {
+                  this.workDialogForm.workTreeArr = this.workDialogForm.workArr.filter(it => it.code === item.code)
+                  this.workDialogForm.workTreeArr[0].name = '鍏ㄩ儴'
+                }
+              }
+              // item.flag === 'Y'&&item
+            })
+
+            this.$nextTick(() => {
+              this.$refs.workTree.setCheckedKeys(nodeKey)
+            })
+            this.workDialogForm.workTreeSelectedArr = nodeKey
+          }, 1000)
+        } else {
+          loading.close()
+        }
+      })
     },
     // 澶х洅瀛愮偣鍑讳簨浠�
     myCheckboxClick(val) {
@@ -877,8 +952,7 @@
     // 纭
     async workDialogVisibleConfirm() {
       this.workDialogForm.workTreeSelectedArr = [...new Set(this.workDialogForm.workTreeSelectedArr)]
-      console.log(this.workDialogForm.workTreeSelectedArr, 18)
-      console.log(this.workDialogForm.workArr, 20)
+
       const data = []
       this.workDialogForm.workArr.forEach(item => {
         if (item.flag === 'Y' && item.children && item.children.length > 0) {
@@ -889,34 +963,51 @@
           })
         }
       })
-      console.log(data)
+      this.$store.state.app.buttonIsDisabled = true
       const res = await SaveStepAssociationEqp(this.workDialogForm.stepcode, data)
       if (res.code === '200') {
+        this.workDialogVisible = false
         this.$message.success('淇濆瓨鎴愬姛锛�')
         await this.getStepSearch()
-        this.workDialogVisible = false
+        this.$store.state.app.buttonIsDisabled = false
       }
     },
     /* 鍏宠仈缂洪櫡*/
     //  鍏宠仈缂洪櫡鐐瑰嚮
-    async defectClick(row) {
+    defectClick(row) {
+      const loading = this.$loading({
+        lock: true,
+        text: '姝e湪鍔犺浇鏁版嵁锛岃绋嶇瓑...',
+        spinner: 'el-icon-loading',
+        customClass: 'osloading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      })
+
       this.defectTreeCode = row.stepcode
       this.defectTreeName = row.stepname
-      this.defectDialogVisible = true
 
-      const { data: res } = await StepAssociationDefect({ stepcode: row.stepcode })
-      // this.defectTree = res
-      this.defectTree.push({ code: 'QB', name: '鍏ㄩ儴', children: res, flag: 'N' })
-      console.log(this.defectTree, 6)
-      const nokeKey = []
-      this.defectTree[0].children.forEach(item => {
-        if (item.flag === 'Y') {
-          nokeKey.push(item.code)
+      StepAssociationDefect({ stepcode: row.stepcode }).then(res => {
+        if (res.code === '200') {
+          setTimeout(() => {
+            loading.close()
+            this.defectDialogVisible = true
+
+            this.defectTree.push({ code: 'QB', name: '鍏ㄩ儴', children: res.data, flag: 'N' })
+
+            const nokeKey = []
+            this.defectTree[0].children.forEach(item => {
+              if (item.flag === 'Y') {
+                nokeKey.push(item.code)
+              }
+            })
+
+            this.$nextTick(() => {
+              this.$refs.defectTree.setCheckedKeys(nokeKey)
+            })
+          }, 1000)
+        } else {
+          loading.close()
         }
-      })
-      console.log(nokeKey, 2)
-      this.$nextTick(() => {
-        this.$refs.defectTree.setCheckedKeys(nokeKey)
       })
     },
     // 鍏抽棴
@@ -937,81 +1028,22 @@
           data.push({ code: item.code, name: item.name })
         }
       })
+      this.$store.state.app.buttonIsDisabled = true
       const res = await SaveStepAssociationDefect(this.defectTreeCode, data)
       if (res.code === '200') {
+        this.defectDialogVisible = false
         this.$message.success('淇濆瓨鎴愬姛锛�')
         await this.getStepSearch()
-        this.defectDialogVisible = false
+        this.$store.state.app.buttonIsDisabled = false
       }
     }
   }
 }
 </script>
-
 <style lang="scss" scoped>
 $main_color: #42b983;
-::v-deep .el-button--primary {
-  background-color: $main_color !important;
-  height: 30px;
-  display: flex;
-  align-items: center;
-  //border: 1px solid $main_color;
-  border: none;
-  padding: 0 20px;
-}
-
-::v-deep .el-button--primary:hover {
-  border: none;
-}
-
-::v-deep .el-button--info {
-  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 {
-  display: flex;
-  justify-content: end;
-}
-
-::v-deep .el-button--default {
-  background-color: #ffffff !important;
-  height: 30px;
-  display: flex;
-  align-items: center;
-  padding: 0 20px;
-}
-
-::v-deep .el-button--default:hover {
-  color: #606266;
-}
-
-::v-deep .el-dialog__body {
-  padding: 20px 100px !important;
-}
-
-.defectDialogVisible {
-  ::v-deep .el-dialog__body {
-    padding: 20px 20px !important;
-  }
-}
 
 .workDialogVisible {
-  ::v-deep .el-dialog__body {
-    padding: 20px 20px !important;
-  }
-
   .myCheckboxGroup {
     display: flex;
     flex-wrap: wrap;
@@ -1065,27 +1097,60 @@
   }
 }
 
-::v-deep .el-radio__input.is-checked .el-radio__inner {
-  background-color: $main_color;
-  border-color: $main_color;
+</style>
+<!--鍏叡椤甸潰鏍峰紡-->
+<style lang="scss" scoped>
+$main_color: #42b983;
+.el-icon-share, .el-icon-delete, .el-icon-edit-outline {
+  color: $main_color;
+  cursor: pointer;
 }
 
-::v-deep .el-radio__input.is-checked + .el-radio__label {
-  color: $main_color !important;
+.el-icon-edit-outline {
+  margin-right: 15px;
 }
 
-::v-deep .el-checkbox__input.is-checked .el-checkbox__inner {
-  border-color: $main_color;
-  background-color: $main_color;
+::v-deep .el-button--primary, .el-button--default, .el-button--info {
+  height: 34px;
+  display: flex;
+  align-items: center;
+  padding: 0 15px;
+}
+
+::v-deep .el-button--primary {
+  //background-color: $main_color !important;
+}
+
+::v-deep .el-button--default {
+  background-color: #f8f8fa;
+  border: none;
 }
 
 ::v-deep .el-input__inner {
-  height: 30px;
-  line-height: 30px;
+  height: 34px;
+  line-height: 34px;
+  //color: #a7a7a7;
 }
 
-::v-deep .el-input__inner:focus {
-  border-color: $main_color;
+::v-deep .el-dialog__body {
+  padding: 20px 100px !important;
+}
+
+::v-deep .workDialogVisible .el-dialog__body {
+  padding: 20px 20px !important;
+}
+
+::v-deep .defectDialogVisible .el-dialog__body {
+  padding: 20px 20px !important;
+}
+
+::v-deep .importPickerClass .el-dialog__body {
+  padding: 20px 20px !important;
+}
+
+::v-deep .el-dialog__footer {
+  display: flex;
+  justify-content: flex-end;
 }
 
 ::v-deep .el-table .caret-wrapper {
@@ -1093,57 +1158,25 @@
 }
 
 ::v-deep .cell {
-  display: flex !important;
-  align-items: center !important;
-  justify-content: space-between !important;
-}
-
-::v-deep .el-button--text {
-  color: $main_color;
-  font-size: 14px;
-  cursor: pointer;
-}
-
-.operationClass {
-  height: 23px;
   display: flex;
-  justify-content: space-between;
   align-items: center;
+  justify-content: space-between;
 }
 
-.el-icon-share {
-  color: $main_color;
-  cursor: pointer;
+::v-deep .el-table::before {
+  height: 0;
 }
 
-.el-checkbox.is-bordered.is-checked {
-  border-color: $main_color;
+::v-deep .el-table__body-wrapper {
+  background-color: #f8f8fa;
 }
 
-::v-deep .el-radio__input.is-checked .el-radio__inner {
-  border-color: $main_color;
-  background: $main_color;
+::v-deep .el-table__body .el-table__row.hover-row td {
+  background-color: #eaecef;
 }
 
-::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner {
-  border-color: $main_color;
-  background: $main_color;
-}
-
-::v-deep .el-checkbox__input.is-checked + .el-checkbox__label {
-  color: $main_color !important;
-}
-
-::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered {
-  margin: 10px 30px 0px 0;
-}
-
-::v-deep .el-radio__input.is-checked + .el-radio__label {
-  color: $main_color;
-}
-
-::v-deep .el-radio.is-bordered + .el-radio.is-bordered {
-  margin: 10px 30px 0px 0;
+::v-deep .el-form--inline .el-form-item__label {
+  color: #a7a7a7;
 }
 
 .body ::v-deep .el-divider {
@@ -1156,24 +1189,29 @@
   margin-bottom: 0;
 }
 
-::v-deep .el-input__inner:focus {
-  border-color: $main_color;
+.userDialogVisible ::v-deep .el-form-item {
+  margin-bottom: 0;
 }
 
-::v-deep .el-select .el-input__inner:focus {
-  border-color: $main_color;
+.tableFixed {
+  ::v-deep .el-table__fixed-right {
+    height: 100% !important;
+  }
+
+  ::v-deep .el-table__fixed {
+    height: 100% !important;
+  }
+}
+</style>
+<style>
+.osloading{
+  font-size: 26px !important;
 }
 
-::v-deep .el-select-dropdown__item.selected {
-  color: $main_color;
+.el-loading-text{
+  font-size: 26px !important;
 }
-
-::v-deep .el-checkbox__inner:hover {
-  border-color: $main_color;
+.el-table .custom-row {
+  background: #f8f8fa;
 }
-
-::v-deep .el-textarea__inner:focus {
-  border-color: $main_color;
-}
-
 </style>

--
Gitblit v1.9.3