|
@@ -1,11 +1,11 @@
|
|
|
import React from 'react';
|
|
|
-import { Row, Col, Icon, Modal, Button, Spin, Select, Input, message, Badge, Table, Tabs, Tag } from 'antd';
|
|
|
+import { Row, Col, Icon, Modal, Button, Spin, Input, message, Badge, Table, Tabs, Tag } from 'antd';
|
|
|
import { getProvince } from '../NewDicProvinceList.js';
|
|
|
-import { companySearch ,getActives} from '../tools.js';
|
|
|
+import { getActives} from '../tools.js';
|
|
|
import './topTab.less';
|
|
|
-import ajax from 'jquery/src/ajax/xhr.js'
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
import logo from '../../../image/acc-logo.png';
|
|
|
+import FollowDetail from "./customer/NEW/intentionCustomer/followDetail";
|
|
|
|
|
|
const MessageModal = React.createClass({
|
|
|
getInitialState() {
|
|
@@ -36,6 +36,7 @@ const MessageModal = React.createClass({
|
|
|
return '共' + total + '条数据';
|
|
|
}
|
|
|
},
|
|
|
+ categoryArr:[],
|
|
|
columns: [
|
|
|
{
|
|
|
title: '编号',
|
|
@@ -46,30 +47,6 @@ const MessageModal = React.createClass({
|
|
|
dataIndex: 'noticeType',
|
|
|
key: 'noticeType',
|
|
|
render: (text, record) => {
|
|
|
-// switch (text) {
|
|
|
-// case 1:
|
|
|
-// return <a href={globalConfig.context + "/admin/servicesManage/patent.html?rid=" + record.rid + "&uid=" + record.uid + "#comprehensive"}> {record.noticeTypeName} </a>;
|
|
|
-// case 3:
|
|
|
-// return <a href={globalConfig.context + "/admin/servicesManage/copyright.html?rid=" + record.rid + "&uid=" + record.uid + "#copyright"}> {record.noticeTypeName} </a>;
|
|
|
-// case 2:
|
|
|
-// return <a href={globalConfig.context + "/admin/servicesManage/highTech.html?rid=" + record.rid + "&uid=" + record.uid + "&year=" + record.year + "#highTechApply"}> {record.noticeTypeName} </a>;
|
|
|
-// case 4:
|
|
|
-// return <a href={globalConfig.context + "/admin/servicesManage/technology.html?rid=" + record.rid + "&uid=" + record.uid + "#applyManage"}> {record.noticeTypeName} </a>;
|
|
|
-// case 5:
|
|
|
-// return <a href={globalConfig.context + "/admin/userManage.html?id=" + record.uid + "&type=0" + (window.showUserList ? "#userList" : "#customerList")}> {record.noticeTypeName} </a>;
|
|
|
-// case 6:
|
|
|
-// return <a href={globalConfig.context + "/admin/userManage.html?id=" + record.uid + "&type=1" + (window.showOrgList ? "#orgList" : "#customerList")}> {record.noticeTypeName} </a >;
|
|
|
-// case 7:
|
|
|
-// return <a href={globalConfig.context + "/admin/servicesManage/contract.html?rid=" + record.rid + "&uid=" + record.uid + "#contract"}> {record.noticeTypeName} </a >;
|
|
|
-// case 8:
|
|
|
-// return <a href={globalConfig.context + "/admin/demand.html?rid=" + record.rid + "#techDemandUser"}> {record.noticeTypeName} </a >;
|
|
|
-// case 9:
|
|
|
-// return <a href={globalConfig.context + "/admin/demand.html?rid=" + record.rid + "&uid=" + record.uid + "#techDemandOrg"}> {record.noticeTypeName} </a >;
|
|
|
-// case 10:
|
|
|
-// return <a href={globalConfig.context + "/admin/achievement.html?rid=" + record.rid + "#orgTechAchievement"}> {record.noticeTypeName} </a >;
|
|
|
-// case 11:
|
|
|
-// return <a href={globalConfig.context + "/admin/achievement.html?rid=" + record.rid + "#userTechAchievement"}> {record.noticeTypeName} </a >;
|
|
|
-// }
|
|
|
return (<span>{record.noticeTypeName}</span>)
|
|
|
}
|
|
|
}, {
|
|
@@ -80,20 +57,57 @@ const MessageModal = React.createClass({
|
|
|
title: '内容',
|
|
|
dataIndex: 'content',
|
|
|
key: 'content',
|
|
|
+ }, {
|
|
|
+ title: "操作",
|
|
|
+ dataIndex: "abc",
|
|
|
+ key: "abc",
|
|
|
+ render: (text, record) => {
|
|
|
+ return (
|
|
|
+ record.noticeType === 48 || record.noticeType === 49 ?
|
|
|
+ <Button type="primary" onClick={()=>{
|
|
|
+ this.category();
|
|
|
+ record.id = record.uid;
|
|
|
+ this.setState({
|
|
|
+ followData: record,
|
|
|
+ visitModul: true,
|
|
|
+ });
|
|
|
+ }}>立即跟进</Button> : null
|
|
|
+ )
|
|
|
+ }
|
|
|
},
|
|
|
- // {
|
|
|
- // title: '公司',
|
|
|
- // dataIndex: 'unitName',
|
|
|
- // key: 'unitName',
|
|
|
- // }, {
|
|
|
- // title: '业务员',
|
|
|
- // dataIndex: 'principle',
|
|
|
- // key: 'principle',
|
|
|
- // }
|
|
|
],
|
|
|
data: []
|
|
|
};
|
|
|
},
|
|
|
+ category() {
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/admin/Varieties/getSuperList",
|
|
|
+ data: {},
|
|
|
+ success: function (data) {
|
|
|
+ let thedata = data.data;
|
|
|
+ let theArr = [];
|
|
|
+ if (!thedata) {
|
|
|
+ if (data.error && data.error.length) {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ thedata = {};
|
|
|
+ } else {
|
|
|
+ thedata.map(function (item, index) {
|
|
|
+ theArr.push({
|
|
|
+ value: item.id,
|
|
|
+ key: item.cname,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ categoryArr: theArr,
|
|
|
+ });
|
|
|
+ }.bind(this),
|
|
|
+ });
|
|
|
+ },
|
|
|
loadReaded(pageNo) {
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
@@ -217,13 +231,22 @@ const MessageModal = React.createClass({
|
|
|
});
|
|
|
this.props.closeDesc(false, true);
|
|
|
},
|
|
|
+ closeDesc(){
|
|
|
+ this.setState({
|
|
|
+ categoryArr:[],
|
|
|
+ followData:'',
|
|
|
+ visitModul:false
|
|
|
+ },()=>{
|
|
|
+ this.loadReaded(this.state.pagination.current);
|
|
|
+ })
|
|
|
+ },
|
|
|
render() {
|
|
|
return (
|
|
|
<div className="topTab-modal">
|
|
|
<Spin spinning={this.state.loading} className='spin-box'>
|
|
|
<Modal maskClosable={false} title="信息中心" visible={this.state.visible}
|
|
|
onOk={this.handleOk} onCancel={this.handleCancel}
|
|
|
- width='800px' footer=''
|
|
|
+ width='1000px' footer=''
|
|
|
>
|
|
|
<Tabs defaultActiveKey="1">
|
|
|
<Tabs.TabPane tab="新信息" key="1">
|
|
@@ -243,6 +266,12 @@ const MessageModal = React.createClass({
|
|
|
</Tabs>
|
|
|
</Modal>
|
|
|
</Spin>
|
|
|
+ <FollowDetail
|
|
|
+ categoryArr={this.state.categoryArr}
|
|
|
+ followData={this.state.followData}
|
|
|
+ visitModul={this.state.visitModul}
|
|
|
+ closeDesc={this.closeDesc}
|
|
|
+ />
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
@@ -260,7 +289,7 @@ const UserModal = React.createClass({
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
@@ -333,13 +362,13 @@ const UserModal = React.createClass({
|
|
|
loading: true
|
|
|
});
|
|
|
if(this.state.contactMobile){
|
|
|
- if(!(/^1[1-9][0-9]\d{4,8}$/.test(this.state.contactMobile))){
|
|
|
- message.warning("不是完整的11位手机号或者正确的手机号前七位");
|
|
|
+ if(!(/^1[1-9][0-9]\d{4,8}$/.test(this.state.contactMobile))){
|
|
|
+ message.warning("不是完整的11位手机号或者正确的手机号前七位");
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
return false;
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
// if(this.state.mobile.length>11){
|
|
|
// message.warning("登录账号不能超过11位");
|
|
@@ -465,7 +494,7 @@ const TopTab = React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/selectNavList",
|
|
|
data: {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
success:function(data){
|
|
|
if (!data.data) {
|
|
@@ -566,13 +595,13 @@ const TopTab = React.createClass({
|
|
|
{/*<Col style={{ display: window.showUserManage ? 'block' : 'none' }} className={this.props.active === 'userManage' ? 'active' : ''} span={2}><a href={globalConfig.context + "/admin/userManage.html"}>用户管理</a></Col>*/}
|
|
|
{/*<Col style={{ display: window.showCustomer ? 'block' : 'none' }} className={this.props.active === 'myClient' ? 'active' : ''} span={3}><a href={globalConfig.context + "/admin/customer.html" }>客户管理</a></Col>
|
|
|
<Col style={{ display: window.showServices ? 'block' : 'none' }} className={this.props.active === 'services' ? 'active' : ''} span={3}><a href={globalConfig.context + "/admin/servicesManage/contract.html"}>科技服务管理</a></Col>
|
|
|
- <Col style={{ display: window.showAchievement ? 'block' : 'none' }} className={this.props.active === 'achievement' ? 'active' : ''} span={3}><a href={globalConfig.context + "/admin/achievement.html"}>科技成果管理</a></Col>
|
|
|
+ <Col style={{ display: window.showAchievement ? 'block' : 'none' }} className={this.props.active === 'achievement' ? 'active' : ''} span={3}><a href={globalConfig.context + "/admin/achievement.html"}>科技成果管理</a></Col>
|
|
|
<Col style={{ display: window.showDemand ? 'block' : 'none' }} className={this.props.active === 'demand' ? 'active' : ''} span={3}><a href={globalConfig.context + "/admin/demand.html"}>科技需求管理</a></Col>
|
|
|
<Col style={{ display: window.showIdea ? 'block' : 'none' }} className={this.props.active === 'idea' ? 'active' : ''} span={3}><a href={globalConfig.context + "/admin/idea.html"}>科技思想管理</a></Col>
|
|
|
<Col style={{ display: window.showUserOrderList ? 'block' : 'none' }} className={this.props.active === 'userOrder' ? 'active' : ''} span={3}><a href={globalConfig.context + "/admin/userOrder.html"}>用户订单管理</a></Col>
|
|
|
<Col style={{ display: window.showSystem ? 'block' : 'none' }} className={this.props.active === 'system' ? 'active' : ''} span={3}><a href={globalConfig.context + "/admin/set.html"}>系统设置</a></Col>
|
|
|
*/}
|
|
|
- {this.state.htmlMenus}
|
|
|
+ {this.state.htmlMenus}
|
|
|
</Row>
|
|
|
</div>
|
|
|
<UserModal showDesc={this.state.userModalShow} closeDesc={this.closeUserModal} />
|
|
@@ -582,4 +611,4 @@ const TopTab = React.createClass({
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-export default TopTab;
|
|
|
+export default TopTab;
|