Commit a1745984 by chenshu

feat:修改文案

parent a435d39a
...@@ -17,9 +17,9 @@ class ManagingMembersModal extends React.Component { ...@@ -17,9 +17,9 @@ class ManagingMembersModal extends React.Component {
this.state = { this.state = {
dataSource : [], // 数据源 dataSource : [], // 数据源
addManagingMember: false, // 是否点击了添加成员 addManagingMember: false, // 是否点击了添加成员
storeId :User.getStoreId() , // 店铺Id storeId :User.getStoreId() , // 学院Id
iconRotateList: [], iconRotateList: [],
userAuthority : ['可编辑', '可查看/下载', '仅可查看', '', '创建者', '店铺管理员'] , // 空 代表删除 userAuthority : ['可编辑', '可查看/下载', '仅可查看', '', '创建者', '学院管理员'] , // 空 代表删除
} }
} }
componentDidMount() { componentDidMount() {
...@@ -42,7 +42,7 @@ class ManagingMembersModal extends React.Component { ...@@ -42,7 +42,7 @@ class ManagingMembersModal extends React.Component {
if(res.result) { if(res.result) {
// 数据排序,文件创建者在最前,并修改文案为所有者 // 数据排序,文件创建者在最前,并修改文案为所有者
let _selectUserList = [], _dataSource = [], flag = [], _iconRotateList = []; let _selectUserList = [], _dataSource = [], flag = [], _iconRotateList = [];
// 列表排序,文件夹创建者和机构店铺管理员默认排在最前 // 列表排序,文件夹创建者和机构学院管理员默认排在最前
res.result.map((item, index) => { res.result.map((item, index) => {
if (item.fileUserEnum === "CREATE" || item.fileUserEnum === 'SUPER_ADMIN') { if (item.fileUserEnum === "CREATE" || item.fileUserEnum === 'SUPER_ADMIN') {
_dataSource.push(item); _dataSource.push(item);
...@@ -240,7 +240,7 @@ class ManagingMembersModal extends React.Component { ...@@ -240,7 +240,7 @@ class ManagingMembersModal extends React.Component {
// 判断不同权限的人所能看到的 // 判断不同权限的人所能看到的
if (record.fileUserEnum === "CREATE") { // 创建者 if (record.fileUserEnum === "CREATE") { // 创建者
num = 4; num = 4;
} else if (record.fileUserEnum === 'SUPER_ADMIN') { // 店铺管理员 } else if (record.fileUserEnum === 'SUPER_ADMIN') { // 学院管理员
num = 5; num = 5;
} else { } else {
if (record.rights === "LOOK_DOWNLOAD") { if (record.rights === "LOOK_DOWNLOAD") {
......
...@@ -26,8 +26,8 @@ window.WEBTRACING = (eventKey, eventName, content) => { ...@@ -26,8 +26,8 @@ window.WEBTRACING = (eventKey, eventName, content) => {
logger.push("storeUserId", storeUserId); logger.push("storeUserId", storeUserId);
logger.push('env', process.env.DEPLOY_ENV || 'local'); // 哪个环境的埋点 logger.push('env', process.env.DEPLOY_ENV || 'local'); // 哪个环境的埋点
const _content = Object.assign({}, content, { const _content = Object.assign({}, content, {
店铺名称: storeName, 学院名称: storeName,
店铺类型: storeType, 学院类型: storeType,
storeId, storeId,
storeUserId, storeUserId,
}); });
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
*/ */
export const storeRoleEnum = { export const storeRoleEnum = {
"0": "店铺管理员", "0": "学院管理员",
"1": "管理员", "1": "管理员",
"2": "普通讲师" "2": "普通讲师"
}; };
......
...@@ -19,7 +19,7 @@ export default class StoreService { ...@@ -19,7 +19,7 @@ export default class StoreService {
static getStoreUserBasicPage(params: any) { static getStoreUserBasicPage(params: any) {
return getStoreUserBasicPage(params); return getStoreUserBasicPage(params);
} }
// 获取店铺角色 // 获取学院角色
static getStoreRole(params: any) { static getStoreRole(params: any) {
return getStoreRole(params); return getStoreRole(params);
} }
...@@ -44,25 +44,25 @@ export default class StoreService { ...@@ -44,25 +44,25 @@ export default class StoreService {
return getUserList(params); return getUserList(params);
} }
// 获取店铺banner列表 // 获取学院banner列表
static getStoreDecorationList(params: any) { static getStoreDecorationList(params: any) {
return getStoreDecorationList(params); return getStoreDecorationList(params);
} }
// 删除店铺banner列表 // 删除学院banner列表
static deleteStoreDecorationList(params: any) { static deleteStoreDecorationList(params: any) {
return deleteStoreDecorationList(params); return deleteStoreDecorationList(params);
} }
// 添加店铺banner列表 // 添加学院banner列表
static addStoreBanner(params: any) { static addStoreBanner(params: any) {
return addStoreBanner(params); return addStoreBanner(params);
} }
// 替换店铺banner列表 // 替换学院banner列表
static editStoreBanner(params: any) { static editStoreBanner(params: any) {
return editStoreBanner(params); return editStoreBanner(params);
} }
// 移动店铺banner列表 // 移动学院banner列表
static moveBannerSequence(params: any) { static moveBannerSequence(params: any) {
return moveBannerSequence(params); return moveBannerSequence(params);
} }
......
import React from 'react';
import { Input, Button } from 'antd';
import './CollegeInfoPage.less';
export default class CollegeInfoPage extends React.Component {
constructor(props) {
super(props);
this.state = {
avatar: 'https://image.xiaomaiketang.com/xm/rJeQaZxtc7.png',
name: '',
};
}
render() {
const {
avatar,
} = this.state;
return (
<div className="college-manage-page">
<div className="college-header">
<div className="box">
<img className="box-image" src="https://image.xiaomaiketang.com/xm/HNHCAF6Fc2.png" />
<div className="user">
<img className="image" src={avatar} />
<span className="name">Xiaomai</span>
<span className="logout">退出</span>
</div>
</div>
</div>
<div className="create-box">
<img className="image" src="https://image.xiaomaiketang.com/xm/HNHCAF6Fc2.png" />
<span className="tip">建议尺寸702*180px,JPG/PNG格式,图片小于2M。</span>
<Input className="input" placeholder="请输入学院名称"></Input>
<Button
className="button"
type="primary"
>确定创建</Button>
</div>
</div>
)
}
}
\ No newline at end of file
import React from 'react';
import { Input, Button } from 'antd';
import './EmployeeManage.less';
export default class EmployeeManage extends React.Component {
constructor(props) {
super(props);
this.state = {
avatar: 'https://image.xiaomaiketang.com/xm/rJeQaZxtc7.png',
name: '',
};
}
render() {
const {
avatar,
} = this.state;
return (
<div className="college-manage-page">
<div className="college-header">
<div className="box">
<img className="box-image" src="https://image.xiaomaiketang.com/xm/HNHCAF6Fc2.png" />
<div className="user">
<img className="image" src={avatar} />
<span className="name">Xiaomai</span>
<span className="logout">退出</span>
</div>
</div>
</div>
<div className="create-box">
<img className="image" src="https://image.xiaomaiketang.com/xm/HNHCAF6Fc2.png" />
<span className="tip">建议尺寸702*180px,JPG/PNG格式,图片小于2M。</span>
<Input className="input" placeholder="请输入学院名称"></Input>
<Button
className="button"
type="primary"
>确定创建</Button>
</div>
</div>
)
}
}
\ No newline at end of file
import React from 'react';
import { Input, Button } from 'antd';
import './UserManagePage.less';
export default class UserManagePage extends React.Component {
constructor(props) {
super(props);
this.state = {
avatar: 'https://image.xiaomaiketang.com/xm/rJeQaZxtc7.png',
name: '',
};
}
render() {
const {
avatar,
} = this.state;
return (
<div className="college-manage-page">
<div className="college-header">
<div className="box">
<img className="box-image" src="https://image.xiaomaiketang.com/xm/HNHCAF6Fc2.png" />
<div className="user">
<img className="image" src={avatar} />
<span className="name">Xiaomai</span>
<span className="logout">退出</span>
</div>
</div>
</div>
<div className="create-box">
<img className="image" src="https://image.xiaomaiketang.com/xm/HNHCAF6Fc2.png" />
<span className="tip">建议尺寸702*180px,JPG/PNG格式,图片小于2M。</span>
<Input className="input" placeholder="请输入学院名称"></Input>
<Button
className="button"
type="primary"
>确定创建</Button>
</div>
</div>
)
}
}
\ No newline at end of file
...@@ -244,7 +244,7 @@ class LiveCourseFilter extends React.Component { ...@@ -244,7 +244,7 @@ class LiveCourseFilter extends React.Component {
} }
{ expandFilter && { expandFilter &&
<div className="search-condition__item"> <div className="search-condition__item">
<span className="shelf-status">店铺展示:</span> <span className="shelf-status">学院展示:</span>
<Select <Select
style={{ width: "calc(100% - 70px)" }} style={{ width: "calc(100% - 70px)" }}
placeholder="请选择" placeholder="请选择"
......
...@@ -261,8 +261,8 @@ class LiveCourseList extends React.Component { ...@@ -261,8 +261,8 @@ class LiveCourseList extends React.Component {
}, },
{ {
title: <span> title: <span>
<span>店铺展示</span> <span>学院展示</span>
<Tooltip title={<div>开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。<br/>关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。</div>}><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf',fontSize:'14px'}}>&#xe61d;</i></Tooltip> <Tooltip title={<div>开启后,用户可在学院内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”学院展示。<br/>关闭后,学院内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。</div>}><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf',fontSize:'14px'}}>&#xe61d;</i></Tooltip>
</span>, </span>,
width: "9%", width: "9%",
key: "shelfState", key: "shelfState",
......
...@@ -56,7 +56,7 @@ class AddGraphicsCourse extends React.Component { ...@@ -56,7 +56,7 @@ class AddGraphicsCourse extends React.Component {
coverId: null, // 图文封面的recourceId coverId: null, // 图文封面的recourceId
coverUrl: defaultCoverUrl, // 图文课封面 coverUrl: defaultCoverUrl, // 图文课封面
studentList: [], // 上课学员列表 studentList: [], // 上课学员列表
shelfState:'YES', //是否开启店铺展示 shelfState:'YES', //是否开启学院展示
diskList: [], // 机构可见磁盘目录 diskList: [], // 机构可见磁盘目录
selectedFileList: [], // 已经从资料云盘中勾选的文件 selectedFileList: [], // 已经从资料云盘中勾选的文件
showCutModal: false, // 是否显示截图弹窗 showCutModal: false, // 是否显示截图弹窗
......
...@@ -158,7 +158,7 @@ class AddGraphicsIntro extends React.Component { ...@@ -158,7 +158,7 @@ class AddGraphicsIntro extends React.Component {
</div> </div>
</div> </div>
<div className="store-show"> <div className="store-show">
<span className="label">店铺展示:</span> <span className="label">学院展示:</span>
<div className="content"> <div className="content">
<Row> <Row>
<Col span={3}> <Col span={3}>
......
...@@ -196,7 +196,7 @@ class GraphicsCourseFilter extends React.Component { ...@@ -196,7 +196,7 @@ class GraphicsCourseFilter extends React.Component {
</div> </div>
{ expandFilter && { expandFilter &&
<div className="search-condition__item"> <div className="search-condition__item">
<span className="shelf-status">店铺展示:</span> <span className="shelf-status">学院展示:</span>
<Select <Select
style={{ width: "calc(100% - 84px)" }} style={{ width: "calc(100% - 84px)" }}
placeholder="请选择" placeholder="请选择"
......
...@@ -136,8 +136,8 @@ class GraphicsCourseList extends React.Component { ...@@ -136,8 +136,8 @@ class GraphicsCourseList extends React.Component {
}, },
{ {
title: <span> title: <span>
<span>店铺展示</span> <span>学院展示</span>
<Tooltip title={<div>开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。<br/>关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。</div>}><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf',fontSize:'14px'}}>&#xe61d;</i></Tooltip> <Tooltip title={<div>开启后,用户可在学院内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”学院展示。<br/>关闭后,学院内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。</div>}><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf',fontSize:'14px'}}>&#xe61d;</i></Tooltip>
</span>, </span>,
width: 120, width: 120,
dataIndex: "courseware", dataIndex: "courseware",
......
...@@ -62,7 +62,7 @@ class AddVideoCourse extends React.Component { ...@@ -62,7 +62,7 @@ class AddVideoCourse extends React.Component {
coverId: null, // 视频封面的recourceId coverId: null, // 视频封面的recourceId
coverUrl: null, // 视频课封面 coverUrl: null, // 视频课封面
studentList: [], // 上课学员列表 studentList: [], // 上课学员列表
shelfState:'YES', //是否开启店铺展示 shelfState:'YES', //是否开启学院展示
scheduleMedia: [{ // 视频课媒体资源 scheduleMedia: [{ // 视频课媒体资源
contentType:"INTRO", contentType:"INTRO",
mediaType: 'TEXT', mediaType: 'TEXT',
......
...@@ -203,7 +203,7 @@ class AddVideoIntro extends React.Component { ...@@ -203,7 +203,7 @@ class AddVideoIntro extends React.Component {
</div> </div>
</div> </div>
<div className="store-show"> <div className="store-show">
<span className="label">店铺展示:</span> <span className="label">学院展示:</span>
<div className="content"> <div className="content">
<Row> <Row>
<Col span={3}> <Col span={3}>
...@@ -211,8 +211,8 @@ class AddVideoIntro extends React.Component { ...@@ -211,8 +211,8 @@ class AddVideoIntro extends React.Component {
</Col> </Col>
<Col span={21}> <Col span={21}>
<div className="desc"> <div className="desc">
<div>开启:此视频将在用户店铺的视频列表中出现</div> <div>开启:此视频将在用户学院的视频列表中出现</div>
<div>关闭:此视频将在用户店铺的视频列表中隐藏</div> <div>关闭:此视频将在用户学院的视频列表中隐藏</div>
</div> </div>
</Col> </Col>
</Row> </Row>
......
...@@ -205,7 +205,7 @@ class VideoCourseFilter extends React.Component { ...@@ -205,7 +205,7 @@ class VideoCourseFilter extends React.Component {
</div> </div>
{ expandFilter && { expandFilter &&
<div className="search-condition__item"> <div className="search-condition__item">
<span className="shelf-status">店铺展示:</span> <span className="shelf-status">学院展示:</span>
<Select <Select
style={{ width: "calc(100% - 84px)" }} style={{ width: "calc(100% - 84px)" }}
placeholder="请选择" placeholder="请选择"
......
...@@ -125,8 +125,8 @@ class VideoCourseList extends React.Component { ...@@ -125,8 +125,8 @@ class VideoCourseList extends React.Component {
}, },
{ {
title: <span> title: <span>
<span>店铺展示</span> <span>学院展示</span>
<Tooltip title={<div>开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。<br/>关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。</div>}><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf',fontSize:'14px'}}>&#xe61d;</i></Tooltip> <Tooltip title={<div>开启后,用户可在学院内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”学院展示。<br/>关闭后,学院内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。</div>}><i className="icon iconfont" style={{ marginLeft: '5px',cursor:'pointer',color:'#bfbfbf',fontSize:'14px'}}>&#xe61d;</i></Tooltip>
</span>, </span>,
width: 120, width: 120,
dataIndex: "courseware", dataIndex: "courseware",
......
...@@ -278,7 +278,7 @@ class BasicInfo extends React.Component{ ...@@ -278,7 +278,7 @@ class BasicInfo extends React.Component{
<span className="require">*</span> <span className="require">*</span>
可见范围 可见范围
<Tooltip <Tooltip
title="店铺管理员、管理员默认都可见"> title="学院管理员、管理员默认都可见">
<span className="iconfont">&#xe61d;</span> <span className="iconfont">&#xe61d;</span>
</Tooltip></span> </Tooltip></span>
<div className="content"> <div className="content">
......
...@@ -10,7 +10,7 @@ import './EmployeeShareData.less'; ...@@ -10,7 +10,7 @@ import './EmployeeShareData.less';
const { Search } = Input; const { Search } = Input;
const UserRole = { const UserRole = {
Store_Manager: { Store_Manager: {
text: "店铺管理员" text: "学院管理员"
}, },
Cloud_Manager: { Cloud_Manager: {
text:"管理员" text:"管理员"
......
...@@ -8,7 +8,7 @@ import _ from "underscore"; ...@@ -8,7 +8,7 @@ import _ from "underscore";
const { Search } = Input; const { Search } = Input;
const UserRole = { const UserRole = {
StoreManager: { StoreManager: {
text: "店铺管理员" text: "学院管理员"
}, },
CloudManager: { CloudManager: {
text:"管理员" text:"管理员"
......
...@@ -274,7 +274,7 @@ class SelectOperatorModal extends React.Component { ...@@ -274,7 +274,7 @@ class SelectOperatorModal extends React.Component {
} }
}, },
{ {
title: '店铺展示', title: '学院展示',
key: 'shelfState', key: 'shelfState',
dataIndex: 'shelfState', dataIndex: 'shelfState',
width:'20%', width:'20%',
...@@ -326,7 +326,7 @@ class SelectOperatorModal extends React.Component { ...@@ -326,7 +326,7 @@ class SelectOperatorModal extends React.Component {
} }
}, },
{ {
title: '店铺展示', title: '学院展示',
key: 'shelfState', key: 'shelfState',
dataIndex: 'shelfState', dataIndex: 'shelfState',
width:'20%', width:'20%',
...@@ -378,7 +378,7 @@ class SelectOperatorModal extends React.Component { ...@@ -378,7 +378,7 @@ class SelectOperatorModal extends React.Component {
} }
}, },
{ {
title: '店铺展示', title: '学院展示',
key: 'shelfState', key: 'shelfState',
dataIndex: 'shelfState', dataIndex: 'shelfState',
width:'20%', width:'20%',
......
...@@ -31,7 +31,10 @@ export default class CreateCollege extends React.Component { ...@@ -31,7 +31,10 @@ export default class CreateCollege extends React.Component {
<img className="image" src="https://image.xiaomaiketang.com/xm/HNHCAF6Fc2.png" /> <img className="image" src="https://image.xiaomaiketang.com/xm/HNHCAF6Fc2.png" />
<span className="tip">建议尺寸702*180px,JPG/PNG格式,图片小于2M。</span> <span className="tip">建议尺寸702*180px,JPG/PNG格式,图片小于2M。</span>
<Input className="input" placeholder="请输入学院名称"></Input> <Input className="input" placeholder="请输入学院名称"></Input>
<Button className="button" type="primary">确定创建</Button> <Button
className="button"
type="primary"
>确定创建</Button>
</div> </div>
</div> </div>
) )
......
.college-manage-page { .college-manage-page {
.create-box { .create-box {
padding: 108px; padding-top: 108px;
margin: 0 auto;
width: 350px;
.image {
display: block;
border: 1px dashed #E9E9E9;
width: 312px;
height: 73px;
margin: 0 auto 16px;
}
.tip {
display: block;
color: #999999;
text-align: center;
margin-bottom: 24px;
}
.input {
width: 350px;
margin-bottom: 52px;
}
.button {
width: 350px;
height: 32px !important;
}
} }
} }
\ No newline at end of file
...@@ -146,7 +146,7 @@ function Header(props) { ...@@ -146,7 +146,7 @@ function Header(props) {
// 复制分享链接 // 复制分享链接
function handleCopy() { function handleCopy() {
window.copyText(htmlUrl); window.copyText(htmlUrl);
message.success('已复制店铺地址,快去分享吧~'); message.success('已复制学院地址,快去分享吧~');
} }
return ( return (
...@@ -177,11 +177,11 @@ function Header(props) { ...@@ -177,11 +177,11 @@ function Header(props) {
<div className="link-to-store"> <div className="link-to-store">
<div className="link"> <div className="link">
<span className="icon iconfont tool-tip-right">&#xe85d;</span> <span className="icon iconfont tool-tip-right">&#xe85d;</span>
<div className="text">前往店铺</div> <div className="text">前往学院</div>
<div className="store-popover"> <div className="store-popover">
<div className="pc-url"> <div className="pc-url">
<div className="name">网页端店铺</div> <div className="name">网页端学院</div>
<div <div
className="url-link" className="url-link"
onClick={() => { onClick={() => {
...@@ -192,15 +192,15 @@ function Header(props) { ...@@ -192,15 +192,15 @@ function Header(props) {
</div> </div>
</div> </div>
<div className="h5-url"> <div className="h5-url">
<div className="name">手机端店铺</div> <div className="name">手机端学院</div>
<div id="h5-qrcode"></div> <div id="h5-qrcode"></div>
<div className="tip">微信扫码,打开店铺</div> <div className="tip">微信扫码,打开学院</div>
</div> </div>
</div> </div>
</div> </div>
<div className="share" onClick={handleCopy}> <div className="share" onClick={handleCopy}>
<span className="icon iconfont tool-tip-right">&#xe85e;</span> <span className="icon iconfont tool-tip-right">&#xe85e;</span>
<div className="text">分享店铺</div> <div className="text">分享学院</div>
</div> </div>
</div> </div>
......
...@@ -20,7 +20,7 @@ function SwitchRoute(props: SwitchProps) { ...@@ -20,7 +20,7 @@ function SwitchRoute(props: SwitchProps) {
/** /**
* 角色登录后跳转 * 角色登录后跳转
* 管理员和店铺管理员登录后跳转到直播课列表页面 * 管理员和学院管理员登录后跳转到直播课列表页面
* 讲师登录后跳转资料云盘页面 * 讲师登录后跳转资料云盘页面
*/ */
switch (userRole) { switch (userRole) {
......
...@@ -98,7 +98,7 @@ export default function WechatLogin(props: any) { ...@@ -98,7 +98,7 @@ export default function WechatLogin(props: any) {
} }
{ {
status === 2 && <div className="error"> status === 2 && <div className="error">
<div>所在企业还未注册店铺 <div>所在企业还未注册学院
<p className="ope" onClick={() => { <p className="ope" onClick={() => {
setStatus(0) setStatus(0)
...@@ -108,7 +108,7 @@ export default function WechatLogin(props: any) { ...@@ -108,7 +108,7 @@ export default function WechatLogin(props: any) {
} }
{ {
status === 3 && <div className="error"> status === 3 && <div className="error">
<div>你还不是店铺员工,请联系企业管理员 <div>你还不是学院员工,请联系企业管理员
<p className="ope" onClick={() => { <p className="ope" onClick={() => {
setStatus(0) setStatus(0)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-07-09 14:03:09 * @Date: 2020-07-09 14:03:09
* @Last Modified by: mikey.zhaopeng * @Last Modified by: mikey.zhaopeng
* @Last Modified time: 2020-11-28 13:53:12 * @Last Modified time: 2020-11-28 13:53:12
* 店铺管理-员工管理 * 学院管理-员工管理
*/ */
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { withRouter } from "react-router-dom"; import { withRouter } from "react-router-dom";
......
...@@ -297,7 +297,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -297,7 +297,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
</Radio> </Radio>
<Radio value={"CloudManager"}> <Radio value={"CloudManager"}>
<span style={{ color: "#333" }}>管理员</span> <span style={{ color: "#333" }}>管理员</span>
<p className="radio-tip">可执行店铺中所有的操作</p> <p className="radio-tip">可执行学院中所有的操作</p>
</Radio> </Radio>
</RadioGroup> </RadioGroup>
</Form.Item> </Form.Item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-07-09 14:03:09 * @Date: 2020-07-09 14:03:09
* @Last Modified by: mikey.zhaopeng * @Last Modified by: mikey.zhaopeng
* @Last Modified time: 2020-11-28 13:53:12 * @Last Modified time: 2020-11-28 13:53:12
* 店铺管理-员工管理 * 学院管理-员工管理
*/ */
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { withRouter } from "react-router-dom"; import { withRouter } from "react-router-dom";
...@@ -83,7 +83,7 @@ function EmployeesManagePage() { ...@@ -83,7 +83,7 @@ function EmployeesManagePage() {
const roleMap = { const roleMap = {
CloudManager: "管理员", CloudManager: "管理员",
CloudLecturer: "讲师", CloudLecturer: "讲师",
StoreManager: "店铺管理员", StoreManager: "学院管理员",
}; };
const storeId = User.getStoreId(); const storeId = User.getStoreId();
const StoreType = User.getStoreType(); const StoreType = User.getStoreType();
...@@ -166,7 +166,7 @@ function EmployeesManagePage() { ...@@ -166,7 +166,7 @@ function EmployeesManagePage() {
title: "操作", title: "操作",
dataIndex: "operation", dataIndex: "operation",
render: (val: string, record: RecordTypes) => { render: (val: string, record: RecordTypes) => {
return record.role === "店铺管理员" || return record.role === "学院管理员" ||
record.userId === User.getUserId() ? ( record.userId === User.getUserId() ? (
<div className="no-operate">-</div> <div className="no-operate">-</div>
) : ( ) : (
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2021-02-01 14:12:38 * @LastEditTime: 2021-02-01 14:12:38
* @Description: 店铺装修页面 * @Description: 学院装修页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -31,7 +31,7 @@ function StoreDecorationPage(props: StoreDecoprationProps) { ...@@ -31,7 +31,7 @@ function StoreDecorationPage(props: StoreDecoprationProps) {
return ( return (
<div className="page store-decoration-page"> <div className="page store-decoration-page">
<div className="content-header">店铺装修</div> <div className="content-header">学院装修</div>
<div className="box"> <div className="box">
<Tabs <Tabs
onChange={(key) => { onChange={(key) => {
...@@ -40,9 +40,9 @@ function StoreDecorationPage(props: StoreDecoprationProps) { ...@@ -40,9 +40,9 @@ function StoreDecorationPage(props: StoreDecoprationProps) {
}} }}
activeKey={currentTab} activeKey={currentTab}
> >
<TabPane key="h5" tab="H5店铺"></TabPane> <TabPane key="h5" tab="H5学院"></TabPane>
<TabPane key="web" tab="网页端店铺"></TabPane> <TabPane key="web" tab="网页端学院"></TabPane>
</Tabs> </Tabs>
{ {
currentTab === 'h5' && <StoreH5DecorationTab/> currentTab === 'h5' && <StoreH5DecorationTab/>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2021-02-01 14:02:11 * @LastEditTime: 2021-02-01 14:02:11
* @Description: web店铺banner页面 * @Description: web学院banner页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
......
...@@ -185,19 +185,19 @@ class StoreInfo extends React.Component { ...@@ -185,19 +185,19 @@ class StoreInfo extends React.Component {
updateInfo=()=>{ updateInfo=()=>{
const {storeName,storeFullName,logo,subjectType,corpIndustry,corpSubIndustry} = this.state; const {storeName,storeFullName,logo,subjectType,corpIndustry,corpSubIndustry} = this.state;
if(!storeName){ if(!storeName){
message.warning('请输入店铺简称'); message.warning('请输入学院简称');
return; return;
} }
if(!storeFullName){ if(!storeFullName){
message.warning('请输入店铺名称'); message.warning('请输入学院名称');
return; return;
} }
if(!subjectType){ if(!subjectType){
message.warning('请选择店铺类型'); message.warning('请选择学院类型');
return; return;
} }
if(!corpIndustry){ if(!corpIndustry){
message.warning('请选择店铺所属行业'); message.warning('请选择学院所属行业');
return; return;
} }
const params= { const params= {
...@@ -219,29 +219,29 @@ class StoreInfo extends React.Component { ...@@ -219,29 +219,29 @@ class StoreInfo extends React.Component {
const {storeName,storeFullName,subjectType,corpIndustry,corpSubIndustry,showSelectFileModal,visible,hasImgReady,logo,cutImageBlob } = this.state; const {storeName,storeFullName,subjectType,corpIndustry,corpSubIndustry,showSelectFileModal,visible,hasImgReady,logo,cutImageBlob } = this.state;
return ( return (
<div className="page store-info-page"> <div className="page store-info-page">
<div className="content-header">店铺基本信息</div> <div className="content-header">学院基本信息</div>
<div className="box"> <div className="box">
<div className="store-info-header">店铺基本信息</div> <div className="store-info-header">学院基本信息</div>
<div className="store-info-page-form"> <div className="store-info-page-form">
<Form ref={this.formRef}> <Form ref={this.formRef}>
<Form.Item <Form.Item
label="店铺简称" label="学院简称"
name="storeName" name="storeName"
rules={[{ required: true}]} rules={[{ required: true}]}
> >
<Input value={storeName} style={{ width: '300px' }} placeholder="请输入店铺简称" onChange={(e)=>this.onChangeFiledValue("storeName",e.target.value)} maxLength={20}/> <Input value={storeName} style={{ width: '300px' }} placeholder="请输入学院简称" onChange={(e)=>this.onChangeFiledValue("storeName",e.target.value)} maxLength={20}/>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label="店铺名称" label="学院名称"
name="storeFullName" name="storeFullName"
rules={[{ required: true}]} rules={[{ required: true}]}
> >
<Input value={storeFullName} style={{ width: '300px' }} placeholder="请输入店铺名称" onChange={(e)=>this.onChangeFiledValue("storeFullName",e.target.value)} maxLength={30}/> <Input value={storeFullName} style={{ width: '300px' }} placeholder="请输入学院名称" onChange={(e)=>this.onChangeFiledValue("storeFullName",e.target.value)} maxLength={30}/>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label="店铺logo" label="学院logo"
> >
<div className="logo-con"> <div className="logo-con">
<div className="logo-img-con"> <div className="logo-img-con">
...@@ -256,7 +256,7 @@ class StoreInfo extends React.Component { ...@@ -256,7 +256,7 @@ class StoreInfo extends React.Component {
</div> </div>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label="店铺类型" label="学院类型"
name="subjectType" name="subjectType"
rules={[{ required: true }]} rules={[{ required: true }]}
> >
...@@ -264,7 +264,7 @@ class StoreInfo extends React.Component { ...@@ -264,7 +264,7 @@ class StoreInfo extends React.Component {
placeholder="Select a option and change input text above" placeholder="Select a option and change input text above"
allowClear allowClear
style={{ width: '300px' }} style={{ width: '300px' }}
placeholder="请选择店铺类型" placeholder="请选择学院类型"
value={subjectType} value={subjectType}
onChange={(value)=>this.onChangeFiledValue("subjectType",value)} onChange={(value)=>this.onChangeFiledValue("subjectType",value)}
> >
...@@ -275,12 +275,12 @@ class StoreInfo extends React.Component { ...@@ -275,12 +275,12 @@ class StoreInfo extends React.Component {
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label="店铺所属行业" label="学院所属行业"
rules={[{ required: true }]} rules={[{ required: true }]}
name="corpIndustry" name="corpIndustry"
> >
<Select <Select
placeholder="请选择店铺所属行业" placeholder="请选择学院所属行业"
style={{ width: '300px' }} style={{ width: '300px' }}
allowClear allowClear
value={corpIndustry} value={corpIndustry}
...@@ -294,11 +294,11 @@ class StoreInfo extends React.Component { ...@@ -294,11 +294,11 @@ class StoreInfo extends React.Component {
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label="店铺所属子行业" label="学院所属子行业"
name="corpSubIndustry" name="corpSubIndustry"
> >
<Select <Select
placeholder="请选择店铺所属子行业" placeholder="请选择学院所属子行业"
allowClear allowClear
style={{ width: '300px' }} style={{ width: '300px' }}
value={corpSubIndustry} value={corpSubIndustry}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-03-18 11:29:43 * @LastEditTime: 2021-03-18 11:29:43
* @Description: web店铺banner页面 * @Description: web学院banner页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
......
...@@ -53,7 +53,7 @@ const mainRoutes = [ ...@@ -53,7 +53,7 @@ const mainRoutes = [
{ {
path: '/store-decoration', path: '/store-decoration',
component: StoreDecorationPage, component: StoreDecorationPage,
name: '店铺装修' name: '学院装修'
}, },
{ {
path: '/course-catalog', path: '/course-catalog',
...@@ -96,6 +96,21 @@ const mainRoutes = [ ...@@ -96,6 +96,21 @@ const mainRoutes = [
name: '资料云盘' name: '资料云盘'
}, },
{ {
path: '/college-info',
component:ResourceDisk,
name: '学院信息'
},
{
path: '/employee-manage',
component:ResourceDisk,
name: '员工管理'
},
{
path: '/user-manage',
component:ResourceDisk,
name: '用户管理'
},
{
path: '/question-bank-index', path: '/question-bank-index',
component:QuestionBankIndex, component:QuestionBankIndex,
name: '题库' name: '题库'
...@@ -128,7 +143,7 @@ const mainRoutes = [ ...@@ -128,7 +143,7 @@ const mainRoutes = [
{ {
path: '/store-info', path: '/store-info',
component:StoreInfoPage, component:StoreInfoPage,
name: '店铺信息' name: '学院信息'
}, },
{ {
path: '/learning-data', path: '/learning-data',
......
...@@ -66,12 +66,12 @@ export const menuList: any = [ ...@@ -66,12 +66,12 @@ export const menuList: any = [
] ]
}, },
{ {
groupName: "店铺管理", groupName: "学院管理",
groupCode: "CloudShop", groupCode: "CloudShop",
icon: '&#xe82e;', icon: '&#xe82e;',
children: [ children: [
{ {
groupName: "店铺信息", groupName: "学院信息",
groupCode: "ShopInfo", groupCode: "ShopInfo",
link: '/store-info' link: '/store-info'
}, },
...@@ -85,28 +85,23 @@ export const menuList: any = [ ...@@ -85,28 +85,23 @@ export const menuList: any = [
groupCode: "ShopUser", groupCode: "ShopUser",
link: '/user-manage' link: '/user-manage'
}, },
// {
// groupName: "课程分类",
// groupCode: "CourseCategory",
// link: '/course-catalog'
// },
{ {
groupName: "课程分类", groupName: "课程分类",
groupCode: "CourseCategory", groupCode: "CourseCategory",
link: '/question-category-manage' link: '/question-category-manage'
}, },
{ {
groupName: "店铺装修", groupName: "学院装修",
groupCode: "ShopDecoration", groupCode: "ShopDecoration",
link: '/store-decoration' link: '/store-decoration'
}, },
{ {
groupName: "H5店铺", groupName: "H5学院",
groupCode: "ShopDecorationH5", groupCode: "ShopDecorationH5",
link: '/store-decoration/h5' link: '/store-decoration/h5'
}, },
{ {
groupName: "网页端店铺", groupName: "网页端学院",
groupCode: "ShopDecorationWeb", groupCode: "ShopDecorationWeb",
link: '/store-decoration/web' link: '/store-decoration/web'
} }
......
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