Commit 1166bcec by chenshu

feat:初始化

parent 1d3a1e65
...@@ -95,12 +95,7 @@ export default class CollegeManagePage extends React.Component { ...@@ -95,12 +95,7 @@ export default class CollegeManagePage extends React.Component {
handleLogout() { handleLogout() {
BaseService.logout({}).then((res) => { BaseService.logout({}).then((res) => {
User.removeUserId(); window.RCHistory.push('/login');
User.removeToken();
User.removeEnterpriseId();
User.clearUserInfo();
const htmlUrl = `${LIVE_SHARE}store/index?id=${User.getCustomerStoreId()||User.getStoreId()}&userId=${User.getUserId()}&from=work_weixin`;
window.location.href = htmlUrl;
}); });
} }
......
...@@ -184,12 +184,7 @@ function Header(props) { ...@@ -184,12 +184,7 @@ function Header(props) {
function handleLogout() { function handleLogout() {
BaseService.logout({}).then((res) => { BaseService.logout({}).then((res) => {
User.removeUserId(); window.RCHistory.push('/login');
User.removeToken();
User.removeEnterpriseId();
User.clearUserInfo();
const url = `${LIVE_SHARE}store/index?id=${User.getCustomerStoreId()||User.getStoreId()}&userId=${User.getUserId()}&from=work_weixin`;
window.location.href = url;
}); });
} }
......
...@@ -12,11 +12,12 @@ ...@@ -12,11 +12,12 @@
margin-top: 5px !important; margin-top: 5px !important;
} }
.radio-tip { .radio-tip {
padding-left: 24px;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #999; color: #999;
line-height: 20px; line-height: 20px;
white-space: nowrap;
margin-bottom: 12px;
} }
.avatar-box { .avatar-box {
text-align: center; text-align: center;
......
...@@ -83,8 +83,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -83,8 +83,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
}, [props.choosedItem.nickName]); }, [props.choosedItem.nickName]);
const layout = { const layout = {
labelCol: { span: 5 }, labelCol: { span: 6 },
wrapperCol: { span: 12 }, wrapperCol: { span: 18 },
}; };
function handleChangeRole(value: string) { function handleChangeRole(value: string) {
...@@ -211,7 +211,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -211,7 +211,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
closeIcon={<span className="icon iconfont modal-close-icon">&#xe6ef;</span>} closeIcon={<span className="icon iconfont modal-close-icon">&#xe6ef;</span>}
> >
<Row> <Row>
<Col span={16}> <Col span={18}>
<Form <Form
{...layout} {...layout}
form={form} form={form}
...@@ -223,9 +223,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -223,9 +223,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
name="nickName" name="nickName"
rules={[{ required: true }]} rules={[{ required: true }]}
validateStatus={nameStatus} validateStatus={nameStatus}
help={nameErrorMsg} help={nameErrorMsg || undefined}
style={{marginBottom:'-2px !important'}} style={{ marginBottom: 0 }}
className="mt-4"
> >
<Input <Input
style={{ width: 200 }} style={{ width: 200 }}
...@@ -239,8 +238,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -239,8 +238,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
<Form.Item <Form.Item
label="企业微信账号" label="企业微信账号"
name="weChatAccount" name="weChatAccount"
style={{marginBottom:'-2px !important'}}
className="mt-10"
> >
<Tooltip title={props.choosedItem.weChatAccount}> <Tooltip title={props.choosedItem.weChatAccount}>
<div style={{ <div style={{
...@@ -257,8 +254,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -257,8 +254,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
rules={[{ required: true }]} rules={[{ required: true }]}
validateStatus={phoneStatus} validateStatus={phoneStatus}
help={phoneErrorMessage} help={phoneErrorMessage}
style={{marginBottom:'-2px !important'}}
className="mt-10"
> >
<Input <Input
style={{ width: 200 }} style={{ width: 200 }}
...@@ -290,12 +285,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -290,12 +285,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
}} }}
className="mt5" className="mt5"
> >
<Radio value={"CloudOperator"} className="mt-4">
<span style={{ color: "#333" }}>运营师</span>
<p className="radio-tip">
仅可查看/转发培训计划内容,并查看其负责的用户学习进度
</p>
</Radio>
<Radio value={"CloudLecturer"} className="mt-4"> <Radio value={"CloudLecturer"} className="mt-4">
<span style={{ color: "#333" }}>普通讲师</span> <span style={{ color: "#333" }}>普通讲师</span>
<p className="radio-tip"> <p className="radio-tip">
...@@ -306,12 +295,18 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -306,12 +295,18 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
<span style={{ color: "#333" }}>管理员</span> <span style={{ color: "#333" }}>管理员</span>
<p className="radio-tip">可执行学院中所有的操作</p> <p className="radio-tip">可执行学院中所有的操作</p>
</Radio> </Radio>
<Radio value={"CloudOperator"} className="mt-4">
<span style={{ color: "#333" }}>运营师</span>
<p className="radio-tip">
仅可查看/转发培训计划内容,并查看其负责的用户学习进度
</p>
</Radio>
</RadioGroup> </RadioGroup>
</Form.Item> </Form.Item>
</Form> </Form>
</Col> </Col>
<Col span={8}> <Col span={6}>
<div className="avatar-box"> <div className="avatar-box">
<div className="avatar-text">头像</div> <div className="avatar-text">头像</div>
<div className="avatart-img"> <div className="avatart-img">
...@@ -319,7 +314,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -319,7 +314,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
</div> </div>
<div className="upload-avatar"> <div className="upload-avatar">
<Button id="click_upload_btn" onClick={_onUpload}> <Button id="click_upload_btn" onClick={_onUpload}>
点击上传 上传头像
</Button> </Button>
<input <input
type="file" type="file"
......
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