PageSourceSearch

https://e.dituhui.com/static/js/5906.1e171312.chunk.js

js dituhui.com collected 2026-09-25 21:50:03 UTC 68,214 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksaas_web=self.webpackChunksaas_web||[]).push([[5906],{55278:function(e,t,n){var s=n(1413),a=n(15671),i=n(43144),r=n(60136),o=n(27277),l=n(47313),c=n(40197),d=n(44021),u=n(22808),p=n(60539),h=n(56253),m=n(46417),f=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,a.Z)(this,n),(s=t.call(this,e)).state={editName:"",nameValue:"",link:"",copied:!1,messiges:"",currIndex:0},s}return(0,i.Z)(n,[{key:"shouldComponentUpdate",value:function(e,t){return JSON.stringify(e.photoPath)!==JSON.stringify(this.props.photoPath)}},{key:"imgHandle",value:function(){this.props.imgHandle&&this.props.showPictureModal()}},{key:"render",value:function(){var e=this,t=this.props,n=t.currIndex,a=t.dots,i=t.dispType,r=t.width,o=t.height,l=this.props.photoPath,f={dots:a,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,fade:!0,initialSlide:n},g=[];return l.forEach((function(t,n){var s=[],a="";if(i){t&&t.photoDesc&&(a=(0,m.jsx)("div",{className:"disp",children:t.photoDesc},n+"d"));var d=t&&t.photoSize?t.photoSize:0;s.push((0,m.jsxs)("div",{className:"user",children:[(0,m.jsxs)("div",{className:"m",children:[(0,m.jsx)(p._H,{id:"basedata.uploadImage.uploadedAt"}),"\uff1a",t.createTime]}),(0,m.jsxs)("div",{className:"m",children:[(0,m.jsx)(p._H,{id:"basedata.uploadImage.imageQuality"}),"\uff1a",d+"M"]}),(0,m.jsxs)("div",{className:"m",children:[(0,m.jsx)(p._H,{id:"basedata.uploadImage.uploadedBy"}),"\uff1a",t.userName]})]},n+"u"))}var f="",v=(new Date).getTime(),y={filePath:t.photoPath,t:v};e.props.width&&(f="&width="+r+"&height="+o,y.width=r,y.height=o),g.push((0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"imgList",onClick:e.imgHandle.bind(e),children:(0,m.jsx)("span",{children:i?(0,m.jsx)("img",{src:c.jk.platform+"file/getFile?&filePath="+t.photoPath+f+"&token="+localStorage.token+"&ssm="+(0,h.Bj)(y)+"&t="+v,alt:""}):(0,m.jsx)("div",{className:"banner-item",style:{width:"100%",height:"100%",background:"url(".concat(c.jk.platform,"file/getFile?&filePath=").concat(t.photoPath).concat(f,"&token=").concat(localStorage.token,"&ssm=").concat((0,h.Bj)(y),"&t=").concat(v,") center / cover no-repeat")}})})}),(0,m.jsxs)("div",{className:"mes",children:[(0,m.jsx)("div",{className:"name",children:t.photoName}),a,s]}),(0,m.jsxs)("div",{className:i?"total total_top":"total total_bottom",children:[(0,m.jsx)(u.B,{type:"icon-image-fill",style:{fontSize:"16px"}}),(0,m.jsx)("span",{className:"text",children:n+1+" / "+l.length})]})]},n))})),(0,m.jsx)("div",{className:"imgSlick",children:(0,m.jsx)(d.default,(0,s.Z)((0,s.Z)({},f),{},{ref:"Slider",children:g}))})}}]),n}(l.Component);t.Z=f},73519:function(e,t,n){n.d(t,{Z:function(){return d}});var s=n(15671),a=n(43144),i=n(60136),r=n(27277),o=n(47313),l="style_blank-wrapper__cgwpj",c=n(46417),d=function(e){(0,i.Z)(o,e);var t=(0,r.Z)(o);function o(){return(0,s.Z)(this,o),t.apply(this,arguments)}return(0,a.Z)(o,[{key:"render",value:function(){return(0,c.jsxs)("div",{className:l,children:[(0,c.jsx)("img",{src:n(11266),alt:""}),(0,c.jsx)("p",{children:"\u6682\u65e0\u8bbf\u95ee\u6743\u9650"})]})}}]),o}(o.Component)},80215:function(e,t,n){var s,a=n(15671),i=n(43144),r=n(60136),o=n(27277),l=n(47313),c=n(66135),d=n(87998),u=n(72848),p=n(46417),h=(0,c.$j)((function(e){return{phoneLevel:e.team.phoneLevel}}),{})(s=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,a.Z)(this,n),(s=t.call(this,e)).state={},s}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.group,n=e.userInfo,s=n.info||this.props.data,a=s.name||(s.userName?s.userName:s.userAccount),i=n&&n.userPhoneNumber||n.info&&n.info.tel||n.tel;return(0,p.jsxs)("div",{className:"userInfo-cart",children:[(0,p.jsxs)("div",{className:"userInfo",children:[(0,p.jsx)("div",{className:"img",children:(0,p.jsx)("div",{className:"block",title:a,style:{background:s.iconColor||s.color},children:(0,p.jsx)(u.Z,{avatar:s.photo||s.userHead||s.avatar,name:s.userName,userAccount:s.userAccount,color:s.iconColor,diameter:58})})}),(0,p.jsxs)("div",{className:"messege",children:[(0,p.jsx)("div",{className:"userName",children:a}),(0,p.jsx)("div",{className:"mes",children:(0,p.jsx)(d.Z,{tel:i,encrypt:3!==this.props.phoneLevel})}),(0,p.jsx)("div",{className:"mes",children:t&&t.name})]})]}),this.props.children]})}}]),n}(l.Component))||s;t.Z=h},21526:function(e,t,n){n.d(t,{$r:function(){return m},AO:function(){return d},Gu:function(){return r},NG:function(){return h},ON:function(){return a},W6:function(){return i},Zz:function(){return u},a_:function(){return v},ak:function(){return c},gp:function(){return o},sl:function(){return f},un:function(){return l},xr:function(){return g},yC:function(){return p}});var s=n(24103);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.xF.commit("layer/getLayerTree","GET",{needForceRead:n},e,t,1)}function i(e,t,n){s.xF.commit("team/getTeamSettings","GET",e,t,n)}function r(e,t,n){s.xF.commit("team/getTeamUserInfo","GET",e,t,n,0)}function o(e,t,n){s.xF.commit("fence/getList","GET",e,t,n,9)}function l(e,t,n){s.xF.commit("area/getAreaById","GET",e,t,n,1)}
1function c(e,t,n){s.xF.commitUrl({url:"fence/bind",type:"POST",url_type:9,data:e,isSpecialParam:!1,success:t,error:n})}function d(e,t,n){s.xF.commitUrl({url:"fence/unbind",type:"POST",url_type:9,data:e,isSpecialParam:!1,success:t,error:n})}function u(e,t,n){s.xF.commit("list","GET",e,t,n,9)}function p(e,t,n){s.xF.commit("search","GET",e,t,n,9)}function h(e,t,n){s.xF.commit("groupUsers","GET",e,t,n,9)}function m(e,t,n){s.xF.commit("userTraceDetails","GET",e,t,n,9)}function f(e,t,n){s.xF.commit("trace/getDateTrace","GET",e,t,n,9)}function g(e,t,n){s.xF.commit("geo/getDistrictsByAdmincode","GET",e,t,n)}function v(e,t,n){s.xF.commit("fence/getAllWarnings","GET",e,t,n,9)}},53708:function(e,t,n){n.r(t),n.d(t,{default:function(){return Ge}});var s,a,i,r,o,l,c,d=n(15671),u=n(43144),p=n(60136),h=n(27277),m=(n(29955),n(66672)),f=n(47313),g=n(66135),v=(n(41102),n(49179)),y=(n(57367),n(79036)),x=(n(12594),n(50682)),j=(n(88301),n(32697)),b=(n(48384),n(74294)),I=(n(97173),n(25050)),N=n(4942),k=n(1413),w=(n(72330),n(65192)),Z=(n(98995),n(12008)),C=n(10054),S=n(71722),T=n(1505),M=n(86716),P=n(22808),L=n(70816),D=n.n(L),_=n(89217),E=n(46417),A=Z.Z.Item,U=w.Z.RangePicker,F={allowEmpty:!1,format:"HH:mm"},O=Array.from(Array(24),(function(e,t){return t})),V=Array.from(Array(60),(function(e,t){return t})),H=(0,g.$j)((function(e){return(0,k.Z)({visible:e.monitor.visible,monitorList:e.monitor.monitorList,loading:e.monitor.loading,isUpdate:e.monitor.isUpdate,selected:e.monitor.selected},(0,T.fz)(e))}),{_addMonitor:M.wI,_updateMonitor:M.kG,toggleVisible:M.Oh,getIsUpdate:M.c1})(s=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;(0,d.Z)(this,n);for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).state={name:e.props.selected&&e.props.isUpdate?e.props.initState.name:"\u76d1\u63a7\u7ec4".concat(e.props.monitorList.length+1),repeatType:1,repeatValue:[],excludeHolidays:!1,frequency:60,fenceWarning:0,fenceInType:1,fenceInValue:"",fenceOutType:1,fenceOutValue:"",fenceWarningDuration:0,startTime:D()("08:00","HH:mm"),endTime:D()("16:00","HH:mm"),fenceInEdit:!1,fenceOutEdit:!1},e.handleChange=function(t,n){e.setState((0,N.Z)({},t,n))},e.disStartHouse=function(){if(!e.state.endTime)return null;var t=e.state.endTime.hour();return O.slice(t+1)},e.disStartMinute=function(t){if(!e.state.endTime)return null;if(t<e.state.endTime.hour())return[];var n=e.state.endTime.minute();return V.slice(n)},e.disEndHouse=function(){if(!e.state.startTime)return null;var t=e.state.startTime.hour();return O.slice(0,t)},e.disEndMinute=function(t){if(!e.state.startTime)return null;if(t>e.state.startTime.hour())return[];var n=e.state.startTime.minute();return V.slice(0,n+1)},e.disabledDate=function(e){return e&&e<D()().subtract(1,"days")},e.toggleEdit=function(t){e.setState((function(e){return(0,N.Z)({},t,!e[t])}))},e.handleCancel=function(){e.props.toggleVisible(),e.props.getIsUpdate(!1)},e.handleSubmit=function(){var t=e.props,n=t.isUpdate,s=t._updateMonitor,a=t._addMonitor;n?s((0,k.Z)((0,k.Z)({},e.state),{},{id:e.props.selected})):a(e.state)},e}return(0,u.Z)(n,[{key:"componentWillMount",value:function(){this.props.isUpdate&&this.setState((0,k.Z)((0,k.Z)({},this.state),this.props.initState))}},{key:"render",value:function(){var e=this;return(0,E.jsx)(_.Z,{type:"simple",visible:!0,title:"".concat(this.props.isUpdate?"\u4fee\u6539":"\u65b0\u589e","\u76d1\u63a7\u7ec4"),width:420,confirmLoading:this.props.laoding,onOk:this.handleSubmit,onCancel:this.handleCancel,children:(0,E.jsx)("div",{className:"edit-monitoring",children:(0,E.jsxs)(Z.Z,{layout:"vertical",children:[(0,E.jsx)(A,{label:"\u76d1\u63a7\u7ec4\u540d\u79f0",children:(0,E.jsx)(m.Z,{placeholder:"\u8bf7\u8f93\u5165\u76d1\u63a7\u7ec4\u540d\u79f0",value:this.state.name,onChange:function(t){return e.handleChange("name",t.target.value)}})}),(0,E.jsxs)(A,{className:"time-picker",label:"\u76d1\u63a7\u65f6\u6bb5",children:[(0,E.jsx)(I.Z,(0,k.Z)((0,k.Z)({},F),{},{onChange:function(t){return e.handleChange("startTime",t)},value:this.state.startTime,disabledHours:this.disStartHouse,disabledMinutes:this.disStartMinute,dropdownClassName:"date-picker-top"})),(0,E.jsx)("span",{className:"time-split"}),(0,E.jsx)(I.Z,(0,k.Z)((0,k.Z)({},F),{},{onChange:function(t){return e.handleChange("endTime",t)},value:this.state.endTime,disabledHours:this.disEndHouse,disabledMinutes:this.disEndMinute,dropdownClassName:"date-picker-top"}))]}),(0,E.jsxs)(A,{className:"repetition-period",label:"\u91cd\u590d\u5468\u671f",children:[(0,E.jsx)(b.Z,{className:"select-type",value:this.state.repeatType.toString(),onChange:function(t){return e.handleChange("repeatType",+t)},children:Array.from(S.d1).map((function(e){return(0,E.jsx)(b.Z.Option,{children:e[1]},"".concat(e[0]))}))}),this.state.repeatType%2!==0&&(0,E.jsx)(j.Z,{className:"checkbox-type",checked:this.state.excludeHolidays,onChange:function(t){return e.handleChange("excludeHolidays",t.target.checked)},children:"\u6392\u9664\u6cd5\u5b9a\u8282\u5047\u65e5"})]}),2===this.state.repeatType&&(0,E.jsx)(A,{label:" ",className:"select-period",children:(0,E.jsxs)("div",{className:"box",children:[(0,E.jsx)(C.Z,{className:"arrow center"}),(0,E.jsx)("label",{children:"\u9009\u62e9\u5468\u671f"}),(0,E.jsx)(b.Z,{mode:"multiple",value:"string"===typeof this.state.repeatValue[0]?this.state.repeatValue:[],placeholder:"\u8bf7\u9009\u62e9\u5468\u671f",onCh
1ange:function(t){return e.handleChange("repeatValue",t)},children:S.ps.map((function(e){return(0,E.jsx)(b.Z.Option,{children:e},e)}))})]})}),3===this.state.repeatType&&(0,E.jsx)(A,{className:"select-time",children:(0,E.jsxs)("div",{className:"box",children:[(0,E.jsx)(C.Z,{className:"arrow center"}),(0,E.jsx)("label",{children:"\u9009\u62e9\u65f6\u95f4"}),(0,E.jsx)(U,{dropdownClassName:"date-picker-top",value:"object"===typeof this.state.repeatValue[0]?this.state.repeatValue:[],disabledDate:this.disabledDate,onChange:function(t){return e.handleChange("repeatValue",t)}})]})}),(0,E.jsx)(A,{label:"\u4e0a\u62a5\u9891\u7387",children:(0,E.jsx)(b.Z,{value:this.state.frequency.toString(),onChange:function(t){return e.handleChange("frequency",+t)},children:Array.from(S.BU).map((function(e){return(0,E.jsx)(b.Z.Option,{children:e[1]},e[0])}))})}),(0,E.jsxs)(A,{label:"\u56f4\u680f\u62a5\u8b66",children:[(0,E.jsx)(x.Z,{size:"small",checked:!!this.state.fenceWarning,onChange:function(t){return e.handleChange("fenceWarning",t)}}),"\u5f00\u542f",(0,E.jsx)("span",{className:"switch-info",children:"\uff08\u53ef\u5bf9\u8bbe\u7f6e\u7535\u5b50\u56f4\u680f\u7684\u6210\u5458\u8fdb\u884c\u8fdb\u51fa\u56f4\u680f\u62a5\u8b66\uff09"})]}),this.state.fenceWarning?(0,E.jsxs)(A,{label:"\u8fdb\u5165\u56f4\u680f",children:[(0,E.jsx)(y.ZP.Group,{value:this.state.fenceInType,onChange:function(t){e.setState({fenceInEdit:!1}),e.handleChange("fenceInType",t.target.value)},children:Array.from(S.Uw).map((function(t){return(0,E.jsx)(y.ZP,{disabled:4===t[0]&&4===e.state.fenceOutType,value:t[0],children:t[1]},t[0])}))}),1===this.state.fenceInType||4===this.state.fenceInType||this.state.fenceInEdit?null:(0,E.jsxs)("div",{className:"preview",onClick:function(){e.toggleEdit("fenceInEdit"),e.setState({fenceOutEdit:!1})},children:[(0,E.jsx)(C.Z,{className:"arrow ".concat(2===this.state.fenceInType?"center":"right")}),2===this.state.fenceInType&&this.state.fenceInValue&&"number"===typeof this.state.fenceInValue?(0,E.jsxs)("span",{children:["\u8fdb\u5165\u540e\u5ef6\u8fdf",this.state.fenceInValue,"\u5206\u949f\u9884\u8b66"]}):null,3===this.state.fenceInType&&this.state.fenceInValue&&"object"===typeof this.state.fenceInValue?(0,E.jsxs)("span",{children:[this.state.fenceInValue.format("HH:mm"),"\u4e4b\u540e\u8fdb\u5165\u56f4\u680f\u9884\u8b66"]}):null,(0,E.jsx)(P.B,{type:"icongeneral-compile-fill",className:"edit-icon"})]}),this.state.fenceInEdit?(0,E.jsxs)("div",{className:"edit",children:[(0,E.jsx)("div",{className:"ant-popover-arrow ".concat(2===this.state.fenceInType?"center":"right")}),(0,E.jsx)(P.B,{type:"icongeneral-close-line",onClick:function(){return e.toggleEdit("fenceInEdit")}}),2===this.state.fenceInType?(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"edit-input",children:[(0,E.jsx)("span",{children:"\u8fdb\u5165\u56f4\u680f\uff1a"}),(0,E.jsx)(v.Z,{min:0,onChange:function(t){return e.handleChange("fenceInValue",t)}}),"\u5206\u949f\u540e"]}),(0,E.jsx)("p",{className:"text",children:"\u63d0\u793a\uff1a\u5ef6\u8fdf\u65f6\u95f4\u4e00\u5b9a\u8981\u5927\u4e8e\u4e0a\u62a5\u9891\u7387\u65f6\u95f4\u624d\u6709\u610f\u4e49"})]}):(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"edit-input",children:[(0,E.jsx)("span",{children:"\u6700\u665a\u5165\u680f\u65f6\u95f4\uff1a"}),(0,E.jsx)(I.Z,{format:"HH:mm",dropdownClassName:"date-picker-top",onChange:function(t){return e.handleChange("fenceInValue",t)}})]}),(0,E.jsxs)("div",{className:"tips",children:[(0,E.jsx)("span",{children:"\u63d0\u793a\uff1a"}),(0,E.jsxs)("p",{children:["\u5728\u6700\u665a\u65f6\u95f4\u4e4b\u540e\u5165\u680f\u5373\u62a5\u8b66",(0,E.jsx)("br",{}),"\u63d0\u524d15\u5206\u949f\u63d0\u9192\u9884\u8b66"]})]})]})]}):null]}):null,this.state.fenceWarning?(0,E.jsxs)(A,{label:"\u79bb\u5f00\u56f4\u680f",children:[(0,E.jsx)(y.ZP.Group,{value:this.state.fenceOutType,onChange:function(t){return e.handleChange("fenceOutType",t.target.value)},children:Array.from(S.Uw).map((function(t){return(0,E.jsx)(y.ZP,{disabled:4===t[0]&&4===e.state.fenceInType,value:t[0],children:t[1]},t[0])}))}),1===this.state.fenceOutType||4===this.state.fenceOutType||this.state.fenceOutEdit?null:(0,E.jsxs)("div",{className:"preview",onClick:function(){e.toggleEdit("fenceOutEdit"),e.setState({fenceInEdit:!1})},children:[(0,E.jsx)(C.Z,{className:"arrow ".concat(2===this.state.fenceOutType?"center":"right")}),2===this.state.fenceOutType&&this.state.fenceOutValue&&"number"===typeof this.state.fenceOutValue?(0,E.jsxs)("span",{children:["\u79bb\u5f00\u540e\u5ef6\u8fdf",this.state.fenceOutValue,"\u5206\u949f\u9884\u8b66"]}):null,3===this.state.fenceOutType&&this.state.fenceOutValue&&"object"===typeof this.state.fenceOutValue?(0,E.jsxs)("span",{children:[this.state.fenceOutValue.format("HH:mm"),"\u4e4b\u524d\u79bb\u5f00\u56f4\u680f\u9884\u8b66"]}):null,(0,E.jsx)(P.B,{type:"icongeneral-compile-fill",className:"edit-icon"})]}),this.state.fenceOutEdit?(0,E.jsxs)("div",{className:"edit",children:[(0,E.jsx)("div",{className:"ant-popover-arrow ".concat(2===this.state.fenceOutType?"center":"right")}),(0,E.jsx)(P.B,{type:"icongeneral-close-line",onClick:function(){return e.toggleEdit("fenceOutEdit")}}),2===this.state.fenceOutType?(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"edit-input",children:[(0,E.jsx)("span",{children:"\u79bb\u5f00\u56f4\u680f\uff1a"}),(0,E.jsx)(v.Z,{min:0,onChange:function(t){return e.handleChange("fenceOutValue",t)}}),"\u5206\u949f\u540e"]}),(0,E.jsx)("p",{className:"text",children:"\u63d0\u793a\uff1a\u5ef6\u8fdf\u65f6\u95f4\u4e00\u5b9a\u8981\u5927\u4e8e\u4e0a\u62a5\u9891\u7387\u65f6\u95f4\u624d\u6709\u610f\u4e49"})]}):(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"edit-input",children:[(0,E.jsx)("span",{children:"\u6700\u65e9\u51fa\u680f\u65f6\u95f4\uff1a"}),(0,E.jsx)(I.Z,{format:"HH:mm",dropdownClassName:"date-picker-top",onChange:function(t){return e.handleChange("fenceOutValue",t)}})]}),(0,E.jsx)("p",{className:"text",children:"\u63d0\u793a\uff1a\u5728\u6700\u65e9\u51fa\u680f\u65f6\u95f4\u4e4b\u524d\u79bb\u5f00\u56f4\u680f\u5373\u62a5\u8b66"})]})]}):null]}):null,this.state.fenceWarning?(0,E.jsx)(A,{label:"\u9884\u8b66\u6301\u7eed\u65f6\u957f",children:(0,E.jsx)(b.Z,{value:this.state.fenceWarningDuration.toString(),onChange:function(t){return e.handleChange("fenceWarningDuration",+t)},children:Array.from(S.rt).map((function(e){return(0,E.jsx)(b.Z.Option,{children:e[1]},e[0])}))})}):null]})})})}}]),n}(f.Component))||s,B=H,W=(n(21589),n(98516)),R=n(69888),G=new Map([[2," / "],[3," \u81f3 "]]),z=(0,g.$j)((function(e){return(0,k.Z)({userInfo:e.todos.userInfo},(0,T.CC)(e))}),{_deleteMonitor:M.XY,toggleVisible:M.Oh,getIsUpdate:M.c1})(a=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;(0,d.Z)(this,n);for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).showConfirm=function(t){(0,W.Z.confirm)({icon:(0,E.jsx)(R.Z,{}),title:"\u786e\u8ba4\u5220\u9664\u76d1\u63a7\u7ec4\uff1f",onOk:function(){e.props._deleteMonitor(t)}})},e.handleEdit=function(){e.props.toggleVisible(),e.props.getIsUpdate(!0)},e}return(0,u.Z)(n,[{key:"render",value:function(){var e=this;return(0,E.jsx)("div",{children:this.props.selectedMonitor?(0,E.jsxs)("div",{className:"member-header",children:[(0,E.jsxs)("div",{className:"title",children:[(0,E.jsx)("span",{children:this.props.selectedMonitor.name}),this.props.userInfo&&this.props.userInfo.userRoleLevel<3&&(0,E.jsxs)("span",{children:[(0,E.jsxs)("span",{className:"btn",onClick:this.handleEdit,children:[(0,E.jsx)(P.B,{type:"icongeneral-compile-fill"}),"\u7f16\u8f91"]}),(0,E.jsxs)("span",{className:"btn",onClick:function(){return e.showConfirm(e.props.selectedMonitor.id)},children:[(0,E.jsx)(P.B,{type:"icongeneral-delete-fill"}),"\u5220\u9664"]})]})]}),(0,E.jsxs)("div",{className:"list-wrapper",children:[(0,E.jsxs)("ul",{className:"list",children:[(0,E.jsxs)("li",{children:[(0,E.jsx)("label",{children:"\u76d1\u63a7\u65f6\u6bb5\uff1a"}),(0,E.jsx)("span",{children:this.props.selectedMonitor.timeInterval}),1===this.props.selectedMonitor.repeatType?(0,E.jsx)("span",{className:"text",children:"\u6bcf\u5929"}):4===this.props.selectedMonitor.repeatType?(0,E.jsx)("span",{className:"text",children:"\u6cd5\u5b9a\u5de5\u4f5c\u65e5"}):(0,E.jsx)("span",{className:"text",children:this.props.selectedMonitor.repeatValue.split(",").join(G.get(this.props.selectedMonitor.repeatType))})]}),(0,E.jsxs)("li",{children:[(0,E.jsx)("label",{children:"\u4e0a\u62a5\u9891\u7387\uff1a"}),(0,E.jsxs)("span",{children:[this.props.selectedMonitor.frequency,"\u79d2"]})]}),(0,E.jsxs)("li",{children:[(0,E.jsx)("label",{children:"\u662f\u5426\u9884\u8b66\uff1a"}),(0,E.jsx)("span",{children:this.props.selectedMonitor.fenceWarning?"\u662f":"\u65e0"})]})]}),this.props.selectedMonitor.fenceWarning?(0,E.jsxs)("ul",{className:"list",children:[(0,E.jsxs)("li",{children:[(0,E.jsx)("label",{children:"\u8fdb\u5165\u56f4\u680f\uff1a"}),1===this.props.selectedMonitor.fenceInType?(0,E.jsx)("span",{children:"\u7acb\u5373\u9884\u8b66"}):2===this.props.selectedMonitor.fenceInType?(0,E.jsxs)("span",{children:["\u8fdb\u5165\u540e\u5ef6\u8fdf",this.props.selectedMonitor.fenceInValue,"\u5206\u949f\u9884\u8b66"]}):3===this.props.selectedMonitor.fenceInType?(0,E.jsxs)("span",{children:[this.props.selectedMonitor.fenceInValue,"\u4e4b\u540e\u8fdb\u5165\u56f4\u680f\u9884\u8b66"]}):(0,E.jsx)("span",{children:"\u4e0d\u9884\u8b66"})]}),(0,E.jsxs)("li",{children:[(0,E.jsx)("label",{children:"\u79bb\u5f00\u56f4\u680f\uff1a"}),1===this.props.selectedMonitor.fenceOutType?(0,E.jsx)("span",{children:"\u7acb\u5373\u9884\u8b66"}):2===this.props.selectedMonitor.fenceOutType?(0,E.jsxs)("span",{children:["\u79bb\u5f00\u540e\u5ef6\u8fdf",this.props.selectedMonitor.fenceOutValue,"\u5206\u949f\u9884\u8b66"]}):3===this.props.selectedMonitor.fenceOutType?(0,E.jsxs)("span",{children:[this.props.selectedMonitor.fenceOutValue,"\u4e4b\u524d\u79bb\u5f00\u56f4\u680f\u9884\u8b66"]}):(0,E.jsx)("span",{children:"\u4e0d\u9884\u8b66"})]}),(0,E.jsxs)("li",{children:[(0,E.jsx)("label",{children:"\u9884\u8b66\u6301\u7eed\u65f6\u957f\uff1a"}),this.props.selectedMonitor.fenceWarningDuration?(0,E.jsxs)("span",{children:[this.props.selectedMonitor.fenceWarningDuration,"\u5206\u949f"]}):(0,E.jsx)("span",{children:"\u4e0d\u9650"})]})]}):null]})]}):null})}}]),n}(f.Component))||a,X=z,K=(n(39116),n(72652)),$=(n(91375),n(57325)),q=(n(73540),n(39725)),J=n(72231),Q=n(72848),Y=n(87998),ee=[{color:"#7887A0",text:"\u672a\u76d1\u63a7"},{color:"#04CD71",text:"\u5728\u7ebf"},{color:"#FF3A30",text:"\u79bb\u7ebf"}],te=(0,g.$j)((function(e){return(0,k.Z)({monitorList:e.monitor.monitorList,selected:e.monitor.selected,selectedMember:e.monitor.selectedMember,userInfo:e.todos.userInfo,phoneLevel:e.team.phoneLevel},(0,T.x5)(e))}),{saveSelectedMember:M.Pf,_monitorSwitch:M.MY,showRailChange:M.WJ,saveRailMember:M.dy})(i=function(e){(0,p.Z)(s,e);var t=(0,h.Z)(s);function s(){var e;return(0,d.Z)(this,s),(e=t.call(this)).getScroll=function(){var t=document.querySelector(".member-list");t&&(e.scroll={x:!0,y:t.offsetHeight-140},e.setState({flag:!e.state.flag}))},e.getColumns=function(){var t=e.props.userInfo;return[{title:"\u5e8f\u53f7",width:55,dataIndex:"num",render:function(e,t,n){return n+1}},{title:"\u6210\u5458",width:200,dataIndex:"info",render:function(t){return(0,E.jsxs)("div",{className:"user-info",children:[(0,E.jsx)(Q.Z,(0,k.Z)({},t)),(0,E.jsxs)("div",{className:"text",children:[(0,E.jsx)("span",{children:t.name}),(0,E.jsx)("span",{className:"tel",children:(0,E.jsx)(Y.Z,{tel:t.tel,encrypt:3!==e.props.phoneLevel})})]})]})}},{title:"\u72b6\u6001",width:100,dataIndex:"status",render:function(e){return(0,E.jsx)("span",{style:{color:ee[e-1].color},children:ee[e-1].text})}},{title:"\u6700\u540e\u5728\u7ebf\u65f6\u95f4",width:130,dataIndex:"lastPoint",render:function(e,t){return 3===t.status&&(0,E.jsx)("span",{children:t.lastPoint&&t.lastPoint.time&&t.lastPoint.time.indexOf("1970")<0?t.lastPoint.time:""})}},{title:"\u76d1\u63a7\u5f00\u5173",width:130,dataIndex:"switch",render:function(n,s){return(0,E.jsx)(x.Z,{size:"small",disabled:t&&3===t.userRoleLevel,checked:!!n,onChange:function(t){return e.handleSwitch(t,s)}})}},{title:"\u7535\u5b50\u56f4\u680f",width:130,dataIndex:"rail",render:function(n,s){return t&&3===t.userRoleLevel?(0,E.jsx)("span",{className:"gray-color",children:"\u6307\u5b9a\u56f4\u680f"}):(0,E.jsx)("span",{className:"active-color",onClick:function(t){return e.goToRailPage(t,s)},children:"\u6307\u5b9a\u56f4\u680f"})}},{title:"\u5386\u53f2\u8f68\u8ff9",width:130,dataIndex:"history",render:function(t,n){return(0,E.jsx)("span",{className:"active-color",onClick:function(t){return e.goToHistoryLine(t,n)}
1,children:"\u67e5\u770b"})}}]},e.handleSwitch=function(t,n){var s={status:t,userIds:n.key,groupId:e.props.selected};e.props._monitorSwitch(s)},e.goToRailPage=function(t,n){t.preventDefault(),e.props.showRailChange(!0),e.props.saveRailMember(n)},e.goToHistoryLine=function(t,n){t.preventDefault(),e.props.saveRailMember(n),"outside"===J.mW.getCurrentLocation().pathname.split("/")[1]?J.mW.push("/outside/monitoring-personnel"):J.mW.push("/monitoring-personnel")},e.state={flag:!1},e.scroll={},e}return(0,u.Z)(s,[{key:"componentDidMount",value:function(){this.getScroll()}},{key:"render",value:function(){var e=this,t=this.props.monitorList.find((function(t){return t.id===e.props.selected})),s=null;this.props.userInfo&&this.props.userInfo.userRoleLevel<3&&(s={selectedRowKeys:this.props.selectedMember.map((function(e){return e.key})),onChange:function(t,n){return e.props.saveSelectedMember(n)}});var a=!1;"outside"===J.mW.getCurrentLocation().pathname.split("/")[1]&&(a=!0);var i=a?"\u4ee5\u4e0a\u6210\u5458\u5fc5\u987b\u4e0b\u8f7d\u4f7f\u7528\u201c\u6167\u5916\u52e4app\u201d\u624d\u53ef\u88ab\u76d1\u63a7\uff0c\u6210\u5458\u53ef\u8bbf\u95ee\u201c\u6167\u5916\u52e4app\u6216\u5c0f\u7a0b\u5e8f\u201d\u67e5\u770b\u4e2a\u4eba\u76d1\u63a7\u8f68\u8ff9":"\u63d0\u793a\uff1a\u4ee5\u4e0a\u6210\u5458\u5fc5\u987b\u4e0b\u8f7d\u4f7f\u7528\u201c\u5730\u56fe\u6167\u884c\u4e1a\u7248app\u201d\u624d\u53ef\u88ab\u76d1\u63a7";return(0,E.jsx)(E.Fragment,{children:t.groupUsers&&t.groupUsers.length?(0,E.jsxs)("div",{className:"list-table",children:[(0,E.jsx)(q.Z,{bordered:!0,size:"small",rowSelection:s,onRowClick:this.handleRowClick,scroll:this.scroll,columns:this.getColumns(),dataSource:this.props.memberList,pagination:!1}),(0,E.jsx)("div",{className:"info",children:i})]}):(0,E.jsxs)("div",{className:"no-result",children:[(0,E.jsx)("img",{src:n(99113),alt:"no"}),(0,E.jsx)("p",{children:"\u6682\u65e0\u76d1\u63a7\u4eba\u5458"}),this.props.userInfo&&this.props.userInfo.userRoleLevel<3&&(0,E.jsx)("span",{children:"\u6682\u65e0\u76d1\u63a7\u6210\u5458\uff0c\u8bf7\u5148\u9080\u8bf7\u6210\u5458\uff5e"})]})})}}]),s}(f.Component))||i,ne=te,se=n(69653),ae=["\u5168\u90e8\u6210\u5458 \xb7 ","\u672a\u76d1\u63a7\u6210\u5458 \xb7 ","\u5728\u7ebf\u6210\u5458 \xb7 ","\u79bb\u7ebf\u6210\u5458 \xb7 "],ie=(0,g.$j)((function(e){return(0,k.Z)({monitorList:e.monitor.monitorList,visible:e.monitor.inviteVisible,memberStatus:e.monitor.memberStatus,selectedMember:e.monitor.selectedMember,selected:e.monitor.selected,spin:e.monitor.spin,userInfo:e.todos.userInfo},(0,T.ap)(e))}),{saveInviteVisible:M.tU,_monitorSwitch:M.MY,saveMemberStatus:M.rU,_deleteGroupUser:M.BK})(r=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;(0,d.Z)(this,n);for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).handleClick=function(t){var n={status:"on"===t,userIds:e.props.selectedMember.map((function(e){return e.key})).join(","),groupId:e.props.selected};e.props._monitorSwitch(n)},e.showConfirm=function(){(0,W.Z.confirm)({icon:(0,E.jsx)(R.Z,{}),title:"\u5220\u9664\u6210\u5458",content:"\u5220\u9664\u8be5\u6210\u5458\uff0c\u5c06\u65e0\u6cd5\u67e5\u770b\u4ed6\u7684\u5b9e\u65f6\u4f4d\u7f6e\u4e0e\u5386\u53f2\u8f68\u8ff9\uff0c\u662f\u5426\u7ee7\u7eed\u5220\u9664\uff1f",onOk:function(){var t=e.props.selectedMember.map((function(e){return e.key})).join(",");e.props._deleteGroupUser({userIds:t,groupId:e.props.selected})}})},e}return(0,u.Z)(n,[{key:"render",value:function(){var e=this,t=this.props.monitorList.find((function(t){return t.id===e.props.selected}));return(0,E.jsxs)("div",{className:"member-list",children:[this.props.selectedMember.length?(0,E.jsxs)("div",{className:"operation",children:[(0,E.jsxs)("div",{className:"selected-count",children:["\u5df2\u9009\u4e2d \xb7 ",this.props.selectedMember.length]}),(0,E.jsxs)("div",{className:"btns",children:[(0,E.jsx)($.Z,{placement:"bottom",title:"\u6279\u91cf\u5f00\u542f\u9009\u4e2d\u6210\u5458\u7684\u4f4d\u7f6e\u76d1\u63a7",children:(0,E.jsxs)("span",{className:"btn",onClick:function(){return e.handleClick("on")},children:[(0,E.jsx)(P.B,{type:"iconmonitoring-open-fill"}),"\u4e00\u952e\u5f00\u542f"]})}),(0,E.jsx)($.Z,{placement:"bottom",title:"\u6279\u91cf\u5173\u95ed\u9009\u4e2d\u6210\u5458\u7684\u4f4d\u7f6e\u76d1\u63a7",children:(0,E.jsxs)("span",{className:"btn",onClick:function(){return e.handleClick("off")},children:[(0,E.jsx)(P.B,{type:"iconmonitoring-down-fill"}),"\u4e00\u952e\u5173\u95ed"]})}),(0,E.jsx)($.Z,{arrowPointAtCenter:!0,placement:"bottomLeft",title:"\u6279\u91cf\u5220\u9664\u9009\u4e2d\u6210\u5458",children:(0,E.jsxs)("span",{className:"btn",onClick:this.showConfirm,children:[(0,E.jsx)(P.B,{type:"icongeneral-deletecollaboration-fill"}),"\u5220\u9664\u6210\u5458"]})})]})]}):(0,E.jsxs)("div",{className:"tab",children:[t&&t.groupUsers&&t.groupUsers.length?(0,E.jsx)("ul",{children:ae.map((function(t,n){return(0,E.jsx)("li",{className:n===e.props.memberStatus?"active":"",onClick:function(){return e.props.saveMemberStatus(n)},children:"".concat(t).concat(e.props.grouplen[n])},n)}))}):(0,E.jsx)("span",{children:"\u5168\u90e8\u6210\u5458"}),this.props.userInfo&&this.props.userInfo.userRoleLevel<3&&(0,E.jsxs)("div",{className:"invite-user-btn",onClick:this.props.saveInviteVisible,children:[(0,E.jsx)(P.B,{type:"icongeneral-addcollaboration-fill"}),(0,E.jsx)("span",{className:"text",children:"\u9080\u8bf7\u6210\u5458"})]})]}),(0,E.jsx)("div",{className:"list",children:t&&(0,E.jsx)(ne,{})}),this.props.visible&&(0,E.jsx)(se.Z,{}),this.props.spin&&(0,E.jsx)(K.Z,{delay:500,size:"large",className:"invite-spin"})]})}}]),n}(f.Component))||r,re=ie,oe=n(82429),le=(n(78235),n(55291)),ce=n(97326),de=(n(38061),n(76994)),ue=(n(78147),n(78267)),pe=(n(20953),n(67251)),he=n(40197),me=n(81595),fe=n(22581),ge=n(10861),ve=(n(15102),n(61677)),ye=(n(62810),n(46324)),xe=n(16810),je=n(55278),be=n(48149),Ie=n(60539),Ne=n(56253),ke=ye.Z.Paragraph,we=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var s;(0,d.Z)(this,n),(s=t.call(this,e)).searchData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=s.props,n=t.layerType,a=t.searchDataType;e&&!e.id.match("-addnew")||(e=s.props.data);var i,r={};switch(n){case 1:i=a?ge.un:ge.M9,r.areaId=e.id,r.dataId=e.id;break;case 2:i=xe.rQ,r.pointId=e.id;break;case 8:i=ge.Cl,r.id=e.id}i&&(r.needInfos=!0,i(r,(function(e){var t=!1;e.photos&&e.photos.length>0&&(t=!0),a||(e=e.auditRow?(0,k.Z)((0,k.Z)({},e.auditRow),{},{optType:e.optType,auditStatus:e.auditStatus}):(0,k.Z)((0,k.Z)({},e.oldAreas[0]),{},{optType:e.optType,auditStatus:e.auditStatus,createTime:e.createTime})),s.setState({data:e,attributes:e.infos?e.infos:[],showPhoto:t})}),(function(){})))},s.getFidleValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;e.target.offsetHeight>50&&t&&t.length>n?s.setState({info:t}):s.setState({info:""})};var a=s.props.data;return s.state={modal:!1,data:a,currIndexByImg:0,showRail:!1,visibleDynamic:!1,useTemplate:[],info:"",attributes:a&&a.infos?a.infos:[],showPhoto:!!(a&&a.photos&&a.photos.length>0)},s.currentData=(0,k.Z)({},s.props.data),s}
1return(0,u.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isService,n=e.data;t&&this.searchData(n)}},{key:"componentWillReceiveProps",value:function(e){var t=this;if(this.currentData.id!==e.data.id){var n=e.data;this.setState({attributes:n&&n.infos?n.infos:[],showPhoto:!!(n&&n.photos&&n.photos.length>0),data:n},(function(){t.currentData=(0,k.Z)({},n),t.searchData(e.data)}))}}},{key:"showPictureModal",value:function(){var e=this;this.setState({modal:"picture",showPhoto:!0},(function(){e.refs.modal_picture&&e.refs.modal_picture.show()}))}},{key:"selectRegionByTable",value:function(e){var t=this,n=this.props.layerType,s=2===n?ge.un:1===n?xe.rQ:{},a={};2===n?a.areaId=e:1===n?a.pointId=e:a.lineId=e,a.needInfos=!0,s(a,(function(e){t.props.selectRegionByTable(e,1===n?2:1)}),(function(){}))}},{key:"showPictureModalByImg",value:function(){var e=this.refs.smallImg.refs.Slider.innerSlider.state.currentSlide;this.setState({visibleImg:!0,newKey:1e3*Math.random(),currIndexByImg:e})}},{key:"handleCancel",value:function(){this.setState({visibleImg:!1,newKey:1e3*Math.random()})}},{key:"render",value:function(){var e=this,t=this.props,n=t.layerType,s=(t.teamSetting,t.layerInfo),a=t.userInfo,i=this.state,r=i.data,o=i.info,l=a&&"en_US"===a.locale,c=[],d=this.state,u=d.attributes,p=d.currIndexByImg;if(u.length>0){u.forEach((function(t,s){if(t.isDisplay||8!==n)if(t.fieldName!==(0,Ne.fh)())if(t.fieldName!==(0,Ne.c5)()||8!==n){var a=t.fieldValue;if("Url"===t.fieldType&&a&&a.length>0&&!/^http:\/\//.test(a)&&!/^https:\/\//.test(a)&&(a="http://"+a),"MultiOptions"===t.fieldType&&t.fieldValue&&"string"===typeof t.fieldValue){var i=t.fieldValue.replace(/ /g,";");t.fieldValue=i}c.push((0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)(ve.Z,{placement:"left",overlayClassName:"field-panle ".concat(o?"":"none"),content:o,align:{offset:[-15,0]},children:(0,E.jsx)(ke,{ellipsis:{rows:3},onMouseEnter:function(n){return e.getFidleValue(n,t.fieldName,17)},children:(0,E.jsx)("div",{className:"label",children:t.fieldName})})}),(0,E.jsx)(ve.Z,{placement:"left",overlayClassName:"field-panle ".concat(e.state.info?"":"none"),content:e.state.info,align:{offset:[-105,0]},children:(0,E.jsx)(ke,{ellipsis:{rows:3},onMouseEnter:function(n){return e.getFidleValue(n,t.fieldValue)},children:"Url"!==t.fieldType?t.fieldValue:(0,E.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:t.fieldValue})})})]},s))}else{var l=Number(t.fieldValue)/1e3+"\u516c\u91cc";c.push((0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("label",{title:t.fieldName,children:t.fieldName}),(0,E.jsx)("span",{className:"text",title:l,children:l})]},s))}else r.name=t.fieldValue}));var h=this.props.teamSetting;1===n&&r&&r.area&&h.isNeedRegionArea&&c.push((0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("label",{title:l?"Zoning Area(\u339e\xb2)":"\u533a\u5212\u9762\u79ef(\u339e\xb2)",children:l?"Zoning Area(\u339e\xb2)":"\u533a\u5212\u9762\u79ef(\u339e\xb2)"}),(0,E.jsx)("span",{className:"text",title:r.area,children:r.area})]},"area"));var m=1===this.props.layerType?h.bindPointFieldName||"workzone.detail.bindPoint":"workzone.detail.zoning",f=[];if(h.showRelateAndAreaCode&&this.props.layerType<3){var g={},v=r.relateInfos;if(2===this.props.layerType){var y=r.relateNumbers;c.push((0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("label",{children:(0,E.jsx)(Ie._H,{id:"workzone.detail.postcode"})}),(0,E.jsx)("span",{className:"text",title:y,children:y})]},y))}v&&v.split(";").forEach((function(t,n){t&&(g.name=t.split(",")[1],g.id=t.split(",")[0],f.push((0,E.jsx)("span",{className:"potBind",onClick:e.selectRegionByTable.bind(e,g.id),children:g.name},g.id)))})),c.push((0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("label",{children:(0,E.jsx)(Ie._H,{id:m})}),(0,E.jsx)("span",{className:"boxBind bind",children:f})]},"bind-point-region"))}if(r&&r.createUserName&&c.push((0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("label",{title:l?"Created By":"\u521b\u5efa\u4eba",children:(0,E.jsx)(Ie._H,{id:"workzone.detail.createdBy"})}),(0,E.jsx)("span",{className:"text",title:r.createUserName,children:r.createUserName})]}
1,"createUserName")),h&&h.areaForbitFendan&&1===n&&r&&void 0!==r.status){var x=0===!!r.status?"\u53c2\u4e0e":"\u4e0d\u53c2\u4e0e";c.push((0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("label",{title:"\u662f\u5426\u53c2\u4e0e\u5206\u5355",children:"\u662f\u5426\u53c2\u4e0e\u5206\u5355"}),(0,E.jsx)("span",{className:"text",title:x,children:x})]},"status"))}}var j=this.state.showPhoto,b="saasweb/assets/images/basedata/point/default.jpg",I=(new Date).getTime();return r.photos&&r.photos.length>0&&r.photos[0].dataId&&(b=he.jk.platform+"file/getFile?&filePath="+r.photos[0].photoPath+"&token="+localStorage.token+"&ssm="+(0,Ne.Bj)({filePath:r.photos[0].photoPath,t:I})+"&t="+I),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"tab-detail-box",children:(0,E.jsx)("div",{className:"box-inner",children:r?(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"title",children:[(0,E.jsx)("span",{title:"null"===r.name?null:r.name,className:"text",children:"null"===r.name?null:r.name}),(0,E.jsxs)("div",{className:"system-field",children:[(0,E.jsx)("span",{className:"layer-name",children:s.name}),(0,E.jsx)("span",{className:"create-time",children:new Date(r.createTime).format("yyyy/MM/dd hh:mm:ss")})]}),(0,E.jsx)(P.B,{type:"icongeneral-close-line",onClick:this.props.closeDataDetail})]}),(0,E.jsxs)("div",{className:"body scrollbar",children:[j?(0,E.jsx)("div",{className:"photo",children:r.photos&&r.photos.length>0&&r.photos[0].dataId?(0,E.jsx)(je.Z,{ref:"smallImg",showPictureModal:this.showPictureModalByImg.bind(this),imgHandle:!0,width:290,height:160,dots:!1,currIndex:0,photoPath:r.photos}):(0,E.jsx)("img",{src:b,height:"160",alt:""})}):"",c]})]}):(0,E.jsx)("div",{className:"loading-wrapper",children:(0,E.jsx)(K.Z,{size:"large"})})})}),this.state.visibleImg?(0,E.jsxs)("div",{className:"PicPreview",children:[(0,E.jsx)("div",{className:"mosk"}),(0,E.jsx)("div",{className:"close",onClick:this.handleCancel.bind(this)}),(0,E.jsx)("div",{className:"indexPic",children:(0,E.jsx)(be.Z,{dispType:!0,dots:!1,currIndex:p,photoPath:r.photos})})]}):""]})}}]),n}(f.Component),Ze=we,Ce=n(16031),Se=n.n(Ce),Te=n(7305),Me=window.L,Pe={Start:"Start",End:"End",Stay:"Stay",Online:"Online",Out:"Out",In:"In"},Le=(0,g.$j)((function(e){return{pointInfo:e.monitor.pointInfo,currUser:e.monitor.currUser,clearAll:e.monitor.clearAll,traceInfo:e.monitor.traceInfo,clearUser:e.monitor.clearUser,clearRegion:e.monitor.clearRegion,groupData:e.todos.groupData,clearHistory:e.monitor.clearHistory,fenceArea:e.monitor.fenceArea,isHistory:e.monitor.isHistory,warningInfo:e.monitor.warningInfo,autoSelectData:e.monitor.autoSelectData,earlyWarningInfo:e.monitor.earlyWarningInfo,currGroup:e.monitor.eyeData,userTeamSettingInfo:e.team.userTeamSettingInfo,labelDisplayCount:e.style.labelDisplayCount}}),{savePopupLayer:M.P6,saveCurrUser:M._e,saveToHistoryState:M.Fm,saveRefleshState:M.tE},null,{forwardRef:!0})(o=function(e){(0,p.Z)(s,e);var t=(0,h.Z)(s);function s(e){var a;return(0,d.Z)(this,s),(a=t.call(this,e)).display=function(e,t,n){a.state.isFence&&(e&&e.length>0&&!a.cachedFenceData&&(a.cachedFenceData=(0,Ne.wH)(e)),a.region.clearSelectedFeatures(),a.region.display(e,n||[{fillColor:"#3D76F9",fillOpacity:"0.2",strokeColor:"#3D76F9",strokeWidth:2,tagName:"\u540d\u79f0",color:"#0090ff",fill:!0,opacity:.8,weight:2}]))},a.setWarning=function(e){a.setState({isWarning:e}),e||a.pulse.clear()},a.setFence=function(e){a.setState({isFence:e},(function(){if(e)if(a.cachedFenceData&&a.cachedFenceData.length>0)a.display(a.cachedFenceData);else{var t=a.props.currUser;t&&t.userId&&a.getUserFenceArea(t)}else a.region.clear()}))},a.displayEarlyWarning=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Math.random(),n=a.feature_user.getLayers();e&&e.forEach((function(e,s){n.forEach((function(n,s){n.options.userId===e.id&&2===n.options.status&&a.displayWarning(n.options,t)}))})),setTimeout((function(){a.feature_warning.getLayers().forEach((function(e,n){e.options.data.key===t&&a.feature_warning.removeLayer(e)}))}),9e5)},a.displayWarning=function(e,t){var n=(0,k.Z)({},e).lastPoint;if(n&&n.x){var s=(0,me.fj)(n.x,n.y),i=[s.lat,s.lng];Me.marker(i,{icon:a.getPulsingIcon("#1890FF"),data:(0,k.Z)((0,k.Z)({},e),{},{key:t})}).addTo(a.feature_warning)}},a.getPulsingIcon=function(e){return Me.icon.pulse({iconSize:[15,15],color:e})},a.visibleGroupData=function(e){e.forEach((function(e,t){a.showUserPosition(e,t)})),a.refleshEarlyWarning()},a.refleshEarlyWarning=function(){var e=a.feature_user.getLayers(),t=a.feature_warning.getLayers();e.forEach((function(e,n){t.forEach((function(t,n){t.options.data.userId===e.options.userId&&2===e.options.status&&(a.feature_warning.removeLayer(t),a.displayWarning(e.options,t.options.data.key))}))}))},a.displayTrace=function(e,t){var n=e.historyTrace,s=e.traceSummary;if(n&&n.length){var i=null,r=null;
1n.forEach((function(e,t){t>0&&(i=e[0]),r||(r=e[e.length-1]),n.length,i&&r&&(a.OffLine(r,i),r=e[e.length-1]),a.displayLine(e)})),s&&s.length&&s.forEach((function(e,t){(t!==s.length-1&&"End"===e.type&&0!==t||"Start"===e.type&&t!==s.length-1&&0!==t)&&(e.type="Online"),a.displayPot(e)})),a.setState({user:t,historyData:e},(function(){a.trackPlayback()}))}},a.OffLine=function(e,t){var n=(0,k.Z)({},{color:"#FD5A4E",opacity:1,weight:4,dashArray:"8",dashOffset:"8"}),s=a.getLinepointsArray([e,t]),i=Me.polyline(s,n).on("click",(function(e){}));a.featureline.addLayer(i)},a.getLinepointsArray=function(e){var t=[];return e.forEach((function(e){var n=e.x,s=e.y,a=(0,me.fj)(Number(n),Number(s));t.push([a.lat,a.lng])})),t},a.displayLine=function(e){if(e&&!(e.length<2)){var t=(0,k.Z)({},{color:"#07A770",opacity:1,weight:4}),n=a.getLinepointsArray(e),s=Me.polyline(n,t).on("click",(function(e){}));a.featureline.addLayer(s),a.map.fitBounds(s.getBounds())}},a.displayPot=function(e){var t=Pe[e.type],n=(0,me.fj)(e.x,e.y),s=[n.lat,n.lng],i=Me.divIcon({className:"img-key-icon",html:"<div class=".concat(t,"></div>")});Me.marker(s,{icon:i}).addTo(a.featureKeyPint)},a.displayHistory=function(e){var t=[[39.98,116.5],[39.78,116.56],[39.88,116.4],[39.68,116.7],[39.93,116.57],[39.91,116.53]];[1,2,3,4,5,6].forEach((function(e,n){var s=Pe[n+1],i=Me.divIcon({className:"img-key-icon",html:"<div class=".concat(s,"></div>")});Me.marker(t[n],{icon:i}).addTo(a.featureKeyPint)}))},a.autoSelect=function(e){var t=a.getDataById(e.options);t&&a.showUserPopup(t.options,t)},a.settingView=function(e){var t=e.lastPoint;if(t&&t.x&&t.y){var n=(0,me.fj)(t.x,t.y),s=[n.lat,n.lng];a.map.setView(s,15)}},a.showUserPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]){var t=e.lastPoint;if(!t||!t.x||!t.y)return;for(var n=0,s=Object.values(a.signObj);n<s.length;n++){s[n].remove()}var i="",r=(0,me.fj)(t.x,t.y),o=[r.lat,r.lng],l=2!==e.status?"<div class='black'></div>":"",c=e.userHead||e.photo,d=(new Date).getTime();if(c)i="\n          <div id=\"signPosition\" class='signPosition_n ' >\n            ".concat(l,'\n\t\t\t\t\t\t<img src="').concat(he.jk.platform,"file/getFile?&width=34&height=34&filePath=").concat(c,"&token=").concat(localStorage.token,"&ssm=").concat((0,Ne.Bj)({filePath:c,width:34,height:34,t:d}),"&t=").concat(d,'" />\n\t\t\t\t\t</div>\n\t\t\t\t\t');else{var u=e.iconColor,p=e.userName,h=e.userAccount,m=p||h,f=/[\u4e00-\u9fa5]/.test(m)?m.substr(-1):m.substr(0,1).toUpperCase();i="\n          <div id=\"signPosition\" class='signPosition_n' >\n            ".concat(l,'\n\t\t\t\t\t\t<div class="text" style="background: ').concat(u,'">').concat(f,"</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t")}var g=Me.divIcon({className:"sign-position-popup",html:i});Me.marker(o,(0,k.Z)({icon:g},e)).addTo(a.feature_user).on("click",(function(e){a.showUserPopup(e.target.options,e)}))}else if(e)a.signObj[e.id]&&a.signObj[e.id].remove();else for(var v=0,y=Object.values(a.signObj);v<y.length;v++){y[v].remove()}},a.showUserPopup=function(e,t){a.layer_popup.clearLayers(),a.feature_user_select.clearLayers(),a.clearCurrUser();var n=a.state.isFence;a.region.clear(),n&&a.getUserFenceArea(e),a.addSelectUserPosition(t);var s=e.lastPoint;if(s&&s.y){var i=s.time,r=void 0===i?"":i,o=(0,me.fj)(s.x,s.y),l=[o.lat,o.lng],c=e.userName,d=e.userAccount,u=c||d,p="",h=a.isWarningMenber(e);h&&(p="<span>"+h+"\u56f4\u680f\u9884\u8b66</span>");var m=e.lastPointAddress;m||(m="\u7ecf\u7eac\u5ea6\uff1a"+l[0].toFixed(2)+","+l[1].toFixed(2));var f="<i class='status status".concat(e.status,"'></i>"),g=3===e.status?"<div class='err'>\u5df2\u79bb\u7ebf,\u8bf7\u901a\u77e5Ta\u68c0\u67e5\u7f51\u7edc\u548c\u76d1\u63a7\u6309\u94ae</div>":"",v=3===e.status?"\u79bb\u7ebf":"\u5f53\u524d",y='\n    <div id="signPosition">\n      <div class=\'con\'>\n        <div class="title">\n          '.concat(f).concat(u).concat(p,'\n        </div>\n        <div class="mes">').concat(v,"\u65f6\u95f4\uff1a").concat(r,'</div>\n        <div class="mes">').concat(v,"\u4f4d\u7f6e\uff1a").concat(m,"</div>\n        ").concat(g,"\n      </div>\n      <div class=\"history\" id='history-btn'>\u5386\u53f2\u8f68\u8ff9</div>\n\n    </div>\n    ");Me.popup((0,k.Z)({offset:Me.point(0,-30),className:"monitor-detail-popup",closePopupOnClick:!1},e)).setLatLng(l).setContent(y).addTo(a.layer_popup),a.props.savePopupLayer(a.layer_popup._layers),setTimeout((function(){document.getElementById("history-btn").addEventListener("click",(function(){a.props.saveCurrUser(e),a.props.saveToHistoryState()})),document.getElementsByClassName("leaflet-popup-close-button")[0].addEventListener("click",(function(){a.feature_user_select.clearLayers(),a.layer_popup.clearLayers(),a.clearCurrUser(),a.region.clear()}
1))}),100)}},a.addSelectUserPosition=function(e){a.clearCurrUser();var t=(e.options||e.target.options).lastPoint;t&&t.y&&(e.target?e.target._icon.className+="  curr-sign-position-popup":e._icon.className+="  curr-sign-position-popup",a.curr_user_select=e)},a.isWarningMenber=function(e){var t=!1;return a.warningUsers&&a.warningUsers.length&&a.warningUsers.forEach((function(n,s){n.id!==e.userId&&n.userId!==e.userId||(t="In"===n.action?"\u8fdb":"Out"===n.action&&"\u51fa")})),t},a.getUserFenceArea=function(e){if(a.state.isFence){var t={userId:e.userId,includeGeo:!0};(0,ge.tv)(t,(function(e){e.forEach((function(e,t){e.id=e.areaId||e.admincode})),a.cachedFenceData=(0,Ne.wH)(e),a.display(e)}),(function(e,t){}))}},a.fenceWarningNewlyAdded=function(e,t){var n=a.props.currGroup,s=a.state.isWarning;if(n&&s){a.warningUsers=e;var i=[];e.forEach((function(e,n){if(t)e.x=e.longitude,e.y=e.latitude;else{var s=null;a.feature_user.getLayers().forEach((function(t,n){t&&t.options.userId===e.userId&&((s=t.options).lastPoint&&s.lastPoint.x?(e.x=s.lastPoint.x,e.y=s.lastPoint.y):(e.x=e.longitude,e.y=e.latitude))}))}(e.blinkColor="#FF3A30",e.sendTime&&e.elapseSeconds)?new Date(e.sendTime).getTime()<new Date+1e3*e.elapseSeconds&&i.push((0,k.Z)({},e)):i.push((0,k.Z)({},e));a.feature_warning.getLayers().forEach((function(t,n){t.options.data.userId===e.userId&&a.feature_warning.removeLayer(e)}))})),a.pulse.display(i),n&&n.fenceWarningDuration&&setTimeout((function(){a.pulse.removeDatasFromLayer(e)}),6e4*n.fenceWarningDuration)}},a.getDataById=function(e){var t=null;return a.feature_user.getLayers().forEach((function(n,s){(n.options.id===e.id||n.options.userId===e.userId)&&(t=n)})),t},a.removeDatasFromLayer=function(e,t){e.forEach((function(e,t){e.admincode?a.region.removeDatasByAdmincode(e.admincode):a.region.removeDatasFromLayer([e.id])}))},a.clearCurrUser=function(){var e=a.curr_user_select;e&&(e.target&&e.target._icon?a.curr_user_select.target._icon.className="leaflet-marker-icon sign-position-popup leaflet-zoom-animated leaflet-interactive":e._icon&&(a.curr_user_select._icon.className="leaflet-marker-icon sign-position-popup leaflet-zoom-animated leaflet-interactive"))},a.clearUser=function(){a.clearCurrUser(),a.feature_user.clearLayers(),a.layer_popup.clearLayers(),a.feature_user_select.clearLayers(),a.pulse.clear()},a.clear=function(){a.clearHistory(),a.clearUser(),a.region.clear(),a.pulse.clear()},a.clearHistory=function(){a.featureKeyPint.clearLayers(),a.featureline.clearLayers(),a.marker&&a.map.removeLayer(a.marker),a.setState({isPlay:!1,historyData:null,indicator:0,points:[],MOVE_TIME:6e4,multiple:1,user:null})},a.onSelectMap=function(e){if(a.region.setMapName(e),a.pulse.setMapName(e),(0,Ne.IX)(a.selectedMap)&&!(0,Ne.IX)(e)||!(0,Ne.IX)(a.selectedMap)&&(0,Ne.IX)(e)){a.region.clear(),a.pulse.clear(),a.props.saveRefleshState();var t=a.props.currUser;t&&t.userId&&a.getUserFenceArea(t)}a.selectedMap=e},a.closeDataDetail=function(){a.setState({data:null})},a.trackPlayback=function(){if(a.marker&&a.map.removeLayer(a.marker),a.state.historyData){for(var e=a.state.historyData.historyTrace,t=Se().flatMap(e),s=t.length-1,i=[],r=0;r<s;r++){var o=(0,me.fj)(t[r].x,t[r].y);i.push([o.lat,o.lng])}if(!(i.length<2)){a.setState({points:i});var l=Me.icon({iconUrl:n(98165),iconAnchor:[25,30],popupAnchor:[0,-20]});a.marker=Me.Marker.movingMarker(i,a.state.MOVE_TIME,{icon:l}).addTo(a.map);var c=a.state.user.userHead||a.state.user.photo,d="",u=(new Date).getTime();if(c)d='<div class="playback-wrapper">\n          <div class="avatar">\n            <img src="'.concat(he.jk.platform,"file/getFile?&width=32&height=32&filePath=").concat(c,"&token=").concat(localStorage.token,"&ssm=").concat((0,Ne.Bj)({filePath:c,width:32,height:32,t:u}),"&t=").concat(u,'" />\n          </div>\n          <div class="info">\n            <div>\u901f\u5ea6\uff1a<span id="speed">0</span>km/h</div>\n            <div>\u65b9\u5411\uff1a<span id="direction">\u65e0</span></div>\n            <div>\u65f6\u95f4\uff1a<span id="time">\u65e0</span></div>\n          </div>\n        </div>');else{var p=a.state.user,h=p.iconColor,m=p.userName,f=p.userAccount,g=m||f,v=/[\u4e00-\u9fa5]/.test(g)?g.substr(-1):g.substr(0,1).toUpperCase();d='<div class="playback-wrapper">\n          <div class="avatar" style="background: '.concat(h,'">').concat(v,'</div>\n          <div class="info">\n            <div>\u901f\u5ea6\uff1a<span id="speed">0</span>km/h</div>\n            <div>\u65b9\u5411\uff1a<span id="direction">\u65e0</span></div>\n            <div>\u65f6\u95f4\uff1a<span id="time">\u65e0</span></div>\n          </div>\n        </div>')}a.marker.bindPopup(d,{className:"playback-popup"}).openPopup(),a.marker.on("indicator",(function(e){var n=t[e.index],s=n.speed,i=n.direction,r=n.time,o=document.getElementById("speed"),l=document.getElementById("direction"),c=document.getElementById("time");if(o&&(o.innerText="".concat(s?s.toFixed(2):0)),c&&(c.innerText=r),i||0===i){var d="\u65e0";switch(!0){case 0===i:d="\u6b63\u5317";break;case i>0&&i<90:d="\u4e1c\u5317";break;case 90===i:d="\u6b63\u4e1c";break;case i>90&&i<180:d="\u4e1c\u5357";break;case 180===i:d="\u6b63\u5357";break;case i>180&&i<270:d="\u897f\u5357";break;case 270===i:d="\u6b63\u897f";break;case i>270&&i<360:d="\u897f\u5317";break;default:d="\u65e0"}l&&(l.innerText="".concat(d))}a.setState({indicator:e.index})})),a.marker.on("end",(function(){a.setState({isPlay:!1}
1)}))}}},a.handlePlay=function(){a.setState({isPlay:!0},(function(){a.marker.start()}))},a.handlePause=function(){a.setState({isPlay:!1},(function(){a.marker.pause()}))},a.handleStop=function(){a.state.isPlay&&a.setState({indicator:0,isPlay:!1},(function(){a.marker.stop()}))},a.selectedMultiple=function(e){var t=e.key;a.setState({multiple:t});var n=0;switch(t){case"1":default:n=6e4;break;case"2":n=3e4;break;case"4":n=15e3;break;case"6":n=1e4}a.setState({multiple:t,MOVE_TIME:n,indicator:0,isPlay:!1},(function(){a.trackPlayback()}))},a.handleChange=function(e){a.setState({indicator:e,isPlay:!0},(function(){a.marker.updateCurrent(e)}))},a.state={data:null,isWarning:!0,isFence:a.props.isFence,isPlay:!1,historyData:null,indicator:0,points:[],MOVE_TIME:6e4,multiple:1,user:null},a.selectedMap="amap",a.warningUsers=[],a.curr_user_select=null,a.currentUserInfo=null,a.flag=!1,a.signObj={},a.visibleGroupData=a.visibleGroupData.bind((0,ce.Z)(a)),a.displayHistory=a.displayHistory.bind((0,ce.Z)(a)),a.fenceWarningNewlyAdded=a.fenceWarningNewlyAdded.bind((0,ce.Z)(a)),a.clearUser=a.clearUser.bind((0,ce.Z)(a)),a.showUserPopup=a.showUserPopup.bind((0,ce.Z)(a)),a.autoSelect=a.autoSelect.bind((0,ce.Z)(a)),a.getDataById=a.getDataById.bind((0,ce.Z)(a)),a._containerID="monitoringMapID",a.cachedFenceData=null,a}return(0,u.Z)(s,[{key:"componentDidMount",value:function(){var e=this;this.selectedMap=this.mapcontrols.getMapName(),this.map=this.mapcontrols.map,this.labelLayer=new Te.Z(this.map,{labelDisplayCount:this.props.labelDisplayCount,containerID:this._containerID}),this.line=new fe.Ci(this.map,{selectedMap:this.selectedMap,labelLayer:this.labelLayer}),this.region=new fe.Jx(this.mapcontrols.map,{selectedMap:this.selectedMap,onClick:function(t){e.flag=!0,setTimeout((function(){e.flag=!1}),200),e.props.onClickRegion(t),e.setState({data:t.admincode?null:t})},labelLayer:this.labelLayer}),this.pulse=new fe.js(this.map,{selectedMap:this.selectedMap,canClickFeature:function(){return-1!==e.layerEdit.active}}),this.featureKeyPint=Me.featureGroup().addTo(this.map),this.featureline=Me.featureGroup().addTo(this.map),this.layer_popup=Me.featureGroup().addTo(this.map),this.feature_user=Me.featureGroup().addTo(this.map),this.feature_warning=Me.featureGroup().addTo(this.map),this.feature_user_select=Me.featureGroup().addTo(this.map),this.map.on("click",(function(t){e.flag||(e.closeDataDetail(),e.feature_user_select._layers&&e.feature_user_select._layers.length&&e.region.clear(),e.feature_user_select.clearLayers(),e.clearCurrUser())})),this.props.createRef()}},{key:"componentDidUpdate",value:function(e){if(e.earlyWarningInfo!==this.props.earlyWarningInfo&&this.displayEarlyWarning(this.props.earlyWarningInfo),e.warningInfo!==this.props.warningInfo){var t=this.props,n=t.isHistory,s=t.warningInfo;this.fenceWarningNewlyAdded(s,n)}if(e.fenceArea!==this.props.fenceArea&&this.saveFenceArea(this.props.fenceArea),e.clearAll!==this.props.clearAll&&this.clear(),e.clearUser!==this.props.clearUser&&this.clearUser(),e.clearRegion!==this.props.clearRegion&&this.region.clear(),e.clearHistory!==this.props.clearHistory&&this.clearHistory(),e.groupData!==this.props.groupData&&this.visibleGroupData(this.props.groupData),e.autoSelectData!==this.props.autoSelectData&&this.autoSelect(this.props.autoSelectData),e.traceInfo!==this.props.traceInfo){var a=this.props.traceInfo;this.displayTrace(a.monitorGroupUserTraceInfo,a)}e.pointInfo!==this.props.pointInfo&&this.settingView(this.props.pointInfo)}},{key:"toggleVisible",value:function(e,t){switch(t.type){case 1:this.region.toggleVisible(e,t);break;case 2:case 9:this.point.toggleVisible(e,t);break;case 3:this.line.toggleVisible(e,t);break;case 8:this.circle.toggleVisibleByLayerInfo(e,t)}}},{key:"clearAllLayers",value:function(){this.region.clear()}},{key:"render",value:function(){var e=this,t=this.state,n=t.data,s=t.isWarning,a=t.isFence,i=this.props,r=i.layerInfo,o=void 0===r?{}:r,l=i.isMonitoringTool,c=void 0===l||l,d=i.isHistory;return(0,E.jsxs)(fe.do,(0,k.Z)((0,k.Z)({},this.props),{},{containerID:this._containerID,mapId:"monitoringMapDom",ref:function(t){return e.mapcontrol
1s=t},disableSearchTool:!0,notInData:!0,onSelectMap:this.onSelectMap,children:[n&&(n.id||n.areaId)?(0,E.jsx)(Ze,(0,k.Z)((0,k.Z)({layerInfo:o,layerType:1,isService:!0,searchDataType:1},this.props),{},{closeDataDetail:this.closeDataDetail,data:(0,k.Z)({id:n.areaId},n)})):"",c?(0,E.jsxs)("div",{className:"map-monitoring-tool",children:[this.state.points.length?(0,E.jsxs)("div",{className:"playback-content",children:[this.state.isPlay?(0,E.jsx)("div",{className:"pause item",children:(0,E.jsx)(P.B,{type:"iconlocation-suspended-line",onClick:this.handlePause})}):(0,E.jsx)("div",{className:"play item",children:(0,E.jsx)(P.B,{type:"iconlocation-play-line",onClick:this.handlePlay})}),(0,E.jsx)("div",{className:"stop item",children:(0,E.jsx)(P.B,{type:"iconlocation-stop-line",onClick:this.handleStop})}),(0,E.jsx)("div",{className:"multiple item",children:(0,E.jsx)(ue.Z,{overlay:(0,E.jsxs)(pe.Z,{onClick:this.selectedMultiple,children:[(0,E.jsx)(pe.Z.Item,{children:(0,E.jsx)("span",{className:"mutiple-text",children:"1X"})},"1"),(0,E.jsx)(pe.Z.Item,{children:(0,E.jsx)("span",{className:"mutiple-text",children:"2X"})},"2"),(0,E.jsx)(pe.Z.Item,{children:(0,E.jsx)("span",{className:"mutiple-text",children:"4X"})},"4"),(0,E.jsx)(pe.Z.Item,{children:(0,E.jsx)("span",{className:"mutiple-text",children:"6X"})},"6")]}),placement:"topCenter",children:(0,E.jsxs)("span",{children:[this.state.multiple,"X"]})})}),(0,E.jsx)("div",{className:"slider item",children:(0,E.jsx)(de.Z,{onChange:this.handleChange,max:this.state.points.length,value:this.state.indicator,tipFormatter:null})})]}):null,d?"":(0,E.jsxs)("div",{className:"item",children:["\u663e\u793a\u9884\u8b66",(0,E.jsx)(x.Z,{size:"small",checked:s,onChange:this.setWarning})]}),(0,E.jsxs)("div",{className:"item",children:["\u663e\u793a\u56f4\u680f",(0,E.jsx)(x.Z,{size:"small",checked:a,onChange:this.setFence})]})]}):""]}))}}]),s}(f.Component))||o,De=Le,_e=n(80215),Ee=n(21526),Ae=n(33448),Ue=n(20182),Fe=n(71329),Oe={1:"\u672a\u76d1\u63a7",2:"\u5728\u7ebf",3:"\u79bb\u7ebf"},Ve=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var s;return(0,d.Z)(this,n),(s=t.call(this,e)).componentDidMount=function(){s.getLayerTree(),s.getTeamUserInfo(),s.getList()},s.getLayerTree=function(){(0,Ee.ON)((function(e){var t=[];e.layerList.forEach((function(e,n){1!==e.type&&0!==e.type||t.push(e)})),s.setState({layerList:t})}),(function(){}))},s.getTeamUserInfo=function(){var e={userId:s.props.userInfo.key};(0,Ee.Gu)(e,(function(e){s.setState({user:e[0]})}),(function(e,t){}))},s.getList=function(){var e={userId:s.props.userInfo.key,includeGeo:!0};(0,Ee.gp)(e,(function(e){var t=(0,Ne.wH)(e);s.setState({region:t}),t.forEach((function(e,t){e.id=e.areaId||e.admincode}));var n=(0,Ne.wH)(t);setTimeout((function(){s.map.display(n)}),800)}),(function(e,t){}))},s.refleshArea=function(){s.getList()},s.getDetail=function(e){var t=s.state.region;e.forEach((function(e,n){"CustomArea"===e.type?(0,Ee.un)({areaId:e.areaId,dataId:e.areaId,needPoints:!0},(function(e){t.push(e),s.map.display([e]),s.setState({region:t})})):s.getDistrictsByAdmincode(e.admincode)}))},s.getDistrictsByAdmincode=function(e,t){var n=s.state.region;(0,Ee.xr)({admincode:e,needPoints:!0},(function(e){n.push(e),s.map.display([e]),s.setState({region:n}),t&&t()}))},s.selectLayer=function(e,t){var n=s.state.layerInfo;n&&s.map.toggleVisible(!1,n),setTimeout((function(){s.refleshArea()}),500),t.layer.style=null,s.map.toggleVisible(!0,t.layer),s.setState({layerInfo:t.layer})},s.deletIcon=function(e,t){s.stop=!0;var n=s.state,a=n.region,i=n.layerInfo,r=s.props.userInfo;a.splice(t,1);var o={userId:r.key,type:e.admincode?"AdministrativeArea":"CustomArea",areaId:e.id,admincode:e.admincode};Ue.gb.show(),(0,Ee.AO)(o,(function(t){s.setState({region:a}),Ue.gb.hide(),s.stop=!1,le.ZP.success("\u89e3\u7ed1\u6210\u529f!"),i&&i.code===e.layerCode&&i.code||s.map.removeDatasFromLayer([e]),i.code&&e.id&&(0,Ee.un)({areaId:e.id,dataId:e.id},(function(t){i.code===t.layerCode&&setTimeout((function(){s.map.removeDatasFromLayer([e]),s.map.display([e],1,[])}),300)}))}),(function(e,t){Ue.gb.hide(),s.stop=!1,le.ZP.error("\u89e3\u7ed1\u5931\u8d25\uff01")}))},s.selectArea=function(){var e=s.state,t=e.isChoose,n=e.layerInfo,a=e.region;
1if(!t){if(!n)return void le.ZP.warning("\u8bf7\u9009\u62e9\u533a\u5212\u56fe\u5c42\uff01");if(a&&a.length>=5)return void le.ZP.warning("\u56f4\u680f\u6700\u591a5\u4e2a\uff0c\u8d85\u8fc7\u6570\u91cf\u9650\u5236\uff01")}s.setState({isChoose:!t})},s.onClickRegion=function(e){var t=s.state,n=t.isChoose,a=t.region,i=s.props.userInfo;if(n)if(n&&a&&a.length>=5)le.ZP.warning("\u56f4\u680f\u6700\u591a5\u4e2a\uff0c\u8d85\u8fc7\u6570\u91cf\u9650\u5236\uff01");else if(n&&e){var r=!1;if(a.length&&a.forEach((function(t,n){t.id===e.id&&(r=!0)})),!r){s.setState({isChoose:!1}),Ue.gb.show();var o={userId:i.key,type:"CustomArea",areaId:e.id};(0,Ee.ak)(o,(function(t){a.push(e),s.setState({region:a}),Ue.gb.hide(),le.ZP.success("\u7ed1\u5b9a\u6210\u529f!"),s.map.removeDatasFromLayer([e]),s.map.removeDatasFromLayer([e]),s.getList()}),(function(e,t){Ue.gb.hide(),le.ZP.error(t||"\u7ed1\u5b9a\u5931\u8d25\uff01")}))}}},s.selectAdmin=function(){var e=s.state.region;e&&e.length>=5?le.ZP.warning("\u56f4\u680f\u6700\u591a5\u4e2a\uff0c\u8d85\u8fc7\u6570\u91cf\u9650\u5236\uff01"):s.setState({isImport:!0},(function(){}))},s.handleCancel=function(){s.setState({isImport:!1})},s.adminImportHandle=function(e){var t={userId:s.state.userInfo.key,type:"AdministrativeArea",admincode:e.join(",")};Ue.gb.show(),(0,Ee.ak)(t,(function(t){s.getDistrictsByAdmincode(e.join(","),(function(e){})),Ue.gb.hide(),le.ZP.success("\u7ed1\u5b9a\u6210\u529f!")}),(function(e,t){Ue.gb.hide(),le.ZP.error(t||"\u7ed1\u5b9a\u5931\u8d25\uff01")})),s.setState({isImport:!1})},s.history=function(){s.map.clearAllLayers(),s.props.saveLineHistory((0,k.Z)((0,k.Z)((0,k.Z)({},s.state.user),s.props.userInfo),{},{group:s.props.group}))},s.getItems=function(){var e=s.state.region,t=[];return e.forEach((function(e,n){var a=e.fullName||e.infos&&e.infos[0].fieldValue||e.name;t.push((0,E.jsxs)("div",{className:"currArea",children:[(0,E.jsx)("div",{className:"AreaName",children:a}),(0,E.jsx)(P.B,{type:"icongeneral-close-line",onClick:s.deletIcon.bind((0,ce.Z)(s),e,n)})]},n))})),t},s.state={layerList:[],region:[],userInfo:s.props.userInfo,user:{},layerInfo:{}},s.stop=!1,s.map=null,s}return(0,u.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.userInfo,s=t.group,a=t.teamSetting,i=this.state,r=i.layerList,o=i.isChoose,l=i.isImport,c=i.layerInfo,d=i.user,u=(0,Ne.L7)(r,[1]),p=n&&n.status,h=this.getItems();return(0,E.jsxs)("div",{className:"setting-area",children:[(0,E.jsxs)("div",{className:"workzone scrollbar",children:[(0,E.jsxs)("div",{className:"top",children:[(0,E.jsxs)("div",{className:"back ",onClick:this.props.back,children:[(0,E.jsx)(P.B,{type:"icongeneral-le-line"}),"\u8fd4\u56de"]}),(0,E.jsxs)("div",{className:"history",onClick:this.history,children:[(0,E.jsx)(P.B,{type:"icongeneral-history-line"}),"\u5386\u53f2\u8bb0\u5f55"]})]}),(0,E.jsx)("div",{className:"cart",children:n&&(0,E.jsx)(_e.Z,{group:s,userInfo:n,data:d,children:(0,E.jsx)("div",{className:"status status"+p,children:Oe[p]})})}),(0,E.jsx)("div",{className:"title",children:"\u56f4\u680f\u8bbe\u7f6e"}),(0,E.jsxs)("div",{className:"part",children:[(0,E.jsxs)("div",{className:"mes",children:[(0,E.jsx)("span",{className:"spot"}),(0,E.jsx)("span",{className:"name",children:"\u81ea\u5b9a\u4e49\u56f4\u680f"})]}),(0,E.jsxs)("div",{className:"select",children:[(0,E.jsx)(Fe.Z,{placeholder:"\u8bf7\u9009\u62e9\u56fe\u5c42",style:{width:"100%"},treeData:u,onSelect:this.selectLayer}),(0,E.jsxs)("div",{className:o?"btn curr":"btn normal",onClick:this.selectArea,children:[(0,E.jsx)(P.B,{type:"icongeneral-add-line"}),o?"\u8bf7\u5728\u5730\u56fe\u4e0a\u9009\u62e9\u533a\u5212\u9762":"\u8bf7\u9009\u62e9\u533a\u5212\u9762"]})]})]}),(0,E.jsxs)("div",{className:"part",children:[(0,E.jsxs)("div",{className:"mes",children:[(0,E.jsx)("span",{className:"spot"}),(0,E.jsx)("span",{className:"name",children:"\u884c\u653f\u533a\u56f4\u680f"})]}),(0,E.jsx)("div",{className:"select",children:(0,E.jsxs)("div",{className:l?"btn curr":"btn normal",onClick:this.selectAdmin,children:[(0,E.jsx)(P.B,{type:"icongeneral-add-line"}),"\u8bf7\u9009\u62e9\u884c\u653f\u533a"]})})]}),(0,E.jsx)("div",{className:"part line",children:(0,E.jsxs)("div",{className:"mes",children:[(0,E.jsx)("span",{className:"name",children:"\u88ab\u9009\u4e2d\u56f4\u680f\uff08\u6700\u591a5\u4e2a\uff09"}),(0,E.jsx)("div",{className:"box adminScrollbar",children:h&&h.length?h:"\u6682\u65e0\u9009\u4e2d\u56f4\u680f"})]})}),(0,E.jsx)("div",{className:"part",children:(0,E.jsxs)("div",{className:"tips",children:[(0,E.jsx)("span",{className:"spot"}),"\u63d0\u793a\uff1a\u8bbe\u7f6e\u540e\u4eba\u5458\u8fdb\u51fa\u56f4\u680f\u5c06\u4f1a\u88ab\u8bb0\u5f55"]})})]}),(0,E.jsx)(De,(0,k.Z)((0,k.Z)({},this.props),{},{createRef:function(){setTimeout((function(){e.map=e.refs.map}),100)},ref:"map",onClickRegion:this.onClickRegion,layerInfo:c,isFence:!0})),l&&(0,E.jsx)(Ae.Z,{adminImportHandle:this.adminImportHandle,onCancel:this.handleCancel,ref:"Administrative",isOnly:!0,visible:l,isNotAllOption:!0,notCountry:!0,teamSetting:a})]})}}]),n}(f.Component),He=(n(76184),(0,g.$j)((function(e){return{userInfo:e.todos.userInfo,railMember:e.monitor.railMember,monitorList:e.monitor.monitorList,selected:e.monitor.selected,teamSettingInfo:e.team.teamSettingInfo}}),{saveLineHistory:oe.sM,showRailChange:M.WJ,saveRailMember:M.dy})(l=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var s;return(0,d.Z)(this,n),(s=t.call(this,e)).componentWillUnmount=function(){s.props.saveRailMember(null),s.props.showRailChange(!1)},s.componentWillReceiveProps=function(e,t){var n=e.railMember;n&&!n.not&&s.setState({railMember:n})},s.getTeamSettings=function(){(0,Ee.W6)({},(function(e){var t=s.state.teamSetting;e&&e.length>0&&(e.forEach((function(e){"pointAreaMS"!==e.settingField&&("true"===e.settingValue||"false"===e.settingValue?t[e.settingField]="true"===e.settingValue:t[e.settingField]=e.settingValue)})),s.setState({teamSetting:t}))}),(function(){}))},s.saveLineHistory=function(e){setTimeout((function(){s.props.saveRailMember((0,k.Z)((0,k.Z)({},e),{},{historyType:!0}))}),200),"outside"===J.mW.getCurrentLocation().pathname.split("/")[1]?J.mW.push("/outside/monitoring-personnel"):J.mW.push("/monitoring-personnel")},s.back=function(){s.props.showRailChange(!1)},s.state={group:{},teamSetting:{},railMember:s.props.railMember},s}
1return(0,u.Z)(n,[{key:"componentWillMount",value:function(){this.getTeamSettings()}},{key:"componentDidMount",value:function(){this.setState({railMember:this.props.railMember})}},{key:"render",value:function(){var e=this.state,t=e.teamSetting,n=e.railMember,s=this.props,a=s.monitorList,i=s.selected,r=s.teamSettingInfo,o={};return a.forEach((function(e,t){e.id===i&&(o=e)})),(0,E.jsx)("div",{className:"body-container monitoring-members",children:n&&(0,E.jsx)(Ve,{userInfo:n,group:o,teamSetting:t,back:this.back,saveLineHistory:this.saveLineHistory,teamSettingInfo:r})})}}]),n}(f.Component))||l),Be=n(73519),We=m.Z.Search,Re=(0,g.$j)((function(e){return{monitorList:e.monitor.monitorList,selected:e.monitor.selected,showRail:e.monitor.showRail,userInfo:e.todos.userInfo,visible:e.monitor.visible,mapInfo:e.mapList.mapInfo,userDataFunsInMap:e.todos.userDataFunsInMap}}),{_getMonitorList:M.Q1,toggleVisible:M.Oh,selectedMonitor:M.Xg,_searchMonitor:M.gc,saveKeyword:M.zd,saveSelectedMember:M.Pf})(c=function(e){(0,p.Z)(s,e);var t=(0,h.Z)(s);function s(){var e;(0,d.Z)(this,s);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).state={value:""},e.handleFilter=function(t){t?e.props._searchMonitor(t):(e.props._getMonitorList(),e.props.saveKeyword(""))},e.handleChange=function(t){e.setState({value:t.target.value})},e}return(0,u.Z)(s,[{key:"componentDidMount",value:function(){this.props._getMonitorList()}},{key:"componentDidUpdate",value:function(e){var t,n=this.props.mapInfo;(null===n||void 0===n?void 0:n.id)!==(null===(t=e.mapInfo)||void 0===t?void 0:t.id)&&this.props._getMonitorList()}},{key:"render",value:function(){var e=this,t=this.props,s=t.monitorList,a=t.userDataFunsInMap,i=!0;return"outside"===J.mW.getCurrentLocation().pathname.split("/")[1]&&(i=(0,Ne.sU)("010171",a)),(0,E.jsx)("div",{className:"monitor-wrapper body-container",children:i?this.props.showRail?(0,E.jsx)(He,{}):(0,E.jsxs)("div",{className:"monitoring-members-wrapper",children:[(0,E.jsx)("div",{className:"left-layout",children:(0,E.jsxs)("div",{className:"left-main",children:[this.props.userInfo&&this.props.userInfo.userRoleLevel<3&&(0,E.jsxs)("div",{className:"add-group",onClick:this.props.toggleVisible,children:[(0,E.jsx)(P.B,{type:"icongeneral-add-line"}),(0,E.jsx)("span",{className:"text",children:"\u521b\u5efa\u76d1\u63a7\u7ec4"})]}),(0,E.jsx)("div",{className:"search",children:(0,E.jsx)(We,{allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u6210\u5458\u6635\u79f0\u6216\u8d26\u53f7",onChange:this.handleChange,onSearch:function(t){return e.handleFilter(t)}})}),s.length?(0,E.jsx)("ul",{className:"list scrollbar",children:s.map((function(t){return(0,E.jsxs)("li",{className:e.props.selected===t.id?"active":"",onClick:function(){e.props.selectedMonitor(t.id),e.props.saveSelectedMember([])},children:[(0,E.jsx)("p",{children:t.name}),(0,E.jsx)("span",{children:t.groupUsers?t.groupUsers.length:0})]},t.id)}))}):(0,E.jsxs)("div",{className:"no-monitor-list",children:[(0,E.jsx)("img",{src:n(43248),alt:""}),(0,E.jsx)("div",{className:"text",children:(0,E.jsx)("p",{children:"\u6682\u65e0\u76d1\u63a7\u7ec4"})})]})]})}),this.props.selected&&this.props.monitorList.length?(0,E.jsxs)("div",{className:"right-layout",children:[(0,E.jsx)(X,{}),(0,E.jsx)(re,{})]}):(0,E.jsx)("div",{className:"no-monitor",children:this.state.value&&"\u6ca1\u6709\u7b26\u5408\u6761\u4ef6\u7684\u6210\u5458"}),this.props.visible&&(0,E.jsx)(B,{})]}):(0,E.jsx)(Be.Z,{})})}}]),s}(f.PureComponent))||c,Ge=Re},76184:function(){},11266:function(e,t,n){e.exports=n.p+"static/media/blank.b173dc6da1b837dcf209.png"},99113:function(e,t,n){e.exports=n.p+"static/media/no-user.7ad0e8e82a6816b5c702.png"},43248:function(e,t,n){e.exports=n.p+"static/media/none.5695fefd7c0c9d5ee439.png"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.