123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998 |
- // 私有渠道列表
- import React, { Component } from "react";
- import {
- Form,
- Button,
- message,
- Spin,
- Input,
- DatePicker,
- Select,
- Tabs,
- Table,
- Modal,
- AutoComplete,
- } from "antd";
- import { ChooseList } from "../../../manageCenter/order/orderNew/chooseList";
- import { provinceList } from "../../../NewDicProvinceList";
- import $ from "jquery/src/ajax";
- import { ShowModal } from "@/tools";
- import moment from "moment";
- import AddChannel from "./addchannel"; //新增渠道
- import ChannelLog from "./channellog"; //转交日志
- import ChangeLog from "./changelog"; //更名日志
- import ChannelDetail from "./channeldetail"; //渠道详情
- import FollowDetail from "../../../../component/manageCenter/customer/NEW/intentionCustomer/followDetail";//新增渠道跟进
- import ShowModalDiv from "@/showModal.jsx";
- const { TabPane } = Tabs;
- const FormItem = Form.Item;
- const Option = Select.Option;
- const { RangePicker } = DatePicker;
- class ChannelUnit extends Component {
- constructor(props) {
- super(props);
- this.state = {
- query: { type: 1 },
- changeList: undefined,
- selectedRowKeys: [],
- selectedRows: [],//列表多选
- columns: [
- {
- title: "渠道名称",
- dataIndex: "name",
- key: "name",
- },
- {
- title: "地区",
- dataIndex: "province",
- key: "province",
- width: 250,
- render: (text, record) => {
- return (record.province || "") + (!record.city ? "" : "-") + (record.city || "") + (!record.area ? "" : "-") + (record.area || "");
- },
- },
- {
- title: "渠道类别",
- dataIndex: "type",
- key: "type",
- width: 120,
- render: (text) =>
- [
- "",
- "其他",
- "民主党派",
- "园区",
- "民间组织",
- "战略合作单位",
- ][text],
- },
- {
- title: "初始时间",
- dataIndex: "transferTime",
- key: "transferTime",
- width: 160,
- },
- {
- title: "跟进人",
- dataIndex: "aName",
- key: "aName",
- },
- {
- title: "剩余天数",
- dataIndex: "remainingDays",
- key: "remainingDays",
- width: 80,
- },
- {
- title: "跟进操作",
- dataIndex: "op",
- key: "op",
- render: (text, record) => (
- record.type != 1 &&
- <Button
- type="primary"
- onClick={(e) => {
- e.stopPropagation();
- this.setState({
- followData: record,
- visitModuls: true,
- });
- }}
- >
- 渠道跟进
- </Button >
- ),
- },
- ],
- dataSource: [],
- pagination: {
- defaultCurrent: 1,
- defaultPageSize: 10,
- showQuickJumper: true,
- pageSize: 10,
- onChange: function (page) {
- this.loadData(page);
- }.bind(this),
- showTotal: function (total) {
- return "共" + total + "条数据";
- },
- },
- channeOb: [
- { name: "民主党派", val: 2 },
- { name: "园区", val: 3 },
- { name: "民间组织", val: 4 },
- { name: "战略合作单位", val: 5 },
- { name: "其他", val: 1 },
- ],
- fjlist: [], // 查询到的更进人列表
- loading: false,
- cityList: [],
- areaList: [],
- searchInfor: {}, // 查询条件
- mvisible: "", //控制弹窗变量
- customerArr: [], //查询到的转交人列表
- rowdata: {}, //双击行数据
- categoryArr: [],
- visitModuls: false,
- };
- this.tabelContentRef = null;
- this.autoCompleteSearchRef = {};
- }
- componentWillMount() {
- this.loadData();
- this.category();
- }
- //
- getVal(arr, val) {
- if (!val || arr.length == 0) {
- return undefined;
- } else {
- for (const items of arr) {
- if (items.id == val) {
- return items.name;
- }
- }
- }
- }
- changeList(arr) {
- const newArr = [];
- this.state.columns.forEach((item) => {
- arr.forEach((val) => {
- if (val === item.title) {
- newArr.push(item);
- }
- });
- });
- this.setState({
- changeList: newArr,
- });
- }
- // 重置
- resetAll() {
- this.setState(
- {
- searchInfor: JSON.parse(JSON.stringify({})),
- selectedRowKeys: [],
- selectedRows: [],
- cityList: [],
- areaList: [],
- auto: "",
- },
- () => {
- this.loadData();
- }
- );
- }
- // 列表接口
- loadData(pageNo) {
- const { searchInfor, pagination } = this.state;
- this.setState({
- loading: true,
- });
- let datas = Object.assign(searchInfor, {
- pageNo: pageNo || 1,
- pageSize: pagination.pageSize,
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/channelUserList",
- data: datas,
- success: function (data) {
- ShowModal(this);
- this.setState({
- loading: false,
- });
- if (data.error && data.error.length === 0) {
- if (data.data.list) {
- pagination.current = data.data.pageNo;
- pagination.total = data.data.totalCount;
- if (data.data && data.data.list && !data.data.list.length) {
- pagination.current = 0;
- pagination.total = 0;
- }
- this.setState({
- dataSource: data.data.list,
- pagination: this.state.pagination,
- pageNo: data.data.pageNo,
- });
- } else {
- this.setState({
- dataSource: data.data,
- pagination: false,
- });
- }
- } else {
- message.warning(data.error[0].message);
- }
- }.bind(this),
- }).always(
- function () {
- this.setState({
- loading: false,
- });
- }.bind(this)
- );
- }
- //值改变时请求客户名称
- httpChange(e) {
- if (e.length >= 1) {
- this.supervisor(e);
- }
- this.setState({
- auto: e,
- });
- }
- // 指定转交人自动补全
- supervisor(e) {
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/listAdminByName",
- data: {
- adminName: e,
- },
- success: function (data) {
- let thedata = data.data;
- if (!thedata) {
- if (data.error && data.error.length) {
- message.warning(data.error[0].message);
- }
- thedata = {};
- }
- this.setState({
- customerArr: thedata,
- });
- }.bind(this),
- }).always(
- function () {
- this.setState({
- loading: false,
- });
- }.bind(this)
- );
- }
- // 失去焦点
- blurChange(e) {
- let theType = "";
- let contactLists = this.state.customerArr || [];
- if (e) {
- contactLists.map(function (item) {
- if (item.name == e.toString()) {
- theType = item.id;
- }
- });
- }
- this.setState({
- theTypes: theType,
- });
- }
- // 选择行
- onSelectChange(selectedRowKeys, selectedRows) {
- this.setState({
- selectedRowKeys,
- selectedRows
- });
- }
- //
- addClick() {
- this.setState({
- mvisible: "add",
- });
- }
- // 关闭弹窗
- closeDesc() {
- this.setState({
- mvisible: "",
- });
- this.loadData(this.state.pageNo);
- }
- // 转交提示
- showConfirm() {
- const { selectedRows } = this.state;
- if (!this.state.theTypes) {
- message.warning("请输入转交人姓名");
- return;
- }
- let _this = this;
- Modal.confirm({
- title: "提示",
- content: (
- <span style={{ color: "red" }}>
- 确定要转交以下渠道吗?
- {
- selectedRows.map((item, index) =>
- <div key={index} style={{ marginTop: "5px", color: "#000" }}>
- {item.name}
- </div>
- )
- }
- </span>
- ),
- onOk() {
- _this.setState({
- informationTransferVisible: true,
- });
- },
- onCancel() { },
- });
- }
- //转交
- changeAssigner(infor) {
- const { selectedRows } = this.state;
- if (this.state.theTypes) {
- this.setState({
- informationTransferVisible: false,
- });
- let changeIds = "";
- let oldAid = "";
- for (let idx = 0; idx < selectedRows.length; idx++) {
- let rowItem = selectedRows[idx];
- if (rowItem.id) {
- oldAid = rowItem.aid;
- changeIds =
- selectedRows.length - 1 === idx
- ? changeIds + rowItem.id
- : changeIds + rowItem.id + ",";
- }
- }
- let loading = message.loading("加载中...");
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/transferToOther",
- data: {
- uid: changeIds, //这一行数据的ID
- aid: this.state.theTypes, //指定转交人的ID
- oldAid: oldAid, //原跟进人ID
- operatorType: 5,
- data: infor, // 资料是否一并转交 0否 1是
- },
- }).done(
- function (data) {
- loading();
- if (!data.error.length) {
- message.success("转交成功!");
- this.setState({
- auto: "",
- loading: false,
- selectedRowKeys: [],
- selectedRows: [],
- });
- } else {
- message.warning(data.error[0].message);
- }
- this.loadData(
- Math.min(
- this.state.pageNo == undefined ? 1 : this.state.pageNo,
- Math.ceil((this.state.pagination.total - 1) / 10)
- )
- );
- }.bind(this)
- );
- } else {
- message.warning("请输入转交人姓名");
- }
- }
- // 移出渠道
- remove() {
- const { dataSource, selectedRows, pageNo } = this.state;
- const _this = this
- Modal.confirm({
- title: "您确定将以下渠道移至公共渠道吗??",
- content: (
- <span style={{ color: "red" }}>
- 移除后,以下客户将被别人领取!
- {
- selectedRows.map((item, index) =>
- <div key={index} style={{ marginTop: "5px", color: "#000" }}>
- {item.name}
- </div>
- )
- }
- </span>
- ),
- onOk() {
- let deletedIds = "";
- for (var idx = 0; idx < selectedRows.length; idx++) {
- let rowItem = selectedRows[idx];
- if (rowItem.id) {
- deletedIds =
- selectedRows.length - 1 === idx
- ? deletedIds + rowItem.id
- : deletedIds + rowItem.id + ",";
- }
- }
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/pushReleaseUser",
- data: {
- id: deletedIds,
- },
- success: function (data) {
- _this.setState({
- selectedRowKeys: [],
- selectedRows: [],
- });
- let thedata = data.data;
- if (!thedata) {
- if (data.error && data.error.length) {
- message.warning(data.error[0].message);
- }
- thedata = {};
- } else {
- message.success("移除成功");
- }
- _this.loadData(
- dataSource.length === 1
- ? pageNo === 1
- ? 1
- : pageNo - 1
- : pageNo
- )
- }.bind(this),
- }).always(
- function () {
- _this.setState({
- loading: false,
- });
- }.bind(this)
- );
- },
- onCancel() { },
- });
- }
- selectAuto(value, options) {
- this.setState({
- auto: value,
- });
- }
- // 跟进人查询
- followUp(e) {
- const { searchInfor } = this.state;
- this.setState({
- searchInfor: Object.assign(searchInfor, {
- aname: e,
- }),
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/listAdminByName",
- data: {
- adminName: e,
- },
- success: function (data) {
- let thedata = data.data;
- if (!thedata) {
- if (data.error && data.error.length) {
- message.warning(data.error[0].message);
- }
- thedata = {};
- }
- this.setState({
- fjlist: thedata,
- });
- }.bind(this),
- }).always(
- function () {
- this.setState({
- loading: false,
- });
- }.bind(this)
- );
- }
- // 选中跟进人
- selectF(value) {
- const { searchInfor, fjlist } = this.state;
- const newdataSources = JSON.stringify(fjlist) == "{}" ? [] : fjlist;
- this.setState({
- searchInfor: Object.assign(searchInfor, {
- aid: newdataSources.find((item) => item.name == value).id,
- }),
- });
- }
- //品类数据获取
- 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),
- });
- }
- //查看跟进记录列表
- loadVisit(pageNo) {
- this.setState({
- loading: true,
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/listFollowHistory",
- data: {
- pageNo: pageNo || 1,
- pageSize: this.state.paginations.pageSize,
- uid: this.props.data.id, //名称1
- },
- success: function (data) {
- let theArr = [];
- if (data.error.length || data.data.list == "") {
- if (data.error && data.error.length) {
- message.warning(data.error[0].message);
- }
- } else {
- for (let i = 0; i < data.data.list.length; i++) {
- let thisdata = data.data.list[i];
- theArr.push(thisdata);
- }
- this.state.paginations.current = data.data.pageNo;
- this.state.paginations.total = data.data.totalCount;
- this.setState({
- pageNo: data.data.pageNo,
- });
- }
- if (data.data.list && !data.data.list.length) {
- this.state.paginations.current = 0;
- this.state.paginations.total = 0;
- }
- this.setState({
- visitArrList: theArr,
- paginations: this.state.paginations,
- });
- }.bind(this),
- }).always(
- function () {
- this.setState({
- loading: false,
- });
- }.bind(this)
- );
- }
- close() {
- this.setState({
- visitModuls: false,
- });
- this.loadData(this.state.pageNo);
- }
- render() {
- const {
- columns,
- selectedRowKeys,
- cityList,
- areaList,
- changeList,
- searchInfor,
- channeOb,
- dataSource,
- } = this.state;
- const rowSelection = {
- hideDefaultSelections: true,
- selectedRowKeys,
- onChange: this.onSelectChange.bind(this),
- };
- const hasSelected = this.state.selectedRowKeys.length > 0;
- const dataSources = this.state.customerArr || [];
- const options = dataSources.map((group) => (
- <Select.Option key={group.id} value={group.name}>
- {group.name}
- </Select.Option>
- ));
- const newdataSources =
- JSON.stringify(this.state.fjlist) == "{}" ? [] : this.state.fjlist;
- const newoptions = newdataSources.map((group) => (
- <Select.Option key={group.id} value={group.name}>
- {group.name}
- </Select.Option>
- ));
- return (
- <div className="user-content">
- <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
- <div className="content-title" style={{ marginBottom: 10 }}>
- <span style={{ fontWeight: 900, fontSize: 16 }}>私有渠道列表</span>
- </div>
- <Tabs
- defaultActiveKey="1"
- onChange={() => {
- this.setState({ searchInfor: {} })
- }}
- >
- <TabPane tab="搜索" key="1">
- <div>
- <Form layout="inline">
- <FormItem>
- <Input
- placeholder={"请输入渠道名称"}
- value={searchInfor.name || undefined}
- onChange={(e) => {
- this.setState({
- searchInfor: Object.assign(searchInfor, {
- name: e.target.value,
- }),
- });
- }}
- />
- </FormItem>
- <FormItem>
- <Select
- placeholder={"选择省份"}
- style={{ width: 100 }}
- value={this.getVal(provinceList, searchInfor.province)}
- onChange={(e) => {
- for (const items of provinceList) {
- if (items.id == e) {
- this.setState({
- cityList: items.cityList,
- areaList: [],
- searchInfor: Object.assign(searchInfor, {
- province: items.id,
- city: undefined,
- area: undefined,
- }),
- });
- }
- }
- }}
- >
- {provinceList.map((item, index) => (
- <Option key={item.id}>{item.name}</Option>
- ))}
- </Select>
- </FormItem>
- <FormItem>
- <Select
- placeholder={"选择城市"}
- style={{ width: 100 }}
- value={this.getVal(cityList, searchInfor.city)}
- onChange={(e) => {
- for (const items of cityList) {
- if (items.id == e) {
- this.setState({
- areaList: items.areaList,
- searchInfor: Object.assign(searchInfor, {
- city: items.id,
- area: undefined,
- }),
- });
- }
- }
- }}
- >
- {cityList.map((cit, cin) => (
- <Option key={cit.id}>{cit.name}</Option>
- ))}
- </Select>
- </FormItem>
- <FormItem>
- <Select
- placeholder={"选择地区"}
- style={{ width: 100 }}
- value={this.getVal(areaList, searchInfor.area)}
- onChange={(e) => {
- for (const items of areaList) {
- if (items.id == e) {
- this.setState({
- searchInfor: Object.assign(searchInfor, {
- area: items.id,
- }),
- });
- }
- }
- }}
- >
- {areaList.map((cit, cin) => (
- <Option key={cit.id}>{cit.name}</Option>
- ))}
- </Select>
- </FormItem>
- <FormItem>
- <AutoComplete
- className="certain-category-search"
- dropdownClassName="certain-category-search-dropdown"
- dropdownMatchSelectWidth={false}
- style={{ width: "120px" }}
- dataSource={newoptions}
- placeholder="跟进人"
- value={searchInfor.aname || undefined}
- onChange={this.followUp.bind(this)}
- filterOption={true}
- onSelect={this.selectF.bind(this)}
- >
- <Input />
- </AutoComplete>
- </FormItem>
- <FormItem>
- <Select
- placeholder={"渠道类型"}
- style={{ width: 130 }}
- value={searchInfor.type || undefined}
- onChange={(e) => {
- this.setState({
- searchInfor: Object.assign(searchInfor, {
- type: e,
- }),
- });
- }}
- >
- {channeOb.map((it, ins) => (
- <Option key={it.val}>{it.name}</Option>
- ))}
- </Select>
- </FormItem>
- <FormItem>
- <RangePicker
- value={[
- searchInfor.startDate
- ? moment(searchInfor.startDate)
- : null,
- searchInfor.endDate ? moment(searchInfor.endDate) : null,
- ]}
- onChange={(data, dataString) => {
- this.setState({
- searchInfor: Object.assign(searchInfor, {
- startDate: dataString[0],
- endDate: dataString[1],
- }),
- });
- }}
- />
- </FormItem>
- <Button
- type="primary"
- onClick={() => {
- this.loadData();
- }}
- style={{ marginRight: "10px" }}
- >
- 搜索
- </Button>
- <Button
- onClick={this.resetAll.bind(this)}
- style={{ marginRight: "10px" }}
- >
- 重置
- </Button>
- <Button
- type="primary"
- onClick={this.addClick.bind(this)}
- style={{ display: "float", float: "right" }}
- >
- 新增渠道
- </Button>
- </Form>
- </div>
- </TabPane>
- <TabPane tab="操作" key="2">
- <div
- style={{
- marginLeft: 10,
- paddingBottom: 10,
- display: "flex",
- }}
- >
- <div style={{ flex: 1 }}>
- <AutoComplete
- className="certain-category-search"
- dropdownClassName="certain-category-search-dropdown"
- dropdownMatchSelectWidth={false}
- style={{ width: "120px" }}
- dataSource={options}
- placeholder="输入转交人姓名"
- value={this.state.auto}
- onChange={this.httpChange.bind(this)}
- filterOption={true}
- onBlur={this.blurChange.bind(this)}
- onSelect={this.selectAuto.bind(this)}
- disabled={!hasSelected}
- >
- <Input />
- </AutoComplete>
- <Button
- type="primary"
- onClick={this.showConfirm.bind(this)}
- style={{ marginLeft: 10 }}
- disabled={!hasSelected}
- >
- 转交
- </Button>
- <Button
- type="primary"
- onClick={() => {
- this.setState({
- mvisible: "channellog",
- });
- }}
- style={{ marginLeft: "10px" }}
- disabled={this.state.selectedRowKeys.length !== 1}
- >
- 渠道日志
- </Button>
- <Button
- type="primary"
- onClick={this.remove.bind(this)}
- style={{ marginLeft: "10px" }}
- disabled={!hasSelected}
- >
- 移出渠道
- </Button>
- <Button
- type="primary"
- onClick={() => {
- this.setState({
- mvisible: "changelog",
- });
- }}
- style={{ marginLeft: "10px" }}
- disabled={this.state.selectedRowKeys.length !== 1}
- >
- 更改日志
- </Button>
- </div>
- <Button
- type="primary"
- onClick={this.addClick.bind(this)}
- style={{ marginLeft: "10px" }}
- >
- 新增渠道
- </Button>
- </div>
- </TabPane>
- <TabPane tab="更改表格显示数据" key="3">
- <div style={{ marginLeft: 10 }}>
- <ChooseList
- columns={columns}
- changeFn={this.changeList.bind(this)}
- changeList={changeList}
- top={55}
- margin={11}
- />
- </div>
- </TabPane>
- </Tabs>
- <div className="patent-table">
- <Spin spinning={this.state.loading}>
- <Table
- bordered
- size="middle"
- columns={changeList ? changeList : columns}
- onRowDoubleClick={(e) => {
- this.setState({
- mvisible: "detail",
- rowdata: e,
- });
- }}
- dataSource={this.state.dataSource}
- pagination={this.state.pagination}
- rowSelection={rowSelection}
- />
- </Spin>
- </div>
- {this.state.informationTransferVisible && (
- <Modal
- visible={this.state.informationTransferVisible}
- title="提醒"
- onCancel={() => {
- this.setState({
- informationTransferVisible: false,
- });
- }}
- footer={[
- <Button
- key="1"
- size="large"
- type={"primary"}
- onClick={() => {
- this.changeAssigner(1);
- }}
- >
- 需要
- </Button>,
- <Button
- key="2"
- size="large"
- type={"danger"}
- onClick={() => {
- this.changeAssigner(0);
- }}
- >
- 不需要
- </Button>,
- ]}
- >
- 请确定,是否将客户资料一并转交!选择“需要”,系统将全部客户资料一并转交!选择“不需要”,原客户资料保存您的客户资料中,请注意客户资料的更新维护,谢谢
- </Modal>
- )}
- {this.state.mvisible == "add" && (
- <AddChannel
- showDesc={this.state.mvisible}
- closeDesc={this.closeDesc.bind(this)}
- />
- )}
- {this.state.mvisible == "channellog" && (
- <ChannelLog
- cancel={this.closeDesc.bind(this)}
- visible={this.state.mvisible}
- id={dataSource[selectedRowKeys[0]].id}
- />
- )}
- {this.state.mvisible == "changelog" && (
- <ChangeLog
- cancel={this.closeDesc.bind(this)}
- visible={this.state.mvisible}
- id={dataSource[selectedRowKeys[0]].id}
- />
- )}
- {this.state.mvisible == "detail" && (
- <ChannelDetail
- cancel={this.closeDesc.bind(this)}
- visible={this.state.mvisible}
- IntentionData={this.state.rowdata}
- categoryArr={this.state.categoryArr}
- />
- )}
- <FollowDetail
- categoryArr={this.state.categoryArr}
- followData={this.state.followData}
- visitModul={this.state.visitModuls}
- closeDesc={this.close.bind(this)}
- loadData={this.loadVisit.bind(this)}
- />
- </div>
- );
- }
- }
- export default ChannelUnit;
|