mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-99666e1e"],{1148:function(e,t,r){"use strict";var a=r("5926"),n=r("577e"),i=r("1d80"),c=RangeError;e.exports=function(e){var t=n(i(this)),r="",o=a(e);if(o<0||o===1/0)throw new c("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},"1d5e":function(e,t,r){"use strict";var a=r("c7eb"),n=r("5530"),i=r("1da1"),c=r("d4ec"),o=r("bee2"),s=r("262e"),d=r("2caf"),u=r("2ff6"),p={defaultEdit:"/api/terminal/default/edit",defaultQuery:"/api/terminal/default/query",count:"/api/terminal/count",personDel:"/api/terminal/persons/delete"},l=function(e){Object(s["a"])(r,e);var t=Object(d["a"])(r);function r(){return Object(c["a"])(this,r),t.apply(this,arguments)}return Object(o["a"])(r,[{key:"defaultEdit",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c,o=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=o.length>1&&void 0!==o[1]?o[1]:{},i=Object.assign(t),e.next=5,this.$ajax(p.defaultEdit,i,Object(n["a"])({tip:"配置成功"},r));case 5:return c=e.sent,e.abrupt("return",c);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"defaultQuery",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,n,i,c=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},n=Object.assign(t),e.next=5,this.$ajax(p.defaultQuery,n,r);case 5:return i=e.sent,e.abrupt("return",{deviceInfo:i.data||[]});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"count",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c,o=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=o.length>1&&void 0!==o[1]?o[1]:{},i=Object.assign(t),e.next=5,this.$ajax(p.count,i,Object(n["a"])({},r));case 5:return c=e.sent,e.abrupt("return",c.data);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"personDel",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c,o=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=o.length>1&&void 0!==o[1]?o[1]:{},i=Object.assign(t),e.next=5,this.$ajax(p.personDel,i,Object(n["a"])({},r));case 5:return c=e.sent,e.abrupt("return",c);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(u["a"]);t["a"]=new l},2453:function(e,t,r){"use strict";var a=r("c7eb"),n=r("5530"),i=r("1da1"),c=r("d4ec"),o=r("bee2"),s=r("262e"),d=r("2caf"),u=(r("b680"),r("a15b"),r("2ff6")),p={openpage:"/acs/record/door/open",openExport:"/acs/record/door/open/export",temperaturepage:"/acs/record/temperature/abnormal",temperatureExport:"/acs/record/temperature/abnormal/export",idfPage:"/acs/record/recog-record",idfExport:"/acs/record/person-card/export",commonExport:"/acs/record/recog-record/export"},l=function(e){Object(s["a"])(r,e);var t=Object(d["a"])(r);function r(){var e;return Object(c["a"])(this,r),e=t.apply(this,arguments),e.OPEN_DOOR_TYPE=e.GFgetTypeConfig("OPEN_DOOR_TYPE",{type:"colorText"}),e}return Object(o["a"])(r,[{key:"openpage",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c,o=this,s=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},i=Object.assign(t,{}),e.next=5,this.$ajax(p.openpage,i,Object(n["a"])({addTime:{start:"startTime",end:"endTime"}},r));case 5:return c=e.sent,e.abrupt("return",this.rPage(c.data,(function(e){var t,r,a;return{openDoorTypeStr:e.openDoorType,openDoorTypeObj:o.OPEN_DOOR_TYPE[e.openDoorTypeCode],deviceLocaltionStr:e.districtName+" "+e.areaName,issucees:1===e.recordResult,tempIsExceeded:!(!e.tempThreshold||!e.tempScore)&&e.tempScore>e.tempThreshold,score:e.score&&(null===(t=e.score)||void 0===t?void 0:t.toFixed(1)),tempScore:e.tempScore?(null===(r=e.tempScore)||void 0===r?void 0:r.toFixed(1))+"°C":"",tempThreshold:e.tempThreshold?e.tempThreshold.toFixed(1):"",threshold:e.threshold&&(null===(a=e.threshold)||void 0===a?void 0:a.toFixed(1)),recognitionTimeStr:o.GFdateFormat(e.recognitionTime),isApp:"APP"===e.openDoorTypeCode,isGuardCard:"GUARD_CARD"===e.openDoorTypeCode||"FACE_GUARD_CARD"===e.openDoorTypeCode,organizationNamesStr:(e.organizationNames||[]).join("、")}})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"temperaturepage",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c,o=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=o.length>1&&void 0!==o[1]?o[1]:{},i=Object.assign(t,{}),e.next=5,this.$ajax(p.temperaturepage,i,Object(n["a"])({addTime:{start:"startTime",end:"endTime"}},r));case 5:return c=e.sent,e.abrupt("return",this.rPage(c.data,(function(e){var t;return{tempScoreStr:"体温".concat(e.tempScore,"℃"),score:null===(t=100*e.score)||void 0===t?void 0:t.toFixed(1),deviceLocaltionStr:e.districtName+" "+e.areaName}})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"openExport",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},i=Object.assign(t,{}),e.abrupt("return",this.rExportPrompt({url:p.openExport,data:i,options:Object(n["a"])(Object(n["a"])({},r),{},{addTime:{start:"startTime",end:"endTime"}})}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"temperatureExport",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},i=Object.assign(t,{}),e.abrupt("return",this.rExportPrompt({url:p.temperatureExport,data:i,options:Object(n["a"])(Object(n["a"])({},r),{},{addTime:{start:"startTime",end:"endTime"}})}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"idfPage",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c,o=this,s=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},i=Object.assign(t,{compareType:"cIdf"===r.idfType?2:1}),e.next=5,this.$ajax(p.idfPage,i,Object(n["a"])({addTime:{start:"startTime",end:"endTime"}},r));case 5:return c=e.sent,e.abrupt("return",this.rPage(c.data,(function(e){return{issucees:1===e.recognitionResult,score:(100*e.score).toFixed(1)+"%",tempScore:e.tempScore?e.tempScore.toFixed(1)+"°C":"",tempThreshold:e.tempThreshold?e.tempThreshold.toFixed(1):"",threshold:e.threshold.toFixed(1),recognitionTimeStr:o.GFdateFormat(e.recognitionTime),mode:"cIdf"===r.idfType?"1:1":"1:N",areaNameStr:e.districtName&&e.areaName&&e.districtName+" "+e.areaName}})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"idfExport",value:function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(){var t,r,i,c,o=arguments;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=o.length>1&&void 0!==o[1]?o[1]:{},i="cIdf"===r.idfType?p.idfExport:p.commonExport,c=Object.assign(t,{compareType:"cIdf"===r.idfType?2:1}),e.abrupt("return",this.rExportPrompt({url:i,data:c,options:Object(n["a"])(Object(n["a"])({},r),{},{addTime:{start:"startTime",end:"endTime"}})}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(u["a"]);t["a"]=new l},7650:function(e,t,r){"use strict";var a=r("ade3"),n=r("c7eb"),i=r("1da1"),c=r("2909"),o=r("5530"),s=r("d4ec"),d=r("bee2"),u=r("262e"),p=r("2caf"),l=(r("b0c0"),r("d3b7"),r("6062"),r("3ca3"),r("ddb0"),r("159b"),r("4de4"),r("d81d"),r("caad"),r("2532"),r("9ab4")),h=r("b412"),v=r("1d5e"),f=r("60a3");t["a"]=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,b=void 0===r?"searchList":r,m=t.span,j=void 0===m?[]:m,O=t.userFn,g=void 0!==O&&O,y=function(e){Object(u["a"])(r,e);var t=Object(p["a"])(r);function r(){var e;return Object(s["a"])(this,r),e=t.apply(this,arguments),e.options={},e.deviceFormItems=[{type:"select",name:"districtIds",contentAttrs:{multiple:!0},showHidden:!0},{type:"cascader",name:"areaIds",itemAttrs:{label:"安装区域"},colAttrs:{span:j[0]},contentAttrs:{props:{multiple:!0,label:"name",value:"id",emitPath:!1,checkStrictly:!0},"collapse-tags":!0,"show-all-levels":!1,placeholder:"请选择安装区域"}},{type:"select",name:"deviceIds",itemAttrs:{label:"安装设备"},colAttrs:{span:j[1]},contentAttrs:{filterable:!0,multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:"请选择安装设备"}}],e}return Object(d["a"])(r,[{key:"created",value:function(){g||(this[b]=Object(o["a"])({districtId:[],districtIds:[],deviceIds:[],areaIds:[]},this[b]),this.options=Object(o["a"])({deviceIds:[],areaIds:[]},this.options)),this.getAreaIds()}},{key:"_devicechangeData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.deviceKey,a=void 0===r?"deviceInfo":r,n=this.GFdeepclone(e),i=n[a]||[],s=new Set,d=new Set;return i.forEach((function(e){s.add(e.deviceId),d.add(e.areaId)})),Object(o["a"])(Object(o["a"])({},n),{},{deviceIds:Object(c["a"])(s),areaIds:Object(c["a"])(d)})}},{key:"_getDefaultDevice",value:function(){var e=Object(i["a"])(Object(n["a"])().mark((function e(t){var r,a,i,c,o,s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v["a"].defaultQuery({userType:t});case 2:return r=e.sent,a=this._devicechangeData(r||[]),i=a.deviceIds,c=void 0===i?[]:i,o=a.areaIds,s=void 0===o?[]:o,this[b].areaIds=s,this[b].deviceIds=c,e.abrupt("return",{deviceIds:c,areaIds:s});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAreaIds",value:function(){var e=this;this.$ajax("/sysetting/deviceArea/tree",{}).then((function(t){e[b].areaIds=[],e.options.areaIds=[],e.options.areaIds=t.data}))}},{key:"getDistrictId",value:function(e){return this.$ajax("/component/device/district/get/sub",{id:e})}},{key:"getDistrictId1",value:function(e){var t=this;this.$ajax("/component/device/district/list",{}).then((function(e){var r=t.GFmapping(e.data,{label:"districtName",value:"id"});t.options.districtId=Object(h["a"])(r,{parentKey:"parentId",childrenKey:"children"})}))}},{key:"getDeviceIds",value:function(e){var t=this;e&&e.length>0?this.$ajax("/component/device/list",{areaIds:e,districtId:this[b].districtId[this[b].districtId.length-1]}).then((function(e){t.options.deviceIds=t.GFmapping(e.data,{label:"deviceName",value:"id"}),t.setSelectDeviceIds(t.options.deviceIds)})):(this[b].deviceIds=[],this.options.deviceIds=[])}},{key:"setSelectDeviceIds",value:function(e){this[b].deviceIds=this[b].deviceIds.filter((function(t){return e.some((function(e){return e.value===t}))}))}},{key:"_getDeviceCode",value:function(){var e=this;return this.options.deviceIds.filter((function(t){return e[b].deviceIds.includes(t.deviceId)})).map((function(e){return e.deviceCode}))}},{key:"_addDeviceCode",value:function(){this[b].deviceCodes=this._getDeviceCode()}}]),r}(f["h"]);return y=Object(l["a"])([Object(f["a"])({watch:(e={},Object(a["a"])(e,"".concat(b,".districtId"),(function(e){e.length>0?this[b].districtIds=[e[e.length-1]]:this[b].districtIds=[]})),Object(a["a"])(e,"".concat(b,".areaIds"),(function(e){this.getDeviceIds(e)})),e)})],y),y}},a15b:function(e,t,r){"use strict";var a=r("23e7"),n=r("e330"),i=r("44ad"),c=r("fc6a"),o=r("a640"),s=n([].join),d=i!==Object,u=d||!o("join",",");a({target:"Array",proto:!0,forced:u},{join:function(e){return s(c(this),void 0===e?",":e)}})},b680:function(e,t,r){"use strict";var a=r("23e7"),n=r("e330"),i=r("5926"),c=r("408a"),o=r("1148"),s=r("d039"),d=RangeError,u=String,p=Math.floor,l=n(o),h=n("".slice),v=n(1..toFixed),f=function(e,t,r){return 0===t?r:t%2===1?f(e,t-1,r*e):f(e*e,t/2,r)},b=function(e){var t=0,r=e;while(r>=4096)t+=12,r/=4096;while(r>=2)t+=1,r/=2;return t},m=function(e,t,r){var a=-1,n=r;while(++a<6)n+=t*e[a],e[a]=n%1e7,n=p(n/1e7)},j=function(e,t){var r=6,a=0;while(--r>=0)a+=e[r],e[r]=p(a/t),a=a%t*1e7},O=function(e){var t=6,r="";while(--t>=0)if(""!==r||0===t||0!==e[t]){var a=u(e[t]);r=""===r?a:r+l("0",7-a.length)+a}return r},g=s((function(){return"0.000"!==v(8e-5,3)||"1"!==v(.9,0)||"1.25"!==v(1.255,2)||"1000000000000000128"!==v(0xde0b6b3a7640080,0)}))||!s((function(){v({})}));a({target:"Number",proto:!0,forced:g},{toFixed:function(e){var t,r,a,n,o=c(this),s=i(e),p=[0,0,0,0,0,0],v="",g="0";if(s<0||s>20)throw new d("Incorrect fraction digits");if(o!==o)return"NaN";if(o<=-1e21||o>=1e21)return u(o);if(o<0&&(v="-",o=-o),o>1e-21)if(t=b(o*f(2,69,1))-69,r=t<0?o*f(2,-t,1):o/f(2,t,1),r*=4503599627370496,t=52-t,t>0){m(p,0,r),a=s;while(a>=7)m(p,1e7,0),a-=7;m(p,f(10,a,1),0),a=t-1;while(a>=23)j(p,1<<23),a-=23;j(p,1<<a),m(p,1,1),j(p,2),g=O(p)}else m(p,0,r),m(p,1<<-t,0),g=O(p)+l("0",s);return s>0?(n=g.length,g=v+(n<=s?"0."+l("0",s-n)+g:h(g,0,n-s)+"."+h(g,n-s))):g=v+g,g}})}}]); |