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
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-65f11610"],{1148:function(e,t,r){"use strict";var n=r("a691"),a=r("1d80");e.exports="".repeat||function(e){var t=String(a(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}},"1d5e":function(e,t,r){"use strict";r("d3b7"),r("4ae1"),r("25f0");var n=r("f3f3"),a=(r("96cf"),r("c964")),i=r("276c"),c=r("e954"),o=r("920b"),s=r("e1a7"),u=r("f20d"),d=r("2ff6");function p(e){function t(){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(e){return!1}}return function(){var r,n=Object(u["a"])(e);if(t()){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 l={defaultEdit:"/api/terminal/default/edit",defaultQuery:"/api/terminal/default/query",count:"/api/terminal/count",personDel:"/api/terminal/persons/delete"},f=function(e){Object(o["a"])(r,e);var t=p(r);function r(){return Object(i["a"])(this,r),t.apply(this,arguments)}return Object(c["a"])(r,[{key:"defaultEdit",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.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]:{},a=Object.assign(t),e.next=5,this.$ajax(l.defaultEdit,a,Object(n["a"])({tip:"配置成功"},r));case 5:return i=e.sent,e.abrupt("return",i);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(a["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},n=Object.assign(t),e.next=5,this.$ajax(l.defaultQuery,n,r);case 5:return a=e.sent,e.abrupt("return",{deviceInfo:a.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(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.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]:{},a=Object.assign(t),e.next=5,this.$ajax(l.count,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",i.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(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.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]:{},a=Object.assign(t),e.next=5,this.$ajax(l.personDel,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(d["a"]);t["a"]=new f},2453:function(e,t,r){"use strict";r("b6802"),r("d3b7"),r("4ae1"),r("25f0");var n=r("f3f3"),a=(r("96cf"),r("c964")),i=r("276c"),c=r("e954"),o=r("920b"),s=r("e1a7"),u=r("f20d"),d=r("2ff6");function p(e){function t(){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(e){return!1}}return function(){var r,n=Object(u["a"])(e);if(t()){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 l={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"},f=function(e){Object(o["a"])(r,e);var t=p(r);function r(){var e;return Object(i["a"])(this,r),e=t.apply(this,arguments),e.OPEN_DOOR_TYPE=e.GFgetTypeConfig("OPEN_DOOR_TYPE",{type:"colorText"}),e}return Object(c["a"])(r,[{key:"openpage",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=this,o=arguments;return regeneratorRuntime.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]:{},a=Object.assign(t,{}),e.next=5,this.$ajax(l.openpage,a,Object(n["a"])({addTime:{start:"startTime",end:"endTime"}},r));case 5:return i=e.sent,e.abrupt("return",this.rPage(i.data,(function(e){var t,r,n;return{openDoorTypeStr:e.openDoorType,openDoorTypeObj:c.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===(n=e.threshold)||void 0===n?void 0:n.toFixed(1)),recognitionTimeStr:c.GFdateFormat(e.recognitionTime),isApp:"APP"===e.openDoorTypeCode,isGuardCard:"GUARD_CARD"===e.openDoorTypeCode||"FACE_GUARD_CARD"===e.openDoorTypeCode}})));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(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.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]:{},a=Object.assign(t,{}),e.next=5,this.$ajax(l.temperaturepage,a,Object(n["a"])({addTime:{start:"startTime",end:"endTime"}},r));case 5:return i=e.sent,e.abrupt("return",this.rPage(i.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(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},a=Object.assign(t,{}),e.abrupt("return",this.rExportPrompt({url:l.openExport,data:a,options: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(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},a=Object.assign(t,{}),e.abrupt("return",this.rExportPrompt({url:l.temperatureExport,data:a,options: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(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=this,o=arguments;return regeneratorRuntime.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]:{},a=Object.assign(t,{compareType:"cIdf"===r.idfType?2:1}),e.next=5,this.$ajax(l.idfPage,a,Object(n["a"])({addTime:{start:"startTime",end:"endTime"}},r));case 5:return i=e.sent,e.abrupt("return",this.rPage(i.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:c.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(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.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]:{},a="cIdf"===r.idfType?l.idfExport:l.commonExport,i=Object.assign(t,{compareType:"cIdf"===r.idfType?2:1}),e.abrupt("return",this.rExportPrompt({url:a,data:i,options: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}(d["a"]);t["a"]=new f},"408a":function(e,t,r){var n=r("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},"45fc":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").some,i=r("a640"),c=r("ae40"),o=i("some"),s=c("some");n({target:"Array",proto:!0,forced:!o||!s},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},7650:function(e,t,r){"use strict";r("4de4"),r("4160"),r("caad"),r("d81d"),r("45fc"),r("b0c0"),r("d3b7"),r("4ae1"),r("25f0"),r("6062"),r("2532"),r("3ca3"),r("159b"),r("ddb0");var n=r("fc11"),a=(r("96cf"),r("c964")),i=r("d0ff"),c=r("f3f3"),o=r("276c"),s=r("e954"),u=r("920b"),d=r("e1a7"),p=r("f20d"),l=r("9ab4"),f=r("b412"),h=r("1d5e"),v=r("60a3");function m(e){function t(){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(e){return!1}}return function(){var r,n=Object(p["a"])(e);if(t()){var a=Object(p["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(d["a"])(this,r)}}t["a"]=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,d=void 0===r?"searchList":r,p=t.span,g=void 0===p?[]:p,b=t.userFn,y=void 0!==b&&b,x=function(e){Object(u["a"])(r,e);var t=m(r);function r(){var e;return Object(o["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:g[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:g[1]},contentAttrs:{filterable:!0,multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:"请选择安装设备"}}],e}return Object(s["a"])(r,[{key:"created",value:function(){y||(this[d]=Object(c["a"])({districtId:[],districtIds:[],deviceIds:[],areaIds:[]},this[d]),this.options=Object(c["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,n=void 0===r?"deviceInfo":r,a=this.GFdeepclone(e),o=a[n]||[],s=new Set,u=new Set;return o.forEach((function(e){s.add(e.deviceId),u.add(e.areaId)})),Object(c["a"])({},a,{deviceIds:Object(i["a"])(s),areaIds:Object(i["a"])(u)})}},{key:"_getDefaultDevice",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){var r,n,a,i,c,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h["a"].defaultQuery({userType:t});case 2:return r=e.sent,n=this._devicechangeData(r||[]),a=n.deviceIds,i=void 0===a?[]:a,c=n.areaIds,o=void 0===c?[]:c,this[d].areaIds=o,this[d].deviceIds=i,e.abrupt("return",{deviceIds:i,areaIds:o});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[d].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(f["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[d].districtId[this[d].districtId.length-1]}).then((function(e){t.options.deviceIds=t.GFmapping(e.data,{label:"deviceName",value:"id"}),t.setSelectDeviceIds(t.options.deviceIds)})):(this[d].deviceIds=[],this.options.deviceIds=[])}},{key:"setSelectDeviceIds",value:function(e){this[d].deviceIds=this[d].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[d].deviceIds.includes(t.deviceId)})).map((function(e){return e.deviceCode}))}},{key:"_addDeviceCode",value:function(){this[d].deviceCodes=this._getDeviceCode()}}]),r}(v["h"]);return x=Object(l["a"])([Object(v["a"])({watch:(e={},Object(n["a"])(e,"".concat(d,".districtId"),(function(e){e.length>0?this[d].districtIds=[e[e.length-1]]:this[d].districtIds=[]})),Object(n["a"])(e,"".concat(d,".areaIds"),(function(e){this.getDeviceIds(e)})),e)})],x),x}},b6802:function(e,t,r){"use strict";var n=r("23e7"),a=r("a691"),i=r("408a"),c=r("1148"),o=r("d039"),s=1..toFixed,u=Math.floor,d=function(e,t,r){return 0===t?r:t%2===1?d(e,t-1,r*e):d(e*e,t/2,r)},p=function(e){var t=0,r=e;while(r>=4096)t+=12,r/=4096;while(r>=2)t+=1,r/=2;return t},l=s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){s.call({})}));n({target:"Number",proto:!0,forced:l},{toFixed:function(e){var t,r,n,o,s=i(this),l=a(e),f=[0,0,0,0,0,0],h="",v="0",m=function(e,t){var r=-1,n=t;while(++r<6)n+=e*f[r],f[r]=n%1e7,n=u(n/1e7)},g=function(e){var t=6,r=0;while(--t>=0)r+=f[t],f[t]=u(r/e),r=r%e*1e7},b=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+c.call("0",7-r.length)+r}return t};if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(h="-",s=-s),s>1e-21)if(t=p(s*d(2,69,1))-69,r=t<0?s*d(2,-t,1):s/d(2,t,1),r*=4503599627370496,t=52-t,t>0){m(0,r),n=l;while(n>=7)m(1e7,0),n-=7;m(d(10,n,1),0),n=t-1;while(n>=23)g(1<<23),n-=23;g(1<<n),m(1,1),g(2),v=b()}else m(0,r),m(1<<-t,0),v=b()+c.call("0",l);return l>0?(o=v.length,v=h+(o<=l?"0."+c.call("0",l-o)+v:v.slice(0,o-l)+"."+v.slice(o-l))):v=h+v,v}})}}]); |