mirror of
https://github.com/Funkoala14/KnowledgeBase_OOIN.git
synced 2025-06-08 07:08:14 +08:00
[dev]dep
This commit is contained in:
parent
08e3f3f39e
commit
1ee764d4e8
@ -3,13 +3,13 @@ import SvgIcon from './SvgIcon';
|
|||||||
|
|
||||||
// 部门和组别的映射关系
|
// 部门和组别的映射关系
|
||||||
const departmentGroups = {
|
const departmentGroups = {
|
||||||
达人部门: ['达人部门'],
|
达人部门: ['达人'],
|
||||||
商务部门: ['商务部门'],
|
商务部门: ['商务'],
|
||||||
样本中心: ['样本中心'],
|
样本中心: ['样本'],
|
||||||
产品部门: ['产品部门'],
|
产品部门: ['产品'],
|
||||||
AI自媒体: ['AI自媒体'],
|
AI自媒体: ['AI自媒体'],
|
||||||
HR: ['HR'],
|
HR: ['HR'],
|
||||||
技术部门: ['技术部门'],
|
技术部门: ['技术'],
|
||||||
};
|
};
|
||||||
|
|
||||||
// 部门列表
|
// 部门列表
|
||||||
|
@ -15,13 +15,13 @@ import DeleteConfirmModal from './components/DeleteConfirmModal';
|
|||||||
|
|
||||||
// 部门和组别的映射关系
|
// 部门和组别的映射关系
|
||||||
const departmentGroups = {
|
const departmentGroups = {
|
||||||
达人部门: ['达人部门'],
|
达人部门: ['达人'],
|
||||||
商务部门: ['商务部门'],
|
商务部门: ['商务'],
|
||||||
样本中心: ['样本中心'],
|
样本中心: ['样本'],
|
||||||
产品部门: ['产品部门'],
|
产品部门: ['产品'],
|
||||||
AI自媒体: ['AI自媒体'],
|
AI自媒体: ['AI自媒体'],
|
||||||
HR: ['HR'],
|
HR: ['HR'],
|
||||||
技术部门: ['技术部门'],
|
技术部门: ['技术'],
|
||||||
};
|
};
|
||||||
|
|
||||||
// 部门列表
|
// 部门列表
|
||||||
|
@ -7,8 +7,8 @@ import { showNotification } from '../../store/notification.slice';
|
|||||||
export default function Login() {
|
export default function Login() {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [username, setUsername] = useState('leader2');
|
const [username, setUsername] = useState('');
|
||||||
const [password, setPassword] = useState('leader123');
|
const [password, setPassword] = useState('');
|
||||||
const [errors, setErrors] = useState({});
|
const [errors, setErrors] = useState({});
|
||||||
const [submitted, setSubmitted] = useState(false);
|
const [submitted, setSubmitted] = useState(false);
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
@ -5,13 +5,13 @@ import { checkAuthThunk, signupThunk } from '../../store/auth/auth.thunk';
|
|||||||
|
|
||||||
// 部门和组别映射关系
|
// 部门和组别映射关系
|
||||||
const departmentGroups = {
|
const departmentGroups = {
|
||||||
达人部门: ['达人部门'],
|
达人部门: ['达人'],
|
||||||
商务部门: ['商务部门'],
|
商务部门: ['商务'],
|
||||||
样本中心: ['样本中心'],
|
样本中心: ['样本'],
|
||||||
产品部门: ['产品部门'],
|
产品部门: ['产品'],
|
||||||
AI自媒体: ['AI自媒体'],
|
AI自媒体: ['AI自媒体'],
|
||||||
HR: ['HR'],
|
HR: ['HR'],
|
||||||
技术部门: ['技术部门'],
|
技术部门: ['技术'],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Signup() {
|
export default function Signup() {
|
||||||
@ -208,10 +208,11 @@ export default function Signup() {
|
|||||||
<option value='' disabled>
|
<option value='' disabled>
|
||||||
选择部门
|
选择部门
|
||||||
</option>
|
</option>
|
||||||
<option value='技术部'>技术部</option>
|
{Object.keys(departmentGroups).map((dept, index) => (
|
||||||
<option value='产品部'>产品部</option>
|
<option key={index} value={dept}>
|
||||||
<option value='市场部'>市场部</option>
|
{dept}
|
||||||
<option value='行政部'>行政部</option>
|
</option>
|
||||||
|
))}
|
||||||
</select>
|
</select>
|
||||||
{submitted && errors.department && <div className='invalid-feedback'>{errors.department}</div>}
|
{submitted && errors.department && <div className='invalid-feedback'>{errors.department}</div>}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user