|
|
@@ -370,23 +370,23 @@ const checkUserNameExists = (value: string) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const renderDeptData = () => {
|
|
|
- let daptTree = deptDataBackup.value
|
|
|
+ const renderDeptData = () => {
|
|
|
+ let daptTree = deptDataBackup.value;
|
|
|
|
|
|
- if (state.form.userType === '10') {
|
|
|
- daptTree = daptTree.filter((item) => item.id === 100001)
|
|
|
- }
|
|
|
+ if (state.form.userType === '10') {
|
|
|
+ daptTree = daptTree.filter((item) => item.id === 100001);
|
|
|
+ }
|
|
|
|
|
|
- if (state.form.userType === '15') {
|
|
|
- daptTree = daptTree.filter((item) => item.id !== 1000220)
|
|
|
- }
|
|
|
+ if (state.form.userType === '15') {
|
|
|
+ daptTree = daptTree.filter((item) => item.id !== 1000220 && item.id !== 100001);
|
|
|
+ }
|
|
|
|
|
|
- if (state.form.userType === '20') {
|
|
|
- daptTree = daptTree.filter((item) => item.id === 1000220)
|
|
|
- }
|
|
|
+ if (state.form.userType === '20') {
|
|
|
+ daptTree = daptTree.filter((item) => item.id === 1000220);
|
|
|
+ }
|
|
|
|
|
|
- return daptTree
|
|
|
-}
|
|
|
+ return daptTree;
|
|
|
+ };
|
|
|
|
|
|
const deptIncludesProjectGroup = async (deptId: number) => {
|
|
|
const [err, res]: ToResponse = await to(
|