mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window["webpackJsonp_smart-attendance"]=window["webpackJsonp_smart-attendance"]||[]).push([["chunk-13678d6f"],{"13de":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"head-text-wrap"},[t.text&&t.hidden?r("div",{staticClass:"head-text",style:{width:t.textWidth}},[t._v(t._s(t.text))]):t._e(),t._t("default")],2)},a=[],i=(r("d3b7"),r("4ae1"),r("25f0"),r("276c")),o=r("920b"),s=r("e1a7"),u=r("f20d"),c=r("9ab4"),l=r("60a3");function d(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(s["a"])(this,r)}}var p=function(t){Object(o["a"])(r,t);var e=d(r);function r(){return Object(i["a"])(this,r),e.apply(this,arguments)}return r}(l["h"]);Object(c["a"])([Object(l["e"])({default:"",type:String})],p.prototype,"text",void 0),Object(c["a"])([Object(l["e"])({default:"100px",type:String})],p.prototype,"textWidth",void 0),Object(c["a"])([Object(l["e"])({default:!1,type:Boolean})],p.prototype,"hidden",void 0),p=Object(c["a"])([l["a"]],p);var h=p,f=h,m=(r("d261"),r("2877")),y=Object(m["a"])(f,n,a,!1,null,"eb230058",null);e["a"]=y.exports},"2d2e":function(t,e,r){},3782:function(t,e,r){"use strict";r("99af"),r("4160"),r("a15b"),r("d3b7"),r("4ae1"),r("25f0"),r("159b");var n=r("f3f3"),a=(r("96cf"),r("c964")),i=r("276c"),o=r("e954"),s=r("2c4c"),u=r("920b"),c=r("e1a7"),l=r("f20d"),d=r("fc11"),p=r("2ff6");function h(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(l["a"])(t);if(e()){var a=Object(l["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(c["a"])(this,r)}}var f={dayAttend:"/api/report/attend/detail",dayAttendMine:"/api/report/attend/detail/self",monthAttend:"/api/report/attend/statistical",monthAttendMine:"/api/report/attend/statistical/self",record:"/api/report/attend/record",dayExport:"/api/report/attend/detail/export",dayExportMine:"/api/report/attend/detail/export/self",monthExport:"/api/report/attend/statistical/export",monthExportMine:"/api/report/attend/statistical/export/self"},m=function(t){Object(u["a"])(r,t);var e=h(r);function r(){var t;Object(i["a"])(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),Object(d["a"])(Object(s["a"])(t),"RULE_TYPE",t.GFgetTypeConfig("RULE_TYPE_REPORT",{type:"colorText"})),Object(d["a"])(Object(s["a"])(t),"ATTEND_NEW_INIT_STATUS",t.GFgetTypeConfig("ATTEND_NEW_INIT_STATUS",{type:"colorText"})),Object(d["a"])(Object(s["a"])(t),"ATTEND_NEW_INIT_STATUS_NAME",t.GFgetTypeConfig("ATTEND_NEW_INIT_STATUS",{type:"name"})),Object(d["a"])(Object(s["a"])(t),"ATTEND_NEW_END_STATUS",t.GFgetTypeConfig("ATTEND_NEW_END_STATUS",{type:"colorText"})),Object(d["a"])(Object(s["a"])(t),"ATTEND_NEW_END_STATUS_NAME",t.GFgetTypeConfig("ATTEND_NEW_END_STATUS",{type:"name"})),t}return Object(o["a"])(r,[{key:"mineEntry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,a=n.type,i=void 0===a?"day":a,o=e.isMine,s={};return o?(delete t.orgIds,delete t.personIds,s.url=r[1],"month"===i&&(delete t.currentPage,delete t.rowsOfPage)):s.url=r[0],delete e.isMine,s}},{key:"dayAttend",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,i,o,s,u=this,c=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(e,{}),i=this.mineEntry(a,r,[f.dayAttend,f.dayAttendMine],{type:"day"}),t.next=6,this.$ajax(i.url,a,Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}}));case 6:return o=t.sent,s=this.GFdateFormat(new Date,"YYYY-MM-DD"),t.abrupt("return",this.rPage(o.data,(function(t){var e,r=u.GFdateFormat(t.attDay,"YYYY-MM-DD")===s,n=t.ruleStartWorkTime&&t.ruleEndWorkTime;return{attendDay:t.attDay,ruleTypeObj:u.RULE_TYPE[t.ruleType],initStatusObj:u.ATTEND_NEW_INIT_STATUS[t.initStatus],endStatusObj:r?{}:u.ATTEND_NEW_END_STATUS[t.endStatus],endStatusIsNormal:t.endStatus===u.ATTEND_NEW_END_STATUS_NAME["NORMAL"].value,initStatusIsNormal:t.initStatus===u.ATTEND_NEW_INIT_STATUS_NAME["NORMAL"].value,startWorkTimeStr:t.startWorkTime&&u.isSameDayStr(t.attDay,t.startWorkTime)+u.GFdateFormat(t.startWorkTime,"HH:mm"),endWorkTimeStr:t.endWorkTime&&u.isSameDayStr(t.attDay,t.endWorkTime)+u.GFdateFormat(t.endWorkTime,"HH:mm"),ruleWorkTimeStr:n&&"".concat(t.ruleStartWorkTime&&u.isSameDayStr(t.attDay,t.ruleStartWorkTime)," ").concat(u.GFdateFormat(t.ruleStartWorkTime,"HH:mm")||""," -").concat(t.ruleEndWorkTime&&u.isSameDayStr(t.attDay,t.ruleEndWorkTime)," ").concat(u.GFdateFormat(t.ruleEndWorkTime,"HH:mm")||""),isNowDay:r,labelNamesStr:null===(e=t.labelNames)||void 0===e?void 0:e.join(",")}})));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"isSameDayStr",value:function(t,e){return e&&t&&this.GFdateFormat(t,"DD")!==this.GFdateFormat(e,"DD")?"次日":""}},{key:"monthAttend",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,i,o,s,u=this,c=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(e,{}),i=r.isMine,o=this.mineEntry(a,r,[f.monthAttend,f.monthAttendMine],{type:"month"}),t.next=7,this.$ajax(o.url,a,Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}}));case 7:if(s=t.sent,!i){t.next=12;break}return t.abrupt("return",{isMine:i,total:0,datas:this.rQuery(s.data,(function(t){return{ruleTypeObj:u.RULE_TYPE[t.ruleType]}}))});case 12:return t.abrupt("return",this.rPage(s.data,(function(t){var e;return{ruleTypeObj:u.RULE_TYPE[t.ruleType],labelNamesStr:null===(e=t.labelNames)||void 0===e?void 0:e.join(",")}})));case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"record",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,i,o,s,u,c=this,l=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=l.length>0&&void 0!==l[0]?l[0]:{},r=l.length>1&&void 0!==l[1]?l[1]:{},a=Object.assign(e,{}),t.next=5,this.$ajax(f.record,a,Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}}));case 5:return i=t.sent,o=this.rQuery(i.data,(function(t){return{attendDayStr:c.GFdateFormat(t.attendDay,"YYYY-MM-DD")}})),s=[],u=[],o.forEach((function(t){s.push(t.attendDayStr),u.push(t.abnormal)})),t.abrupt("return",{xAxis:s.reverse(),datas:o,yData:u.reverse()});case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"dayExport",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,i,o=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},r=o.length>1&&void 0!==o[1]?o[1]:{},a=Object.assign(e,{}),i=this.mineEntry(a,r,[f.dayExport,f.dayExportMine],{type:"day"}),t.abrupt("return",this.rExportPrompt({url:i.url,data:a,options:Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}})},{message:"最多导出10000条,确定导出吗?"}));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"monthExport",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,i,o=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},r=o.length>1&&void 0!==o[1]?o[1]:{},a=Object.assign(e,{}),i=this.mineEntry(a,r,[f.monthExport,f.monthExportMine],{type:"month"}),t.abrupt("return",this.rExportPrompt({url:i.url,data:a,options:Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}})},{message:"最多导出10000条,确定导出吗?"}));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(p["a"]);e["a"]=new m},"45fc":function(t,e,r){"use strict";var n=r("23e7"),a=r("b727").some,i=r("a640"),o=r("ae40"),s=i("some"),u=o("some");n({target:"Array",proto:!0,forced:!s||!u},{some:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},"5de4":function(t,e,r){"use strict";r("d81d"),r("b0c0"),r("d3b7"),r("4ae1"),r("25f0");var n=r("f3f3"),a=(r("96cf"),r("c964")),i=r("276c"),o=r("e954"),s=r("920b"),u=r("e1a7"),c=r("f20d"),l=r("2ff6");function d(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(c["a"])(t);if(e()){var a=Object(c["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var p={manager:"/api/org/manager/gets",query:"/api/org/list",list:"/component/organization/list",getAllLabels:"/biology/label/getAllLabels",getImageStoreDetail:"/component/imagestore/detail",personProperties:"/component/person/properties/list"},h=function(t){Object(s["a"])(r,t);var e=d(r);function r(){return Object(i["a"])(this,r),e.apply(this,arguments)}return Object(o["a"])(r,[{key:"manager",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,n,a,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},n=Object.assign(e,{id:e.id||null}),t.next=5,this.$ajax(p.manager,n,r);case 5:return a=t.sent,t.abrupt("return",this.rQuery(a.data,(function(t){return{value:t.managerId,label:t.managerName}})));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"query",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,n,a,i,o,s=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},n=Object.assign(e,{orgName:e.orgName}),t.next=5,this.$ajax(p.query,n,r);case 5:return a=t.sent,i=this.rQuery(a.data,(function(t){return{label:t.orgName,value:t.id}})),o=this.listToTree(i,{parentKey:"parentId",childrenKey:"children"}),t.abrupt("return",{tree:o,list:i});case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"list",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,n,a,i,o,s=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},n=Object.assign(e),t.next=5,this.$ajax(p.list,n,r);case 5:return a=t.sent,i=this.rQuery(a.data,(function(t){return{label:t.name,value:t.id}})),o=this.listToTree(i,{parentKey:"parentId",childrenKey:"children"}),t.abrupt("return",{tree:o,list:i});case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAllLabels",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,n,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},r=a.length>1&&void 0!==a[1]?a[1]:{},t.next=4,this.$ajax(p.getAllLabels,e,r);case 4:return n=t.sent,t.abrupt("return",this.rQuery(n.data,(function(t){return{label:t.name,value:t.id}})));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getImageStoreDetail",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},t.next=4,this.$ajax(p.getImageStoreDetail,e,r);case 4:return a=t.sent,t.abrupt("return",this.rGet(a.data,(function(t){var e,r,a,i,o;return{includeOrganizations:null===(e=t.includeOrganizations)||void 0===e?void 0:e.map((function(t){return t.id})),excludeLabels:null===(r=t.excludeLabels)||void 0===r?void 0:r.map((function(t){return t.id})),includeLabels:null===(a=t.includeLabels)||void 0===a?void 0:a.map((function(t){return t.id})),excludePersons:null===(i=t.excludePersons)||void 0===i?void 0:i.map((function(t){return t.id})),includePersons:null===(o=t.includePersons)||void 0===o?void 0:o.map((function(t){return Object(n["a"])({},t,{objectId:t.id})}))}})));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"personProperties",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,n,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},r=a.length>1&&void 0!==a[1]?a[1]:{},t.next=4,this.$ajax(p.personProperties,e,r);case 4:return n=t.sent,t.abrupt("return",n.data);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(l["a"]);e["a"]=new h},a15b:function(t,e,r){"use strict";var n=r("23e7"),a=r("44ad"),i=r("fc6a"),o=r("a640"),s=[].join,u=a!=Object,c=o("join",",");n({target:"Array",proto:!0,forced:u||!c},{join:function(t){return s.call(i(this),void 0===t?",":t)}})},d261:function(t,e,r){"use strict";var n=r("2d2e"),a=r.n(n);a.a},eb9a:function(t,e,r){"use strict";r("4de4"),r("caad"),r("45fc"),r("b0c0"),r("d3b7"),r("4ae1"),r("25f0"),r("2532");var n=r("d0ff"),a=r("f3f3"),i=r("276c"),o=r("e954"),s=r("920b"),u=r("e1a7"),c=r("f20d"),l=r("9ab4"),d=r("b412"),p=r("5de4"),h=r("60a3");function f(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(c["a"])(t);if(e()){var a=Object(c["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}e["a"]=function(t){var e=t||{},r=e.name,u=void 0===r?"searchList":r,c=e.isGetOrgId,m=void 0===c||c,y=e.byLoginUser,v=void 0!==y&&y,b=e.label,g=void 0!==b&&b,T=function(t){Object(s["a"])(r,t);var e=f(r);function r(){var t;return Object(i["a"])(this,r),t=e.apply(this,arguments),t.deviceFormItems=[{type:"treeselect",name:"orgIds",itemAttrs:{label:"所属组织"},colAttrs:{},contentAttrs:{"value-consists-of":"ALL",noResultsText:"未搜索到结果",multiple:!0,limit:1,noOptionsText:"没有数据",clearable:!0,zIndex:1002,limitText:function(t){return"+ ".concat(t)},placeholder:"请选择所属组织"}},{type:"select",name:"labelIds",hidden:!g,itemAttrs:{label:"所属标签"},contentAttrs:{placeholder:"请选择所属标签",multiple:!0,"collapse-tags":!0,clearable:!0}},{type:"select",name:"personIds",itemAttrs:{label:"人员姓名"},colAttrs:{},contentAttrs:{filterable:!0,multiple:!0,clearable:!0,remote:!0,"remote-method":t.remoteSearch,"collapse-tags":!0,placeholder:"请输入人员姓名"}}],t.tempPersons=[],t.tempQueryString="",t.initFinish=!1,t.options=[],t}return Object(o["a"])(r,[{key:"created",value:function(){this[u]=Object(a["a"])({orgIds:[],personIds:[]},this[u]),g&&(this[u]=Object(a["a"])({labelIds:[]},this[u]),this.getAllLabels()),this.options=Object(a["a"])({orgIds:[],labelIds:[],personIds:[]},this.options),"searchList"===u&&m&&this.getOrgIds()}},{key:"orgIdsChange",value:function(t){(m||this.initFinish)&&(this[u].personIds=[],this.remoteSearch(this.tempQueryString)),this.initFinish=!0}},{key:"personIdsChange",value:function(t){this.tempPersons=this.options.personIds.filter((function(e){return t.includes(e.value)}))}},{key:"getAllLabels",value:function(){var t=this;p["a"].getAllLabels().then((function(e){t.options.labelIds=e}))}},{key:"getOrgIds",value:function(){var t=this;this.$ajax("/api/report/attend/org/list",{byLoginUser:v}).then((function(e){var r=t.GFmapping(e.data,{label:"name",value:"id",id:"id"});t.options.orgIds=Object(d["a"])(r,{parentKey:"parentId",childrenKey:"children"})})),this.remoteSearch(this.tempQueryString)}},{key:"setPersonOption",value:function(t){this.options.personIds=this.GFmapping(t,{label:"name",value:"id"}),this.addTempPersons(this.options.personIds)}},{key:"addTempPersons",value:function(t){var e,r=this.tempPersons.filter((function(e){return!t.some((function(t){return t.value===e.value}))}));this.options.personIds.unshift&&(e=this.options.personIds).unshift.apply(e,Object(n["a"])(r))}},{key:"remoteSearch",value:function(t){var e=this;if(this[u].orgIds&&0!==this[u].orgIds.length){this.tempQueryString=t;var r={currentPage:1,rowsOfPage:100,name:t,organizationIds:this[u].orgIds};this.$ajax("/component/person/page",r).then((function(t){e.setPersonOption(t.data.datas)}))}else this.setPersonOption([])}}]),r}(h["h"]);return Object(l["a"])([Object(h["i"])("".concat(u,".orgIds"))],T.prototype,"orgIdsChange",null),Object(l["a"])([Object(h["i"])("".concat(u,".personIds"))],T.prototype,"personIdsChange",null),T=Object(l["a"])([h["a"]],T),T}}}]); |