1.d3f3447c397c75dbe9db.chunk.js 110 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"./src/module/modelEdit/modelAdvanced sync recursive ^.*$":function(e,t,a){var d={"./AdvancedConfig":"./src/module/modelEdit/modelAdvanced/AdvancedConfig.jsx","./AdvancedConfig.jsx":"./src/module/modelEdit/modelAdvanced/AdvancedConfig.jsx","./BaseConfig":"./src/module/modelEdit/modelAdvanced/BaseConfig.jsx","./BaseConfig.jsx":"./src/module/modelEdit/modelAdvanced/BaseConfig.jsx","./component/ArithmeticParam":"./src/module/modelEdit/modelAdvanced/component/ArithmeticParam.jsx","./component/ArithmeticParam.jsx":"./src/module/modelEdit/modelAdvanced/component/ArithmeticParam.jsx","./component/AutoOptimize":"./src/module/modelEdit/modelAdvanced/component/AutoOptimize.jsx","./component/AutoOptimize.jsx":"./src/module/modelEdit/modelAdvanced/component/AutoOptimize.jsx","./component/CheckboxTable":"./src/module/modelEdit/modelAdvanced/component/CheckboxTable.jsx","./component/CheckboxTable.jsx":"./src/module/modelEdit/modelAdvanced/component/CheckboxTable.jsx","./component/DefineKpiConfig":"./src/module/modelEdit/modelAdvanced/component/DefineKpiConfig.jsx","./component/DefineKpiConfig.jsx":"./src/module/modelEdit/modelAdvanced/component/DefineKpiConfig.jsx","./component/EditableCell":"./src/module/modelEdit/modelAdvanced/component/EditableCell.jsx","./component/EditableCell.jsx":"./src/module/modelEdit/modelAdvanced/component/EditableCell.jsx","./component/EditableTable":"./src/module/modelEdit/modelAdvanced/component/EditableTable.jsx","./component/EditableTable.jsx":"./src/module/modelEdit/modelAdvanced/component/EditableTable.jsx","./component/FeatureIndiSetSetting":"./src/module/modelEdit/modelAdvanced/component/FeatureIndiSetSetting.jsx","./component/FeatureIndiSetSetting.jsx":"./src/module/modelEdit/modelAdvanced/component/FeatureIndiSetSetting.jsx","./component/FilterData":"./src/module/modelEdit/modelAdvanced/component/FilterData.jsx","./component/FilterData.jsx":"./src/module/modelEdit/modelAdvanced/component/FilterData.jsx","./component/ForecastPoint":"./src/module/modelEdit/modelAdvanced/component/ForecastPoint.jsx","./component/ForecastPoint.jsx":"./src/module/modelEdit/modelAdvanced/component/ForecastPoint.jsx","./component/GradeParam":"./src/module/modelEdit/modelAdvanced/component/GradeParam.jsx","./component/GradeParam.jsx":"./src/module/modelEdit/modelAdvanced/component/GradeParam.jsx","./component/RatioData":"./src/module/modelEdit/modelAdvanced/component/RatioData.jsx","./component/RatioData.jsx":"./src/module/modelEdit/modelAdvanced/component/RatioData.jsx","./component/SampleDataSizeLimit":"./src/module/modelEdit/modelAdvanced/component/SampleDataSizeLimit.jsx","./component/SampleDataSizeLimit.jsx":"./src/module/modelEdit/modelAdvanced/component/SampleDataSizeLimit.jsx","./component/SelectedIndi":"./src/module/modelEdit/modelAdvanced/component/SelectedIndi.jsx","./component/SelectedIndi.jsx":"./src/module/modelEdit/modelAdvanced/component/SelectedIndi.jsx","./component/TextSelectItem":"./src/module/modelEdit/modelAdvanced/component/TextSelectItem.jsx","./component/TextSelectItem.jsx":"./src/module/modelEdit/modelAdvanced/component/TextSelectItem.jsx","./sceneAdvanced/ClassIfyForecast":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/ClassIfyForecast.jsx","./sceneAdvanced/ClassIfyForecast.jsx":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/ClassIfyForecast.jsx","./sceneAdvanced/GatherAnalysis":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/GatherAnalysis.jsx","./sceneAdvanced/GatherAnalysis.jsx":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/GatherAnalysis.jsx","./sceneAdvanced/RelevanceAnalysis":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/RelevanceAnalysis.jsx","./sceneAdvanced/RelevanceAnalysis.jsx":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/RelevanceAnalysis.jsx","./sceneAdvanced/SynergyFilter":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/SynergyFilter.jsx","./sceneAdvanced/SynergyFilter.jsx":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/SynergyFilter.jsx","./sceneAdvanced/TimeSequence":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/TimeSequence.jsx","./sceneAdvanced/TimeSequence.jsx":"./src/module/modelEdit/modelAdvanced/sceneAdvanced/TimeSequence.jsx","./sceneBase/ClassIfyForecast":"./src/module/modelEdit/modelAdvanced/sceneBase/ClassIfyForecast.jsx","./sceneBase/ClassIfyForecast.jsx":"./src/module/modelEdit/modelAdvanced/sceneBase/ClassIfyForecast.jsx","./sceneBase/GatherAnalysis":"./src/module/modelEdit/modelAdvanced/sceneBase/GatherAnalysis.jsx","./sceneBase/GatherAnalysis.jsx":"./src/module/modelEdit/modelAdvanced/sceneBase/GatherAnalysis.jsx","./sceneBase/RelevanceAnalysis":"./src/module/modelEdit/modelAdvanced/sceneBase/RelevanceAnalysis.jsx","./sceneBase/RelevanceAnalysis.jsx":"./src/module/modelEdit/modelAdvanced/sceneBase/RelevanceAnalysis.jsx","./sceneBase/SynergyFilter":"./src/module/modelEdit/modelAdvanced/sceneBase/SynergyFilter.jsx","./sceneBase/SynergyFilter.jsx":"./src/module/modelEdit/modelAdvanced/sceneBase/SynergyFilter.jsx","./sceneBase/TimeSequence":"./src/module/modelEdit/modelAdvanced/sceneBase/TimeSequence.jsx","./sceneBase/TimeSequence.jsx":"./src/module/modelEdit/modelAdvanced/sceneBase/TimeSequence.jsx"};function i(e){var t=o(e);return a(t)}function o(e){if(!a.o(d,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return d[e]}i.keys=function(){return Object.keys(d)},i.resolve=o,e.exports=i,i.id="./src/module/modelEdit/modelAdvanced sync recursive ^.*$"},"./src/module/modelEdit/modelAdvanced/component/ArithmeticParam.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ArithmeticTopDom=t.ArithmeticParamDom=void 0;var d=b(a("./node_modules/antd/es/table/index.js")),i=b(a("./node_modules/babel-runtime/helpers/jsx.js")),o=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=b(a("./node_modules/babel-runtime/helpers/inherits.js")),n=b(a("./node_modules/antd/es/select/index.js")),r=b(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var u=b(a("./node_modules/react/index.js")),m=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/components/index.js"),f=a("./src/redux/selectors/dataSource.js"),h=a("./src/redux/reducers/dataSource.js"),v=a("./node_modules/@ant-design/icons/es/index.js"),g=b(a("./src/components/button/index.js")),x=b(a("./src/module/modelEdit/modelAdvanced/component/EditableTable.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var y=g.default.GhostButton,D=r.default.Group,I={width:"100%"},j=n.default.Option,C=t.ArithmeticParamDom=m.default.div.withConfig({displayName:"ArithmeticParam__ArithmeticParamDom",componentId:"zc30x6-0"})(["float:left;width:100%;margin-bottom:30px;"]),S=t.ArithmeticTopDom=m.default.div.withConfig({displayName:"ArithmeticParam__ArithmeticTopDom",componentId:"zc30x6-1"})(["float:left;width:100%;min-height:50px;.arithmeticDesc{font-size:12px;color:#a2b0c4;margin-left:20px;margin-bottom:40px;}.icon{margin-left:-10px;font-size:12px;color:#a2b0c4;cursor:pointer;margin-right:70px;}"]),F=(0,i.default)(r.default,{value:"Auto"},void 0,"\u81ea\u52a8\u8bad\u7ec3"),A=(0,i.default)(v.QuestionCircleOutlined,{className:"icon",title:"\u81ea\u52a8\u8bad\u7ec3\u4f1a\u6839\u636e\u914d\u7f6e\u7684\u8bad\u7ec3\u76ee\u6807\u81ea\u52a8\u8bad\u7ec3\uff0c\u4f18\u9009\u7b97\u6cd5\u548c\u53c2\u6570\u3002"}),T=(0,i.default)(r.default,{value:"Manual"},void 0,"\u624b\u52a8\u8c03\u8bd5"),P=(0,i.default)(j,{value:""},void 0,"\u8bf7\u9009\u62e9\u7b97\u6cd5"),w=function(e){function t(a){(0,o.default)(this,t);var d=(0,l.default)(this,e.call(this,a));d.onChangeRadio=function(e){var t=e.target.value;d.props.dispatch("Auto"!==t?h.dataSourceActions.getDataParamArithmeticListRequest({viewType:"create"===d.props.viewType?"CREATE":"MODIFY",workFlag:null,isUpdate:"",modelId:"create"===d.props.viewType?null:d.props.modelInfo.modelId,arithmeticId:d.state.arithmeticId}):h.dataSourceActions.getDataParamModeltypeListRequest({viewType:"MODIFY",workFlag:null,isUpdate:"",modelId:"create"===d.props.viewType?null:d.props.modelInfo.modelId,modelTypeId:d.props.modelInfo.modelTypeId})),d.setState({trainType:t})},d.onChangeTable=function(e){d.datas=e},d.showParam=function(){d.setState({modalVisible:!0})},d.callVisible=function(){d.setState({modalVisible:!1})},d.arithmeticChange=function(e,t){d.setState({arithmeticDesc:t.props.children,arithmeticId:e}),d.props.dispatch(h.dataSourceActions.getDataParamArithmeticListRequest({viewType:"create"===d.props.viewType?"CREATE":"MODIFY",workFlag:null,isUpdate:"",modelId:null,arithmeticId:e}))},d.validateFun=function(){var e="Auto"!==d.state.trainType?d.state.arithmeticId:"";if("Auto"!==d.state.trainType&&(0===d.props.paramData.size||void 0===d.datas||0==d.datas.length))return{validate:!1,errorMsg:"\u8bf7\u9009\u62e9\u9009\u62e9\u7b97\u6cd5\u53c2\u6570\u6570\u636e"};for(var t=d.props.paramData.toJS(),a=0;a<t.length;a++)for(var i=0;i<d.datas.length;i++)if(d.datas[i].paramKey===t[a].paramKey){t.splice(a--,1);break}return{validate:!0,moduleData:{WorkMode:d.state.trainType,arithmeticId:e,param:0!==t.length?_.concat(t,d.data):d.datas}}};var s=d;d.state={trainType:void 0!==a.type?"Manual":void 0!==a.arithmeticParam.workMode?a.arithmeticParam.workMode:"Auto",modalVisible:!1,arithmeticDesc:"\u8bf7\u9009\u62e9",arithmeticId:void 0!==a.arithmeticParam.arithmeticId?a.arithmeticParam.arithmeticId:"",_this:s},d.modelTypeId="",d.datas=[],d.columns=[{title:"\u53c2\u6570key",dataIndex:"paramKey",width:"20%",render:function(e){return(0,i.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u53c2\u6570\u9ed8\u8ba4\u503c",dataIndex:"defValue",width:"20%",render:function(e){return(0,i.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u53c2\u6570\u6709\u6548\u6027",dataIndex:"validValue",width:"20%",render:function(e){return(0,i.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u53c2\u6570\u63cf\u8ff0",dataIndex:"paramDesc",width:"40%",render:function(e){return(0,i.default)(c.LineWrap,{title:e,lineClampNum:1})}}];var n=d.props.setValidateFunc;return _.isFunction(n)&&n(void 0===a.type?"arithmeticParam":a.type,d.validateFun),d.updateModule(),d}return(0,s.default)(t,e),t.prototype.componentDidMount=function(){""!==this.props.modelInfo.modelTypeId&&""!==this.props.modelInfo.engine&&this.props.dispatch(h.dataSourceActions.getArithmeticListRequest({modelTypeId:this.props.modelInfo.modelTypeId,engine:this.props.modelInfo.engine}))},t.prototype.componentWillUnmount=function(){this.props.dispatch(h.dataSourceActions.resetDatasArithmetic())},t.getDerivedStateFromProps=function(e,t){if("\u8bf7\u9009\u62e9"===t.arithmeticDesc&&e.arithmeticData.size>0&&"4"===e.modelInfo.modelTypeId){var a=e.arithmeticData.toJS()[0];if("4"===a.modelTypeId)return e.dispatch(h.dataSourceActions.getDataParamArithmeticListRequest({viewType:"create"===e.viewType?"CREATE":"MODIFY",workFlag:null,isUpdate:"",modelId:null,arithmeticId:a.arithmeticId})),{arithmeticDesc:a.arithmeticDesc,arithmeticId:a.arithmeticId}}if(e.arithmeticData.toJS().length>0&&""!==t.arithmeticId){for(var d=t.arithmeticDesc,i=0;i<e.arithmeticData.toJS().length;i++)if(e.arithmeticData.toJS()[i].arithmeticId===t.arithmeticId){d=e.arithmeticData.toJS()[i].arithmeticDesc;break}return{arithmeticDesc:d}}return null},t.prototype.updateModule=function(){var e=this.props.arithmeticParam.arithmeticId,t=this.props.modelInfo.modelTypeId;""!==e&&void 0!==e?this.props.dispatch(h.dataSourceActions.getDataParamArithmeticListRequest({viewType:"create"===this.props.viewType?"CREATE":"MODIFY",workFlag:null,isUpdate:"",modelId:"create"===this.props.viewType?null:this.props.modelInfo.modelId,arithmeticId:e})):this.props.dispatch(h.dataSourceActions.getDataParamModeltypeListRequest({viewType:"MODIFY",workFlag:null,isUpdate:"",modelId:"create"===this.props.viewType?null:this.props.modelInfo.modelId,modelTypeId:t}))},t.prototype.render=function(){var e=this,t={display:"Auto"===this.state.trainType?"none":"",width:"100px",height:"26px",marginRight:"10px"},a=this.props.arithmeticData.toJS();return this.datas=this.props.paramData.toJS(),(0,i.default)(C,{},void 0,(0,i.default)(c.ModalView,{viewType:"view",modalTitle:"\u6240\u6709\u53c2\u6570",closable:!1,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,i.default)(d.default,{rowKey:"paramId",bordered:!0,pagination:!1,columns:this.columns,dataSource:this.props.paramData.toJS()})}),(0,i.default)(c.ModelConfigPanel,{title:"\u9009\u62e9\u7b97\u6cd5\u53c2\u6570",style:I},void 0,(0,i.default)(S,{},void 0,(0,i.default)(D,{style:{display:void 0!==this.props.type?"none":""},disabled:this.props.disabled,onChange:this.onChangeRadio,value:this.state.trainType},void 0,F,A,T),(0,i.default)(n.default,{disabled:this.props.disabled,onChange:this.arithmeticChange,value:this.state.arithmeticId,getPopupContainer:function(e){return e.parentNode},style:t},void 0,P,a.map((function(e){return(0,i.default)(j,{title:e.arithmeticName,value:e.arithmeticId},e.arithmeticId,e.arithmeticName)}))),(0,i.default)("span",{title:this.state.arithmeticDesc,style:{display:"Auto"===this.state.trainType?"none":""},className:"arithmeticDesc"},void 0,"\u7b97\u6cd5\u63cf\u8ff0\uff1a",this.state.arithmeticDesc.length>30?this.state.arithmeticDesc.substring(0,15)+"...":this.state.arithmeticDesc),(0,i.default)(y,{style:{float:"right",marginRight:"3%",width:120},action:"SELECT",txt:"\u67e5\u770b\u5168\u90e8\u53c2\u6570",onClick:function(){return e.showParam()}})),(0,i.default)(x.default,{disabled:this.props.disabled,pagination:!1,onChange:this.onChangeTable,dataSource:this.datas})))},t}(u.default.PureComponent);t.default=(0,p.connect)((function(e){return{paramData:(0,f.selectDatasParam)(e),arithmeticData:(0,f.selectDatasArithmetic)(e)}}))(w)},"./src/module/modelEdit/modelAdvanced/component/AutoOptimize.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.AutoOptimizeDom=void 0;var d=g(a("./node_modules/babel-runtime/helpers/jsx.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),s=g(a("./node_modules/antd/es/select/index.js")),n=g(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var r=g(a("./node_modules/react/index.js")),u=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/lodash/lodash.js"))),p=a("./node_modules/react-redux/es/index.js"),c=a("./src/redux/selectors/dataSource.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./src/utils/dateUtil.js"),v=a("./src/components/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var x=f.Form.Item,b={width:"100%"},y=n.default.Group,D=s.default.Option,I=t.AutoOptimizeDom=u.default.div.withConfig({displayName:"AutoOptimize__AutoOptimizeDom",componentId:"o6gzdz-0"})(["float:left;width:100%;margin-bottom:30px;"]),j=(0,d.default)(D,{value:""},void 0,"\u8bf7\u9009\u62e9\u6570\u636e\u6e90"),_=(0,d.default)(D,{value:""},void 0,"\u8bf7\u9009\u62e9"),C=(0,d.default)(D,{value:"2"},void 0,"\u6bcf\u6708"),S=(0,d.default)(D,{value:"3"},void 0,"\u6bcf\u5468"),F=(0,d.default)(D,{value:"4"},void 0,"\u6bcf\u5929"),A=(0,d.default)(D,{value:""},void 0,"\u8bf7\u9009\u62e9"),T=(0,d.default)(D,{value:""},void 0,"\u8bf7\u9009\u62e9\u5c0f\u65f6"),P=(0,d.default)(D,{value:""},void 0,"\u8bf7\u9009\u62e9\u5206\u949f"),w=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));d.componentDidMount=function(){if(d.props.autoOptimizeParam&&"create"!==d.props.viewType){var e=(0,h.cronFormatData)(d.props.autoOptimizeParam.cronType,d.props.autoOptimizeParam.cronTrigger),t=d.getCycleData(d.props.autoOptimizeParam.cronType),a=d.getTimeData(e.data),i=d.getMinuteArry(),o=d.props.autoOptimizeParam.cronType;d.moduleData.cronType=o,d.moduleData.cronTrigger=d.props.autoOptimizeParam.cronTrigger,d.moduleData.optimizationFlag=d.props.autoOptimizeParam.optimizationFlag,"4"===d.props.autoOptimizeParam.cronType?d.setState({minuteArry:i,timeArry:a,cycle:d.props.autoOptimizeParam.cronType?d.props.autoOptimizeParam.cronType:"",data:void 0!==e.data?e.data:"",time:void 0!==e.time?e.time:"",minute:void 0!==e.minute?e.minute:"",check:!!o,radioValue:o?2:1}):d.setState({minuteArry:i,dateArray:t,timeArry:a,cycle:d.props.autoOptimizeParam.cronType?d.props.autoOptimizeParam.cronType:"",data:void 0!==e.data?e.data:"",time:void 0!==e.time?e.time:"",minute:void 0!==e.minute?e.minute:"",check:!!o,radioValue:o?2:1})}},d.timeChange=function(e){var t=d.getMinuteArry();d.setState({time:e,minuteArry:t})},d.dataChange=function(e){var t=d.getTimeData(),a=d.getMinuteArry();d.setState({timeArry:t,minuteArry:a,data:e})},d.minuteChange=function(e){d.setState({minute:e})},d.getMinuteArry=function(){for(var e=[],t=0;t<=59;t++)e.push({id:t.toString(),val:0===t?"00\u5206":t>9?t+"\u5206":"0"+t+"\u5206"});return e},d.getTimeData=function(){for(var e=[],t=0;t<=23;t++)e.push({id:t.toString(),val:0===t?"00\u65f6":t>9?t+"\u65f6":"0"+t+"\u65f6"});return e},d.getCycleData=function(e){for(var t="1"===e?12:"2"===e?31:"3"===e?7:24,a=[],i=0;i<t;i++){var o=i+1;a.push({id:o.toString(),val:"3"===e?"\u661f\u671f"+d.sectionToChinese(o):o+("1"===e?"\u6708":"2"===e?"\u53f7":" : 00")})}if("3"===e){var l=a[0];delete a[0],a.push(l)}return a},d.handleChange=function(e){d.moduleData.cronType=e;var t=d.getCycleData(e);"4"===e?(d.setState({timeArry:t,cycle:e,data:"",time:"",minute:""}),d.props.form.setFieldsValue({data:"",time:"",minute:""})):(d.setState({timeArry:[],dateArray:t,cycle:e,data:"",time:"",minute:""}),d.props.form.setFieldsValue({data:"",time:"",minute:""}))},d.sectionToChinese=function(e){return{2:"\u4e00",3:"\u4e8c",4:"\u4e09",5:"\u56db",6:"\u4e94",7:"\u516d",1:"\u5929"}[e]},d.onChangeRadio=function(e){var t=e.target.value;1===t&&(d.setState({cycle:"",data:"",time:"",minute:"",dateArray:[],timeArry:[]}),d.moduleData.cronType="",d.moduleData.cronTrigger=""),d.setState({radioValue:t,check:1!==t})},d.validateFun=function(){var e=!1;return d.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),d.state.checkbox?e&&(d.moduleData.cronTrigger=(0,h.dataFormatCron)(d.state.cycle,d.state.data,d.state.time,d.state.minute)):(e=!0,d.moduleData={cronType:"",cronTrigger:"",optimizationFlag:-1,dsId:""}),e?{validate:!0,moduleData:d.moduleData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u6a21\u578b\u81ea\u52a8\u4f18\u5316\u6a21\u5757\u6570\u636e"}},d.handleSourceChange=function(e){d.moduleData.dsId=e},d.checkOnChange=function(e){!0!==e&&!1!==e||(d.setState({checkbox:e}),d.moduleData.optimizationFlag=!0===e?1:-1)},d.state={radioValue:1,cycle:"",data:"",time:"",minute:"",dateArray:[],timeArry:[],minuteArry:[],check:!1,checkbox:"create"!==d.props.viewType&&1===m.default.get(d.props.autoOptimizeParam,"optimizationFlag",1)};var l=d.props.setValidateFunc;return m.default.isFunction(l)&&l("autoOptimize",d.validateFun),d.moduleData="create"===d.props.viewType?{cronType:"",cronTrigger:"",optimizationFlag:-1,dsId:""}:m.default.get(d.props,"autoOptimizeParam",{cronType:"",cronTrigger:"",optimizationFlag:-1,dsId:""}),d}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.sourceData.toJS();return(0,d.default)(I,{},void 0,(0,d.default)(v.ModelConfigPanel,{checkbox:this.state.checkbox,onChange:function(t){return e.checkOnChange(t)},title:"\u6a21\u578b\u81ea\u52a8\u4f18\u5316",explain:"\u5f00\u542f\u540e\uff0c\u6a21\u578b\u5c06\u4f7f\u7528\u81ea\u52a8\u8bad\u7ec3\u7684\u65b9\u5f0f\u6309\u89e6\u53d1\u6761\u4ef6\u81ea\u52a8\u91cd\u65b0\u8bad\u7ec3\u6a21\u578b\u3002",style:b},void 0,this.state.checkbox&&(0,d.default)(f.Form,{layout:"inline"},void 0,(0,d.default)(x,{help:""},void 0,t("dsId",{rules:[{required:!0}],initialValue:this.moduleData.dsId})((0,d.default)(s.default,{showSearch:!0,disabled:this.props.disabled,onChange:this.handleSourceChange,getPopupContainer:function(e){return e.parentNode},style:{width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,j,a.map((function(e){return(0,d.default)(D,{title:e.name,value:e.dsId},e.dsId+m.default.uniqueId(),e.name)}))))),(0,d.default)("div",{},void 0,(0,d.default)(y,{onChange:this.onChangeRadio,value:this.state.radioValue},void 0,(0,d.default)(n.default,{disabled:this.props.disabled,value:1},void 0,(0,d.default)("span",{style:{paddingLeft:"6%"}},void 0,"\u901a\u8fc7API\u8c03\u7528")),(0,d.default)(n.default,{disabled:this.props.disabled,value:2,style:{marginLeft:20,marginTop:"3%",lineHeight:"40px"}},void 0,(0,d.default)(x,{help:""},void 0,"\u5468\u671f\u6267\u884c"," ",t("cycle",{rules:[{required:this.state.check}],initialValue:this.state.cycle})((0,d.default)(s.default,{size:"small",disabled:!(2===this.state.radioValue&&!this.props.disabled),onChange:this.handleChange,getPopupContainer:function(e){return e.parentNode},style:{width:"100px"}},void 0,_,C,S,F))),(0,d.default)(x,{help:""},void 0,t("data",{rules:[{required:"4"!==this.state.cycle&&this.state.check}],initialValue:this.state.data})((0,d.default)(s.default,{size:"small",disabled:!(2===this.state.radioValue&&!this.props.disabled),onChange:this.dataChange,getPopupContainer:function(e){return e.parentNode},style:{display:"4"===this.state.cycle?"none":"",width:"100px"}},void 0,A,this.state.dateArray.map((function(e){return(0,d.default)(D,{value:e.id},e.id+m.default.uniqueId(),e.val)}))))),(0,d.default)(x,{help:""},void 0,t("time",{rules:[{required:this.state.check}],initialValue:this.state.time})((0,d.default)(s.default,{size:"small",disabled:!(2===this.state.radioValue&&!this.props.disabled),onChange:this.timeChange,getPopupContainer:function(e){return e.parentNode},style:{width:"100px"}},void 0,T,this.state.timeArry.map((function(e){return(0,d.default)(D,{value:e.id},e.id+m.default.uniqueId(),e.val)}))))),(0,d.default)(x,{help:""},void 0,t("minute",{rules:[{required:this.state.check}],initialValue:this.state.minute})((0,d.default)(s.default,{showSearch:!0,size:"small",disabled:!(2===this.state.radioValue&&!this.props.disabled),onChange:this.minuteChange,style:{width:"100px"}},void 0,P,this.state.minuteArry.map((function(e){return(0,d.default)(D,{value:e.id},e.id+m.default.uniqueId(),e.val)})))))))))))},t}(r.default.PureComponent);t.default=(0,p.connect)((function(e){return{sourceData:(0,c.selectSourceDropDown)(e)}}))(f.Form.create()(w))},"./src/module/modelEdit/modelAdvanced/component/CheckboxTable.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CheckboxTableDom=void 0;var d=f(a("./node_modules/antd/es/table/index.js")),i=f(a("./node_modules/antd/es/tooltip/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),l=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),n=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var r=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./src/components/index.js"),c=f(a("./node_modules/lodash/lodash.js"));function f(e){return e&&e.__esModule?e:{default:e}}var h=t.CheckboxTableDom=m.default.div.withConfig({displayName:"CheckboxTable__CheckboxTableDom",componentId:"sc-1sd2751-0"})(["margin-top:40px;label{margin-right:0px;}.ant-table-fixed-header .ant-table-fixed-left .ant-table-body-inner{padding-right:0;overflow-x:hidden;}"]),v=function(e){function t(a){(0,l.default)(this,t);var d=(0,s.default)(this,e.call(this,a));return d.columns=[{title:"\u5e8f\u53f7",dataIndex:"numIndex",render:function(e,t,a){return(0,o.default)("span",{},void 0,a+1)}},{title:"\u6307\u6807\u5206\u7c7b",dataIndex:"fieldClassCnName",render:function(e){return(0,o.default)(p.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6307\u6807\u540d\u79f0",dataIndex:"fieldCnName",render:function(e){return(0,o.default)(p.LineWrap,{title:e,lineClampNum:1})}},{title:"\u5355\u4f4d",dataIndex:"fieldUnit",render:function(e){return(0,o.default)(p.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6570\u636e\u7279\u5f81",dataIndex:"fieldDataFeature",render:function(e){return(0,o.default)(p.LineWrap,{title:e,lineClampNum:1})}},{title:"\u503c\u57df/\u6837\u4f8b",dataIndex:"fieldSimple",render:function(e){var t=e;return t&&void 0!==t&&e.length>8?(t=e.substring(0,8)+"...",(0,o.default)(i.default,{title:e},void 0,(0,o.default)("span",{},void 0,t))):(0,o.default)("span",{},void 0,t)}},{title:"\u5e73\u5747\u503c",dataIndex:"meanValue",render:function(e){return(0,o.default)(p.LineWrap,{title:e,lineClampNum:1})}},{title:"\u79bb\u7fa4\u503c",dataIndex:"outlierValue",width:"13%",render:function(e){return(0,o.default)(p.LineWrap,{title:e,lineClampNum:1})}},{title:"\u7f3a\u5931\u503c\uff08\u4e2a\u6570\uff09",dataIndex:"lostValue",render:function(e){return(0,o.default)(p.LineWrap,{title:e,lineClampNum:1})}}],d}return(0,n.default)(t,e),t.prototype.render=function(){var e=this,t=this,a=[];if(this.props.disabled)for(var i=function(d){a.push(c.default.filter(e.props.dataSource,(function(e){if(t.props.selectedIndiData[d].fieldId===e.fieldId)return e}))[0])},l=0;l<this.props.selectedIndiData.length;l++)i(l);else for(l=0;l<this.props.selectedIndiData.length;l++)a.push(this.props.selectedIndiData[l].fieldId);var s={disabled:!1,selectedRowKeys:a,getCheckboxProps:function(e){return{disabled:c.default.indexOf(t.props.disabledindiSelected,e.fieldId)>-1}},onChange:function(e,a){var d=t.props.selectedIndiData,i=t.props.dataSource;if(0!==d.length){for(var o=0;o<i.length;o++)for(var l=0;l<d.length;l++)if(d[l].fieldId===i[o].fieldId){d.splice(l--,1);break}if(0!==a.length)for(var s=0;s<a.length;s++)d.push({fieldClassCnName:a[s].fieldClassCnName,fieldId:a[s].fieldId,fieldCnName:a[s].fieldCnName,fieldEnName:"\u65e0"===a[s].fieldClassEnName?"":a[s].fieldClassEnName,fieldDesc:"\u65e0"===a[s].fieldDesc?"":a[s].fieldDesc,fieldUnit:"\u65e0"===a[s].fieldUnit?"":a[s].fieldUnit,fieldCaliber:"\u65e0"===a[s].fieldCaliber?"":a[s].fieldCaliber})}else for(var n=0;n<a.length;n++)d.push({fieldClassCnName:a[n].fieldClassCnName,fieldId:a[n].fieldId,fieldCnName:a[n].fieldCnName,fieldEnName:"\u65e0"===a[n].fieldClassEnName?"":a[n].fieldClassEnName,fieldDesc:"\u65e0"===a[n].fieldDesc?"":a[n].fieldDesc,fieldUnit:"\u65e0"===a[n].fieldUnit?"":a[n].fieldUnit,fieldCaliber:"\u65e0"===a[n].fieldCaliber?"":a[n].fieldCaliber});t.props.onChange(d,"add")}};return(0,o.default)(h,{dis:this.props.disabled},void 0,(0,o.default)(d.default,{rowKey:"fieldId",bordered:!0,rowSelection:this.props.disabled?null:s,pagination:this.props.pagination,dataSource:this.props.disabled?a:this.props.dataSource,columns:this.columns}))},t}(r.default.Component);t.default=(0,u.connect)((function(){return{}}))(v)},"./src/module/modelEdit/modelAdvanced/component/DefineKpiConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.DefineKpiConfigPage=void 0;var d=x(a("./node_modules/antd/es/button/index.js")),i=x(a("./node_modules/babel-runtime/helpers/jsx.js")),o=x(a("./node_modules/antd/es/modal/index.js")),l=x(a("./node_modules/antd/es/message/index.js")),s=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),n=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var u=x(a("./node_modules/react/index.js")),m=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(x(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/indiSet.js")),h=a("./src/redux/reducers/indiSet.js"),v=x(a("./src/components/common/CheckName.jsx")),g=a("./src/redux/selectors/checkName.js");function x(e){return e&&e.__esModule?e:{default:e}}var b=p.Form.Item,y=t.DefineKpiConfigPage=c.default.div.withConfig({displayName:"DefineKpiConfig__DefineKpiConfigPage",componentId:"oold6q-0"})(["padding-left:10px;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),D=t.ButtonDom=c.default.div.withConfig({displayName:"DefineKpiConfig__ButtonDom",componentId:"oold6q-1"})(["margin-top:20px;height:28px;text-align:right;margin-right:5%;"]),I=function(e){function t(a){(0,s.default)(this,t);var d=(0,n.default)(this,e.call(this,a));return d.closeModal=function(){d.props.closeKpiConfig()},d.saveDefine=function(){var e=!1;d.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&d.setState({modalVisible:!0,nameVerify:!0})},d.submitModalOk=function(){d.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+d.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var e={};e.kpisetName=d.state.kpisetName,e.dsId=d.props.dsId,e.dsCycle=d.props.dsCycle,e.typeId="4",e.fields=d.props.selectedIndiData,d.props.dispatch(h.indiSetActions.submitKpiDataRequest({subType:"add",kpisetParam:e}))},d.submitModalCancel=function(){d.setState({modalVisible:!1})},d.getKpiNameBlur=function(e){d.setState({kpisetName:e}),d.props.form.setFieldsValue({kpisetName:e})},d.handleCheckNameValidate=function(e,t,a){var i=d.props.checkNameVerifyInfo.toJS(),o=i.verifyStatus,l=i.verifyMsg;-1===o&&a(l),a()},d.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",selectedIndiData:[],confirmLoading:!1,modalVisible:!1,_this:d,kpisetName:""},d.checkNameRef=u.default.createRef(),d}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e){return"{}"!==JSON.stringify(e.submitKpiMsg)?-1!==_.get(e.submitKpiMsg,"code")?(l.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(h.indiSetActions.resetSubmitKpiData()),e.closeKpiConfig(),e.dispatch(h.indiSetActions.getKpiDataListRequest("4")),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(o.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1}):null},t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,i.default)(y,{},void 0,(0,i.default)(o.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,i.default)("p",{},void 0,this.state.modalTxt)),(0,i.default)(p.Form,{layout:"inline"},void 0,(0,i.default)(b,{help:""},void 0,e("kpisetName ",{rules:[{required:!0,min:0,max:30},{validator:this.handleCheckNameValidate}],initialValue:this.state.kpisetName})(u.default.createElement(v.default,{ref:this.checkNameRef,source:"indiSet",style:{width:"370px"},placeholder:"\u8bf7\u8f93\u5165\u9884\u5b9a\u4e49\u6307\u6807\u96c6\u540d\u79f0",modelId:"",updateNameCallback:this.getKpiNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelEdit\\modelAdvanced\\component\\DefineKpiConfig.jsx",lineNumber:156}})))),(0,i.default)(D,{},void 0,(0,i.default)(d.default,{onClick:this.saveDefine,style:{marginLeft:"3.1%"},type:"primary"},void 0,"\u786e\u5b9a\u4fdd\u5b58")))},t}(u.default.PureComponent);t.default=(0,m.connect)((function(e){return{submitKpiMsg:(0,f.selectSubmitKpiMsg)(e),checkNameVerifyInfo:(0,g.selectVerifyInfo)(e)}}))(p.Form.create()(I))},"./src/module/modelEdit/modelAdvanced/component/EditableCell.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=p(a("./node_modules/antd/es/input-number/index.js")),i=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=p(a("./node_modules/babel-runtime/helpers/inherits.js")),n=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var r=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/icons/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var c=n.default.Option,f=function(e){function t(a){(0,o.default)(this,t);var s=(0,l.default)(this,e.call(this,a));return s.cellHandleChange=function(e){s.setState({value:e})},s.edit=function(){s.setState({editable:!0})},s.check=function(){s.setState({editable:!1}),s.props.onChange&&s.props.onChange(s.state.value)},s.checkInput=function(e,t){/^\d{0,8}\.{0,1}(\d{1,2})?$/.test(e.target.value)||s.setState({value:t}),s.setState({editable:!1}),s.props.onChange&&s.props.onChange(s.state.value)},s.renderCell=function(){var e={width:"75%",height:"26px"},t=s.props.editType,a=s.state,o=a.value,l=a.editable,u=a.record,p=[];if("select"===t)for(var f=u.validValue.split(","),h=0;h<f.length;h++)p.push(f[h]);return"input"===s.props.editType&&_.get(s.props.record,"validValue").split("-").length>0&&(s.max=_.toInteger(_.get(s.props.record,"validValue").split("-")[1]),s.min=_.toInteger(_.get(s.props.record,"validValue").split("-")[0])),(0,i.default)("div",{className:"editable-cell"},void 0,l&&"input"===t?(0,i.default)("div",{style:{paddingRight:24}},void 0,r.default.createElement(d.default,{size:"small",disabled:s.props.disabled,autoFocus:!0,style:e,value:o,max:s.max,min:s.min,ref:s.inputRef,onBlur:function(e){return s.checkInput(e,s.min)},onChange:s.cellHandleChange,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelEdit\\modelAdvanced\\component\\EditableCell.jsx",lineNumber:73}})):l||"input"!==t&&"select"!==t?l&&"select"===t?(0,i.default)("div",{style:{paddingRight:24}},void 0,(0,i.default)(n.default,{disabled:s.props.disabled,autoFocus:!0,size:"small",onBlur:function(){return s.check()},onChange:s.cellHandleChange,getPopupContainer:function(e){return e.parentNode},style:e,defaultValue:p[0]},void 0,p.map((function(e,t){return(0,i.default)(c,{value:e},t,e)})))):(0,i.default)("div",{style:{paddingRight:24}},void 0,o||" "):(0,i.default)("div",{onClick:s.props.disabled?null:s.edit,style:{paddingRight:24}},void 0,o||" ",s.props.disabled?"":(0,i.default)(m.EditOutlined,{className:"editable-cell-icon",onClick:s.props.disabled?null:s.edit})))},s.inputRef=r.default.createRef(),s.state={value:s.props.value,editable:!1,record:s.props.record},s.max=1e3,s.min=1,s}return(0,s.default)(t,e),t.prototype.render=function(){return(0,i.default)("div",{},void 0,this.renderCell())},t}(r.default.Component);t.default=(0,u.connect)((function(){return{}}))(f)},"./src/module/modelEdit/modelAdvanced/component/EditableTable.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.EditableDom=void 0;var d=c(a("./node_modules/antd/es/table/index.js")),i=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=c(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var n=c(a("./node_modules/react/index.js")),r=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./src/components/index.js"),p=c(a("./src/module/modelEdit/modelAdvanced/component/EditableCell.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var f=t.EditableDom=u.default.div.withConfig({displayName:"EditableTable__EditableDom",componentId:"sc-40k00a-0"})(["margin-top:40px;width:98%;.ant-table-thead{th{background:#e0e6ed;}}.ant-table-thead > tr:first-child > th:first-child{border-top-left-radius:4px;padding:15px;}.ant-table table{border-collapse:none;}.ant-table-tbody > tr > td{padding:10px 10px;}.anticon{cursor:pointer;margin-left:10px;}.editable-cell-icon{float:right;padding-top:3px;}"]),h=function(e){function t(a){(0,o.default)(this,t);var d=(0,l.default)(this,e.call(this,a));return d.filterData=function(e){for(var t=[],a=0;a<e.length;a++)void 0!==e[a].validValue&&""!==e[a].validValue&&(_.includes(e[a].validValue,"-")||_.includes(e[a].validValue,","))&&t.push(e[a]);return t},d.onCellChange=function(e,t){return function(a){var i=[].concat(d.props.dataSource),o=i.find((function(t){return t.paramId===e}));o&&(o[t]=_.toString(a)),d.props.onChange(i)}},d.columns=[{title:"\u53c2\u6570key",dataIndex:"paramKey",width:"20%",render:function(e){return(0,i.default)(m.LineWrap,{title:e,lineClampNum:1})}},{title:"\u53c2\u6570\u503c",dataIndex:"defValue",width:"20%",render:function(e,t){var a=_.includes(t.validValue,"-")?"input":_.includes(t.validValue,",")?"select":null;return(0,i.default)(p.default,{disabled:d.props.disabled,value:e,record:t,editType:a,onChange:d.onCellChange(t.paramId,"defValue")})}},{title:"\u53c2\u6570\u6709\u6548\u6027",dataIndex:"validValue",width:"20%",render:function(e){return(0,i.default)(m.LineWrap,{title:e,lineClampNum:1})}},{title:"\u53c2\u6570\u63cf\u8ff0",dataIndex:"paramDesc",width:"40%",render:function(e){return(0,i.default)(m.LineWrap,{title:e,lineClampNum:1})}}],d}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.filterData(void 0!==this.props.dataSource?this.props.dataSource:[]),t=this.columns;return(0,i.default)(f,{},void 0,(0,i.default)(d.default,{rowKey:"paramId",bordered:!0,pagination:this.props.pagination,dataSource:e,columns:t}))},t}(n.default.Component);t.default=(0,r.connect)((function(){return{}}))(h)},"./src/module/modelEdit/modelAdvanced/component/FeatureIndiSetSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FeatureIndiSetSettingTopDom=t.FeatureIndiSetSettingDom=void 0;var d=_(a("./node_modules/antd/es/button/index.js")),i=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/antd/es/message/index.js")),l=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),n=_(a("./node_modules/babel-runtime/helpers/inherits.js")),r=_(a("./node_modules/antd/es/select/index.js")),u=_(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=_(a("./node_modules/react/index.js")),p=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(a("./node_modules/immutable3/dist/immutable.js"),a("./src/redux/reducers/indiSet.js")),f=(_(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=_(a("./src/module/modelEdit/modelAdvanced/component/DefineKpiConfig.jsx")),v=a("./src/redux/reducers/dataSource.js"),g=a("./src/redux/selectors/dataSource.js"),x=_(a("./node_modules/lodash/lodash.js")),b=a("./src/redux/selectors/indiSet.js"),y=a("./src/components/index.js"),D=a("./node_modules/@ant-design/icons/es/index.js"),I=_(a("./src/module/modelEdit/modelAdvanced/component/CheckboxTable.jsx")),j=_(a("./src/module/modelEdit/modelAdvanced/component/SelectedIndi.jsx"));function _(e){return e&&e.__esModule?e:{default:e}}var C=u.default.Search,S=r.default.Option,F={width:"100%"},A=t.FeatureIndiSetSettingDom=p.default.div.withConfig({displayName:"FeatureIndiSetSetting__FeatureIndiSetSettingDom",componentId:"sc-1tpf4gu-0"})(["float:left;width:100%;margin-bottom:30px;"]),T=t.FeatureIndiSetSettingTopDom=p.default.div.withConfig({displayName:"FeatureIndiSetSetting__FeatureIndiSetSettingTopDom",componentId:"sc-1tpf4gu-1"})(["float:left;width:100%;min-height:50px;.ant-input-search{width:200px !important;margin-left:10px !important;margin-top:0.5px;}.icon{font-size:12px;color:#a2b0c4;cursor:pointer;margin-left:2%;}"]),P=(0,i.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u6307\u6807\u5206\u7c7b"),w=(0,i.default)(D.QuestionCircleOutlined,{className:"icon",title:"\u4e3a\u4fdd\u8bc1\u6a21\u578b\u8d28\u91cf\uff0c\u9009\u62e9\u7684\u6307\u6807\u6570\u91cf\u4e0d\u5c11\u4e8e3\u4e2a\uff01"}),V=(0,i.default)(D.SaveOutlined,{}),N=(0,i.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u9884\u5b9a\u4e49\u6307\u6807\u96c6"),M=function(e){function t(a){(0,l.default)(this,t);var d=(0,s.default)(this,e.call(this,a));d.validateFun=function(){return 0!==d.selectedIndiData.length&&d.selectedIndiData.length<3?{validate:!1,errorMsg:"\u7279\u5f81\u6307\u6807\u6a21\u5757\u6570\u636e\u5fc5\u987b\u9009\u62e93\u6761\u4ee5\u4e0a\uff01"}:{validate:!0,moduleData:{selKpis:d.selectedIndiData}}},d.doSearch=function(e){d.setState({searchTxt:e}),d.props.dispatch(v.dataSourceActions.getDataSourceAuditListRequest({dsId:d.props.modelInfo.dsId,dsCycle:d.props.modelInfo.dsCycle,kpiClass:d.state.arithmetic,kpiName:e}))},d.editSelectedIndiData=function(e,t){var a=d.state.selectedIndiData;if("add"===t)a=e;else for(var i=0;i<a.length;i++)if(a[i].fieldId===e){a.splice(i,1);break}d.setState({selectedIndiData:a.concat([])}),d.props.onChange(a,"chooseKpi")},d.callVisible=function(){d.setState({modalVisible:!1})},d.saveDefinitionIndi=function(){d.state.selectedIndiData.length>0?d.setState({modalVisible:!0}):o.default.warning("\u8bf7\u9009\u62e9\u53e6\u5b58\u4e3a\u7684\u6307\u6807\uff01")},d.arithmeticChange=function(e){d.setState({arithmetic:e}),d.props.dispatch(v.dataSourceActions.getDataSourceAuditListRequest({dsId:d.props.modelInfo.dsId,dsCycle:d.props.modelInfo.dsCycle,kpiClass:e,kpiName:d.state.searchTxt}))},d.kpiChange=function(e){d.props.dispatch(c.indiSetActions.getKpiSetListRequest({kpisetId:e,dsCycle:""}))};var i=d;d.state={searchTxt:"",selectedIndiData:[],arithmetic:"",_this:i,newDsId:"",modalVisible:!1},d.selectedIndiData=[];var n=d.props.setValidateFunc;return x.default.isFunction(n)&&n("chooseKpi",d.validateFun),a.chooseKpi.length>0&&d.updateModule(),a.dispatch(c.indiSetActions.getKpiDataListRequest({typeId:"4",kpisetName:"",dsId:a.modelInfo.dsId})),d}return(0,n.default)(t,e),t.prototype.updateModule=function(){this.props.dispatch(v.dataSourceActions.getDataSourceAuditListRequest({dsId:this.props.modelInfo.dsId,dsCycle:this.props.modelInfo.dsCycle,kpiClass:null,kpiName:null})),this.props.dispatch(v.dataSourceActions.getDataKpiTypeListRequest({dsId:this.props.modelInfo.dsId,dsCycle:this.props.modelInfo.dsCycle}))},t.getDerivedStateFromProps=function(e,t){if(e.kpiSetData&&(e.kpiSetData.size>0||void 0!==e.kpiSetData.length)&&e.dispatch(c.indiSetActions.resetKpiSetList()),e.indiS&&(electednextProps.indiSelected.negative.length>0||e.indiSelected.positive.length>0))for(var a=0;a<e.chooseKpi.length;a++)(x.default.indexOf(e.indiSelected.negative,e.chooseKpi[a].fieldId)>-1||x.default.indexOf(e.indiSelected.positive,e.chooseKpi[a].fieldId)>-1)&&e.chooseKpi.splice(a--,1);return t.newDsId!==e.modelInfo.dsId?{selectedIndiData:[],newDsId:e.modelInfo.dsId}:0===t.selectedIndiData.length&&e.chooseKpi.length>0&&e.sourcesAudit.size>0?{selectedIndiData:t._this.formatSelectedIndiData(e.sourcesAudit.toJS(),e.chooseKpi),newDsId:e.modelInfo.dsId}:null},t.prototype.formatSelectedIndiData=function(e,t){for(var a=[],d=0;d<t.length;d++)for(var i=0;i<e.length;i++)if(t[d].fieldId===e[i].fieldId){var o={fieldClassCnName:e[i].fieldClassCnName,fieldId:t[d].fieldId,fieldCnName:e[i].fieldCnName};a.push(o)}return a},t.prototype.render=function(){var e=this.props.kpiData?this.props.kpiData.toJS():[],t=void 0!==this.props.kpiType?this.props.kpiType.toJS():[],a=0!==this.props.sourcesAudit.size?this.props.sourcesAudit.toJS():[];this.selectedIndiData=[];for(var o=x.default.concat(this.props.indiSelected.positive,this.props.indiSelected.negative),l=0;l<this.state.selectedIndiData.length;l++)-1===x.default.indexOf(o,this.state.selectedIndiData[l].fieldId)&&this.selectedIndiData.push(this.state.selectedIndiData[l]);return(0,i.default)(A,{},void 0,(0,i.default)(y.ModalView,{viewType:"view",modalTitle:"\u65b0\u5efa\u9884\u5b9a\u4e49\u6307\u6807\u96c6",closable:!1,width:500,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,i.default)(h.default,{closeKpiConfig:this.callVisible,selectedIndiData:this.state.selectedIndiData,dsCycle:this.props.modelInfo.dsCycle,dsId:this.props.modelInfo.dsId})},this.state.viewType),(0,i.default)(y.ModelConfigPanel,{title:"\u9009\u62e9\u7279\u5f81\u6307\u6807",style:F},void 0,(0,i.default)(T,{},void 0,(0,i.default)(r.default,{disabled:this.props.disabled,defaultValue:this.state.arithmetic,onChange:this.arithmeticChange,style:{width:"150px",height:"26px",marginRight:"10px"},getPopupContainer:function(e){return e.parentNode}},void 0,P,t.map((function(e){return(0,i.default)(S,{value:e},x.default.uniqueId(),e)}))),(0,i.default)(C,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",disabled:this.props.disabled,defaultValue:this.state.searchTxt,onSearch:this.doSearch}),w,(0,i.default)(d.default,{type:"primary",icon:V,style:{width:"150px",marginRight:"2%",float:"right"},onClick:this.saveDefinitionIndi},void 0,"\u4fdd\u5b58\u4e3a\u9884\u5b9a\u4e49\u6307\u6807\u96c6"),(0,i.default)(r.default,{disabled:this.props.disabled,getPopupContainer:function(e){return e.parentNode},defaultValue:"",onChange:this.kpiChange,style:{width:"150px",height:"26px",marginRight:"20px",float:"right"}},void 0,N,e.map((function(e){return(0,i.default)(S,{value:e.kpisetId},x.default.uniqueId(),e.kpisetName)})))),(0,i.default)(I.default,{disabled:this.props.disabled,pagination:!1,selectedIndiData:this.selectedIndiData,onChange:this.editSelectedIndiData,dataSource:a,disabledindiSelected:o}),this.props.disabled?"":(0,i.default)(j.default,{kpiType:this.props.kpiType,disabled:this.props.disabled,onChange:this.editSelectedIndiData,selectedIndiData:this.selectedIndiData})))},t}(m.default.PureComponent);t.default=(0,f.connect)((function(e){return{sourcesAudit:(0,g.selectDatasSourcesAudit)(e),kpiType:(0,g.selectDatasKpiType)(e),kpiSetData:(0,b.selectKpiSetDataList)(e),kpiData:(0,b.selectKpiDataList)(e)}}))(M)},"./src/module/modelEdit/modelAdvanced/component/FilterData.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FilterDataDom=void 0;var d=f(a("./node_modules/antd/es/button/index.js")),i=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var n=f(a("./node_modules/react/index.js")),r=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./src/components/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var h={width:"100%"},v=t.FilterDataDom=r.default.div.withConfig({displayName:"FilterData__FilterDataDom",componentId:"bl0kup-0"})(["float:left;width:100%;margin-bottom:30px;"]),g=(0,i.default)(m.PlusCircleOutlined,{}),x=function(e){function t(a){(0,o.default)(this,t);var d=(0,l.default)(this,e.call(this,a));d.selectDatas=function(e){for(var t=[],a=0;a<e.length;a++){var d=e[a].fieldFilterRule.split(" ");3===d.length&&(e[a].operator=d[1],e[a].val=d[2]),t.push(e[a])}return t},d.addIndiClick=function(){var e=d.state.indiDatas,t={id:"",modelId:d.modelId,fieldId:"",fieldCnName:"",fieldEnName:"",fieldFilterRule:"",operator:"",val:"",fieldIndex:""};d.setState({indiDatas:[].concat(e,[t])})},d.getIndiData=function(e){d.setState({indiDatas:e.concat([])})},d.setValidateFunc=function(e,t){d.validateNegFuncs[e]=t},d.deleteValiFuncs=function(){d.validateNegFuncs={}},d.validateFun=function(){var e=[];Object.keys(d.validateNegFuncs).map((function(t){var a=d.validateNegFuncs[t];if(_.isFunction(a)){var i=a.call();e.push(i)}}));for(var t=[],a=0;a<e.length;a++){if(!e[a].validate)return{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u7b5b\u9009\u6570\u636e\u6a21\u5757\u6570\u636e"};e[a].moduleData.fieldFilterRule=e[a].moduleData.fieldEnName+" "+e[a].moduleData.operator+" "+e[a].moduleData.val,t.push(e[a].moduleData)}return{validate:!0,moduleData:t}},d.state={indiDatas:0!==a.dataFilter.length?d.selectDatas(a.dataFilter):[]},d.modelId=void 0!==a.modelInfo.modelId?a.modelInfo.modelId:"";var i=d.props.setValidateFunc;return _.isFunction(i)&&i("dataFilter",d.validateFun),d.validateNegFuncs={},d}return(0,s.default)(t,e),t.prototype.render=function(){return(0,i.default)(v,{},void 0,(0,i.default)(c.ModelConfigPanel,{explain:"\u7cfb\u7edf\u4f1a\u4fdd\u7559\u7b26\u5408\u6761\u4ef6\u7684\u6570\u636e\uff0c\u4f8b\u5982\uff1a\u914d\u7f6e\u5e74\u9f84>25\uff0c\u5219\u4f1a\u4fdd\u7559\u5e74\u9f84\u5927\u4e8e25\u5c81\u7684\u7528\u6237\u6570\u636e\u3002",title:"\u7b5b\u9009\u6570\u636e",style:h},void 0,(0,i.default)(d.default,{size:"small",disabled:this.props.disabled,style:{width:"100px"},icon:g,onClick:this.addIndiClick},void 0,"\u6dfb\u52a0\u6307\u6807"),(0,i.default)(c.IndiSetCondSetting,{type:"openOne",selectedIndiIds:this.props.selectedIndiIds,disabled:this.props.disabled,onChange:this.getIndiData,moduleWidth:100,deleteValiFuncs:this.deleteValiFuncs,setValidateFunc:this.setValidateFunc,ulStyle:{display:"block",paddingLeft:"0px",float:"left",width:"98%"},liStyle:{float:"left",width:"45%",marginRight:"2%"},datas:this.state.indiDatas})))},t}(n.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(p.Form.create()(x))},"./src/module/modelEdit/modelAdvanced/component/ForecastPoint.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ForecastPointDom=void 0;var d=h(a("./node_modules/babel-runtime/helpers/extends.js")),i=h(a("./node_modules/antd/es/input-number/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),l=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),n=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input-number/style/index.js");var r=h(a("./node_modules/react/index.js")),u=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./node_modules/@ant-design/icons/es/index.js"),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/components/index.js");function h(e){return e&&e.__esModule?e:{default:e}}var v=c.Form.Item,g={width:"100%"},x=t.ForecastPointDom=u.default.div.withConfig({displayName:"ForecastPoint__ForecastPointDom",componentId:"sc-1nsevd2-0"})(["float:left;width:100%;margin-bottom:30px;.icon{font-size:12px;color:#a2b0c4;cursor:pointer;}"]),b=(0,o.default)(v,{},void 0,(0,o.default)(p.QuestionCircleOutlined,{className:"icon",title:"\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u8bbe\u7f6e\u9700\u8981\u9884\u6d4b\u7684\u65f6\u95f4\u70b9\u4e2a\u6570\uff0c\u4f8b\u5982\uff1a\u6570\u636e\u4e3a\u6708\u7c92\u5ea6\uff0c\u586b\u51993\u5219\u8868\u793a\u9884\u6d4b\u672a\u67653\u4e2a\u6708\uff08\u5efa\u8bae\u9884\u6d4b\u7684\u65f6\u95f4\u70b9\u4e2a\u6570\u4e0d\u8d85\u8fc7\u6574\u4f53\u6570\u636e\u768420%\uff09"})),y=function(e){function t(a){(0,l.default)(this,t);var d=(0,s.default)(this,e.call(this,a));d.validateFun=function(){var e=!1;return d.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:{forecastPoint:_.toString(d.state.forecastPoint)}}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u8bbe\u7f6e\u9884\u6d4b\u5468\u671f\u6a21\u5757\u6570\u636e"}},d.onInputNumberChange=function(e){d.setState({forecastPoint:e})},d.state={forecastPoint:d.props.forecastPoint.length>0?d.props.forecastPoint[0].paramValue:"3"};var i=d.props.setValidateFunc;return _.isFunction(i)&&i("forecastPoint",d.validateFun),d}return(0,n.default)(t,e),t.prototype.getForecastPointData=function(e){for(var t=[],a=0;a<e.length;a++)"forecastPoint"===e[a].paramKey&&t.push(e[a]);return t},t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,o.default)(x,{},void 0,(0,o.default)(f.ModelConfigPanel,{title:"\u8bbe\u7f6e\u9884\u6d4b\u5468\u671f",style:g},void 0,(0,o.default)(c.Form,{layout:"inline"},void 0,r.default.createElement(v,(0,d.default)({help:""},{labelCol:{offset:0,span:0}},{label:"\u9884\u6d4b\u7684\u5468\u671f\u503c",__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelEdit\\modelAdvanced\\component\\ForecastPoint.jsx",lineNumber:82}}),e("paramValue1",{rules:[{required:!0}],initialValue:_.toInteger(this.state.forecastPoint)})((0,o.default)(i.default,{style:{width:"200px"},disabled:this.props.disabled,precision:0,placeholder:"\u586b\u5199\u65f6\u95f4\u70b9\u6574\u6570",onChange:this.onInputNumberChange}))),b)))},t}(r.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(c.Form.create()(y))},"./src/module/modelEdit/modelAdvanced/component/GradeParam.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.GradeParamTopDom=t.GradeParamDom=void 0;var d=v(a("./node_modules/antd/es/button/index.js")),i=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=v(a("./node_modules/babel-runtime/helpers/inherits.js")),n=v(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var r=v(a("./node_modules/react/index.js")),u=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/lodash/lodash.js"))),p=a("./node_modules/react-redux/es/index.js"),c=a("./src/components/index.js"),f=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");function v(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var g=n.default.Group,x={width:"100%"},b=t.GradeParamDom=u.default.div.withConfig({displayName:"GradeParam__GradeParamDom",componentId:"sc-1jre4hy-0"})(["float:left;width:100%;margin-bottom:30px;label{margin-right:90px;}"]),y=t.GradeParamTopDom=u.default.div.withConfig({displayName:"GradeParam__GradeParamTopDom",componentId:"sc-1jre4hy-1"})(["float:left;width:100%;min-height:40px;"]),D=(0,i.default)(n.default,{value:"Auto"},void 0,"\u81ea\u52a8\u8ba1\u7b97"),I=(0,i.default)(n.default,{value:"Manual"},void 0,"\u624b\u52a8\u914d\u7f6e"),j=(0,i.default)(f.PlusCircleOutlined,{}),_=function(e){function t(a){(0,o.default)(this,t);var d=(0,l.default)(this,e.call(this,a));d.onChangeRadio=function(e){var t=e.target.value;d.setState({gradeType:t})},d.addIndiClick=function(){var e=d.state.gradeParamDatas;d.setState({gradeParamDatas:[].concat(e,[{paramId:"",modelId:"",paramKey:"",paramValue:"0"}])})},d.getIndiData=function(e){d.setState({gradeParamDatas:e})},d.deleteValiFuncs=function(){d.validateGradeFuncs={}},d.validateFun=function(){var e=[];Object.keys(d.validateGradeFuncs).map((function(t){var a=d.validateGradeFuncs[t];if(m.default.isFunction(a)){var i=a.call();e.push(i)}}));for(var t=[],a=0,i=0;i<e.length&&"Auto"!==d.state.gradeType;i++){if(!e[i].validate)return{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u914d\u7f6e\u8bc4\u5206\u6a21\u578b\u6570\u636e"};t.push(e[i].moduleData),a+=Math.round(100*m.default.toFinite(e[i].moduleData.paramValue))}return 100!==a&&"Auto"!==d.state.gradeType?{validate:!1,errorMsg:"\u914d\u7f6e\u8bc4\u5206\u6a21\u578b\u603b\u4f53\u6743\u91cd\u5fc5\u987b\u5927\u4e8e\u7b49\u4e8e100%"}:0===e.length&&"Auto"!==d.state.gradeType?{validate:!1,errorMsg:"\u8bf7\u6dfb\u52a0\u914d\u7f6e\u8bc4\u5206\u6a21\u578b\u6570\u636e"}:{validate:!0,moduleData:{WorkMode:d.state.gradeType,newGradeParam:t}}},d.setGradeValidateFunc=function(e,t){d.validateGradeFuncs[e]=t},d.state={gradeType:a.gradeParam.length>0?d.getUpdateGradeType(d.props.gradeParam):"Auto",gradeParamDatas:a.gradeParam.length>0?d.getUpdateGradeData(a.gradeParam):[]},d.modeulDatas={};var i=d.props.setValidateFunc;return m.default.isFunction(i)&&i("gradeParam",d.validateFun),d.validateGradeFuncs={},d}return(0,s.default)(t,e),t.prototype.getUpdateGradeType=function(e){for(var t=0;t<e.length;t++)if("WorkMode"===e[t].paramKey)return e[t].paramValue},t.prototype.getUpdateGradeData=function(e){for(var t="",a="",d="",i=[],o="",l="",s=0;s<e.length;s++)"ScoreWeight"===e[s].paramKey?(t=e[s].paramValue,o=e[s].modelId,l=e[s].paramId):"ScoreItems"===e[s].paramKey?a=e[s].paramValue:"WorkMode"===e[s].paramKey&&(d=e[s].paramValue);if("Auto"!==d&&a.split(",").length>0)for(var n=t.split(","),r=a.split(","),u=0;u<n.length;u++){var m={paramId:l,modelId:o,paramKey:r[u],paramValue:n[u]};i.push(m)}return i},t.prototype.render=function(){return(0,i.default)(b,{},void 0,(0,i.default)(c.ModelConfigPanel,{title:"\u914d\u7f6e\u8bc4\u5206\u6a21\u578b",style:x},void 0,(0,i.default)(y,{},void 0,(0,i.default)(g,{disabled:this.props.disabled,onChange:this.onChangeRadio,value:this.state.gradeType},void 0,D,I)),(0,i.default)(d.default,{disabled:this.props.disabled,style:{width:"100px",display:"Auto"===this.state.gradeType?"none":""},icon:j,size:"small",onClick:this.addIndiClick},void 0,"\u6dfb\u52a0\u6307\u6807"),(0,i.default)("div",{style:{display:"Auto"===this.state.gradeType?"none":""}},void 0,(0,i.default)(c.GradeSetCondSetting,{selectedIndiIds:this.props.selectedIndiIds,disabled:this.props.disabled,onChange:this.getIndiData,deleteValiFuncs:this.deleteValiFuncs,datas:this.state.gradeParamDatas,setValidateFunc:this.setGradeValidateFunc}))))},t}(r.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(h.Form.create()(_))},"./src/module/modelEdit/modelAdvanced/component/RatioData.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FilterDataDom=void 0;var d=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),s=m(a("./node_modules/react/index.js")),n=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),r=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/components/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var p={width:"100%"},c=t.FilterDataDom=n.default.div.withConfig({displayName:"RatioData__FilterDataDom",componentId:"sc-1dfq70x-0"})(["float:left;width:100%;margin-bottom:30px;"]),f=function(e){function t(a){(0,i.default)(this,t);var l=(0,o.default)(this,e.call(this,a));l.validateFun=function(){for(var e={},t=l.props.loadModules,a=0;a<t.length;a++)"divideData"===t[a]?e[t[a]]=l.state.posiNegaVal:"divideDataVerify"===t[a]&&(e[t[a]]=l.state.trainVerifyVal);return{validate:!0,moduleData:e}},l.setModuleData=function(e,t){"divideData"===t?l.setState({posiNegaVal:e}):"divideDataVerify"===t&&l.setState({trainVerifyVal:e})},l.sliderRatiosLoda=function(){var e=1===l.props.loadModules.length?"98%":"44%",t={width:e,float:"left",marginRight:"2%"},a={width:e,float:1===l.props.loadModules.length?"left":"right",marginRight:"2%"};return 1===l.props.loadModules.length?"divideData"===l.props.loadModules[0]?(0,d.default)(u.ModelConfigPanel,{title:"\u8c03\u6574\u6bd4\u4f8b",style:p},void 0,(0,d.default)(u.SliderRatio,{disabled:l.props.disabled,title:"\u8c03\u6574\u6570\u636e\u96c6\u4e2d\u7684\u6b63\u8d1f\u6837\u672c\u6bd4\u4f8b",bodyStyle:t,onChange:l.setModuleData,moduleType:"divideData",defaultValue:l.state.posiNegaVal,sliderTitleBefore:"\u8d1f\u6837\u672c",sliderTitleLater:"\u6b63\u6837\u672c"})):(0,d.default)(u.ModelConfigPanel,{title:"\u8c03\u6574\u6bd4\u4f8b",style:p},void 0,(0,d.default)(u.SliderRatio,{disabled:l.props.disabled,title:"\u5212\u5206\u8bad\u7ec3\u96c6\u548c\u6821\u9a8c\u96c6",bodyStyle:a,onChange:l.setModuleData,moduleType:"divideDataVerify",defaultValue:l.state.trainVerifyVal,sliderTitleLater:"\u8bad\u7ec3\u96c6",sliderTitleBefore:"\u6821\u9a8c\u96c6"})):(0,d.default)(u.ModelConfigPanel,{title:"\u8c03\u6574\u6bd4\u4f8b",style:p},void 0,(0,d.default)(u.SliderRatio,{disabled:l.props.disabled,title:"\u8c03\u6574\u6570\u636e\u96c6\u4e2d\u7684\u6b63\u8d1f\u6837\u672c\u6bd4\u4f8b",bodyStyle:t,onChange:l.setModuleData,moduleType:"divideData",defaultValue:l.state.posiNegaVal,sliderTitleBefore:"\u8d1f\u6837\u672c",sliderTitleLater:"\u6b63\u6837\u672c"}),(0,d.default)(u.SliderRatio,{disabled:l.props.disabled,title:"\u5212\u5206\u8bad\u7ec3\u96c6\u548c\u6821\u9a8c\u96c6",bodyStyle:a,onChange:l.setModuleData,moduleType:"divideDataVerify",defaultValue:l.state.trainVerifyVal,sliderTitleLater:"\u8bad\u7ec3\u96c6",sliderTitleBefore:"\u6821\u9a8c\u96c6"}))},l.state={posiNegaVal:0!==a.divideData?a.divideData:50,trainVerifyVal:0!==a.divideDataVerify?a.divideDataVerify:80},l.datas=[];var s=l.props.setValidateFunc;return _.isFunction(s)&&s("ratioData",l.validateFun),l}return(0,l.default)(t,e),t.prototype.render=function(){return(0,d.default)(c,{},void 0,this.sliderRatiosLoda())},t}(s.default.PureComponent);t.default=(0,r.connect)((function(){return{}}))(f)},"./src/module/modelEdit/modelAdvanced/component/SampleDataSizeLimit.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.SampleDataSizeLimitDom=void 0;var d=v(a("./node_modules/antd/es/input-number/index.js")),i=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=v(a("./node_modules/babel-runtime/helpers/inherits.js")),n=v(a("./node_modules/antd/es/select/index.js")),r=v(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var u=v(a("./node_modules/react/index.js")),m=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/redux/selectors/enumDic.js"),h=a("./src/components/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var g=c.Form.Item,x=r.default.Group,b=n.default.Option,y={width:"100%"},D=t.SampleDataSizeLimitDom=m.default.div.withConfig({displayName:"SampleDataSizeLimit__SampleDataSizeLimitDom",componentId:"sc-6yu73o-0"})(["float:left;width:100%;margin-bottom:30px;label{margin-right:90px;}"]),I=(0,i.default)(r.default,{value:0},void 0,"\u5168\u90e8\u6570\u636e"),j=(0,i.default)(r.default,{value:1},void 0,"\u81ea\u5b9a\u4e49"),C=(0,i.default)(b,{value:""},void 0,"\u8bf7\u9009\u62e9\u968f\u673a\u7b97\u6cd5"),S=function(e){function t(a){(0,o.default)(this,t);var d=(0,l.default)(this,e.call(this,a));d.onChangeRadio=function(e){var t=e.target.value;1===t?(d.sampleDataSizeLimit.extractType=""!==d.sampleDataSizeLimit.extractType?d.sampleDataSizeLimit.extractType:d.props.algorithmData.list()[0].value,d.props.form.setFieldsValue({extractType:""!==d.sampleDataSizeLimit.extractType?d.sampleDataSizeLimit.extractType:d.props.algorithmData.list()[0].value})):d.sampleDataSizeLimit.extractType="",d.sampleDataSizeLimit.definitionType=t,d.setState({definitionType:t})},d.onInputNumberChange=function(e){d.sampleDataSizeLimit.inputNumber=e,d.setState({inputNumber:e})},d.onAlgorithmAlgorithmChange=function(e){d.setState({extractType:e}),d.sampleDataSizeLimit.extractType=e},d.validateFun=function(){var e=!1;return d.props.form.validateFieldsAndScroll((function(t){0!==d.state.definitionType?null===t&&(e=!0):e=!0})),e?{validate:e,moduleData:{amount:0===d.sampleDataSizeLimit.definitionType?"-1":d.sampleDataSizeLimit.inputNumber,extractType:0===d.sampleDataSizeLimit.definitionType?"":d.sampleDataSizeLimit.extractType}}:{validate:e,errorMsg:"\u8bf7\u586b\u5199\u9650\u5b9a\u6837\u672c\u6570\u636e\u6a21\u5757\u968f\u673a\u7b97\u6cd5"}},d.state={definitionType:void 0!==a.modelInfo.modelId&&"-1"!==d.props.limitSampleData.amount?1:0,inputNumber:void 0!==a.modelInfo.modelId&&"-1"!==d.props.limitSampleData.amount?d.props.limitSampleData.amount:1e3,extractType:void 0!==a.modelInfo.modelId&&""!==d.props.limitSampleData.extractType?d.props.limitSampleData.extractType:"0"},d.sampleDataSizeLimit={definitionType:d.state.definitionType,inputNumber:d.state.inputNumber,extractType:d.state.extractType};var i=d.props.setValidateFunc;return _.isFunction(i)&&i("limitSampleData",d.validateFun),d}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.props.algorithmData.list(),t=this.props.form.getFieldDecorator;return(0,i.default)(c.Form,{layout:"inline"},void 0,(0,i.default)(D,{},void 0,(0,i.default)(h.ModelConfigPanel,{title:"\u9650\u5b9a\u6837\u672c\u6570\u636e",style:y},void 0,(0,i.default)(g,{help:""},void 0,(0,i.default)(x,{disabled:this.props.disabled,onChange:this.onChangeRadio,value:this.state.definitionType},void 0,I,j)),(0,i.default)(g,{style:{paddingRight:"20px",display:0===this.state.definitionType?"none":""},help:""},void 0,(0,i.default)("span",{style:{paddingRight:"20px"}},void 0,"\u6837\u672c\u6570\u91cf\u4e0d\u8d85\u8fc7"),t("inputNumber",{rules:[{required:!0}],initialValue:this.state.inputNumber})((0,i.default)(d.default,{step:100,disabled:this.props.disabled,width:500,min:1,onChange:this.onInputNumberChange})),"\xa0 \u6761"),(0,i.default)(g,{style:{display:0===this.state.definitionType?"none":""},help:""},void 0,t("extractType",{rules:[{required:!0}],initialValue:this.sampleDataSizeLimit.extractType})((0,i.default)(n.default,{onChange:this.onAlgorithmAlgorithmChange,getPopupContainer:function(e){return e.parentNode},disabled:this.props.disabled,style:{width:120}},void 0,C,e.map((function(e){return(0,i.default)(b,{value:e.value},_.uniqueId(),e.txt)}))))))))},t}(u.default.PureComponent);t.default=(0,p.connect)((function(e){return{algorithmData:(0,f.dicGroupHelper)(e,"ALGORITH_TYPE")}}))(c.Form.create()(S))},"./src/module/modelEdit/modelAdvanced/component/SelectedIndi.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.IndiConfig=t.SelectedIndiDom=void 0;var d=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),s=m(a("./node_modules/react/index.js")),n=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),r=a("./node_modules/@ant-design/icons/es/index.js"),u=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function m(e){return e&&e.__esModule?e:{default:e}}var p=t.SelectedIndiDom=u.default.div.withConfig({displayName:"SelectedIndi__SelectedIndiDom",componentId:"sc-1eb1e8l-0"})(["margin-top:10px;width:95%;display:inline-table;max-height:400px;overflow-y:auto;min-height:50px;h1{font-size:12px;color:#475669;padding-left:20px;}h2{font-size:14px;color:#a2b0c4;text-align:center;}"]),c=t.IndiConfig=u.default.div.withConfig({displayName:"SelectedIndi__IndiConfig",componentId:"sc-1eb1e8l-1"})(["margin-top:20px;width:100%;.fieldName{float:left;}ul{padding-left:10px;float:left;width:95%;list-style-type:none;li{.icon{margin-left:5px;float:right;margin-top:4px;margin-right:3px;font-size:11px;cursor:pointer;}&:hover{background:#a2b0c4;.icon{margin-left:5px;float:right;margin-top:4px;margin-right:3px;font-size:11px;color:#fff;cursor:pointer;}}text-align:center;background:#e5e9f2;border-radius:4px;padding:0 5px 0 5px;height:20px;margin:0px 0px 10px 15px;float:left;span{font-size:11px;color:#395377;letter-spacing:1px;}&.icon{float:right;margin-top:4px;margin-right:3px;font-size:11px;color:#395377;cursor:pointer;}}}"]),f=(0,d.default)("div",{},void 0,(0,d.default)("h2",{},void 0,"\u672a\u9009\u62e9\u6307\u6807")),h=function(e){function t(a){(0,i.default)(this,t);var l=(0,o.default)(this,e.call(this,a));return l.delSelectedIndi=function(e){l.props.onChange(e,"del")},l.renderSelectedIndi=function(){for(var e=[],t={},a=l.props.selectedIndiData,i=l.props.kpiType.toJS(),o=0;o<i.length;o++)for(var s=0;s<a.length;s++)if(i[o]===a[s].fieldClassCnName){t={fieldClassCnName:a[s].fieldClassCnName,indiData:[]},e.push(t);break}for(var n=0;n<a.length;n++){for(var u=!1,m=0;m<e.length;m++)if(e[m].fieldClassCnName===a[n].fieldClassCnName){t={fieldId:a[n].fieldId,fieldCnName:a[n].fieldCnName},e[m].indiData.push(t),u=!0;break}u||(t={fieldClassCnName:a[n].fieldClassCnName,indiData:[{fieldId:a[n].fieldId,fieldCnName:a[n].fieldCnName}]},e.push(t))}return e.length>0?(0,d.default)(c,{},void 0,e.map((function(e,t){return(0,d.default)("div",{style:{height:"auto",width:"105%",paddingLeft:"15px"}},t,(0,d.default)("div",{className:"fieldName"},void 0,l.substringTxt(e.fieldClassCnName)),(0,d.default)("ul",{},void 0,e.indiData.map((function(e,t){return(0,d.default)("li",{},t,(0,d.default)("span",{title:e.fieldCnName},void 0,e.fieldCnName),(0,d.default)(r.CloseOutlined,{style:l.props.disabled?{cursor:"not-allowed"}:{},onClick:function(){return l.props.disabled?"":l.delSelectedIndi(e.fieldId)},title:"\u5220\u9664",className:"icon"}))}))))}))):f},l.state={},l}return(0,l.default)(t,e),t.prototype.substringTxt=function(e){if(e&&e.length>5){var t=e.substring(0,4)+"..";return(0,d.default)("span",{title:e},void 0,t)}return(0,d.default)("span",{},void 0,e)},t.prototype.render=function(){return(0,d.default)(p,{},void 0,(0,d.default)("h1",{},void 0,"\u5df2\u9009\xa0",this.props.selectedIndiData.length,"\xa0\u6761\u6307\u6807"),this.renderSelectedIndi())},t}(s.default.Component);t.default=(0,n.connect)((function(){return{}}))(h)},"./src/module/modelEdit/modelAdvanced/component/TextSelectItem.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TextSelectItemDom=void 0;var d=h(a("./node_modules/babel-runtime/helpers/extends.js")),i=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=h(a("./node_modules/babel-runtime/helpers/inherits.js")),n="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelEdit\\modelAdvanced\\component\\TextSelectItem.jsx",r=h(a("./node_modules/react/index.js")),u=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./src/redux/selectors/dataSource.js"),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=h(a("./src/module/indiset/IndiSetSelector.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var v=c.Form.Item,g=t.TextSelectItemDom=u.default.div.withConfig({displayName:"TextSelectItem__TextSelectItemDom",componentId:"sc-1i4unt6-0"})(["float:left;width:102%;margin-bottom:30px;label{margin-right:10px;}.ant-form-inline .ant-form-item{.ant-form-item-control{line-height:0px;}}"]),x=function(e){function t(a){(0,o.default)(this,t);var d=(0,l.default)(this,e.call(this,a));if(d.handleTextOneBlur=function(e){d.txt1={paramId:_.get(e,"id"),modelId:void 0!=d.props.modelInfo.modelId?d.props.modelInfo.modelId:"",paramKey:_.get(e,"val"),paramValue:_.get(e,"text")},d.setState({param1Id:_.get(e,"val")})},d.handleTextTwoBlur=function(e){d.txt2={paramId:_.get(e,"id"),modelId:void 0!=d.props.modelInfo.modelId?d.props.modelInfo.modelId:"",paramKey:_.get(e,"val"),paramValue:_.get(e,"text")},d.setState({param2Id:_.get(e,"val")})},d.validateFun=function(){var e=!1;if(d.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e){return{validate:!0,moduleData:"userItem"===d.props.type?{modelId:d.txt1.modelId,userKpiId:d.txt1.paramId,itemKpiId:d.txt2.paramId,userKpiEnName:d.txt1.paramKey,userKpiCnName:d.txt1.paramValue,itemKpiEnName:d.txt2.paramKey,itemKpiCnName:d.txt2.paramValue}:"userItemTime"===d.props.type?{uid:d.txt1.paramKey,iid:d.txt2.paramKey}:{tid:d.txt1.paramKey,fid:d.txt2.paramKey}}}return{validate:!1,errorMsg:"\u8bf7\u586b\u5199"+d.props.title+"\u6a21\u5757\u6570\u636e"}},d.txt1={},d.txt2={},d.dsId=a.modelInfo.dsId,"userItem"===a.type)d.state={param1Id:"{}"!==JSON.stringify(a.textDataObj)?a.textDataObj.userKpiEnName:"",param2Id:"{}"!==JSON.stringify(a.textDataObj)?a.textDataObj.itemKpiEnName:""},null!==a.textDataObj&&""!==d.props.modelInfo.modelId&&void 0!==d.props.modelInfo.modelId&&(d.txt1={paramId:a.textDataObj.userKpiId,modelId:d.props.modelInfo.modelId,paramKey:a.textDataObj.userKpiEnName,paramValue:a.textDataObj.userKpiCnName},d.txt2={paramId:a.textDataObj.itemKpiId,modelId:d.props.modelInfo.modelId,paramKey:a.textDataObj.itemKpiEnName,paramValue:a.textDataObj.itemKpiCnName});else{var i=["tid","uid"],s=["fid","iid"];d.state={param1Id:a.textDataAry.length>0?-1!==_.indexOf(i,a.textDataAry[0].paramKey)?a.textDataAry[0].paramValue:a.textDataAry[1].paramValue:"",param2Id:a.textDataAry.length>0?-1!==_.indexOf(s,a.textDataAry[1].paramKey)?a.textDataAry[1].paramValue:a.textDataAry[0].paramValue:""},a.textDataAry.length>0&&""!==d.props.modelInfo.modelId&&void 0!==d.props.modelInfo.modelId&&(d.txt1={paramId:-1!==_.indexOf(i,a.textDataAry[0].paramKey)?a.textDataAry[0].paramId:a.textDataAry[1].paramId,modelId:d.props.modelInfo.modelId,paramKey:d.state.param1Id,paramValue:d.state.param1Id},d.txt2={paramId:-1!==_.indexOf(s,a.textDataAry[1].paramKey)?a.textDataAry[1].paramId:a.textDataAry[0].paramId,modelId:d.props.modelInfo.modelId,paramKey:d.state.param2Id,paramValue:d.state.param2Id})}var n=d.props.setValidateFunc;return _.isFunction(n)&&n(d.props.type,d.validateFun),d}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.props.form.getFieldDecorator,t={labelCol:{offset:0,span:0}};return(0,i.default)(g,{},void 0,(0,i.default)(c.Form,{layout:"inline"},void 0,r.default.createElement(v,(0,d.default)({help:""},t,{label:this.props.textOneSpan,__source:{fileName:n,lineNumber:179}}),e("paramValue1",{rules:[{required:!0}],initialValue:0===this.props.sourcesAudit.size?"":this.state.param1Id})((0,i.default)(f.default,{onChange:this.handleTextOneBlur,disabled:this.props.disabled,selectedField:0===this.props.sourcesAudit.size?"":this.state.param1Id}))),r.default.createElement(v,(0,d.default)({help:""},t,{label:this.props.textTwoSpan,__source:{fileName:n,lineNumber:194}}),e("paramValue2",{rules:[{required:!0}],initialValue:0===this.props.sourcesAudit.size?"":this.state.param2Id})((0,i.default)(f.default,{onChange:this.handleTextTwoBlur,disabled:this.props.disabled,selectedField:0===this.props.sourcesAudit.size?"":this.state.param2Id})))))},t}(r.default.PureComponent);t.default=(0,m.connect)((function(e){return{sourcesAudit:(0,p.selectDatasSourcesAudit)(e)}}))(c.Form.create()(x))},"./src/module/modelEdit/modelAdvanced/sceneAdvanced/ClassIfyForecast.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=h(a("./node_modules/babel-runtime/helpers/jsx.js")),i=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=h(a("./node_modules/babel-runtime/helpers/inherits.js")),s=h(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=(h(a("./node_modules/prop-types/index.js")),h(a("./src/module/modelEdit/modelAdvanced/component/SampleDataSizeLimit.jsx"))),u=h(a("./src/module/modelEdit/modelAdvanced/component/FilterData.jsx")),m=h(a("./src/module/modelEdit/modelAdvanced/component/RatioData.jsx")),p=h(a("./src/module/modelEdit/modelAdvanced/component/ArithmeticParam.jsx")),c=h(a("./src/module/modelEdit/modelAdvanced/component/AutoOptimize.jsx")),f=h(a("./src/module/modelEdit/modelAdvanced/component/FeatureIndiSetSetting.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){var a=[];if("chooseKpi"===t)for(var i=0;i<e.length;i++)a.push(e[i].fieldId);d.setState({selectedIndiIds:a})},d.state={showPanel:!1,selectedIndiIds:[]},d.limitSampleData=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.limitSampleData?a.moduleUpdataData.limitSampleData:{amount:"-1",extractType:""},d.dataFilter=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.dataFilter?a.moduleUpdataData.dataFilter:[],d.divideData=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.divideData?a.moduleUpdataData.divideData:50,d.divideDataVerify=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.divideDataVerify?a.moduleUpdataData.divideDataVerify:80,d.chooseKpi=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.chooseKpi?a.moduleUpdataData.chooseKpi:[],d.arithmeticParam=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.arithmeticParam?a.moduleUpdataData.arithmeticParam:{},d.autoOptimizeParam=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.autoOptimize?a.moduleUpdataData.autoOptimize:{},d}return(0,l.default)(t,e),t.prototype.render=function(){return(0,d.default)("div",{},void 0,(0,d.default)(r.default,{limitSampleData:this.limitSampleData,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(f.default,{chooseKpi:this.chooseKpi,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData,indiSelected:this.props.indiSelected}),(0,d.default)(u.default,{selectedIndiIds:this.state.selectedIndiIds,dataFilter:this.dataFilter,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(m.default,{loadModules:["divideData","divideDataVerify"],divideData:this.divideData,divideDataVerify:this.divideDataVerify,disabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc}),(0,d.default)(p.default,{viewType:this.props.viewType,modelInfo:this.props.modelInfo,arithmeticParam:this.arithmeticParam,disabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc}),(0,d.default)(c.default,{viewType:this.props.viewType,modelInfo:this.props.modelInfo,autoOptimizeParam:this.autoOptimizeParam,disabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(v),e.exports=v},"./src/module/modelEdit/modelAdvanced/sceneAdvanced/GatherAnalysis.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=c(a("./node_modules/babel-runtime/helpers/jsx.js")),i=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=c(a("./node_modules/babel-runtime/helpers/inherits.js")),s=c(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=(c(a("./node_modules/prop-types/index.js")),c(a("./src/module/modelEdit/modelAdvanced/component/SampleDataSizeLimit.jsx"))),u=c(a("./src/module/modelEdit/modelAdvanced/component/FilterData.jsx")),m=c(a("./src/module/modelEdit/modelAdvanced/component/ArithmeticParam.jsx")),p=c(a("./src/module/modelEdit/modelAdvanced/component/FeatureIndiSetSetting.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){var a=[];if("chooseKpi"===t)for(var i=0;i<e.length;i++)a.push(e[i].fieldId);d.setState({selectedIndiIds:a})},d.state={showPanel:!1},d.limitSampleData=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.limitSampleData?a.moduleUpdataData.limitSampleData:{amount:"-1",extractType:""},d.dataFilter=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.dataFilter?a.moduleUpdataData.dataFilter:[],d.chooseKpi=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.chooseKpi?a.moduleUpdataData.chooseKpi:[],d.arithmeticParam=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.arithmeticParam?a.moduleUpdataData.arithmeticParam:{},d}return(0,l.default)(t,e),t.prototype.render=function(){return(0,d.default)("div",{},void 0,(0,d.default)(r.default,{limitSampleData:this.limitSampleData,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(p.default,{indiSelected:this.props.indiSelected,chooseKpi:this.chooseKpi,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(u.default,{dataFilter:this.dataFilter,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(m.default,{viewType:this.props.viewType,modelInfo:this.props.modelInfo,arithmeticParam:this.arithmeticParam,disabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(f),e.exports=f},"./src/module/modelEdit/modelAdvanced/sceneAdvanced/RelevanceAnalysis.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=p(a("./node_modules/babel-runtime/helpers/jsx.js")),i=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=p(a("./node_modules/babel-runtime/helpers/inherits.js")),s=p(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/modelEdit/modelAdvanced/component/SampleDataSizeLimit.jsx"))),u=p(a("./src/module/modelEdit/modelAdvanced/component/FilterData.jsx")),m=p(a("./src/module/modelEdit/modelAdvanced/component/ArithmeticParam.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){var a=[];if("chooseKpi"===t)for(var i=0;i<e.length;i++)a.push(e[i].fieldId);d.setState({selectedIndiIds:a})},d.state={showPanel:!1,selectedIndiIds:[]},d.limitSampleData=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.limitSampleData?a.moduleUpdataData.limitSampleData:{amount:"-1",extractType:""},d.dataFilter=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.dataFilter?a.moduleUpdataData.dataFilter:[],d.arithmeticParam=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.arithmeticManualParam?a.moduleUpdataData.arithmeticManualParam:{},d}return(0,l.default)(t,e),t.prototype.render=function(){return(0,d.default)("div",{},void 0,(0,d.default)(r.default,{limitSampleData:this.limitSampleData,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(u.default,{dataFilter:this.dataFilter,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(m.default,{viewType:this.props.viewType,modelInfo:this.props.modelInfo,arithmeticParam:this.arithmeticParam,disabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc,type:"arithmeticManualParam"}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(c),e.exports=c},"./src/module/modelEdit/modelAdvanced/sceneAdvanced/SynergyFilter.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=f(a("./node_modules/babel-runtime/helpers/jsx.js")),i=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=f(a("./node_modules/babel-runtime/helpers/inherits.js")),s=f(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=(f(a("./node_modules/prop-types/index.js")),f(a("./src/module/modelEdit/modelAdvanced/component/SampleDataSizeLimit.jsx"))),u=f(a("./src/module/modelEdit/modelAdvanced/component/FilterData.jsx")),m=f(a("./src/module/modelEdit/modelAdvanced/component/ArithmeticParam.jsx")),p=f(a("./src/module/modelEdit/modelAdvanced/component/FeatureIndiSetSetting.jsx")),c=f(a("./src/module/modelEdit/modelAdvanced/component/GradeParam.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){var a=[];if("chooseKpi"===t)for(var i=0;i<e.length;i++)a.push(e[i].fieldId);d.setState({selectedIndiIds:a})},d.state={showPanel:!1,selectedIndiIds:null!==a.moduleUpdataData?d.getSelectedIndiIds(a.moduleUpdataData.chooseKpi):[]},d.limitSampleData=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.limitSampleData?a.moduleUpdataData.limitSampleData:{amount:"-1",extractType:""},d.dataFilter=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.dataFilter?a.moduleUpdataData.dataFilter:[],d.userItem=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.userItem?a.moduleUpdataData.userItem:{},d.gradeParam=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.gradeParam?a.moduleUpdataData.gradeParam:[],d.chooseKpi=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.chooseKpi?a.moduleUpdataData.chooseKpi:[],d.arithmeticParam=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.arithmeticParam?a.moduleUpdataData.arithmeticParam:{},d}return(0,l.default)(t,e),t.prototype.getSelectedIndiIds=function(e){var t=[];if(null!==e){for(var a=0;a<e.length;a++)t.push(e[a].fieldId);this.setState({selectedIndiIds:t})}},t.prototype.render=function(){return(0,d.default)("div",{},void 0,(0,d.default)(r.default,{limitSampleData:this.limitSampleData,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(p.default,{indiSelected:this.props.indiSelected,chooseKpi:this.chooseKpi,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(u.default,{dataFilter:this.dataFilter,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(m.default,{viewType:this.props.viewType,modelInfo:this.props.modelInfo,arithmeticParam:this.arithmeticParam,disabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc}),(0,d.default)(c.default,{selectedIndiIds:this.state.selectedIndiIds,gradeParam:this.gradeParam,showPanel:this.state.showPanel,modelInfo:this.props.modelInfo,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(h),e.exports=h},"./src/module/modelEdit/modelAdvanced/sceneAdvanced/TimeSequence.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=c(a("./node_modules/babel-runtime/helpers/jsx.js")),i=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=c(a("./node_modules/babel-runtime/helpers/inherits.js")),s=c(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=(c(a("./node_modules/prop-types/index.js")),c(a("./src/module/modelEdit/modelAdvanced/component/SampleDataSizeLimit.jsx"))),u=c(a("./src/module/modelEdit/modelAdvanced/component/RatioData.jsx")),m=c(a("./src/module/modelEdit/modelAdvanced/component/ArithmeticParam.jsx")),p=c(a("./src/module/modelEdit/modelAdvanced/component/ForecastPoint.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){var a=[];if("chooseKpi"===t)for(var i=0;i<e.length;i++)a.push(e[i].fieldId);d.setState({selectedIndiIds:a})},d.state={showPanel:!1,selectedIndiIds:[]},d.limitSampleData=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.limitSampleData?a.moduleUpdataData.limitSampleData:{amount:"-1",extractType:""},d.dataFilter=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.dataFilter?a.moduleUpdataData.dataFilter:[],d.divideDataVerify=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.divideDataVerify?a.moduleUpdataData.divideDataVerify:80,d.arithmeticParam=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.arithmeticParam?a.moduleUpdataData.arithmeticParam:{},d.forecastPoint=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.forecastPoint?a.moduleUpdataData.forecastPoint:[],d}return(0,l.default)(t,e),t.prototype.render=function(){return(0,d.default)("div",{},void 0,(0,d.default)(r.default,{limitSampleData:this.limitSampleData,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}),(0,d.default)(u.default,{loadModules:["divideDataVerify"],divideData:this.divideData,divideDataVerify:this.divideDataVerify,disabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc}),(0,d.default)(m.default,{viewType:this.props.viewType,modelInfo:this.props.modelInfo,arithmeticParam:this.arithmeticParam,disabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc}),(0,d.default)(p.default,{forecastPoint:this.forecastPoint,modelInfo:this.props.modelInfo,showPanel:this.state.showPanel,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,onChange:this.getModulesData}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(f),e.exports=f},"./src/module/modelEdit/modelAdvanced/sceneBase/ClassIfyForecast.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DivisionDiv=void 0;var d=c(a("./node_modules/babel-runtime/helpers/jsx.js")),i=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=c(a("./node_modules/babel-runtime/helpers/inherits.js")),s=c(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(c(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),m=c(a("./src/module/modelEdit/modelConfig/component/PositiveConfig.jsx")),p=c(a("./src/module/modelEdit/modelConfig/component/NegativeConfig.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var f={padding:"20px 0px 30px 20px"},h=t.DivisionDiv=r.default.div.withConfig({displayName:"ClassIfyForecast__DivisionDiv",componentId:"qi8vsf-0"})(["border:1px solid #ccd5e0;display:block;width:95%;margin:24px 0;clear:both;border-radius:4px;"]),v=(0,d.default)(h,{}),g=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){d.props.onChange(e,t)},d.state={_this:d},d.modelInfo=a.modelInfo,d.sampleData=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.sampleData?a.moduleUpdataData.sampleData:{},d}return(0,l.default)(t,e),t.getDerivedStateFromProps=function(e,t){e.modelInfo.dsCycle===t._this.modelInfo.dsCycle&&e.modelInfo.dsId===t._this.modelInfo.dsId||(t._this.sampleData={})},t.prototype.render=function(){var e=0;-1!==this.props.sceneIndex&&"1"!==this.props.modelInfo.modelTypeId&&(e=115*this.props.sceneIndex);var t={marginTop:e+"px",height:"559px"};return(0,d.default)(u.MainParamPanel,{panelBodyStyle:f,bodyStyle:t},void 0,(0,d.default)(m.default,{modelId:this.props.modelInfo.modelId,moduleDisabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc,sampleData:this.sampleData}),v,(0,d.default)(p.default,{modelId:this.props.modelInfo.modelId,moduleDisabled:this.props.disabled,onChange:this.getModulesData,setValidateFunc:this.props.setValidateFunc,sampleData:this.sampleData}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(g),e.exports=g},"./src/module/modelEdit/modelAdvanced/sceneBase/GatherAnalysis.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=r(a("./node_modules/babel-runtime/helpers/jsx.js")),i=r(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=r(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=r(a("./node_modules/babel-runtime/helpers/inherits.js")),s=r(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js");r(a("./node_modules/prop-types/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}var u=(0,d.default)("div",{}),m=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.state={},d}return(0,l.default)(t,e),t.prototype.render=function(){return u},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(m),e.exports=m},"./src/module/modelEdit/modelAdvanced/sceneBase/RelevanceAnalysis.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),s=m(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=(m(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),u=m(a("./src/module/modelEdit/modelAdvanced/component/TextSelectItem.jsx"));function m(e){return e&&e.__esModule?e:{default:e}}var p={padding:"0px 0px 30px 20px"},c=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){return t},d.state={},d.userItemTime=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.userItemTime?a.moduleUpdataData.userItemTime:[],d}return(0,l.default)(t,e),t.prototype.render=function(){var e=0;-1!==this.props.sceneIndex&&"1"!==this.props.modelInfo.modelTypeId&&(e=115*this.props.sceneIndex);var t={marginTop:e+"px",height:"100px"};return(0,d.default)(r.MainParamPanel,{panelBodyStyle:p,bodyStyle:t},void 0,(0,d.default)(u.default,{selectedIndiIds:this.state.selectedIndiIds,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,type:"userItemTime",textDataAry:this.userItemTime,title:"\u9009\u62e9\u7528\u6237\u548c\u7269\u54c1\u6307\u6807",textOneSpan:"\u7528\u6237",textOnePlaceholder:"\u8bf7\u9009\u62e9\u7528\u6237",textTwoSpan:"\u7269\u54c1",textTwoPlaceholder:"\u8bf7\u9009\u62e9\u7269\u54c1",onChange:this.getModulesData,modelInfo:this.props.modelInfo}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(c),e.exports=c},"./src/module/modelEdit/modelAdvanced/sceneBase/SynergyFilter.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),s=m(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=(m(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),u=m(a("./src/module/modelEdit/modelAdvanced/component/TextSelectItem.jsx"));function m(e){return e&&e.__esModule?e:{default:e}}var p={padding:"0px 0px 30px 20px"},c=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){return t},d.state={},d.userItem=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.userItem?a.moduleUpdataData.userItem:{},d}return(0,l.default)(t,e),t.prototype.render=function(){var e=0;-1!==this.props.sceneIndex&&"1"!==this.props.modelInfo.modelTypeId&&(e=115*this.props.sceneIndex);var t={marginTop:e+"px",height:"100px"};return(0,d.default)(r.MainParamPanel,{panelBodyStyle:p,bodyStyle:t},void 0,(0,d.default)(u.default,{selectedIndiIds:this.state.selectedIndiIds,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,type:"userItem",textDataObj:this.userItem,title:"\u9009\u62e9\u7528\u6237\u548c\u7269\u54c1\u6307\u6807",textOneSpan:"\u7528\u6237",textOnePlaceholder:"\u8bf7\u9009\u62e9\u7528\u6237",textTwoSpan:"\u7269\u54c1",textTwoPlaceholder:"\u8bf7\u9009\u62e9\u7269\u54c1",onChange:this.getModulesData,modelInfo:this.props.modelInfo}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(c),e.exports=c},"./src/module/modelEdit/modelAdvanced/sceneBase/TimeSequence.jsx":function(e,t,a){"use strict";t.__esModule=!0;var d=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),s=m(a("./node_modules/react/index.js")),n=a("./node_modules/react-redux/es/index.js"),r=(m(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),u=m(a("./src/module/modelEdit/modelAdvanced/component/TextSelectItem.jsx"));function m(e){return e&&e.__esModule?e:{default:e}}var p={padding:"0px 0px 30px 20px"},c=function(e){function t(a){(0,i.default)(this,t);var d=(0,o.default)(this,e.call(this,a));return d.getModulesData=function(e,t){return t},d.state={},d.timeForecast=null!==a.moduleUpdataData&&null!==a.moduleUpdataData.timeForecast?a.moduleUpdataData.timeForecast:[],d}return(0,l.default)(t,e),t.prototype.render=function(){var e=0;-1!==this.props.sceneIndex&&"1"!==this.props.modelInfo.modelTypeId&&(e=115*this.props.sceneIndex);var t={marginTop:e+"px",height:"100px"};return(0,d.default)(r.MainParamPanel,{panelBodyStyle:p,bodyStyle:t},void 0,(0,d.default)(u.default,{selectedIndiIds:this.state.selectedIndiIds,setValidateFunc:this.props.setValidateFunc,disabled:this.props.disabled,type:"timeForecast",textDataAry:this.timeForecast,title:"\u9009\u62e9\u65f6\u95f4\u548c\u5f85\u9884\u6d4b\u5b57\u6bb5",textOneSpan:"\u65f6\u95f4",textTwoSpan:"\u5b57\u6bb5",onChange:this.getModulesData,modelInfo:this.props.modelInfo}))},t}(s.default.PureComponent);t.default=(0,n.connect)((function(){return{}}))(c),e.exports=c},"./src/module/modelEdit/modelConfig/component/NegativeConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.NConfigDom=void 0;var d=v(a("./node_modules/antd/es/button/index.js")),i=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=v(a("./node_modules/babel-runtime/helpers/inherits.js")),n=v(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var r=v(a("./node_modules/react/index.js")),u=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./src/components/index.js"),c=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./src/constant/constantConfig.jsx");function v(e){return e&&e.__esModule?e:{default:e}}var g=n.default.Group,x=t.NConfigDom=u.default.div.withConfig({displayName:"NegativeConfig__NConfigDom",componentId:"pd9nea-0"})(["width:95%;float:left;span{margin-right:5px;color:#475669;}ul{height:auto;width:103%;max-height:205px;-webkit-scrollbar:{width:10px;}overflow-y:auto;list-style-type:none;padding:10px 15px 5px 5px;}"]),b=(0,i.default)(n.default,{value:"0"},void 0,"\u6307\u6807"),y=(0,i.default)(n.default,{value:"1"},void 0,"\u9664\u6b63\u6837\u672c\u7684\u6570\u636e"),D=(0,i.default)(c.PlusCircleOutlined,{}),I=function(e){function t(a){(0,o.default)(this,t);var d=(0,l.default)(this,e.call(this,a));d.selectDatas=function(e){for(var t=[],a=0;a<e.length;a++)if(e[a].simpleType===_.toInteger(h.modelConstant.getNegativeType())){var d=e[a].fieldFilterRule.split(" ");3===d.length&&(e[a].operator=d[1],e[a].val=d[2]),t.push(e[a])}return t},d.addNegativeClick=function(){var e=d.state.negativeData,t={id:"",simpleType:h.modelConstant.getNegativeType(),fieldId:"",fieldCnName:"",fieldEnName:"",fieldFilterRule:"",operator:"",val:"",fieldIndex:"",modelId:void 0!==d.state.modelId?d.state.modelId:""};d.setState({negativeData:[].concat(e,[t])})},d.onChangeNegative=function(e){var t=e.target.value;d.setState({negativeIndexType:t})},d.getIndiData=function(e,t){void 0!==t&&d.setState({negativeData:e});for(var a=[],i=0;i<e.length;i++)a.push(e[i].fieldId);d.props.onChange(a,"negative")},d.deleteValiFuncs=function(){d.validateNegFuncs={}},d.negativeLoda=function(){return"1"===d.state.negativeIndexType?"":(0,i.default)(p.IndiSetCondSetting,{type:"openOne",disabled:d.props.moduleDisabled,onChange:d.getIndiData,moduleWidth:85,datas:d.state.negativeData,setValidateFunc:d.setNegValidateFunc,deleteValiFuncs:d.deleteValiFuncs})},d.setNegValidateFunc=function(e,t){d.validateNegFuncs[e]=t},d.validateFun=function(){var e=[];Object.keys(d.validateNegFuncs).map((function(t){var a=d.validateNegFuncs[t];if(_.isFunction(a)){var i=a.call();e.push(i)}}));for(var t=[],a=0;a<e.length;a++){if(!e[a].validate)return{validate:!1,errorMsg:"\u8bf7\u6dfb\u52a0\u8d1f\u6837\u672c\u6570\u636e"};e[a].moduleData.fieldFilterRule=e[a].moduleData.fieldEnName+" "+e[a].moduleData.operator+" "+e[a].moduleData.val,t.push(e[a].moduleData)}return 0===e.length&&"0"===d.state.negativeIndexType?{validate:!1,errorMsg:"\u8bf7\u6dfb\u52a0\u8d1f\u6837\u672c\u6570\u636e"}:{validate:!0,moduleData:{negSimpleType:d.state.negativeIndexType,modelSimpleKpis:t}}};var s=d;d.state={modelId:"",negativeIndexType:"1",negativeData:[],_this:s};var n=d.props.setValidateFunc;return _.isFunction(n)&&n("negative",d.validateFun),d.validateNegFuncs={},d}return(0,s.default)(t,e),t.getDerivedStateFromProps=function(e,t){return void 0!==e.sampleData.posSimpleType?{negativeIndexType:_.toString(e.sampleData.negSimpleType),modelId:e.modelId,negativeData:null!=e.sampleData?t._this.selectDatas(e.sampleData.modelSimpleKpis):[]}:null},t.prototype.render=function(){return(0,i.default)(x,{},void 0,(0,i.default)("span",{style:{fontWeight:550,marginRight:"20px"}},void 0,"\u8d1f\u6837\u672c"),(0,i.default)(g,{disabled:this.props.moduleDisabled,onChange:this.onChangeNegative,value:this.state.negativeIndexType},void 0,b,y,(0,i.default)("div",{style:{marginTop:"-3px",float:"right",display:"1"===this.state.negativeIndexType?"none":"block"}},void 0,(0,i.default)(d.default,{size:"small",disabled:this.props.moduleDisabled,icon:D,onClick:this.addNegativeClick},void 0,"\u6dfb\u52a0\u6307\u6807"))),this.negativeLoda())},t}(r.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(f.Form.create()(I))},"./src/module/modelEdit/modelConfig/component/PositiveConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigDom=void 0;var d=I(a("./node_modules/antd/es/button/index.js")),i=I(a("./node_modules/antd/es/input/index.js")),o=I(a("./node_modules/babel-runtime/helpers/jsx.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),n=I(a("./node_modules/babel-runtime/helpers/inherits.js")),r=I(a("./node_modules/antd/es/radio/index.js")),u=I(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=I(a("./node_modules/react/index.js")),p=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(I(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=a("./src/components/index.js"),h=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/redux/selectors/sysManager/ftpBasesManager.js"),x=a("./src/redux/reducers/sysManager/ftpBasesManager.js"),b=I(a("./src/module/indiset/IndiSetSelector.jsx")),y=a("./src/constant/constantConfig.jsx"),D=I(a("./node_modules/lodash/lodash.js"));function I(e){return e&&e.__esModule?e:{default:e}}var j=u.default.Option,_=v.Form.Item,C=r.default.Group,S=t.ConfigDom=p.default.div.withConfig({displayName:"PositiveConfig__ConfigDom",componentId:"kbwkff-0"})(["float:left;width:95%;.icon{margin-left:-10px;font-size:12px;color:#a2b0c4;cursor:pointer;margin-right:16px;}.formDiv{width:103%;overflow-y:auto;list-style-type:none;}span{margin-right:5px;color:#475669;}ul{height:auto;width:103%;max-height:195px;-webkit-scrollbar:{width:10px;}overflow-y:auto;list-style-type:none;padding:10px 15px 5px 5px;}"]),F=(0,o.default)(j,{value:""},void 0,"\u8bf7\u9009\u62e9"),A=(0,o.default)(r.default,{value:"0"},void 0,"\u6307\u6807"),T=(0,o.default)(r.default,{value:"1"},void 0,"\u4f7f\u7528\u6307\u5b9a\u6570\u636e"),P=(0,o.default)(h.QuestionCircleOutlined,{className:"icon",title:"\u4f7f\u7528\u5916\u90e8\u6570\u636e\u6307\u5b9a\u6b63\u6837\u672c\uff0c\u6570\u636e\u4e3a\u6b63\u6837\u672c\u5b57\u6bb5\u6240\u5bf9\u5e94\u7684\u503c\u3002"}),w=(0,o.default)(h.PlusCircleOutlined,{}),V=function(e){function t(a){(0,l.default)(this,t);var d=(0,s.default)(this,e.call(this,a));d.selectDatas=function(e){for(var t=[],a=0;a<e.length;a++)if(e[a].simpleType===D.default.toInteger(y.modelConstant.getPositiveType())){var d=e[a].fieldFilterRule.split(" ");3===d.length&&(e[a].operator=d[1],e[a].val=d[2]),t.push(e[a])}return t},d.addPositiveClick=function(){var e=d.state.positiveData,t={id:"",simpleType:D.default.toString(y.modelConstant.getPositiveType()),fieldId:"",fieldCnName:"",fieldEnName:"",fieldFilterRule:"",operator:"",val:"",fieldIndex:"",modelId:void 0!==d.state.modelId?d.state.modelId:""};d.setState({positiveData:[].concat(e,[t])})},d.onChangePositive=function(e){var t=e.target.value;d.setState({positiveIndexType:t})},d.getFtpChange=function(e){var t=d.state.positiveFtpData;t.ftpId=e,d.setState({positiveFtpData:t})},d.deleteValiFuncs=function(){d.validatePosFuncs={}},d.getFtpFilePathBlur=function(e){var t=d.state.positiveFtpData;t.ftpfilepath=e,d.setState({positiveFtpData:t})},d.getIndiData=function(e,t){void 0!==t&&d.setState({positiveData:e});for(var a=[],i=0;i<e.length;i++)a.push(e[i].fieldId);d.props.onChange(a,"positive")},d.setPosValidateFunc=function(e,t){d.validatePosFuncs[e]=t},d.validateFun=function(){var e=[];Object.keys(d.validatePosFuncs).map((function(t){var a=d.validatePosFuncs[t];if(D.default.isFunction(a)){var i=a.call();e.push(i)}}));for(var t=[],a=0;a<e.length;a++){if(!e[a].validate)return{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u6b63\u6837\u672c\u6570\u636e"};e[a].moduleData.fieldFilterRule=e[a].moduleData.fieldEnName+" "+e[a].moduleData.operator+" "+e[a].moduleData.val,t.push(e[a].moduleData)}if(0===e.length&&"0"===d.state.positiveIndexType)return{validate:!1,errorMsg:"\u8bf7\u6dfb\u52a0\u6b63\u6837\u672c\u6570\u636e"};var i=!0;return d.props.form.validateFieldsAndScroll((function(e){null!==e&&(i=!1)})),i&&d.state.positiveData.length>0?{validate:!0,moduleData:{posSimpleType:d.state.positiveIndexType,modelSimpleKpis:t,modelSimpleFeatureKpi:d.state.positiveFtpData}}:{validate:!1,errorMsg:"\u8bf7\u6dfb\u52a0\u6b63\u6837\u672c\u9009\u62e9\u6570\u636e\u6e90\u6570\u636e"}},d.handleSampleBlur=function(e){var t=d.state.positiveFtpData;t.fieldEnName=D.default.get(e,"val"),t.fieldCnName=D.default.get(e,"text"),t.fieldId=D.default.get(e,"id"),d.setState({positiveFtpData:t})},d.positiveLoda=function(e){if("1"===d.state.positiveIndexType){var t=d.props.datasFtps.toJS();return(0,o.default)(v.Form,{className:"formDiv",layout:"inline"},void 0,(0,o.default)(_,{help:""},void 0,e("fieldCnName",{rules:[{required:!0}],initialValue:d.state.positiveFtpData.fieldCnName})((0,o.default)(b.default,{onChange:d.handleSampleBlur,disabled:d.props.moduleDisabled,selectedId:d.state.positiveFtpData.fieldId,style:{width:"110px"}}))),(0,o.default)(_,{help:""},void 0,e("ftpId",{rules:[{required:!0}],initialValue:d.state.positiveFtpData.ftpId})((0,o.default)(u.default,{onChange:d.getFtpChange,disabled:d.props.moduleDisabled,style:{width:"100px"}},void 0,F,t.map((function(e,t){return(0,o.default)(j,{value:e.ftpId},t,e.ftpName)}))))),(0,o.default)(_,{help:""},void 0,e("ftpfilepath",{rules:[{required:!0}],initialValue:d.state.positiveFtpData.ftpfilepath})((0,o.default)(i.default,{onBlur:function(e){return d.getFtpFilePathBlur(e.target.value)},disabled:d.props.moduleDisabled,placeholder:"\u8bf7\u586b\u5199\u6587\u4ef6\u8def\u5f84",style:{width:"100px"}}))))}return(0,o.default)(f.IndiSetCondSetting,{disabled:d.props.moduleDisabled,onChange:d.getIndiData,moduleWidth:85,datas:d.state.positiveData,setValidateFunc:d.setPosValidateFunc,deleteValiFuncs:d.deleteValiFuncs})};var n=d;d.state={modelId:a.modelId,positiveIndexType:void 0===a.sampleData.posSimpleType?"0":D.default.toString(a.sampleData.posSimpleType),positiveData:void 0===a.sampleData.modelSimpleKpis||null===a.sampleData.modelSimpleKpis?[]:d.selectDatas(a.sampleData.modelSimpleKpis),positiveFtpData:void 0===a.sampleData.modelSimpleFeatureKpi||null===a.sampleData.modelSimpleFeatureKpi?{id:"",fieldId:"",fieldCnName:"",fieldEnName:"",ftpId:"",ftpfilepath:"",modelId:void 0===a.modelId?"":a.modelId}:a.sampleData.modelSimpleFeatureKpi,_this:n};var r=d.props.setValidateFunc;return D.default.isFunction(r)&&r("positive",d.validateFun),d.validatePosFuncs={},d}return(0,n.default)(t,e),t.prototype.componentDidMount=function(){void 0!==this.props.modelId&&void 0!==this.props.sampleData.modelSimpleKpis||this.addPositiveClick(),this.props.dispatch(x.ftpBasesActions.getFtpArrayRequest())},t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,o.default)(S,{},void 0,(0,o.default)("span",{style:{fontWeight:550,marginRight:"20px"}},void 0,"\u6b63\u6837\u672c"),(0,o.default)(C,{disabled:this.props.moduleDisabled,onChange:this.onChangePositive,value:this.state.positiveIndexType},void 0,A,T,P,(0,o.default)("div",{style:{marginTop:"-3px",float:"right",display:"1"===this.state.positiveIndexType?"none":"block"}},void 0,(0,o.default)(d.default,{size:"small",disabled:this.props.moduleDisabled,icon:w,onClick:this.addPositiveClick},void 0,"\u6dfb\u52a0\u6307\u6807"))),this.positiveLoda(e))},t}(m.default.PureComponent);t.default=(0,c.connect)((function(e){return{datasFtps:(0,g.selectFtpBasesArray)(e)}}))(v.Form.create()(V))}}]);