Commit e62591c3 by yuananting

Merge branch 'feature/yuananting/20210801/task-center' into dev

parents 9aa63802 0c0e5acf
...@@ -514,6 +514,7 @@ mr0 { ...@@ -514,6 +514,7 @@ mr0 {
// 气泡 // 气泡
.ant-tooltip { .ant-tooltip {
max-width: 280px !important;
.ant-tooltip-content { .ant-tooltip-content {
.ant-tooltip-inner { .ant-tooltip-inner {
padding: 6px 12px !important; padding: 6px 12px !important;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-07-29 13:57:03 * @Date: 2021-07-29 13:57:03
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-08-17 14:30:50 * @LastEditTime: 2021-08-17 14:50:08
* @Description: 任务中心-培训任务-新建页面 * @Description: 任务中心-培训任务-新建页面
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...@@ -299,7 +299,7 @@ function AddTrainTask() { ...@@ -299,7 +299,7 @@ function AddTrainTask() {
if (assignList.length === 0) { if (assignList.length === 0) {
activeStep === 'TRAIN_CONTENT' && setActiveStep('BASIC_INFO'); activeStep === 'TRAIN_CONTENT' && setActiveStep('BASIC_INFO');
return message.warning('请选择指派对象'); return message.warning('请选择指派学员');
} }
if (stageList.length === 0) { if (stageList.length === 0) {
activeStep === 'BASIC_INFO' && setActiveStep('TRAIN_CONTENT'); activeStep === 'BASIC_INFO' && setActiveStep('TRAIN_CONTENT');
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-07-29 14:32:24 * @Date: 2021-07-29 14:32:24
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-08-17 14:30:56 * @LastEditTime: 2021-08-17 14:50:30
* @Description: 任务中心-培训任务-新建-基本信息 * @Description: 任务中心-培训任务-新建-基本信息
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...@@ -39,7 +39,7 @@ function BasicInfo(props) { ...@@ -39,7 +39,7 @@ function BasicInfo(props) {
const defaultCover = 'https://image.xiaomaiketang.com/xm/rEAetaTEh3.png'; const defaultCover = 'https://image.xiaomaiketang.com/xm/rEAetaTEh3.png';
const isDefaultCover = coverUrl === defaultCover; const isDefaultCover = coverUrl === defaultCover;
const [assignorModalVisible, setAssignorModalVisible] = useState(false); // 指派对象弹窗显隐 const [assignorModalVisible, setAssignorModalVisible] = useState(false); // 指派学员弹窗显隐
const [collaboratorModalVisible, setCollaboratorModalVisible] = useState(false); // 协同者弹窗显隐 const [collaboratorModalVisible, setCollaboratorModalVisible] = useState(false); // 协同者弹窗显隐
// 使用默认封面图 // 使用默认封面图
...@@ -252,8 +252,8 @@ function BasicInfo(props) { ...@@ -252,8 +252,8 @@ function BasicInfo(props) {
<FormItem <FormItem
label={ label={
<span> <span>
指派对象 指派学员
<Tooltip title='选择员工协同完成任务指派和督学工作'> <Tooltip title='选择需要培训的人员'>
<i <i
className='icon iconfont' className='icon iconfont'
style={{ style={{
...@@ -270,13 +270,13 @@ function BasicInfo(props) { ...@@ -270,13 +270,13 @@ function BasicInfo(props) {
} }
required required
validateStatus={startCheck && assignList.length === 0 ? 'error' : ''} validateStatus={startCheck && assignList.length === 0 ? 'error' : ''}
help={startCheck && assignList.length === 0 && '请选择指派对象'}> help={startCheck && assignList.length === 0 && '请选择指派学员'}>
<Button <Button
style={{ display: 'block' }} style={{ display: 'block' }}
onClick={() => { onClick={() => {
setAssignorModalVisible(true); setAssignorModalVisible(true);
}}> }}>
添加指派对象 添加指派学员
</Button> </Button>
{assignList.length > 0 && ( {assignList.length > 0 && (
<Space size={'12'} direction={'vertical'} className='select-obj'> <Space size={'12'} direction={'vertical'} className='select-obj'>
...@@ -323,7 +323,7 @@ function BasicInfo(props) { ...@@ -323,7 +323,7 @@ function BasicInfo(props) {
label={ label={
<span> <span>
协同人员 协同人员
<Tooltip title='选择需要培训的人员'> <Tooltip title='选择员工协同完成任务指派和督学工作'>
<i <i
className='icon iconfont' className='icon iconfont'
style={{ style={{
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-08-05 17:09:36 * @Date: 2021-08-05 17:09:36
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-08-16 20:35:24 * @LastEditTime: 2021-08-17 14:50:50
* @Description: 新建培训任务-选择指派对象 * @Description: 新建培训任务-选择指派学员
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -36,7 +36,7 @@ function ChooseAssignorModal(props) { ...@@ -36,7 +36,7 @@ function ChooseAssignorModal(props) {
const [dropDownVisible, setDropDownVisible] = useState(false); const [dropDownVisible, setDropDownVisible] = useState(false);
const [structureData, setStructureData] = useState([]); const [structureData, setStructureData] = useState([]);
const [activeKey, setActiveKey] = useState('departMentTab'); const [activeKey, setActiveKey] = useState('departMentTab');
const [checkedAssignorList, setCheckedAssignorList] = useState(props.currentAssignorList || []); // 勾选的指派对象 const [checkedAssignorList, setCheckedAssignorList] = useState(props.currentAssignorList || []); // 勾选的指派学员
const [checkedAssignorKeys, setCheckedAssignorKeys] = useState(props.currentAssignorList.map((item) => item.checkedId) || []); const [checkedAssignorKeys, setCheckedAssignorKeys] = useState(props.currentAssignorList.map((item) => item.checkedId) || []);
const [queryName, setQueryName] = useState(''); // 搜索框内的值 const [queryName, setQueryName] = useState(''); // 搜索框内的值
const [departmentUserVOList, setDepartmentUserVOList] = useState([]); const [departmentUserVOList, setDepartmentUserVOList] = useState([]);
......
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