山水共长天一色 3 anos atrás
pai
commit
79de29ae04

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/config/index.js

@@ -1,7 +1,7 @@
 var path = require('path')
 
 //  var ip = '127.0.0.1'
-var ip = '192.168.2.20'
+var ip = '192.168.2.25'
 // var ip = '47.100.37.243' 
 
 // var os = require('os'), ip = '', ifaces = os.networkInterfaces() // 获取本机ip

+ 4 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -149,7 +149,7 @@
                     {{scope.row.progress==null?"-":scope.row.progress}}%
                 </template>
             </el-table-column>
-            <el-table-column label="操作" width="320"  align="center">
+            <el-table-column label="操作" width="350" align="left">
                 <template slot-scope="scope">
                     <el-button v-if="permissions.projectManagement || user.id==scope.row.creatorId" size="mini"  @click="subProject(scope.row)">子项目</el-button>
                     <el-button size="mini" v-if="permissions.projectManagement || user.id==scope.row.inchargerId || user.id==scope.row.creatorId" type="primary" @click="handleAdd(scope.$index, scope.row)">编辑</el-button>
@@ -2114,6 +2114,9 @@ a {
 
 </style>
 <style>
+.customdropdown{
+    margin-left: 10px;
+}
 .customdropdown .el-dropdown__caret-button{
     height: 27px;
 }

+ 3 - 18
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -1921,12 +1921,9 @@
     },
     tableListener(){
       let that = this;
-      // this.$refs.maTable.bodyWarpper 
       let dom = that.$refs.hasworkTbl.bodyWrapper;
-    //   console.log(dom)
       	  // 添加scroll监听事件
           dom.addEventListener("scroll", function () {
-          // scrollHeight-scrollTop-clientHeight=0 用来判断滚动条到底部
             const scrollDistance = dom.scrollHeight - dom.scrollTop - dom.clientHeight;
             if (scrollDistance < 2) {
               if (that.monthworkDateS.length < that.monthworkDateS1.length) {
@@ -1937,7 +1934,6 @@
                   that.monthTotalPage * that.monthTotalLages,
                   that.monthTotalLages
                 );
-                // console.log(infoList, '将要合并的数据')
                 // 数据添加
                 that.monthworkDateS = that.monthworkDateS.concat(infoList);
               }
@@ -1946,13 +1942,10 @@
     },
     showMonthNotWorkTime() {
       this.monthTotalPage = 0,
-    //   console.log("exportMembNotWorkHours",this.WorktimeDatepickValue);
         this.tbload = true
       this.http.post(
-        // "/report/getUserDailyWorkTime",
         "/report/getNoReportUserList",
         {
-          // month: this.date,
           startDate: this.WorktimeDatepickValue[0],
           endDate: this.WorktimeDatepickValue[1],
         },
@@ -1960,24 +1953,22 @@
           if (res.code == "ok") {
               this.tbload = false
             this.monthNotWorkDate = res.data;
-            // this.monthNotWorkDateS = this.monthNotWorkDate
-            // console.log("data",res.data);
-            // console.log("monthNotWorkDate", this.monthNotWorkDate);
             this.monthnotworkDateS1 = res.data
             this.monthnotTotal = res.data.length
+            // 2222111
+            // var infoList = []
             if (this.monthnotworkDateS1.length > 20) {
                 this.monthNotWorkDateS = this.monthnotworkDateS1.slice(0,20);
             } else {
                 this.monthNotWorkDateS = this.monthnotworkDateS1
             }
-            
+            this.monthNotWorkDateS = infoList;
             // 判断
             if (this.monthnotworkDateS1.length > 0) {
                 setTimeout(() => {
                     this.tableListenernot()
                 }, 1000);
             }
-            // this.$forceUpdate();
             this.$nextTick(function(){
                 this.$refs.hasworkTbl2.doLayout();
             });
@@ -1994,24 +1985,18 @@
     },
     tableListenernot(){
       let that = this;
-      // this.$refs.maTable.bodyWarpper 
       let dom = that.$refs.hasworkTbl2.bodyWrapper;
-    //   console.log(dom2)
-      	  // 添加scroll监听事件
           dom.addEventListener("scroll", function () {
           // scrollHeight-scrollTop-clientHeight=0 用来判断滚动条到底部
             const scrollDistance2 = dom.scrollHeight - dom.scrollTop - dom.clientHeight;
             if (scrollDistance2 < 2) {
               if (that.monthNotWorkDateS.length < that.monthnotworkDateS1.length) {
                 that.monthnotTotalPage++; //当前页数自增
-                // console.log(that.monthnotworkDateS1.length, that.monthNotWorkDateS.length, that.monthnotTotalPage, that.monthnotTotalLages, that.monthnotTotalPage * that.monthnotTotalLages)
                 var arrList = JSON.parse(JSON.stringify(that.monthnotworkDateS1))
                 var infoList = arrList.splice(
                   that.monthnotTotalPage * that.monthnotTotalLages,
                   that.monthnotTotalLages
                 );
-                // console.log(infoList, '将要合并的数据')
-                // 数据添加
                 that.monthNotWorkDateS = that.monthNotWorkDateS.concat(infoList);
               }
             }