content.jsx 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. import React, { Component } from 'react';
  2. import '../content.less';
  3. import LeftTab from '../leftTab';
  4. import {getMenu} from '../publicMenu.js'
  5. import {default as SignatureStatistics} from "./operationalData/signatureStatistics";
  6. class Content extends Component {
  7. constructor() {
  8. super();
  9. this.state = {
  10. loading: false,
  11. component: <div></div>,
  12. };
  13. }
  14. componentWillMount() {
  15. var ids=window.location.href.indexOf('rid=');
  16. var idk=window.location.href.substr(ids+4);
  17. var rid=idk.split('#');
  18. let menu=getMenu(rid);
  19. let curry;
  20. if(menu[0].subMenus.length>0){
  21. curry=menu[0].subMenus[0].url.split('#');
  22. }else{
  23. curry=menu[0].url.split('#');
  24. };
  25. if (window.location.hash) {
  26. this.getKey(window.location.hash.substr(1));
  27. } else {
  28. this.getKey(curry[1]);
  29. };
  30. }
  31. getKey(key) {
  32. switch (key) {
  33. // //我的单位客户
  34. // case 'myOrganization':
  35. // require.ensure([], () => {
  36. // const MyClient = require('./customerData/myClient').default;
  37. // this.setState({
  38. // component: <MyClient ApiUrl={''}/>
  39. // });
  40. // });
  41. // break;
  42. // // 单位客户查询
  43. // case 'organizationQuery':
  44. // require.ensure([], () => {
  45. // const CompanyCustomer = require('./customerData/companyCustomer').default;
  46. // this.setState({
  47. // component:<CompanyCustomer ApiUrl={''}/>,
  48. // });
  49. // });
  50. // break;
  51. //我的个人客户
  52. // case 'myPersonal':
  53. // require.ensure([], () => {
  54. // const IndividualCustomer = require('./individualCustomer/individualCustomer').default;
  55. // this.setState({
  56. // component: <IndividualCustomer ApiUrl={''}/>
  57. //
  58. // });
  59. // });
  60. // break;
  61. //我的被拒绝客户
  62. case 'myReject':
  63. require.ensure([], () => {
  64. const MyReject = require('./individualCustomer/myReject').default;
  65. this.setState({
  66. component: <MyReject ApiUrl={''}/>
  67. });
  68. });
  69. break;
  70. // //个人客户查询
  71. // case 'personalQuery':
  72. // require.ensure([], () => {
  73. // const QueryCustomer = require('./individualCustomer/queryCustomer').default;
  74. // this.setState({
  75. // component:<QueryCustomer ApiUrl={''}/>,
  76. // });
  77. // });
  78. // break;
  79. //专家查询
  80. case 'expertQuery':
  81. require.ensure([], () => {
  82. const ExpertQuery = require('./individualCustomer/expertQuery').default;
  83. this.setState({
  84. component:<ExpertQuery ApiUrl={''}/>,
  85. });
  86. });
  87. break;
  88. //公共客户查询
  89. case 'publicQuery':
  90. require.ensure([], () => {
  91. const Qublicquery = require('./individualCustomer/publicQuery').default;
  92. this.setState({
  93. component:<Qublicquery ApiUrl={''}/>,
  94. });
  95. });
  96. break;
  97. //个人客户管理
  98. case 'personalManage':
  99. require.ensure([], () => {
  100. const PersonalManage = require('./customerManagement/personalManages').default;
  101. this.setState({
  102. component:<PersonalManage ApiUrl={''}/>,
  103. });
  104. });
  105. break;
  106. //专家管理
  107. case 'expertManage':
  108. require.ensure([], () => {
  109. const ExpertManage = require('./customerManagement/expertManage').default;
  110. this.setState({
  111. component:<ExpertManage ApiUrl={''}/>,
  112. });
  113. });
  114. break;
  115. //专家审核
  116. case 'expertAudit':
  117. require.ensure([], () => {
  118. const ExpertReview = require('./reviewed/expertReview').default;
  119. this.setState({
  120. component:<ExpertReview ApiUrl={''}/>,
  121. });
  122. });
  123. break;
  124. //实名认证审核
  125. case 'identityAudit':
  126. require.ensure([], () => {
  127. const IdentityAudits = require('./reviewed/identityAudits').default;
  128. this.setState({
  129. component:<IdentityAudits ApiUrl={''}/>,
  130. });
  131. });
  132. break;
  133. //客户录入审核
  134. case 'enteringAudit':
  135. require.ensure([], () => {
  136. const EnteringAudit = require('./reviewed/enteringAudit').default;
  137. this.setState({
  138. component:<EnteringAudit ApiUrl={''}/>,
  139. });
  140. });
  141. break;
  142. //专家发布
  143. case 'expertPublish':
  144. require.ensure([], () => {
  145. const ExpertRelease = require('./release/expertRelease').default;
  146. this.setState({
  147. component:<ExpertRelease ApiUrl={''}/>,
  148. });
  149. });
  150. break;
  151. //专家发布新
  152. case 'releaseExpert':
  153. require.ensure([], () => {
  154. const ReleaseExpert = require('./release/releaseExpert').default;
  155. this.setState({
  156. component:<ReleaseExpert ApiUrl={''}/>,
  157. });
  158. });
  159. break;
  160. //公共客户管理
  161. case 'publicManage':
  162. require.ensure([], () => {
  163. const PublicManages = require('./customerManagement/publicManages').default;
  164. this.setState({
  165. component:<PublicManages ApiUrl={''}/>,
  166. });
  167. });
  168. break;
  169. //部门客户管理
  170. case 'adminCustomerStatistics':
  171. require.ensure([], () => {
  172. const AdminCustomerStatistics = require('./customerManagement/adminCustomerStatistics').default;
  173. this.setState({
  174. component:<AdminCustomerStatistics ApiUrl={''}/>,
  175. });
  176. });
  177. break;
  178. //部门客户管理3
  179. // case 'adminCustomerStatistics3':
  180. // require.ensure([], () => {
  181. // const AdminCustomerStatistics3 = require('./customerManagement/adminCustomerStatistics3').default;
  182. // this.setState({
  183. // component:<AdminCustomerStatistics3 ApiUrl={''}/>,
  184. // });
  185. // });
  186. // break;
  187. //单位客户管理
  188. case 'organizationManage':
  189. require.ensure([], () => {
  190. const OrganizationManage = require('./customerManagement/organizationManages').default;
  191. this.setState({
  192. component:<OrganizationManage ApiUrl={''}/>,
  193. });
  194. });
  195. break;
  196. //我的业务
  197. case 'myBusiness':
  198. require.ensure([], () => {
  199. const MyBusiness = require('./customerService/myBusiness').default;
  200. this.setState({
  201. component:<MyBusiness ApiUrl={''}/>,
  202. });
  203. });
  204. break;
  205. //业务管理
  206. case 'businessMange':
  207. require.ensure([], () => {
  208. const BusinessMange = require('./customerService/businessManges').default;
  209. this.setState({
  210. component:<BusinessMange ApiUrl={''}/>,
  211. });
  212. });
  213. break;
  214. //业务查询
  215. case 'businessQuery':
  216. require.ensure([], () => {
  217. const ServiceQuery = require('./customerService/serviceQuery').default;
  218. this.setState({
  219. component:<ServiceQuery ApiUrl={''}/>,
  220. });
  221. });
  222. break;
  223. //客户拜访统计
  224. case 'visitStatistics':
  225. require.ensure([], () => {
  226. const VisitStatistics = require('./statistics/visitStatistics').default;
  227. this.setState({
  228. component:<VisitStatistics ApiUrl={''}/>,
  229. });
  230. });
  231. break;
  232. //状态统计
  233. case 'statusStatistics':
  234. require.ensure([], () => {
  235. const StatusStatistics = require('./statistics/statusStatistics').default;
  236. this.setState({
  237. component:<StatusStatistics ApiUrl={''}/>,
  238. });
  239. });
  240. break;
  241. //进度统计
  242. case 'followStatistics':
  243. require.ensure([], () => {
  244. const FollowStatistics = require('./statistics/followStatistics').default;
  245. this.setState({
  246. component:<FollowStatistics ApiUrl={''}/>,
  247. });
  248. });
  249. break;
  250. /*
  251. *报表开发
  252. */
  253. case 'personalReport':
  254. require.ensure([], () => {
  255. const Jurisdiction = require('./report/personalReport').default;
  256. this.setState({
  257. component: <Jurisdiction ApiUrl={''}/>
  258. });
  259. });
  260. break;
  261. case 'departmentReport':
  262. require.ensure([], () => {
  263. const DepartmentReport = require('./report/departmentReport').default;
  264. this.setState({
  265. component: <DepartmentReport ApiUrl={''}/>
  266. });
  267. });
  268. break;
  269. /*拜访记录统计*/
  270. //客户营销日统计
  271. case 'diurnalStatistics':
  272. require.ensure([], () => {
  273. const DiurnalStatistics = require('./customerMarketing/diurnalStatistics').default;
  274. this.setState({
  275. component: <DiurnalStatistics ApiUrl={''}/>
  276. });
  277. });
  278. break;
  279. //客户营销时段统计
  280. case 'timeStatistics':
  281. require.ensure([], () => {
  282. const TimeStatistics = require('./customerMarketing/timeStatistics').default;
  283. this.setState({
  284. component: <TimeStatistics ApiUrl={''}/>
  285. });
  286. });
  287. break;
  288. /*意向客户*/
  289. //个人意向客户
  290. case 'personalIntention':
  291. require.ensure([], () => {
  292. const PersonalIntention = require('./NEW/intentionCustomer/intentionCustomer').default;
  293. this.setState({
  294. component: <PersonalIntention
  295. intentionState={1}
  296. ApiUrl={'/api/admin/customer/listPrivatePersonalCustomer'}
  297. detailApi={'/api/admin/customer/findPersonalCustomerDetail'}
  298. />
  299. });
  300. });
  301. break;
  302. //渠道-(营销总监)
  303. case 'channel':
  304. require.ensure([], () => {
  305. const CompanyIntention = require('./NEW/intentionCustomer/channel').default;
  306. this.setState({
  307. component: <CompanyIntention
  308. type={2} // 0营销员 1渠道专员 2营销总监 3营销经理 4释放 5未分配 6已分配 7已签单
  309. channel={false} //是否能导入渠道
  310. deliver={1} //是否能转交或分配 0不能 1总监分配 2经理分配
  311. followUp={true} //是否能跟进
  312. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  313. isEditGuidanceLv={false} //是否可以编辑指导
  314. recovery={false} //是否可以回收
  315. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  316. />
  317. });
  318. });
  319. break;
  320. //渠道-(营销经理)
  321. case 'channelManage':
  322. require.ensure([], () => {
  323. const CompanyIntention = require('./NEW/intentionCustomer/channel').default;
  324. this.setState({
  325. component: <CompanyIntention
  326. type={3} // 0营销员 1渠道专员 2营销总监 3营销经理 4释放 5未分配 6已分配 7已签单
  327. channel={false} //是否能导入渠道
  328. deliver={2} //是否能转交或分配 0不能 1总监分配 2经理分配
  329. followUp={true} //是否能跟进
  330. isGuidanceLv={false} //是否可查看指导 也用于判断是否为跟进管理页面
  331. isEditGuidanceLv={true} //是否可以编辑指导
  332. recovery={true} //是否可以回收
  333. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  334. />
  335. });
  336. });
  337. break;
  338. //渠道-(营销员)
  339. case 'channelMarketing':
  340. require.ensure([], () => {
  341. const CompanyIntention = require('./NEW/intentionCustomer/channel').default;
  342. this.setState({
  343. component: <CompanyIntention
  344. type={0} // 0营销员 1渠道专员 2营销总监 3营销经理 4释放 5未分配 6已分配 7已签单
  345. channel={false} //是否能导入渠道
  346. deliver={0} //是否能转交或分配 0不能 1总监分配 2经理分配
  347. followUp={true} //是否能跟进
  348. isGuidanceLv={false} //是否可查看指导 也用于判断是否为跟进管理页面
  349. isEditGuidanceLv={true} //是否可以编辑指导
  350. recovery={true} //是否可以回收
  351. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  352. />
  353. });
  354. });
  355. break;
  356. //渠道-(渠道专员)
  357. case 'channelCommissioner':
  358. require.ensure([], () => {
  359. const CompanyIntention = require('./NEW/intentionCustomer/channel').default;
  360. this.setState({
  361. component: <CompanyIntention
  362. type={1} // 0营销员 1渠道专员 2营销总监 3营销经理 4释放 5未分配 6已分配 7已签单
  363. channel={true} //是否能导入渠道
  364. deliver={0}
  365. followUp={false}
  366. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  367. isEditGuidanceLv={false} //是否可以编辑指导
  368. recovery={false} //是否可以回收
  369. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  370. />
  371. });
  372. });
  373. break;
  374. //渠道统计-(渠道总监)
  375. case 'channelStatistics':
  376. require.ensure([], () => {
  377. const CompanyIntention = require('./NEW/intentionCustomer/channelStatistics').default;
  378. this.setState({
  379. component: <CompanyIntention/>
  380. });
  381. });
  382. break;
  383. //单位意向客户
  384. case 'companyIntention':
  385. require.ensure([], () => {
  386. const CompanyIntention = require('./NEW/intentionCustomer/intentionCustomer').default;
  387. this.setState({
  388. component: <CompanyIntention
  389. intentionState={0}
  390. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  391. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  392. />
  393. });
  394. });
  395. break;
  396. //客户跟进汇总(看所有人的)
  397. case 'followUpSummaryAdmin':
  398. require.ensure([], () => {
  399. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  400. this.setState({
  401. component: <FollowUpSummary
  402. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  403. isEditGuidanceLv={false} //是否可以编辑指导
  404. shiroType={2}
  405. />
  406. });
  407. });
  408. break;
  409. //客户跟进汇总(只能看自己的)
  410. case 'followUpSummaryOrdinary':
  411. require.ensure([], () => {
  412. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  413. this.setState({
  414. component: <FollowUpSummary
  415. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  416. isEditGuidanceLv={false} //是否可以编辑指导
  417. shiroType={0}
  418. />
  419. });
  420. });
  421. break;
  422. //客户跟进汇总(既能看自己的也能看自己下级的)
  423. case 'followUpSummaryManager':
  424. require.ensure([], () => {
  425. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  426. this.setState({
  427. component: <FollowUpSummary
  428. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  429. isEditGuidanceLv={false} //是否可以编辑指导
  430. shiroType={1}
  431. />
  432. });
  433. });
  434. break;
  435. //跟进管理 营销经理
  436. case 'customerFollow':
  437. require.ensure([], () => {
  438. const CustomerFollow = require('./managementFollow/customerFollow/index').default;
  439. this.setState({
  440. component: <CustomerFollow
  441. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  442. isEditGuidanceLv={true} //是否可以编辑指导
  443. />
  444. });
  445. });
  446. break;
  447. //跟进管理 营销总监 和 总裁
  448. case 'readOnlyCustomerFollow':
  449. require.ensure([], () => {
  450. const CustomerFollow = require('./managementFollow/customerFollow/index').default;
  451. this.setState({
  452. component: <CustomerFollow
  453. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  454. isEditGuidanceLv={false} //是否可以编辑指导
  455. />
  456. });
  457. });
  458. break;
  459. //部门统计 总裁账户可见
  460. case 'departmentStatistics':
  461. require.ensure([], () => {
  462. const DepartmentStatistics = require('./statistics/departmentStatistics/index').default;
  463. this.setState({
  464. component: <DepartmentStatistics/>
  465. });
  466. });
  467. break;
  468. //客户资料
  469. case 'crm':
  470. require.ensure([], () => {
  471. const Crm = require('./NEW/crm/crm').default;
  472. this.setState({
  473. component: <Crm
  474. intentionState={0}
  475. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  476. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  477. />
  478. });
  479. });
  480. break;
  481. //客户资料维护(营销员)
  482. case 'crmMaintain':
  483. require.ensure([], () => {
  484. const Crm = require('./NEW/crm/crm').default;
  485. this.setState({
  486. component: <Crm
  487. isMaintain
  488. intentionState={0}
  489. shiroType={1}//0 咨询师 1营销员
  490. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  491. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  492. />
  493. });
  494. });
  495. break;
  496. //客户资料维护(咨询师)
  497. case 'crmMaintainZXS':
  498. require.ensure([], () => {
  499. const Crm = require('./NEW/crm/crm').default;
  500. this.setState({
  501. component: <Crm
  502. isMaintain
  503. intentionState={0}
  504. shiroType={0}//0 咨询师 1营销员
  505. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  506. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  507. />
  508. });
  509. });
  510. break;
  511. //客户资料维护(超级管理员以及客服查看)
  512. case 'crmMaintainAdmin':
  513. require.ensure([], () => {
  514. const Crm = require('./NEW/crm/crm').default;
  515. this.setState({
  516. component: <Crm
  517. isMaintain
  518. intentionState={0}
  519. shiroType={2}//0 咨询师 1营销员 2管理员
  520. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  521. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  522. />
  523. });
  524. });
  525. break;
  526. //客户资料
  527. case 'crmCount':
  528. require.ensure([], () => {
  529. const CrmCount = require('./NEW/crm/crmCount').default;
  530. this.setState({
  531. component: <CrmCount
  532. intentionState={0}
  533. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  534. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  535. />
  536. });
  537. });
  538. break;
  539. //客户资料
  540. case 'crmAll':
  541. require.ensure([], () => {
  542. const CrmAll = require('./NEW/crm/crmAll').default;
  543. this.setState({
  544. component: <CrmAll
  545. intentionState={0}
  546. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  547. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  548. />
  549. });
  550. });
  551. break;
  552. //客户资料
  553. case 'patentPayment':
  554. require.ensure([], () => {
  555. const PatentPayment = require('./NEW/crm/patentPayment').default;
  556. this.setState({
  557. component: <PatentPayment
  558. intentionState={0}
  559. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  560. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  561. />
  562. });
  563. });
  564. break;
  565. //客户资料-仅读
  566. case 'patentPaymentOnlyRead':
  567. require.ensure([], () => {
  568. const PatentPayment = require('./NEW/crm/patentPayment').default;
  569. this.setState({
  570. component: <PatentPayment
  571. isOnlyRead={true}
  572. intentionState={0}
  573. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  574. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  575. />
  576. });
  577. });
  578. break;
  579. /*签单客户*/
  580. //个人签单客户
  581. case 'personalSign':
  582. require.ensure([], () => {
  583. const PersonalSign = require('./NEW/signCustomer/signCustomer').default;
  584. this.setState({
  585. component: <PersonalSign
  586. intentionState={1}
  587. ApiUrl={'/api/admin/customer/listSignPersonalCustomer'}
  588. //ApiUrl={'/api/admin/customer/listPrivatePersonalCustomer'}
  589. detailApi={'/api/admin/customer/findPersonalCustomerDetail'}
  590. />
  591. });
  592. });
  593. break;
  594. //单位签单客户
  595. case 'companySign':
  596. require.ensure([], () => {
  597. const CompanySign = require('./NEW/signCustomer/signCustomer').default;
  598. this.setState({
  599. component: <CompanySign
  600. intentionState={0}
  601. ApiUrl={'/api/admin/customer/listSignOrganizationCustomer'}
  602. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}/>
  603. });
  604. });
  605. break;
  606. //个人客户查询
  607. case 'personalQuery':
  608. require.ensure([], () => {
  609. const PersonalQuery = require('./NEW/query/queryCutomer').default;
  610. this.setState({
  611. component: <PersonalQuery
  612. intentionState={1}
  613. ApiUrl={'/api/admin/customer/listAllPersonalCustomer'}
  614. detailApi={'/api/admin/customer/getLockedProject'}
  615. />
  616. });
  617. });
  618. break;
  619. //单位客户查询
  620. case 'organizationQuery':
  621. require.ensure([], () => {
  622. const CompanyQuery = require('./NEW/query/queryCutomer').default;
  623. this.setState({
  624. component: <CompanyQuery
  625. intentionState={0}
  626. ApiUrl={'/api/admin/customer/listAllOrganizationCustomer'}
  627. detailApi={'/api/admin/customer/getLockedProject'}
  628. />
  629. });
  630. });
  631. break;
  632. //个人公共客户
  633. case 'personalPublicCustomer':
  634. require.ensure([], () => {
  635. const PersonalPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  636. this.setState({
  637. component: <PersonalPublicCustomer
  638. intentionState={1}
  639. ApiUrl={'/api/admin/customer/listPublicPersonalCustomer'}
  640. />
  641. });
  642. });
  643. break;
  644. //签单统计表
  645. case 'signatureStatistics':
  646. require.ensure([], () => {
  647. const SignatureStatistics = require('./operationalData/signatureStatistics').default;
  648. this.setState({
  649. component: <SignatureStatistics/>
  650. });
  651. });
  652. break;
  653. //面谈统计表
  654. case 'interviewStatistics':
  655. require.ensure([], () => {
  656. const InterviewStatistics = require('./operationalData/interviewStatistics').default;
  657. this.setState({
  658. component: <InterviewStatistics/>
  659. });
  660. });
  661. break;
  662. //公出统计
  663. case 'publicStatistics':
  664. require.ensure([], () => {
  665. const PublicStatistics = require('./publicStatistics/index').default;
  666. this.setState({
  667. component: <PublicStatistics/>
  668. });
  669. });
  670. break;
  671. //单位公共客户
  672. case 'organizationPublicCustomer':
  673. require.ensure([], () => {
  674. const OrganizationPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  675. this.setState({
  676. component: <OrganizationPublicCustomer
  677. intentionState={0}
  678. ApiUrl={'/api/admin/customer/listPublicOrganizationCustomer'}
  679. />
  680. });
  681. });
  682. break;
  683. default:
  684. require.ensure([], () => {
  685. const Module = require('../module').default;
  686. this.setState({
  687. component:<Module ApiUrl={''}/>
  688. });
  689. });
  690. };
  691. window.location.hash = key;
  692. }
  693. render() {
  694. return (
  695. <div className="manage-content">
  696. <LeftTab handlekey={this.getKey.bind(this)} />
  697. <div className="content-right">
  698. {this.state.component}
  699. </div>
  700. </div>
  701. )
  702. }
  703. }
  704. export default Content;