Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
00594b92
提交
00594b92
authored
7月 19, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:飞手培训问题
上级
843987a0
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
21 行增加
和
10 行删除
+21
-10
index.tsx
...ponents/goods/commonAddOrEdit/addOrEditSkuModal/index.tsx
+3
-0
index.tsx
...nation/addOrEditInstitution/components/baseInfo/index.tsx
+1
-1
index.scss
.../addOrEditInstitution/components/introduceInfo/index.scss
+4
-0
index.scss
...nation/addOrEditInstitution/components/skuInfo/index.scss
+4
-0
index.tsx
...ination/addOrEditInstitution/components/skuInfo/index.tsx
+6
-6
index.ts
src/router/index.ts
+1
-1
router.tsx
src/router/router.tsx
+2
-2
没有找到文件。
src/components/goods/commonAddOrEdit/addOrEditSkuModal/index.tsx
浏览文件 @
00594b92
...
...
@@ -88,12 +88,14 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
align
:
'center'
,
dataIndex
:
'specName'
,
editable
:
true
,
rules
:
[{
required
:
true
,
message
:
'请输入选项名称'
}],
},
{
title
:
'料号'
,
align
:
'center'
,
dataIndex
:
'partNo'
,
editable
:
true
,
rules
:
[{
required
:
true
,
message
:
'请输入料号'
}],
},
{
title
:
'操作'
,
...
...
@@ -143,6 +145,7 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
dataIndex
:
col
.
dataIndex
,
title
:
col
.
title
,
editing
:
true
,
rules
:
col
.
rules
,
}),
};
});
...
...
src/pages/pilotTraining/ licensureExamination/addOrEditInstitution/components/baseInfo/index.tsx
浏览文件 @
00594b92
...
...
@@ -17,7 +17,7 @@ interface selfProps {
//上传机构请求类型
type
insertOrgParametersType
=
Omit
<
InterReqType
<
insertOrgType
>
,
'trainingProgramsVOS'
>
;
const
BaseInfo
:
FC
<
selfProps
>
=
forwardRef
((
props
,
ref
)
=>
{
const
BaseInfo
:
FC
<
selfProps
>
=
forwardRef
((
_
props
,
ref
)
=>
{
const
[
baseInfoForm
]
=
Form
.
useForm
<
insertOrgParametersType
>
();
//地图地点选择
const
[
selectMapShow
,
setSelectMapShow
]
=
useState
<
boolean
>
(
false
);
...
...
src/pages/pilotTraining/ licensureExamination/addOrEditInstitution/components/introduceInfo/index.scss
浏览文件 @
00594b92
...
...
@@ -4,6 +4,10 @@
font-weight
:
bold
;
margin-bottom
:
10px
;
line-height
:
20px
;
&
:before
{
content
:
'*'
;
color
:
red
;
}
}
&
-rich
{
...
...
src/pages/pilotTraining/ licensureExamination/addOrEditInstitution/components/skuInfo/index.scss
浏览文件 @
00594b92
...
...
@@ -4,6 +4,10 @@
font-weight
:
bold
;
margin-bottom
:
10px
;
line-height
:
20px
;
&
:before
{
content
:
'*'
;
color
:
red
;
}
}
&
-table
{
...
...
src/pages/pilotTraining/ licensureExamination/addOrEditInstitution/components/skuInfo/index.tsx
浏览文件 @
00594b92
...
...
@@ -32,7 +32,7 @@ interface selfProps {
ref
:
any
;
}
const
SkuInfo
:
FC
<
selfProps
>
=
forwardRef
((
props
,
ref
)
=>
{
const
SkuInfo
:
FC
<
selfProps
>
=
forwardRef
((
_
props
,
ref
)
=>
{
const
[
skuForm
]
=
Form
.
useForm
<
any
>
();
//机型下拉列表
const
[
modelsList
,
setModelsList
]
=
useState
<
modelsListType
>
([]);
...
...
@@ -74,7 +74,7 @@ const SkuInfo: FC<selfProps> = forwardRef((props, ref) => {
width
:
'10%'
,
inputType
:
'uploader'
,
editable
:
true
,
rules
:
[{
required
:
'true'
,
message
:
'请上传培训主图'
}],
rules
:
[{
required
:
true
,
message
:
'请上传培训主图'
}],
},
{
title
:
'培训机型'
,
...
...
@@ -84,7 +84,7 @@ const SkuInfo: FC<selfProps> = forwardRef((props, ref) => {
inputType
:
'select'
,
width
:
'15%'
,
selectOption
:
modelsList
,
rules
:
[{
required
:
'true'
,
message
:
'请选择培训机型'
}],
rules
:
[{
required
:
true
,
message
:
'请选择培训机型'
}],
},
{
title
:
'培训等级'
,
...
...
@@ -94,7 +94,7 @@ const SkuInfo: FC<selfProps> = forwardRef((props, ref) => {
inputType
:
'select'
,
width
:
'15%'
,
selectOption
:
gradeList
,
rules
:
[{
required
:
'true'
,
message
:
'请选择培训等级'
}],
rules
:
[{
required
:
true
,
message
:
'请选择培训等级'
}],
},
{
title
:
'培训类型'
,
...
...
@@ -104,7 +104,7 @@ const SkuInfo: FC<selfProps> = forwardRef((props, ref) => {
inputType
:
'select'
,
width
:
'15%'
,
selectOption
:
typeList
,
rules
:
[{
required
:
'true'
,
message
:
'请选择培训类型'
}],
rules
:
[{
required
:
true
,
message
:
'请选择培训类型'
}],
},
{
title
:
'培训价格'
,
...
...
@@ -112,7 +112,7 @@ const SkuInfo: FC<selfProps> = forwardRef((props, ref) => {
editable
:
true
,
dataIndex
:
'price'
,
width
:
'12%'
,
rules
:
[{
required
:
'true'
,
validator
:
priceValidator
}],
rules
:
[{
required
:
true
,
validator
:
priceValidator
}],
},
{
title
:
'操作'
,
...
...
src/router/index.ts
浏览文件 @
00594b92
...
...
@@ -22,7 +22,7 @@ export const authRouterList = async () => {
const
getRouteList
=
(
data
:
RouteObjectType
[])
=>
{
return
data
.
reduce
((
pre
:
RouteObjectType
[],
cur
)
=>
{
const
Obj
:
RouteObjectType
=
{
...
cur
};
if
(
ids
.
includes
(
Obj
.
meta
.
id
)
||
Obj
.
meta
.
hidden
||
Obj
.
path
?.
includes
(
'pilotTraining'
)
)
{
if
(
ids
.
includes
(
Obj
.
meta
.
id
)
||
Obj
.
meta
.
hidden
)
{
if
(
Obj
.
children
)
{
Obj
.
children
=
[...
getRouteList
(
Obj
.
children
)];
}
...
...
src/router/router.tsx
浏览文件 @
00594b92
...
...
@@ -901,7 +901,7 @@ export const routerList: Array<RouteObjectType> = [
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
1
5
00
,
id
:
1
6
00
,
icon
:
<
BankOutlined
/>,
title
:
'飞手培训'
,
},
...
...
@@ -911,7 +911,7 @@ export const routerList: Array<RouteObjectType> = [
element
:
withLoadingComponent
(<
InstitutionsListView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
1
5
10
,
id
:
1
6
10
,
title
:
'执照考试'
,
icon
:
<
VerifiedOutlined
/>,
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论