29.chunk.js 5.96 KB
webpackJsonp([29],{1735:function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l,n,r=o(96),i=a(r),s=o(13),d=a(s),u=o(399),f=a(u),c=o(24),p=a(c),m=o(45),w=a(m),h=o(6),g=a(h),v=o(1),S=a(v),y=o(4),b=a(y),E=o(2),L=a(E),k=o(3),x=a(k),_=o(60),C=a(_),I=o(11),A=a(I),M=o(72),D=a(M),F=o(0),T=a(F),N=(o(9),o(10)),P=o(12),B=o(643),H=o(598),j=window.e9_locale.userLanguage,R=D.default.alert,U=R();new RegExp("\\biPhone\\b|\\biPod\\b","i").test(window.navigator.userAgent);var q=A.default.getLabel,z=(C.default.CheckboxItem,C.default.AgreeItem,(l=(0,N.inject)("followStore","attentionStore"))(n=(0,P.withRouter)(n=(0,N.observer)(n=function(e){function t(){var e,o,a,l;(0,S.default)(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return o=a=(0,L.default)(this,(e=t.__proto__||(0,g.default)(t)).call.apply(e,[this].concat(r))),a.state={value:"\u91cd\u8981",sValue:0,Levelvisible:!1,selected:"",clicked:"none",tagList:["importantLevel2","importantLevel1","importantLevel0"],disabled:!1},a.toHistory=function(e){a.props.history.go(-1)},a.handleClick=function(){},a.goToEdit=function(e){var t=a.props,o=t.followStore,l=(t.store,o.followId,o.setState),n=o.followList;if(""!=e){var r=n.find(function(t,o,a){return t.id==e});l({showname:r.showname,followId:e,showcolor:r.colorval})}else l({showname:"",followId:"",showcolor:""});a.getFowardpath()},a.getFowardpath=function(){if("detailpage"==a.props.type)a.props.history.push("/req/tagEdit");else if("workflowpage"==a.props.type){var e=a.props.store.cordDatas,t="/center/doing";e.route&&(t=e.route),a.props.history.push(t+"/follow/tagManage/tagEdit")}else if("supervise"==a.props.type){var o=a.props.location;a.props.history.push(o.pathname+"/tagEdit")}else if("attentionpage"==a.props.type){var l=a.props.attentionStore,n=l.nowListAd.route;a.props.history.push(n+"/follow/tagManage/tagEdit")}else if("tagSetting"==a.props.type){var r=a.props.attentionStore,i=r.nowListAd.route;a.props.history.push(i+"/follow/tagManage/tagEdit")}},a.getBackpath=function(){a.props.history.go(-1)},a.delete=function(e){var t=a.props.followStore,o=(t.delfollowids,t.fokllowId,t.showname,t.showcolor,t.setState,t.saveAttentionTypeSet);t.followList.map(function(o,a){o.id==e&&(t.followList.splice(a,1),t.delfollowids+=e+","),o.showname.includes("base64_")&&(o.showname=(0,H.getMultiStrFromBase64)(o.showname))}),t.followList.map(function(e,t){e.showname.includes("base64_")&&(e.showname=(0,H.getMultiStrFromBase64)(e.showname))}),o({src:"saveData",delIds:e,data:(0,w.default)(t.followList)})},a.Dodelete=function(e){U=R("",q("511459","\u786e\u8ba4\u8981\u5220\u9664\u6b64\u5173\u6ce8\u7c7b\u578b\u5417\uff1f"),[{text:q("31129","\u53d6\u6d88"),onPress:function(){}},{text:q("826","\u786e\u5b9a"),onPress:function(){a.delete(e)}}])},a.caution=function(){U=R("",q("511460","\u5173\u6ce8\u7c7b\u578b\u5df2\u88ab\u4f7f\u7528\uff0c\u4e0d\u80fd\u5220\u9664!"),[{text:q("826","\u786e\u5b9a"),onPress:function(){}}])},a.getFontColor=function(e){return.299*parseInt(e.substring(1,3),16)+.587*parseInt(e.substring(3,5),16)+.114*parseInt(e.substring(5,7),16)>186?"#000000":"#ffffff"},a.doSave=function(){var e=a.props,t=e.followStore,o=e.store,l=e.attentionStore,n=t.delfollowids,r=(t.followId,t.showname,t.showcolor,t.saveAttentionTypeSet),i=(t.saveAttention,o.setState,o.cordDatas),s=l.getTree,d=l.onSearch,u=a;t.followList.map(function(e){e.showname=(0,H.getMultiStrFromBase64)(e.showname)}),s(),r({src:"saveData",delIds:n,data:(0,w.default)(t.followList)},i.mode),s(),d(),t.viewlist.map(function(e){t.followList.map(function(t){e.id==t.id&&(e.showname=t.showname)})}),u.getBackpath()},a.onSortStart=function(){a.disabled=!0},a.onSortEnd=function(e){var t=e.oldIndex,o=e.newIndex;a.timerID=setTimeout(function(){a.disabled=!1,a.forceUpdate()},1);var l=a.props.followStore;l.followList=(0,B.arrayMove)(l.followList,t,o)},l=o,(0,L.default)(a,l)}return(0,x.default)(t,e),(0,b.default)(t,[{key:"componentDidMount",value:function(){(0,this.props.followStore.getAttentionTypeSet)()}},{key:"componentWillUnmount",value:function(){U.close(),clearTimeout(this.timerID)}},{key:"render",value:function(){var e=this,t=this.props.followStore,o=t.followList,a=t.disableArray,l=(0,B.SortableContainer)(p.default),n=(0,B.SortableElement)(f.default),r={onSortStart:this.onSortStart,onSortEnd:this.onSortEnd,useDragHandle:!0,lockAxis:"y"},s=(0,B.SortableHandle)(d.default);return T.default.createElement("div",{className:"follow"},T.default.createElement("div",{className:"manageContent_top",onClick:function(){e.goToEdit("")}},T.default.createElement("label",null,T.default.createElement(d.default,{type:"plus",style:{width:"18px",height:"18px",position:"relative",top:"-2px",left:"8px"}})),T.default.createElement("label",{style:{fontSize:"14px"}},q("511445","\u6dfb\u52a0\u5173\u6ce8\u7c7b\u578b"))),T.default.createElement("div",{className:"manageContent_middle"},T.default.createElement(l,r,o.map(function(t,o){var l=!1;return a.findIndex(function(e){return e==t.id})<=-1&&(l=!0),T.default.createElement(n,{className:"sortableHelper",key:"item-"+o,index:o,disabled:e.disabled,autoClose:!0,right:[{text:q("91","\u5220\u9664"),onPress:l?function(){e.Dodelete(t.id)}:function(){e.caution()},style:{backgroundColor:"#F4333C",color:"white",width:"100px"}}]},T.default.createElement("div",{className:"manageContent_middle_item","data-dec":t.id,key:t.id},T.default.createElement("label",{onClick:function(){e.goToEdit(t.id)}},T.default.createElement(d.default,{type:"editor"})),T.default.createElement("label",{className:"label_for_checkbox",style:{background:t.colorval,color:e.getFontColor(t.colorval)}},(0,H.getCurrentLabel)((0,H.getMultiStrFromBase64)(t.showname),j)),T.default.createElement(s,{type:"more-3"})))}))),T.default.createElement("div",{className:"manageContent_bottom"},T.default.createElement(i.default,{type:"primary",onClick:function(){e.doSave()}},q("86","\u4fdd\u5b58"))))}}]),t}(T.default.Component))||n)||n)||n);t.default=z}});
//# sourceMappingURL=29.chunk.js.map?v=964be05b