Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
2babbbeb
提交
2babbbeb
authored
7月 19, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:机构介绍必填
上级
88312de1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
23 行增加
和
11 行删除
+23
-11
index.tsx
src/components/richText/index.tsx
+1
-1
index.tsx
...ning/ licensureExamination/addOrEditInstitution/index.tsx
+3
-0
index.tsx
...Training/ licensureExamination/institutionsList/index.tsx
+19
-10
没有找到文件。
src/components/richText/index.tsx
浏览文件 @
2babbbeb
...
...
@@ -70,7 +70,7 @@ const RichText: React.FC<PropsType> = ({
//富文本修改
const
richTextChange
=
(
editor
:
IDomEditor
)
=>
{
if
(
onChange
)
{
onChange
(
editor
.
getHtml
()
||
''
);
onChange
(
editor
.
isEmpty
()
?
''
:
editor
.
getHtml
()
);
}
};
useEffect
(()
=>
{
...
...
src/pages/pilotTraining/ licensureExamination/addOrEditInstitution/index.tsx
浏览文件 @
2babbbeb
...
...
@@ -43,6 +43,9 @@ const AddOrEditInstitution = () => {
skuRef
.
current
.
getForm
().
validateFields
(),
])
.
then
((
value
)
=>
{
if
(
!
introduceInfo
)
{
return
message
.
warning
(
'机构介绍不能为空'
);
}
const
skuReqData
=
skuRef
.
current
.
getTableData
().
map
((
v
:
tableDataType
)
=>
{
return
Object
.
getOwnPropertyNames
(
v
).
reduce
((
pre
:
any
,
cur
:
string
)
=>
{
if
(
Object
.
getOwnPropertyNames
(
value
[
1
]).
includes
(
cur
+
v
.
id
))
{
...
...
src/pages/pilotTraining/ licensureExamination/institutionsList/index.tsx
浏览文件 @
2babbbeb
...
...
@@ -36,18 +36,11 @@ const InstitutionsList = () => {
const
search
:
searchColumns
[]
=
[
{
label
:
'机构名称'
,
name
:
'name'
,
placeholder
:
'请输入机构名称'
,
type
:
'input'
},
{
label
:
'培训类型'
,
name
:
'typeId'
,
placeholder
:
'请选择培训类型'
,
type
:
'select'
,
options
:
gradeList
,
},
{
label
:
'培训等级'
,
name
:
'gradeId'
,
placeholder
:
'请选择培训等级'
,
type
:
'select'
,
options
:
typ
eList
,
options
:
grad
eList
,
},
{
label
:
'培训机型'
,
...
...
@@ -57,6 +50,13 @@ const InstitutionsList = () => {
options
:
modelsList
,
},
{
label
:
'培训类型'
,
name
:
'typeId'
,
placeholder
:
'请选择培训类型'
,
type
:
'select'
,
options
:
typeList
,
},
{
label
:
'选择日期'
,
name
:
'time'
,
placeholder
:
'请选择日期'
,
...
...
@@ -178,10 +178,19 @@ const InstitutionsList = () => {
};
//筛选
const
searchSuccess
=
(
value
:
any
)
=>
{
setQuery
(
filterObjAttr
(
value
,
[
'time'
]));
console
.
log
(
'时间-->'
,
filterObjAttr
(
value
,
[
'time'
]).
statTime
);
setQuery
({
...
filterObjAttr
(
value
,
[
'time'
]),
statTime
:
filterObjAttr
(
value
,
[
'time'
]).
statTime
.
split
(
' '
)[
0
],
endTime
:
filterObjAttr
(
value
,
[
'time'
]).
endTime
.
split
(
' '
)[
0
],
});
pagination
.
pageNo
=
1
;
pagination
.
pageSize
=
10
;
getListOrgPage
(
filterObjAttr
(
value
,
[
'time'
]));
getListOrgPage
({
...
filterObjAttr
(
value
,
[
'time'
]),
statTime
:
filterObjAttr
(
value
,
[
'time'
]).
statTime
.
split
(
' '
)[
0
],
endTime
:
filterObjAttr
(
value
,
[
'time'
]).
endTime
.
split
(
' '
)[
0
],
});
};
useEffect
(()
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论