Commit 5efc1d1c by 无尘

fix: 修改统计

parent 6cd2957d
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.58652d16462e489b89ac98c8e4123dcc.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.b5eaa657e5a0591deb86.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.1b0d1c4a3af4aeb6c6a1.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.22e6adf8007e01bbf3157b70826fba17.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.5cc53883183b56d483d5.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.1b0d1c4a3af4aeb6c6a1.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([40],{"2O6k":function(e,t){},gncU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Ke24"),n=a("mvHQ"),o=a.n(n),r=a("P9l9"),s=a("3E4D"),c=a("Ch4/"),l={name:"custom-dialog",props:{showDayDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:"自定义列表字段"}},data:function(){return{repProjectName:"haoban-manage-web",enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,customDialog:!1,customData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("hideDayDialog")},customConfirm:function(){this.setFieldList()},setFieldList:function(){var e=this,t=[];e.customData.forEach(function(a){a.fieldList.forEach(function(a){t.push({enterpriseId:e.enterpriseId,showType:1,userId:e.userId,relateId:a.relateId,selectFlag:a.selectFlag?1:0})})});var a={fieldJson:o()(t),enterpriseId:e.enterpriseId,showType:1,userId:e.userId};Object(r.e)("/haoban-app-attence-web/attence-field-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return s.a.showmsg("报表有新的设置项,点击按钮更新报表内容","success"),void e.$emit("hideDayDialog");c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getFieldList:function(){var e=this,t={enterpriseId:e.enterpriseId,userId:e.userId,showType:1};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.forEach(function(e){e.fieldList&&e.fieldList.forEach(function(e){e.selectFlag=1==e.selectFlag,e.editFlag=1==e.editFlag})}),void(e.customData=a.result);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{showDayDialog:function(e,t){this.customDialog=e,this.getFieldList()},customType:function(e,t){e&&this.getCardList()}},mounted:function(){this.customDialog=this.showDayDialog,this.getFieldList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:e.customTitle,visible:e.customDialog,width:"761px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"custom-dialog__checkbox"},[a("el-form",{ref:"form",attrs:{"label-width":"110px"}},e._l(e.customData,function(t,i){return a("el-form-item",{key:i+"cate",attrs:{label:t.categoryName+":"}},[t.fieldList&&t.fieldList.length?e._l(t.fieldList,function(t){return a("el-checkbox",{key:t.fieldId,attrs:{disabled:t.editFlag,name:"type"},model:{value:t.selectFlag,callback:function(a){e.$set(t,"selectFlag",a)},expression:"item.selectFlag"}},[e._v(e._s(t.fieldName))])}):e._e()],2)}))],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.customConfirm}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(l,d,!1,function(e){a("tjj9")},"data-v-04240b66",null).exports,p=a("PI0u"),f={name:"app-detail",components:{commonDetailTop:i.a,dayFieldSelect:u},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,activeId:"1",topMenuData:[{id:"1",name:"每日统计"}],conditionObj:{attenceGroupName:"",choiceDate:""},tableHeader:[],tableData:[{}],currentPage:1,pageSize:20,total:0,showDayDialog:!1,choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,i=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}}}},methods:{changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},toTableSet:function(){this.showDayDialog=!0},hideDayDialog:function(){this.showDayDialog=!1},toInput:Object(p.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getTableList(this.brandId)},getDayFields:function(e){var t=this,a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,userId:t.userId,showType:1};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",a).then(function(e){var a=e.data;if(1==a.errorCode){var i=[];return a.result.forEach(function(e){i.push({categoryCode:e.categoryCode,categoryName:e.categoryName,fieldList:e.fieldList?e.fieldList.filter(function(e){return 1==e.selectFlag}):[]})}),t.tableHeader=i||[],void t.getTableList()}c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.brandId)},toUpdateSet:function(){this.currentPage=1,this.getDayFields(this.brandId)},getTableList:function(e){var t=this;t.conditionObj.choiceDate||(t.conditionObj.choiceDate=[]);var a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,userName:t.conditionObj.attenceGroupName,startDate:t.conditionObj.choiceDate[0],endDate:t.conditionObj.choiceDate[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(r.e)("/haoban-app-attence-web/attence-total-day",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.clockLL=e.clockLL?JSON.parse(e.clockLL):[],e.endClock=e.endClock?JSON.parse(e.endClock):[],e.startClock=e.startClock?JSON.parse(e.startClock):[]}),t.tableData=a.result.list||[],t.total=a.result.total,void console.log(t.tableData);c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){}},mounted:function(){this.$emit("showTab","11"),this.brandId&&1!=this.brandId&&(this.activeBrand=this.brandId),this.getDayFields(this.brandId)}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20",style:{width:"calc(100% - 20px)"}},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入考勤组/人员名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.attenceGroupName);var a}},model:{value:e.conditionObj.attenceGroupName,callback:function(t){e.$set(e.conditionObj,"attenceGroupName",t)},expression:"conditionObj.attenceGroupName"}}),e._v(" "),a("el-date-picker",{staticClass:"search-date m-l-10",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.choiceDate,callback:function(t){e.$set(e.conditionObj,"choiceDate",t)},expression:"conditionObj.choiceDate"}})],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.toTableSet}},[e._v("设置报表")]),a("el-button",{staticClass:"p-l-10",attrs:{type:"primary"},on:{click:e.toUpdateSet}},[e._v("更新报表")])],1)])])]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"calc(100% - 20px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[e._l(e.tableHeader,function(t,i){return[t.fieldList.length?a("el-table-column",{key:i+"cate",attrs:{fixed:"基本信息"==t.categoryName,label:t.categoryName}},[e._l(t.fieldList,function(t,i){return["clockAddress"!=t.relateId&&"endClock"!=t.relateId&&"startClock"!=t.relateId&&"clockLL"!=t.relateId&&"attenceType"!=t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"}}):e._e(),e._v(" "),"startClock"==t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.startClock,function(t,i){return a("span",{key:i+"clcok"},[e._v(e._s(t.clockStartTime||"--")+" "),a("br")])})}}])}):e._e(),e._v(" "),"endClock"==t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.endClock,function(t,i){return a("span",{key:i+"clcok"},[e._v(e._s(t.clockEndTime||"--")+" "),a("br")])})}}])}):e._e(),e._v(" "),"clockLL"==t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.clockLL,function(t,i){return a("span",{key:i+"clcok"},[e._v(" "+e._s(0==i?"上班:":"下班:")+e._s(t.longitude?t.longitude:"-")+e._s(t.latitude?t.latitude:"-")),a("br")])})}}])}):e._e(),e._v(" "),"clockAddress"==t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.clockAddress,function(t,i){return a("span",{key:i+"address"},[e._v(" "+e._s(t||"--")),a("br")])})}}])}):e._e(),e._v(" "),"attenceType"==t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.attenceType?"固定班制":"排班制")+"\n ")]}}])}):e._e()]})],2):e._e()]})],2),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1),e._v(" "),a("day-field-select",{attrs:{showDayDialog:e.showDayDialog},on:{hideDayDialog:e.hideDayDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(f,h,!1,function(e){a("2O6k")},"data-v-461ca5e9",null);t.default=g.exports},tjj9:function(e,t){}});
\ No newline at end of file
webpackJsonp([40],{dfk0:function(e,t){},gncU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Ke24"),o=a("mvHQ"),n=a.n(o),r=a("P9l9"),s=a("3E4D"),c=a("Ch4/"),l={name:"custom-dialog",props:{showDayDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:"自定义列表字段"}},data:function(){return{repProjectName:"haoban-manage-web",enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,customDialog:!1,customData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("hideDayDialog")},customConfirm:function(){this.setFieldList()},setFieldList:function(){var e=this,t=[];e.customData.forEach(function(a){a.fieldList.forEach(function(a){t.push({enterpriseId:e.enterpriseId,showType:1,userId:e.userId,relateId:a.relateId,selectFlag:a.selectFlag?1:0})})});var a={fieldJson:n()(t),enterpriseId:e.enterpriseId,showType:1,userId:e.userId};Object(r.e)("/haoban-app-attence-web/attence-field-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return s.a.showmsg("报表有新的设置项,点击按钮更新报表内容","success"),void e.$emit("hideDayDialog");c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getFieldList:function(){var e=this,t={enterpriseId:e.enterpriseId,userId:e.userId,showType:1};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.forEach(function(e){e.fieldList&&e.fieldList.forEach(function(e){e.selectFlag=1==e.selectFlag,e.editFlag=1==e.editFlag})}),void(e.customData=a.result);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{showDayDialog:function(e,t){this.customDialog=e,this.getFieldList()},customType:function(e,t){e&&this.getCardList()}},mounted:function(){this.customDialog=this.showDayDialog,this.getFieldList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:e.customTitle,visible:e.customDialog,width:"761px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"custom-dialog__checkbox"},[a("el-form",{ref:"form",attrs:{"label-width":"110px"}},e._l(e.customData,function(t,i){return a("el-form-item",{key:i+"cate",attrs:{label:t.categoryName+":"}},[t.fieldList&&t.fieldList.length?e._l(t.fieldList,function(t){return a("el-checkbox",{key:t.fieldId,attrs:{disabled:t.editFlag,name:"type"},model:{value:t.selectFlag,callback:function(a){e.$set(t,"selectFlag",a)},expression:"item.selectFlag"}},[e._v(e._s(t.fieldName))])}):e._e()],2)}))],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.customConfirm}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(l,d,!1,function(e){a("tjj9")},"data-v-04240b66",null).exports,p=a("PI0u"),h={name:"app-detail",components:{commonDetailTop:i.a,dayFieldSelect:u},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,activeId:"1",topMenuData:[{id:"1",name:"每日统计"}],conditionObj:{attenceGroupName:"",choiceDate:""},tableHeader:[],tableData:[{}],currentPage:1,pageSize:20,total:0,showDayDialog:!1,choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,i=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}}}},methods:{changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},toTableSet:function(){this.showDayDialog=!0},hideDayDialog:function(){this.showDayDialog=!1},toInput:Object(p.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getTableList(this.brandId)},getDayFields:function(e){var t=this,a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,userId:t.userId,showType:1};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",a).then(function(e){var a=e.data;if(1==a.errorCode){var i=[];return a.result.forEach(function(e){i.push({categoryCode:e.categoryCode,categoryName:e.categoryName,fieldList:e.fieldList?e.fieldList.filter(function(e){return 1==e.selectFlag}):[]})}),t.tableHeader=i||[],void t.getTableList()}c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.brandId)},toUpdateSet:function(){this.currentPage=1,this.getDayFields(this.brandId)},getTableList:function(e){var t=this;t.conditionObj.choiceDate||(t.conditionObj.choiceDate=[]);var a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,userName:t.conditionObj.attenceGroupName,startDate:t.conditionObj.choiceDate[0],endDate:t.conditionObj.choiceDate[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(r.e)("/haoban-app-attence-web/attence-total-day",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.clockLL=e.clockLL?JSON.parse(e.clockLL):[],e.endClock=e.endClock?JSON.parse(e.endClock):[],e.startClock=e.startClock?JSON.parse(e.startClock):[]}),t.tableData=a.result.list||[],t.total=a.result.total,void console.log(t.tableData);c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){}},mounted:function(){this.$emit("showTab","11"),this.brandId&&1!=this.brandId&&(this.activeBrand=this.brandId),this.getDayFields(this.brandId)}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20",style:{width:"calc(100% - 20px)"}},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入考勤组/人员名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.attenceGroupName);var a}},model:{value:e.conditionObj.attenceGroupName,callback:function(t){e.$set(e.conditionObj,"attenceGroupName",t)},expression:"conditionObj.attenceGroupName"}}),e._v(" "),a("el-date-picker",{staticClass:"search-date m-l-10",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.choiceDate,callback:function(t){e.$set(e.conditionObj,"choiceDate",t)},expression:"conditionObj.choiceDate"}})],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.toTableSet}},[e._v("设置报表")]),a("el-button",{staticClass:"p-l-10",attrs:{type:"primary"},on:{click:e.toUpdateSet}},[e._v("更新报表")])],1)])])]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"calc(100% - 20px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[e._l(e.tableHeader,function(t,i){return[t.fieldList.length?a("el-table-column",{key:i+"cate",attrs:{fixed:"基本信息"==t.categoryName,label:t.categoryName}},[e._l(t.fieldList,function(t,i){return["endClock"!=t.relateId&&"startClock"!=t.relateId&&"clockLL"!=t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"}}):e._e(),e._v(" "),"startClock"==t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.startClock,function(t,i){return a("span",{key:i+"clcok"},[e._v(e._s(t.clockStartTime||"--"))])})}}])}):e._e(),e._v(" "),"endClock"==t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.endClock,function(t,i){return a("span",{key:i+"clcok"},[e._v(e._s(t.clockEndTime||"--"))])})}}])}):e._e(),e._v(" "),"clockLL"==t.relateId?a("el-table-column",{key:i+"field",attrs:{label:t.fieldName,prop:t.relateId,"min-width":"112"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.clockLL,function(t,i){return a("span",{key:i+"clcok"},[e._v(" "+e._s(0==i?"上班:":"下班:")+e._s(t.longitude?t.longitude:"--")+e._s(t.latitude?t.latitude:"--")),a("br")])})}}])}):e._e()]})],2):e._e()]})],2),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1),e._v(" "),a("day-field-select",{attrs:{showDayDialog:e.showDayDialog},on:{hideDayDialog:e.hideDayDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,f,!1,function(e){a("dfk0")},"data-v-73e25f49",null);t.default=g.exports},tjj9:function(e,t){}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={103:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"2baca21202cf454cd7b0",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"b5e24a58d047a2ec70f5",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"dce1b92c12422c24e840",15:"f093bfa2c07851d1c168",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"d50ec99b96f7acbb4d42",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"4a1c52078d154a141023",28:"70cb3f87bd69723dbd41",29:"c5bb15e8e1bd17cdc0f7",30:"feb81cd112a60d4701eb",31:"20f69d688df3827843c5",32:"0c7863fa05e5c75053c3",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"e64c33855b455bcdd9a2",36:"8615782328f743c5f783",37:"8d599976023acb79bef4",38:"6620399d71206af0621b",39:"d4c5c80a09712ce552be",40:"bf494f662eed5b762aa1",41:"17121c9227dddf24b37d",42:"54f2f4850c109391114a",43:"fb46c0bad10552e7ef89",44:"3d32c7e1954754671303",45:"c0accd45711184d0044d",46:"785c8076b8d217da747e",47:"b477848570e876912bdb",48:"32a6d29de6b93cd9201c",49:"1a7182d9cdf2e08ff7f0",50:"4235ecfe09e1fc4e1ca4",51:"2f363aaad04264e9f159",52:"d56e883ddcbef7c6b221",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"9551ae81326c57064dec",72:"cb1b3985b92be4556fc1",73:"b6b1fb51b601c0fafcda",74:"6206c00744e77bc84fec",75:"93eb5a61daaa3a1df425",76:"78e5a422e9fecbbd255a",77:"b3f7cf4d2b54d306c522",78:"1fc3472c5f95a0a66979",79:"69811ba75d1fceae9737",80:"12442b543aff65f2c05d",81:"00a94b58ac2affb758dc",82:"1fa56152d6bdcfd4ec14",83:"976088a6ee120b8caa17",84:"45dae077c86a1a0050ff",85:"0c7635a15cceae31d981",86:"d0d0607a424156f2d88d",87:"aee44c25b8d252c44b6e",88:"6583c4b0dc7a8f908fa2",89:"8d513b9c9d7970a612c0",90:"57319965505945b3ae7e",91:"446342439ce97b19c84f",92:"09a5823b00d6180576b9",93:"e801fdd8bbd27a68d8ee",94:"c50da77d4e1d5a44b971",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={103:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"2baca21202cf454cd7b0",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"b5e24a58d047a2ec70f5",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"dce1b92c12422c24e840",15:"f093bfa2c07851d1c168",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"d50ec99b96f7acbb4d42",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"4a1c52078d154a141023",28:"70cb3f87bd69723dbd41",29:"c5bb15e8e1bd17cdc0f7",30:"feb81cd112a60d4701eb",31:"20f69d688df3827843c5",32:"0c7863fa05e5c75053c3",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"e64c33855b455bcdd9a2",36:"8615782328f743c5f783",37:"8d599976023acb79bef4",38:"6620399d71206af0621b",39:"d4c5c80a09712ce552be",40:"3f7ef19fc45541f0694c",41:"17121c9227dddf24b37d",42:"54f2f4850c109391114a",43:"fb46c0bad10552e7ef89",44:"3d32c7e1954754671303",45:"c0accd45711184d0044d",46:"785c8076b8d217da747e",47:"b477848570e876912bdb",48:"32a6d29de6b93cd9201c",49:"1a7182d9cdf2e08ff7f0",50:"4235ecfe09e1fc4e1ca4",51:"2f363aaad04264e9f159",52:"d56e883ddcbef7c6b221",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"9551ae81326c57064dec",72:"cb1b3985b92be4556fc1",73:"b6b1fb51b601c0fafcda",74:"6206c00744e77bc84fec",75:"93eb5a61daaa3a1df425",76:"78e5a422e9fecbbd255a",77:"b3f7cf4d2b54d306c522",78:"1fc3472c5f95a0a66979",79:"69811ba75d1fceae9737",80:"12442b543aff65f2c05d",81:"00a94b58ac2affb758dc",82:"1fa56152d6bdcfd4ec14",83:"976088a6ee120b8caa17",84:"45dae077c86a1a0050ff",85:"0c7635a15cceae31d981",86:"d0d0607a424156f2d88d",87:"aee44c25b8d252c44b6e",88:"6583c4b0dc7a8f908fa2",89:"8d513b9c9d7970a612c0",90:"57319965505945b3ae7e",91:"446342439ce97b19c84f",92:"09a5823b00d6180576b9",93:"e801fdd8bbd27a68d8ee",94:"c50da77d4e1d5a44b971",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2019-12-25 17:00:14 * @LastEditTime : 2019-12-26 10:58:28
--> -->
<!-- <!--
...@@ -31,20 +31,35 @@ ...@@ -31,20 +31,35 @@
<template v-for="(pItem, pIndex) in tableHeader"> <template v-for="(pItem, pIndex) in tableHeader">
<el-table-column v-if="pItem.fieldList.length" :fixed="pItem.categoryName == '基本信息' ? true : false" :label="pItem.categoryName" :key="pIndex + 'cate'"> <el-table-column v-if="pItem.fieldList.length" :fixed="pItem.categoryName == '基本信息' ? true : false" :label="pItem.categoryName" :key="pIndex + 'cate'">
<template v-for="(item, index) in pItem.fieldList"> <template v-for="(item, index) in pItem.fieldList">
<el-table-column v-if="item.relateId != 'endClock' && item.relateId != 'startClock' && item.relateId != 'clockLL'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112"> </el-table-column> <el-table-column v-if="item.relateId != 'clockAddress' && item.relateId != 'endClock' && item.relateId != 'startClock' && item.relateId != 'clockLL' && item.relateId != 'attenceType'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112"> </el-table-column>
<!-- 上班打卡 -->
<el-table-column v-if="item.relateId == 'startClock'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112"> <el-table-column v-if="item.relateId == 'startClock'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="(ele, key) in scope.row.startClock" :key="key + 'clcok'">{{ ele.clockStartTime || '--' }}</span> <span v-for="(ele, key) in scope.row.startClock" :key="key + 'clcok'">{{ ele.clockStartTime || '--' }} <br /></span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 下班打卡 -->
<el-table-column v-if="item.relateId == 'endClock'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112"> <el-table-column v-if="item.relateId == 'endClock'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="(ele, key) in scope.row.endClock" :key="key + 'clcok'">{{ ele.clockEndTime || '--' }}</span> <span v-for="(ele, key) in scope.row.endClock" :key="key + 'clcok'">{{ ele.clockEndTime || '--' }} <br /></span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 打卡经纬度 -->
<el-table-column v-if="item.relateId == 'clockLL'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112"> <el-table-column v-if="item.relateId == 'clockLL'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="(ele, key) in scope.row.clockLL" :key="key + 'clcok'"> {{ key == 0 ? '上班:' : '下班:' }}{{ !!ele.longitude ? ele.longitude : '--' }}{{ !!ele.latitude ? ele.latitude : '--' }}<br /></span> <span v-for="(ele, key) in scope.row.clockLL" :key="key + 'clcok'"> {{ key == 0 ? '上班:' : '下班:' }}{{ !!ele.longitude ? ele.longitude : '-' }}{{ !!ele.latitude ? ele.latitude : '-' }}<br /></span>
</template>
</el-table-column>
<!-- 考勤地址 -->
<el-table-column v-if="item.relateId == 'clockAddress'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112">
<template slot-scope="scope">
<span v-for="(ele, key) in scope.row.clockAddress" :key="key + 'address'"> {{ !!ele ? ele : '--' }}<br /></span>
</template>
</el-table-column>
<!-- 考勤类型 -->
<el-table-column v-if="item.relateId == 'attenceType'" :label="item.fieldName" :key="index + 'field'" :prop="item.relateId" min-width="112">
<template slot-scope="scope">
{{ scope.row.attenceType == 1 ? '固定班制' : '排班制' }}
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment