newUser.jsx 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. import React from 'react';
  2. import { Icon, Modal, message, AutoComplete, Spin, Input, Select, Button, Form, Popconfirm, TreeSelect } from 'antd';
  3. import $ from 'jquery/src/ajax';
  4. import './userMangagement.less';
  5. import { cityArr, station, post } from '../../../dataDic.js';
  6. import { splitUrl } from '../../../tools.js';
  7. import moment from 'moment';
  8. import ImgList from "../../../common/imgList";
  9. import StaffSearch from '../../../../component/common/staffSearch';
  10. //图片组件
  11. const PicturesWall = React.createClass({
  12. getInitialState() {
  13. return {
  14. previewVisible: false,
  15. previewImage: '',
  16. fileList: [],
  17. role: [],
  18. district: [],
  19. cityOption: [],
  20. }
  21. },
  22. handleCancel() {
  23. this.setState({ previewVisible: false })
  24. },
  25. handlePreview(file) {
  26. this.setState({
  27. previewImage: file.url || file.thumbUrl,
  28. previewVisible: true,
  29. });
  30. },
  31. handleChange(info) {
  32. let fileList = info.fileList;
  33. this.setState({ fileList });
  34. this.props.fileList(fileList);
  35. },
  36. componentWillReceiveProps(nextProps) {
  37. this.state.fileList = nextProps.pictureUrl;
  38. },
  39. render() {
  40. const { previewVisible, previewImage, fileList } = this.state;
  41. const uploadButton = (
  42. <div>
  43. <Icon type="plus" />
  44. <div className="ant-upload-text">点击上传</div>
  45. </div>
  46. );
  47. return (
  48. <div style={{ display: "inline-block" }}>
  49. <ImgList
  50. domId={this.props.domId}
  51. uploadConfig={{
  52. action: globalConfig.context + "/api/admin/superviser/uploadAdminImg",
  53. data: { 'sign': this.props.pictureSign },
  54. multiple: true,
  55. listType: "picture-card",
  56. }}
  57. onChange={(infor) => {
  58. this.handleChange(infor)
  59. }}
  60. fileList={fileList}
  61. />
  62. </div>
  63. );
  64. }
  65. });
  66. const Newuser = Form.create()(React.createClass({
  67. getInitialState() {
  68. return {
  69. orgCodeUrl: [],
  70. loading: false,
  71. loaduser: {},
  72. datauser: [],
  73. role: []
  74. };
  75. },
  76. getDefaultProps() {
  77. return {
  78. userDetaile: false
  79. }
  80. },
  81. handleSubmit(e) {
  82. e.preventDefault();
  83. if (!this.state.role || this.state.role.length === 0) {
  84. message.warning('请选择角色');
  85. return false;
  86. };
  87. // if (!this.state.status && this.props.userDetaile) {
  88. // message.warning('请选择角色状态');
  89. // return false;
  90. // };
  91. if (window.adminData.isSuperAdmin) {
  92. if (!this.state.departmentId) {
  93. message.warning('请选择组织部门');
  94. return false;
  95. };
  96. }
  97. if (!this.state.theTypes && !this.state.superiorId) {
  98. message.warning('请输入正确的上级主管');
  99. return false;
  100. };
  101. if (!this.state.reviewer) {
  102. message.warning('请输入正确的公出审核人');
  103. return false;
  104. }
  105. if (this.state.contactMobile) {
  106. if (!(/^1[1-9][0-9]\d{4,8}$/.test(this.state.contactMobile))) {
  107. message.warning("不是完整的11位手机号或者正确的手机号前七位");
  108. this.setState({
  109. loading: false
  110. });
  111. return false;
  112. }
  113. }
  114. // if (this.state.ambId == null || this.state.ambId == undefined) {
  115. // message.warning('请选择所属巴');
  116. // return false;
  117. // }
  118. let theorgCodeUrl = [];
  119. if (this.state.orgCodeUrl.length) {
  120. let picArr = [];
  121. this.state.orgCodeUrl.map(function (item) {
  122. if (item.response && item.response.data && item.response.data.length) {
  123. picArr.push(item.response.data);
  124. }
  125. });
  126. theorgCodeUrl = picArr.join(",");
  127. };
  128. let api = this.props.userDetaile ? "/api/admin/superviser/updateAdmin" : '/api/admin/superviser/insertAdmin'
  129. this.setState({
  130. loading: true
  131. });
  132. $.ajax({
  133. method: "POST",
  134. dataType: "json",
  135. crossDomain: false,
  136. url: globalConfig.context + api,
  137. data: {
  138. roles: this.state.role,
  139. data: JSON.stringify({
  140. id: this.state.id ? this.state.id : this.props.addId,
  141. mobile: this.state.mobile,
  142. seniorStaff: this.state.seniorStaff,
  143. publicPurview: this.state.publicPurview,
  144. status: this.state.status,
  145. contactMobile: this.state.contactMobile,
  146. name: this.state.name,
  147. departmentId: window.adminData.isSuperAdmin ? this.state.departmentId : window.adminData.departmentId,
  148. duty: this.state.duty,
  149. position: this.state.position,//岗位
  150. email: this.state.email,
  151. superiorId: this.state.theTypes ? this.state.theTypes : this.state.superiorId,
  152. reviewer: this.state.reviewer,
  153. district: this.state.district,
  154. headPortraitUrl: theorgCodeUrl.length ? theorgCodeUrl : '',
  155. entryTime: this.state.selTime,
  156. ambId: !!this.state.ambId ? this.state.ambId : null,
  157. managerId: this.state.managerId,
  158. expenseSuperExamine: this.state.expenseSuperExamine, // 报销是否需要上级审核
  159. publicCarbonCopy: this.state.publicCarbonCopy,// 公出抄送
  160. })
  161. }
  162. }).done(function (data) {
  163. this.setState({
  164. loading: false
  165. });
  166. if (!data.error.length) {
  167. message.success('保存成功!');
  168. this.handleOk();
  169. } else {
  170. message.warning(data.error[0].message);
  171. }
  172. }.bind(this));
  173. },
  174. //主管初始加载(自动补全)
  175. supervisor(e) {
  176. $.ajax({
  177. method: "post",
  178. dataType: "json",
  179. crossDomain: false,
  180. url: globalConfig.context + "/api/admin/organization/selectName",
  181. data: {
  182. name: e
  183. },
  184. success: function (data) {
  185. let thedata = data.data;
  186. if (!thedata) {
  187. if (data.error && data.error.length) {
  188. message.warning(data.error[0].message);
  189. };
  190. thedata = {};
  191. };
  192. this.setState({
  193. customerArr: thedata,
  194. });
  195. }.bind(this),
  196. }).always(function () {
  197. this.setState({
  198. loading: false
  199. });
  200. }.bind(this));
  201. },
  202. //上级主管输入框失去焦点是判断客户是否存在
  203. selectAuto(value) {
  204. let theType = '';
  205. let contactLists = this.state.customerArr || [];
  206. if (value) {
  207. contactLists.map(function (item) {
  208. if (item.name === value.toString()) {
  209. theType = item.id;
  210. }
  211. });
  212. }
  213. this.setState({
  214. theTypes: theType,
  215. superior: value
  216. })
  217. if (!this.state.reviewerName || !this.state.reviewer) {
  218. this.setState({
  219. reviewerName: value,
  220. reviewer: theType
  221. })
  222. }
  223. },
  224. //值改变时请求客户名称
  225. httpChange(e) {
  226. if (e.length >= 1) {
  227. this.supervisor(e);
  228. }
  229. this.setState({
  230. superior: e
  231. })
  232. },
  233. //查看基本详情基本信息
  234. loaduser(record) {
  235. if (record) {
  236. $.ajax({
  237. method: "post",
  238. dataType: "json",
  239. crossDomain: false,
  240. url: globalConfig.context + '/api/admin/superviser/selectAllByid',
  241. data: {
  242. id: record.id
  243. },
  244. success: function (data) {
  245. let thisdata = data.data;
  246. if (!thisdata) {
  247. if (data.error && data.error.length) {
  248. message.warning(data.error[0].message);
  249. };
  250. thisdata = {};
  251. };
  252. this.setState({
  253. id: thisdata.id,
  254. mobile: thisdata.mobile,
  255. name: thisdata.name,
  256. email: thisdata.email,
  257. createTime: thisdata.createTime,
  258. district: thisdata.district != ' ' ? JSON.parse(thisdata.district) : undefined,
  259. position: thisdata.position ? thisdata.position : undefined,
  260. superior: thisdata.superior,
  261. superiorId: thisdata.superiorId,//上级Id
  262. reviewerName: thisdata.reviewerName,
  263. reviewer: thisdata.reviewer, // 公出审核人
  264. managerName: thisdata.managerName,
  265. managerId: thisdata.managerId, // 经理审核
  266. theTypes: '',
  267. duty: thisdata.duty ? thisdata.duty : undefined,//职务
  268. publicPurview: thisdata.publicPurview,
  269. seniorStaff: thisdata.seniorStaff,
  270. status: Number(thisdata.status),
  271. contactMobile: thisdata.contactMobile ? thisdata.contactMobile : undefined,//手机号
  272. departmentId: thisdata.departmentId ? thisdata.departmentId : undefined,//部门id
  273. userNo: thisdata.userNo,
  274. orgCodeUrl: thisdata.headPortraitUrl ? splitUrl(thisdata.headPortraitUrl, ',', globalConfig.avatarHost + '/upload') : [],
  275. role: this.props.role,
  276. entryTime: thisdata.entryTime ? moment(thisdata.entryTime, 'YYYY-MM-DD') : undefined,
  277. selTime: thisdata.entryTime,
  278. ambId: !!thisdata.ambId && Number(thisdata.ambId), // 分巴id
  279. expenseSuperExamine: thisdata.expenseSuperExamine, // 报销是否需要上级主管审核
  280. publicCarbonCopy: thisdata.publicCarbonCopy, // 公出抄送
  281. publicCarbonCopyName: thisdata.publicCarbonCopyName,
  282. });
  283. }.bind(this),
  284. }).always(function () {
  285. this.setState({
  286. loading: false
  287. });
  288. }.bind(this));
  289. }
  290. },
  291. //重置密码
  292. resetPwd() {
  293. this.setState({
  294. loading: true
  295. })
  296. $.ajax({
  297. type: 'post',
  298. url: globalConfig.context + "/api/admin/superviser/resetPwd",
  299. dataType: "json",
  300. data: {
  301. id: this.props.datauser.id
  302. },
  303. }).done((res) => {
  304. if (res.error && res.error.length) {
  305. message.error(res.error[0].message);
  306. } else {
  307. message.success("密码重置成功");
  308. }
  309. }).always(() => {
  310. this.setState({
  311. loading: false
  312. })
  313. });
  314. },
  315. handleOk(e) {
  316. this.props.closeDesc(false, true);
  317. },
  318. handleCancel(e) {
  319. this.props.closeDesc(false);
  320. },
  321. //入职时间选择
  322. selTime(e, index) {
  323. this.setState({
  324. entryTime: e,
  325. selTime: index
  326. })
  327. },
  328. getOrgCodeUrl(e) {
  329. this.setState({ orgCodeUrl: e });
  330. },
  331. componentWillMount(e) {
  332. const cityArrs = [];
  333. cityArr.map(function (item) {
  334. cityArrs.push(
  335. <Select.Option key={item.value}>{item.key}</Select.Option>
  336. )
  337. });
  338. this.state.cityOption = cityArrs;
  339. },
  340. componentDidMount() {
  341. if (this.props.datauser.id) {
  342. this.loaduser(this.props.datauser)
  343. this.setState({
  344. rolek: this.props.role
  345. })
  346. }
  347. },
  348. render() {
  349. const FormItem = Form.Item
  350. const formItemLayout = {
  351. labelCol: { span: 8 },
  352. wrapperCol: { span: 14 },
  353. };
  354. const dataSources = this.state.customerArr || [];
  355. const options = dataSources.map((group, index) =>
  356. <Select.Option key={index} value={group.name}>{group.name}</Select.Option>
  357. )
  358. const departmentArr = this.props.departmentArr || [];
  359. const roleArrS = this.props.roleArr || [];
  360. const rolst = this.state.rolek || [];
  361. return (
  362. <div>
  363. <Modal maskClosable={false} visible={this.props.showDesc}
  364. onOk={this.handleOk} onCancel={this.handleCancel}
  365. width='800px'
  366. title={this.props.userDetaile ? '用户详情' : '新建用户'}
  367. footer=''
  368. className="admin-desc-content">
  369. <Form layout="horizontal" onSubmit={this.handleSubmit} id="demand-form">
  370. <Spin spinning={this.state.loading}>
  371. <div className="clearfix">
  372. <div className="clearfix">
  373. <FormItem className="half-item"
  374. {...formItemLayout}
  375. label="用户名" >
  376. <Input placeholder="输入登录用户名" value={this.state.mobile}
  377. onChange={(e) => { this.setState({ mobile: e.target.value }) }} required="required" style={{ width: '200px' }} />
  378. <span className="mandatory">*</span>
  379. </FormItem>
  380. {this.props.userDetaile ?
  381. <Popconfirm
  382. title={"用户 [ " + this.props.datauser.name + " ] 的密码将会重置为123456,确认操作?"}
  383. onConfirm={this.resetPwd}
  384. okText="确认"
  385. cancelText="取消"
  386. placement="topLeft">
  387. <Button>重置密码</Button>
  388. </Popconfirm> : ''}
  389. </div>
  390. <FormItem className="half-item"
  391. {...formItemLayout}
  392. label="用户角色"
  393. >
  394. {roleArrS.length > 0 ?
  395. <Select
  396. mode="multiple"
  397. optionFilterProp={'title'}
  398. tokenSeparators={[',']}
  399. placeholder="选择用户角色"
  400. value={this.state.role}
  401. style={{ width: '200px', minHeight: '59px' }}
  402. onChange={(e) => {
  403. this.setState({
  404. role: e
  405. })
  406. }}>
  407. {
  408. roleArrS.map(function (item, _) {
  409. return <Select.Option title={item.roleName} value={item.id}>{item.roleName}</Select.Option>
  410. })
  411. }
  412. </Select> : null
  413. }
  414. <span className="mandatory">*</span>
  415. </FormItem>
  416. <FormItem className="half-item"
  417. {...formItemLayout}
  418. label=""
  419. >
  420. <span style={{ display: rolst.length > 1 ? 'block' : 'none', color: 'red' }}>存在多个角色</span>
  421. </FormItem>
  422. <FormItem className="half-item"
  423. {...formItemLayout}
  424. label="员工" >
  425. <Select
  426. placeholder="请选择"
  427. value={this.state.seniorStaff}
  428. style={{ width: '200px' }}
  429. onChange={(e) => { this.setState({ seniorStaff: e }) }}
  430. >
  431. <Select.Option value={0} >新员工</Select.Option>
  432. <Select.Option value={1} >老员工</Select.Option>
  433. </Select>
  434. <span className="mandatory">*</span>
  435. </FormItem>
  436. {this.props.userDetaile ? <FormItem className="half-item"
  437. {...formItemLayout}
  438. label="用户状态" >
  439. <Select
  440. placeholder="用户状态"
  441. value={this.state.status}
  442. style={{ width: '200px' }}
  443. onChange={(e) => { this.setState({ status: e }) }}
  444. >
  445. <Select.Option value={0} >正常</Select.Option>
  446. <Select.Option value={1} >锁定</Select.Option>
  447. </Select>
  448. <span className="mandatory">*</span>
  449. </FormItem> : ''}
  450. <FormItem className="half-item"
  451. {...formItemLayout}
  452. label="用户姓名" >
  453. <Input placeholder="请输入用户姓名" style={{ width: '200px' }} value={this.state.name}
  454. onChange={(e) => { this.setState({ name: e.target.value }) }} required="required" />
  455. <span className="mandatory">*</span>
  456. </FormItem>
  457. <FormItem className="half-item"
  458. {...formItemLayout}
  459. label="联系方式" >
  460. <Input placeholder="请输入手机号" style={{ width: '200px' }} value={this.state.contactMobile}
  461. onChange={(e) => { this.setState({ contactMobile: e.target.value }) }} />
  462. </FormItem>
  463. {/*<FormItem className="half-item"
  464. {...formItemLayout}
  465. label="入职时间" >
  466. <DatePicker
  467. style={{marginTop:'0',width:'200px',height:'27px'}}
  468. showTime
  469. format="YYYY-MM-DD"
  470. placeholder="选择入职时间"
  471. value={this.state.entryTime}
  472. onChange={(e,time)=>{this.selTime(e,time)}}
  473. />
  474. </FormItem>*/}
  475. {window.adminData.isSuperAdmin ? <FormItem className="half-item"
  476. {...formItemLayout}
  477. label="组织部门" >
  478. <Select placeholder="选择组织部门"
  479. style={{ width: 200 }}
  480. value={this.state.departmentId}
  481. onChange={(e) => { this.setState({ departmentId: e }) }}>
  482. {
  483. departmentArr.map(function (item) {
  484. return <Select.Option key={item.id} >{item.name}</Select.Option>
  485. })
  486. }
  487. </Select>
  488. <span className="mandatory">*</span>
  489. </FormItem> : ''}
  490. <FormItem className="half-item"
  491. {...formItemLayout}
  492. label="职务"
  493. >
  494. <Select placeholder="选择职务" style={{ width: '200px' }} value={this.state.duty} onChange={(e) => { this.setState({ duty: e }) }}>
  495. {
  496. post.map(function (item) {
  497. return <Select.Option key={item.value} >{item.key}</Select.Option>
  498. })
  499. }
  500. </Select>
  501. </FormItem>
  502. <FormItem className="half-item"
  503. {...formItemLayout}
  504. label="岗位"
  505. >
  506. <Select placeholder="选择岗位" style={{ width: '200px' }} value={this.state.position} onChange={(e) => { this.setState({ position: e }) }}>
  507. {
  508. station.map(function (item) {
  509. return <Select.Option key={item.value} >{item.key}</Select.Option>
  510. })
  511. }
  512. </Select>
  513. </FormItem>
  514. <FormItem className="half-item"
  515. {...formItemLayout}
  516. label="电子邮箱" >
  517. <Input placeholder="请输入邮箱" style={{ width: '200px' }} value={this.state.email}
  518. onChange={(e) => { this.setState({ email: e.target.value }) }} />
  519. </FormItem>
  520. <FormItem className="half-item"
  521. {...formItemLayout}
  522. label="上级主管"
  523. >
  524. <AutoComplete
  525. className="certain-category-search"
  526. dropdownClassName="certain-category-search-dropdown"
  527. dropdownMatchSelectWidth={false}
  528. size="large"
  529. style={{ width: '200px' }}
  530. dataSource={options}
  531. placeholder="输入名称"
  532. value={this.state.superior}
  533. onChange={this.httpChange}
  534. filterOption={true}
  535. onSelect={this.selectAuto}
  536. >
  537. <Input />
  538. </AutoComplete>
  539. <span className="mandatory">*</span>
  540. </FormItem>
  541. <FormItem className="half-item"
  542. {...formItemLayout}
  543. label="报销是否需上级主管审核"
  544. >
  545. <Select
  546. placeholder="请选择"
  547. value={this.state.expenseSuperExamine}
  548. style={{ width: '200px' }}
  549. onChange={(e) => { this.setState({ expenseSuperExamine: e }) }}
  550. >
  551. <Select.Option value={0} >否</Select.Option>
  552. <Select.Option value={1} >是</Select.Option>
  553. </Select>
  554. </FormItem>
  555. {this.props.userDetaile ?
  556. <FormItem className="half-item"
  557. {...formItemLayout}
  558. label="用户编号" >
  559. <span>{this.state.userNo}</span>
  560. </FormItem>
  561. : ''}
  562. <FormItem className="half-item"
  563. {...formItemLayout}
  564. label="公出审核"
  565. >
  566. <StaffSearch
  567. valueName={this.state.reviewerName}
  568. placeholder="输入名称"
  569. onBlurText={e => {
  570. this.setState({
  571. reviewerName: e.title
  572. })
  573. }}
  574. onBlurChange={(obj) => {
  575. this.setState({
  576. reviewer: obj.value,
  577. })
  578. }}
  579. />
  580. <span className="mandatory">*</span>
  581. </FormItem>
  582. <FormItem className="half-item"
  583. {...formItemLayout}
  584. label="经理审核"
  585. >
  586. <StaffSearch
  587. valueName={this.state.managerName}
  588. placeholder="输入名称"
  589. onBlurText={e => {
  590. this.setState({
  591. managerName: e.title
  592. })
  593. }}
  594. onBlurChange={(obj) => {
  595. this.setState({
  596. managerId: obj.value,
  597. })
  598. }}
  599. />
  600. </FormItem>
  601. <FormItem className="half-item"
  602. {...formItemLayout}
  603. label="公出抄送"
  604. >
  605. <StaffSearch
  606. valueName={this.state.publicCarbonCopyName}
  607. placeholder="输入名称"
  608. onBlurText={e => {
  609. this.setState({
  610. publicCarbonCopyName: e.title
  611. })
  612. }}
  613. onBlurChange={(obj) => {
  614. this.setState({
  615. publicCarbonCopy: obj.value,
  616. })
  617. }}
  618. />
  619. </FormItem>
  620. <FormItem className="half-item"
  621. {...formItemLayout}
  622. label="业务员"
  623. >
  624. <Select
  625. placeholder="请选择"
  626. value={this.state.publicPurview}
  627. style={{ width: '200px' }}
  628. onChange={(e) => { this.setState({ publicPurview: e }) }}
  629. >
  630. <Select.Option value={0} >否</Select.Option>
  631. <Select.Option value={1} >是</Select.Option>
  632. </Select>
  633. </FormItem>
  634. <div className='clearfix'>
  635. <FormItem className="half-item"
  636. {...formItemLayout}
  637. label="地区" >
  638. <Select
  639. multiple
  640. style={{ width: '580px' }}
  641. placeholder="选择地区"
  642. filterOption={(input, option) => { return option.props.children.indexOf(input) >= 0 }}
  643. value={this.state.district}
  644. onChange={(pids) => {
  645. this.state.district = pids;
  646. this.setState({
  647. district: this.state.district
  648. })
  649. }}
  650. >
  651. {this.state.cityOption}
  652. </Select>
  653. </FormItem>
  654. </div>
  655. <div className="clearfix">
  656. <FormItem
  657. className="half-item"
  658. {...formItemLayout}
  659. label="用户头像"
  660. >
  661. <PicturesWall
  662. domId={'newUser1'}
  663. pictureSign="customer_sys_file"
  664. fileList={this.getOrgCodeUrl}
  665. pictureUrl={this.state.orgCodeUrl} />
  666. <p>图片建议:要清晰。</p>
  667. </FormItem>
  668. <FormItem
  669. className="half-item"
  670. {...formItemLayout}
  671. label="分巴"
  672. >
  673. <TreeSelect
  674. style={{ width: 200 }}
  675. value={this.state.ambId}
  676. dropdownStyle={{ maxHeight: 300, overflow: 'auto' }}
  677. treeData={this.props.level1Data}
  678. placeholder="请选择"
  679. showSearch
  680. treeNodeFilterProp="title"
  681. onChange={(e) => {
  682. this.setState({
  683. ambId: e,
  684. });
  685. }}
  686. />
  687. </FormItem>
  688. </div>
  689. </div>
  690. <FormItem wrapperCol={{ span: 12, offset: 4 }}>
  691. <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
  692. <Button className="set-submit" type="ghost" onClick={this.handleCancel}>取消</Button>
  693. </FormItem>
  694. </Spin>
  695. </Form >
  696. </Modal>
  697. </div>
  698. )
  699. }
  700. }));
  701. export default Newuser;