Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
d75a2cec
提交
d75a2cec
authored
7月 15, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:路由权限问题
上级
9857540b
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
61 行增加
和
15 行删除
+61
-15
index.scss
...ation/addOrEditInstitution/components/baseInfo/index.scss
+0
-0
index.tsx
...nation/addOrEditInstitution/components/baseInfo/index.tsx
+51
-11
index.tsx
...ination/addOrEditInstitution/components/skuInfo/index.tsx
+4
-0
index.ts
src/router/index.ts
+5
-4
router.tsx
src/router/router.tsx
+1
-0
没有找到文件。
src/pages/pilotTraining/ licensureExamination/addOrEditInstitution/components/baseInfo/index.scss
0 → 100644
浏览文件 @
d75a2cec
src/pages/pilotTraining/ licensureExamination/addOrEditInstitution/components/baseInfo/index.tsx
浏览文件 @
d75a2cec
import
{
Form
}
from
'antd'
;
import
{
Button
,
Form
,
Input
,
Radio
,
Select
}
from
'antd'
;
import
{
Uploader
}
from
'~/components/uploader'
;
import
{
EnvironmentOutlined
,
UploadOutlined
}
from
'@ant-design/icons'
;
import
'./index.scss'
;
const
BaseInfo
=
()
=>
{
const
BaseInfo
=
()
=>
{
return
(
return
(
<
Form
>
<
div
className=
'base-info'
>
<
Form
.
Item
label=
'机构主图'
></
Form
.
Item
>
<
div
className=
'base-info-header'
></
div
>
<
Form
.
Item
label=
'机构副图'
></
Form
.
Item
>
<
div
className=
'base-info-form'
>
<
Form
.
Item
label=
'机构视频'
></
Form
.
Item
>
<
Form
labelCol=
{
{
span
:
2
}
}
wrapperCol=
{
{
span
:
7
}
}
>
<
Form
.
Item
label=
'机构名称'
></
Form
.
Item
>
<
Form
.
Item
label=
'机构主图'
>
<
Form
.
Item
label=
'机构地区'
></
Form
.
Item
>
<
Uploader
fileUpload
listType=
'picture-card'
>
<
Form
.
Item
label=
'考点机构'
></
Form
.
Item
>
<
UploadOutlined
/>
<
Form
.
Item
label=
'机构规模'
></
Form
.
Item
>
</
Uploader
>
<
Form
.
Item
label=
'机构描述'
></
Form
.
Item
>
</
Form
.
Item
>
</
Form
>
<
Form
.
Item
label=
'机构副图'
>
<
Uploader
fileUpload
listType=
'picture-card'
>
<
UploadOutlined
/>
</
Uploader
>
</
Form
.
Item
>
<
Form
.
Item
label=
'机构视频'
>
<
Uploader
fileUpload
listType=
'text'
>
<
Button
icon=
{
<
UploadOutlined
/>
}
type=
'primary'
>
上传视频
</
Button
>
</
Uploader
>
</
Form
.
Item
>
<
Form
.
Item
label=
'机构名称'
>
<
Input
placeholder=
'请输入机构名称'
/>
</
Form
.
Item
>
<
Form
.
Item
label=
'机构地区'
>
<
Button
icon=
{
<
EnvironmentOutlined
/>
}
type=
'primary'
></
Button
>
</
Form
.
Item
>
<
Form
.
Item
label=
'考点机构'
>
<
Radio
.
Group
>
<
Radio
value=
{
1
}
>
是
</
Radio
>
<
Radio
value=
{
0
}
>
否
</
Radio
>
</
Radio
.
Group
>
</
Form
.
Item
>
<
Form
.
Item
label=
'机构规模'
>
<
Select
placeholder=
'请选择机构规模'
>
<
Select
.
Option
>
2-4名
</
Select
.
Option
>
<
Select
.
Option
>
4-6名
</
Select
.
Option
>
<
Select
.
Option
>
6-8名
</
Select
.
Option
>
<
Select
.
Option
>
10名以上
</
Select
.
Option
>
</
Select
>
</
Form
.
Item
>
<
Form
.
Item
label=
'机构描述'
>
<
Input
.
TextArea
placeholder=
'请选择机构描述'
/>
</
Form
.
Item
>
</
Form
>
</
div
>
</
div
>
);
);
};
};
export
default
BaseInfo
;
export
default
BaseInfo
;
src/pages/pilotTraining/ licensureExamination/addOrEditInstitution/components/skuInfo/index.tsx
0 → 100644
浏览文件 @
d75a2cec
const
SkuInfo
=
()
=>
{
return
<
div
className=
'sku-info'
></
div
>;
};
export
default
SkuInfo
;
src/router/index.ts
浏览文件 @
d75a2cec
...
@@ -15,11 +15,12 @@ export const authRouterList = async () => {
...
@@ -15,11 +15,12 @@ export const authRouterList = async () => {
const
ids
:
number
[]
=
getAllKeys
([
result
]);
const
ids
:
number
[]
=
getAllKeys
([
result
]);
const
getRouteList
=
(
data
:
RouteObjectType
[])
=>
{
const
getRouteList
=
(
data
:
RouteObjectType
[])
=>
{
return
data
.
reduce
((
pre
:
RouteObjectType
[],
cur
)
=>
{
return
data
.
reduce
((
pre
:
RouteObjectType
[],
cur
)
=>
{
if
(
ids
.
includes
(
cur
.
meta
.
id
)
||
cur
.
meta
.
hidden
)
{
const
Obj
:
RouteObjectType
=
{
...
cur
};
if
(
cur
.
children
)
{
if
(
ids
.
includes
(
Obj
.
meta
.
id
)
||
Obj
.
meta
.
hidden
)
{
cur
.
children
=
getRouteList
(
cur
.
children
);
if
(
Obj
.
children
)
{
Obj
.
children
=
[...
getRouteList
(
Obj
.
children
)];
}
}
pre
.
push
(
cur
);
pre
.
push
(
Obj
);
}
}
return
pre
;
return
pre
;
},
[]);
},
[]);
...
...
src/router/router.tsx
浏览文件 @
d75a2cec
...
@@ -876,6 +876,7 @@ export const routerList: Array<RouteObjectType> = [
...
@@ -876,6 +876,7 @@ export const routerList: Array<RouteObjectType> = [
id
:
1520
,
id
:
1520
,
title
:
'机构上传'
,
title
:
'机构上传'
,
icon
:
<
UserOutlined
/>,
icon
:
<
UserOutlined
/>,
hidden
:
true
,
},
},
},
},
],
],
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论