Browse Source

调整项目报表服务的侧边栏收起

Lijy 2 years ago
parent
commit
b859ec99cb

+ 3 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/corpreport/list.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
   <section>
   <section>
     <div>
     <div>
-    <div class="sidebars" ref="sidebars" style="width: 200px;display: block;background: #fff;overflow-y:auto;overflow-x:hidden;">
+    <div class="sidebars" ref="sidebars" style="width: 200px;display: block;background: #fff;">
       <div ref="abbisd" style="width: 100%;overflow: hidden;">
       <div ref="abbisd" style="width: 100%;overflow: hidden;">
         <el-col :span="12">
         <el-col :span="12">
           <el-menu
           <el-menu
@@ -1446,9 +1446,9 @@ export default {
     },
     },
     // 点击侧边栏事件
     // 点击侧边栏事件
     side() {
     side() {
-      if(this.$refs.side.style.left < '0px') {
+      if(this.$refs.side.style.left < '1px') {
         this.$refs.sidebars.style.width = '1px'
         this.$refs.sidebars.style.width = '1px'
-        this.$refs.sid.style.left = '0px'
+        this.$refs.sid.style.left = '1px'
         this.$refs.side.style.left = '1px'
         this.$refs.side.style.left = '1px'
         this.$refs.sideI.className = 'el-icon-arrow-right'
         this.$refs.sideI.className = 'el-icon-arrow-right'
         this.$refs.staff.style.margin = '5px 0px 0px 5px'
         this.$refs.staff.style.margin = '5px 0px 0px 5px'