Commit 98706900 by chenshu

feat:数据接入

parent 05a7f677
......@@ -5,11 +5,12 @@
*/
import React from 'react';
import { Modal, Input, Table } from 'antd';
import { Modal, Input, Table, message } from 'antd';
import Service from '@/common/js/service';
import User from '@/common/js/user'
import SetEmployeeModal from "./SetEmployeeModal";
import './ChooseMembersModal.less';
import _ from 'underscore';
const { Search } = Input;
......@@ -271,7 +272,13 @@ class ChooseMembersModal extends React.Component {
className="choose-member-modal"
visible={isOpen}
onCancel={this.handleClose}
onOk={type === 'USER' ? this.addUser : this.addCustomer}
onOk={() => {
if (_.isEmpty(selectUserList)) {
message.warning('请选择员工')
return null;
}
type === 'USER' ? this.addUser() : this.addCustomer();
}}
title={title}
width={680}
maskClosable={false}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment