1.chunk.js
15.5 KB
webpackJsonpweaWorkflowForm([1],{666:function(t,e,a){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s,r,l=a(3),i=o(l),d=a(0),u=o(d),c=a(1),f=o(c),w=a(4),p=o(w),A=a(5),m=o(A),b=a(2),h=o(b),C=a(7),g=a(8),B=n(g),x=a(6),v=a(9),y=n(v);a(669);var k=a(13),E=o(k),S=(s=(0,C.inject)("statusStore"))(r=(0,C.observer)(r=function(t){function e(t){return(0,u.default)(this,e),(0,p.default)(this,(e.__proto__||(0,i.default)(e)).call(this,t))}return(0,m.default)(e,t),(0,f.default)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.statusStore,a=t.location,n=a&&a.query||{},o=y.isEmpty(n)?this.props.requestid:n.requestid;e.setBaseParam({requestid:o}),e.switchCard("all"),e.loadCounts()}},{key:"render",value:function(){var t=this,e=(0,x.getAntd)(),a=e.Row,n=e.Col,o=(e.Card,e.Table),s=(0,x.getEcCom)(),r=s.WeaSelect,l=s.WeaBrowser,i=s.WeaFormItem,d=s.WeaSearchGroup,u=this.props.statusStore,c=u.cardid,f=u.counts,w=u.dataMap,p=u.hideRowKeys,A=u.nodeOptions,m=u.setSelectedNode,b=u.setSelectedOperator,C=u.selectedNode,g=u.selectedOperator,v=u.controlHideAllRow,k=u.isHideAll,S=w.get(c)||{},L=g||"-1"!=C,D=E.default.globalStore.loading,N=void 0!==D&&D,_=[{id:"all",title:(0,x.getLabel)(15945,"总人次"),color:"#3ac8d2",num:f.allcount,icon:"icon-workflow-form-Total-person-time"},{id:"submit",title:(0,x.getLabel)(15176,"已提交"),color:"#8dc139",num:f.submitcount,icon:"icon-workflow-form-Has-been-submitted"},{id:"nosubmit",title:(0,x.getLabel)(15178,"未提交"),color:"#b37bf8",num:f.nosubmitcount,icon:"icon-workflow-form-Not-submitted"},{id:"view",title:(0,x.getLabel)(18006,"已查看"),color:"#009bff",num:f.viewcount,icon:"icon-workflow-form-Already-view"},{id:"noview",title:(0,x.getLabel)(18007,"未查看"),color:"#ff1924",num:f.noviewcount,icon:"icon-workflow-form-Not-viewed"}],I=["",h.default.createElement("span",{style:{color:"#ff1924"}},(0,x.getLabel)(18007,"未查看")),h.default.createElement("span",{style:{color:"#009bff"}},(0,x.getLabel)(18006,"已查看")),h.default.createElement("span",{style:{color:"#666666"}},(0,x.getLabel)(15176,"已提交")),(0,x.getLabel)(20387,"暂停"),(0,x.getLabel)(16210,"撤销"),(0,x.getLabel)(26472,"启用"),h.default.createElement("span",{style:{color:"#666666"}},(0,x.getLabel)(505288,"已查阅"))],O="all"!==c||L?[{title:(0,x.getLabel)(17482,"操作人"),dataIndex:"operator",key:"operator",width:"12%"},{title:(0,x.getLabel)(33417,"节点"),dataIndex:"nodename",key:"nodename",width:"16%"},{title:(0,x.getLabel)(27094,"操作状态"),dataIndex:"status",key:"status",width:"16%"},{title:(0,x.getLabel)(18002,"接收时间"),dataIndex:"receivedate",key:"receivedate",width:"18%"},{title:(0,x.getLabel)(15502,"操作时间"),dataIndex:"operatedate",key:"operatedate",width:"18%"},{title:(0,x.getLabel)(386337,"操作耗时"),dataIndex:"intervel",key:"intervel"}]:[{title:(0,x.getLabel)(15486,"序号"),dataIndex:"num",key:"num",width:"8%"},{title:(0,x.getLabel)(33417,"节点"),dataIndex:"operator",key:"operator",width:"16%"},{title:(0,x.getLabel)(84645,"操作情况统计"),dataIndex:"status",key:"status",width:"16%",colSpan:4},{title:"",dataIndex:"receivedate",key:"receivedate",width:"20%",colSpan:0},{title:"",dataIndex:"operatedate",key:"operatedate",width:"20%",colSpan:0},{title:"",dataIndex:"intervel",key:"intervel",colSpan:0}],j=[],G=[],z=0,H=parseInt(f[c+"count"]||0);if("all"!==c||L){var R=y.size(S);if(!y.isEmpty(S))for(var W=0;W<R;W++){(function(e){var a=S["key"+e];if(!a)return"continue";a.list.map(function(e){j.push({operator:t.getOperatorObj(e),nodename:a.nodename,status:t.getStatusName(e,I),receivedate:e.receivedate,operatedate:e.operatedate,intervel:e.intervel})})})(W)}z=j.length}else for(var M=y.size(S),W=0;W<M;W++){(function(e){var a=S["key"+e];if(!a)return"continue";var n=[];a.list.map(function(a,o){n.push({num:"",key:"rowDetail_"+(e+1)+"_"+(o+1),operator:t.getOperatorObj(a),status:t.getStatusName(a,I),receivedate:a.receivedate,operatedate:a.operatedate,intervel:a.intervel})}),z+=n.length;var o={num:e+1,key:"rowDataHead_"+(e+1),operator:a.nodename,status:(0,x.getLabel)(84646,"操作者总计")+": "+a.listcount,receivedate:h.default.createElement("span",{style:0==a.submitCount?{}:{color:"#666666"}},(0,x.getLabel)(15176,"已提交")+": "+a.submitCount),operatedate:h.default.createElement("span",{style:0==a.viewCount?{}:{color:"#009bff"}},(0,x.getLabel)(18006,"已查看")+": "+a.viewCount),intervel:h.default.createElement("span",{style:0==a.noviewCount?{}:{color:"#ff1924"}},(0,x.getLabel)(18007,"未查看")+": "+a.noviewCount),children:[{num:"",key:"rowDetailHead_"+(e+1),operator:(0,x.getLabel)(17482,"操作人"),status:(0,x.getLabel)(27094,"操作状态"),receivedate:(0,x.getLabel)(18002,"接收时间"),operatedate:(0,x.getLabel)(15502,"操作时间"),intervel:(0,x.getLabel)(18003,"操作耗时"),children:n}]};-1==y.indexOf(p,"rowDataHead_"+(e+1))&&G.push("rowDataHead_"+(e+1)),G.push("rowDetailHead_"+(e+1)),j.push(o)})(W)}return h.default.createElement("div",{className:"wf-status"},h.default.createElement(a,null,h.default.createElement(n,{className:"wf-status-card-wapper",span:24,style:{padding:"0 0 20px 0"}},_.map(function(e,a){var n=e.id===c||L&&c.indexOf("_")>-1&&e.id===c.substring(0,c.indexOf("_"))?{boxShadow:"0 0 5px #008aff",border:"1px solid #008aff"}:{border:"1px solid #d5d5d5"};return n.color=e.color,n.marginRight=a<3?"1.25%":"0px",n.float=4==a?"right":"left",h.default.createElement("div",{className:"wf-status-card",style:n,title:e.title,onClick:t.switchCard.bind(t,e.id)},h.default.createElement("i",{className:e.icon}),h.default.createElement("div",null,h.default.createElement("p",{style:{fontSize:"26px"}},e.num),h.default.createElement("p",{style:{fontSize:"12px",color:"#5b5b5b"}},e.title)))}))),h.default.createElement(a,{className:"wf-status-content"},h.default.createElement(n,{span:24,style:{border:"1px solid #e9e9e9",borderBottom:"none"}},h.default.createElement(d,{className:"adSearchGroup",needTigger:!0,showGroup:!0,items:[{com:h.default.createElement(i,{label:(0,x.getLabel)(84657,"按节点过滤"),labelCol:{span:9},wrapperCol:{span:12}},h.default.createElement(r,{options:B.toJS(A),onChange:function(t,e){m(t),u.switchCard(c)},value:C}))},{com:h.default.createElement(i,{label:(0,x.getLabel)(84658,"按操作者过滤"),labelCol:{span:9},wrapperCol:{span:12}},h.default.createElement(l,{type:"1",ref:"operatorBrowser",title:(0,x.getLabel)(18214,"请选择"),onChange:function(t,e,a){b(t),u.switchCard(c)}}))}]})),"all"!==c||L?h.default.createElement(n,{span:24},h.default.createElement(o,{pagination:!1,columns:O,dataSource:j,size:"middle",className:"wf-status-table-single"})):h.default.createElement(n,{span:24,style:{border:"1px solid #e9e9e9",borderBottom:z<H?"none":"1px solid #e9e9e9",position:"relative"}},h.default.createElement("span",{title:k?(0,x.getLabel)(84533,"展开全部"):(0,x.getLabel)(84532,"收缩全部"),className:"icon-coms-release cursor-pointer",onClick:function(){v(y.size(S))}}),h.default.createElement(o,{pagination:!1,columns:O,dataSource:j,size:"middle",className:"wf-status-table-main",expandedRowKeys:G,onRowClick:this.setHideRowKeys.bind(this)})),!N&&z<H&&h.default.createElement(n,{span:24},h.default.createElement("div",{style:{textAlign:"center"}},h.default.createElement("span",{className:"wf-status-loadmore",onClick:this.loadMoreData.bind(this)},h.default.createElement("i",{className:"anticon anticon-arrow-down",style:{marginRight:"4px"}}),h.default.createElement("span",null,(0,x.getLabel)(82720,"加载更多")))))))}},{key:"getStatusName",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})[t.statuscode]}},{key:"getOperatorObj",value:function(t){var e=new Array;return t.beagentid&&(e.push(h.default.createElement("a",{className:"wea-hrm-card",href:"javaScript:openhrm("+t.beagentid+")",onClick:function(t){return window.pointerXY(t)}},t.beagentname)),e.push(h.default.createElement("span",{className:"wf-status-connect-symbol"},"->"))),"0"==t.operatortype?e.push(h.default.createElement("a",{className:"wea-hrm-card",href:"javaScript:openhrm("+t.operatorid+")",onClick:function(t){return window.pointerXY(t)}},t.operator)):e.push(h.default.createElement("a",{target:"_blank",className:"wea-hrm-card",href:"/spa/crm/static/index.html#/main/crm/customerView?customerId="+t.operatorid},t.operator)),h.default.createElement("span",null,e)}},{key:"switchCard",value:function(t){var e=this.props.statusStore;e.clearnSearchStatus(),this.refs.operatorBrowser&&this.refs.operatorBrowser.set([]),e.switchCard(t)}},{key:"loadMoreData",value:function(t){this.props.statusStore.loadData(!1)}},{key:"setHideRowKeys",value:function(t){if(0===t.key.indexOf("rowDataHead_")){this.props.statusStore.controlHideRow(t.key)}}}]),e}(h.default.Component))||r)||r;e.default=S},669:function(t,e,a){var n=a(670);"string"===typeof n&&(n=[[t.i,n,""]]);var o={hmr:!1};o.transform=void 0;a(665)(n,o);n.locals&&(t.exports=n.locals)},670:function(t,e,a){e=t.exports=a(664)(!0),e.push([t.i,".wf-status .wf-status-card-wapper{background-color:#f4f4f4}.wf-status .wf-status-card{float:left;background-color:#fff;width:19%;height:80px;border:1px solid #d5d5d5;cursor:pointer;line-height:78px;font-size:50px;padding-left:2%;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;-webkit-box-shadow:0 0 5px #ddd;box-shadow:0 0 5px #ddd}.wf-status .wf-status-card i{margin-right:6%}.wf-status .wf-status-card div{display:inline-block;line-height:1.2;margin-top:16px}.wf-status .wf-status-content{-webkit-box-shadow:0 0 5px #ddd;box-shadow:0 0 5px #ddd}.wf-status .wf-status-content .icon-coms-release{color:#979797;position:absolute;right:10px;z-index:1;top:15px}.wf-status .wf-status-content .ant-table,.wf-status .wf-status-content .ant-table table{border-radius:0}.wf-status .wf-status-content .adSearchGroup{max-width:750px;padding-left:0;padding-right:0}.wf-status .wf-status-content .adSearchGroup .wea-content{padding:0}.wf-status .wf-status-content .adSearchGroup .wea-content .wea-form-cell{padding:0 0 0 19px}.wf-status .wf-status-content .adSearchGroup .wea-content .wea-form-cell .wea-form-item{padding-top:5px;padding-bottom:5px}.wf-status .wf-status-content .adSearchGroup .wea-content .wea-form-cell .wea-form-item .wea-browser,.wf-status .wf-status-content .adSearchGroup .wea-content .wea-form-cell .wea-form-item .wea-select{max-width:180px!important}.wf-status .wf-status-content .wf-status-table-main .ant-table-thead>tr>th{background-color:#fff;border-bottom:1px solid #e9e9e9}.wf-status .wf-status-content .wf-status-table-main .ant-table-row-level-0,.wf-status .wf-status-content .wf-status-table-main .ant-table-row-level-0:hover{background-color:#f8fcff;cursor:pointer}.wf-status .wf-status-content .wf-status-table-main .ant-table-row-level-1,.wf-status .wf-status-content .wf-status-table-main .ant-table-row-level-1:hover{background-color:#f7f7f7}.wf-status .wf-status-content .wf-status-table-main span.ant-table-row-expand-icon{display:none}.wf-status .wf-status-content .wf-status-table-single .ant-table-tbody>tr>:first-child,.wf-status .wf-status-content .wf-status-table-single .ant-table-thead>tr>:first-child{padding-left:20px}.wf-status .wea-hrm-card{color:#242424}.wf-status .wea-hrm-card:hover{color:#018efb!important}.wf-status .wf-status-connect-symbol{padding-left:2px;padding-right:2px}.wf-status .wf-status-loadmore{display:inline-block;text-align:center;cursor:pointer;height:40px;line-height:40px;color:#2db7f5}","",{version:3,sources:["/weaver/SQLserver/ecology/src4js/pc4mobx/workflowForm/style/status.less"],names:[],mappings:"AAAA,kCACE,wBAA0B,CAC3B,AACD,2BACE,WAAY,AACZ,sBAAuB,AACvB,UAAW,AACX,YAAa,AACb,yBAA0B,AAC1B,eAAgB,AAChB,iBAAkB,AAClB,eAAgB,AAChB,gBAAiB,AACjB,mBAAoB,AACpB,gBAAiB,AACjB,0BAA2B,AACxB,uBAAwB,AAC3B,gCAAiC,AACzB,uBAAyB,CAClC,AACD,6BACE,eAAiB,CAClB,AACD,+BACE,qBAAsB,AACtB,gBAAiB,AACjB,eAAiB,CAClB,AACD,8BACE,gCAAiC,AACzB,uBAAyB,CAClC,AACD,iDACE,cAAe,AACf,kBAAmB,AACnB,WAAY,AACZ,UAAW,AACX,QAAU,CACX,AACD,wFAEE,eAAiB,CAClB,AACD,6CACE,gBAAiB,AACjB,eAAkB,AAClB,eAAmB,CACpB,AACD,0DACE,SAAa,CACd,AACD,yEACE,kBAAoB,CACrB,AACD,wFACE,gBAAiB,AACjB,kBAAoB,CACrB,AAID,yMACE,yBAA4B,CAC7B,AACD,2EACE,sBAAuB,AACvB,+BAAiC,CAClC,AACD,4JAEE,yBAA0B,AAC1B,cAAgB,CACjB,AACD,4JAEE,wBAA0B,CAC3B,AACD,mFACE,YAAc,CACf,AACD,8KAEE,iBAAmB,CACpB,AACD,yBACE,aAAe,CAChB,AACD,+BACE,uBAA0B,CAC3B,AACD,qCACE,iBAAkB,AAClB,iBAAmB,CACpB,AACD,+BACE,qBAAsB,AACtB,kBAAmB,AACnB,eAAgB,AAChB,YAAa,AACb,iBAAkB,AAClB,aAAe,CAChB",file:"status.less",sourcesContent:[".wf-status .wf-status-card-wapper {\n background-color: #f4f4f4;\n}\n.wf-status .wf-status-card {\n float: left;\n background-color: #fff;\n width: 19%;\n height: 80px;\n border: 1px solid #d5d5d5;\n cursor: pointer;\n line-height: 78px;\n font-size: 50px;\n padding-left: 2%;\n white-space: nowrap;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n -webkit-box-shadow: 0 0 5px #ddd;\n box-shadow: 0 0 5px #ddd;\n}\n.wf-status .wf-status-card i {\n margin-right: 6%;\n}\n.wf-status .wf-status-card div {\n display: inline-block;\n line-height: 1.2;\n margin-top: 16px;\n}\n.wf-status .wf-status-content {\n -webkit-box-shadow: 0 0 5px #ddd;\n box-shadow: 0 0 5px #ddd;\n}\n.wf-status .wf-status-content .icon-coms-release {\n color: #979797;\n position: absolute;\n right: 10px;\n z-index: 1;\n top: 15px;\n}\n.wf-status .wf-status-content .ant-table,\n.wf-status .wf-status-content .ant-table table {\n border-radius: 0;\n}\n.wf-status .wf-status-content .adSearchGroup {\n max-width: 750px;\n padding-left: 0px;\n padding-right: 0px;\n}\n.wf-status .wf-status-content .adSearchGroup .wea-content {\n padding: 0 0;\n}\n.wf-status .wf-status-content .adSearchGroup .wea-content .wea-form-cell {\n padding: 0 0 0 19px;\n}\n.wf-status .wf-status-content .adSearchGroup .wea-content .wea-form-cell .wea-form-item {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.wf-status .wf-status-content .adSearchGroup .wea-content .wea-form-cell .wea-form-item .wea-select {\n max-width: 180px !important;\n}\n.wf-status .wf-status-content .adSearchGroup .wea-content .wea-form-cell .wea-form-item .wea-browser {\n max-width: 180px !important;\n}\n.wf-status .wf-status-content .wf-status-table-main .ant-table-thead > tr > th {\n background-color: #fff;\n border-bottom: 1px solid #e9e9e9;\n}\n.wf-status .wf-status-content .wf-status-table-main .ant-table-row-level-0,\n.wf-status .wf-status-content .wf-status-table-main .ant-table-row-level-0:hover {\n background-color: #f8fcff;\n cursor: pointer;\n}\n.wf-status .wf-status-content .wf-status-table-main .ant-table-row-level-1,\n.wf-status .wf-status-content .wf-status-table-main .ant-table-row-level-1:hover {\n background-color: #f7f7f7;\n}\n.wf-status .wf-status-content .wf-status-table-main span.ant-table-row-expand-icon {\n display: none;\n}\n.wf-status .wf-status-content .wf-status-table-single .ant-table-tbody > tr > :first-child,\n.wf-status .wf-status-content .wf-status-table-single .ant-table-thead > tr > :first-child {\n padding-left: 20px;\n}\n.wf-status .wea-hrm-card {\n color: #242424;\n}\n.wf-status .wea-hrm-card:hover {\n color: #018efb !important;\n}\n.wf-status .wf-status-connect-symbol {\n padding-left: 2px;\n padding-right: 2px;\n}\n.wf-status .wf-status-loadmore {\n display: inline-block;\n text-align: center;\n cursor: pointer;\n height: 40px;\n line-height: 40px;\n color: #2db7f5;\n}\n"],sourceRoot:""}])}});
//# sourceMappingURL=1.chunk.js.map?v=f65c69a9