Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sass-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj_app
sass-admin
Commits
df3681e1
Commit
df3681e1
authored
Sep 11, 2025
by
chengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
271d8022
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
79 deletions
+19
-79
src/common/Editor/editor.js
+1
-3
src/pages/Dashboard/index.js
+1
-1
src/pages/SystemManagement/Information/addEditForm.jsx
+15
-21
src/pages/TrainingPrograms/ProgeamsManage/Baseinfoform.jsx
+0
-20
src/pages/TrainingPrograms/ProgeamsManage/NewEnrollForm.jsx
+0
-34
src/pages/TrainingPrograms/ProgeamsManage/SignForm/index.jsx
+2
-0
No files found.
src/common/Editor/editor.js
View file @
df3681e1
...
...
@@ -22,14 +22,12 @@ class Editor extends PureComponent {
}
componentDidMount
()
{
const
{
importContent
,
type
}
=
this
.
props
;
console
.
log
(
"importContent11111111"
,
type
);
if
(
type
===
'look'
)
{
this
.
setState
({
readOnly
:
true
,
editorState
:
BraftEditor
.
createEditorState
(
importContent
)
})
}
else
if
(
type
===
'edit'
&&
importContent
)
{
}
else
if
(
(
type
===
'edit'
||
!
type
)
&&
importContent
)
{
this
.
setState
({
editorState
:
BraftEditor
.
createEditorState
(
importContent
),
// 更新 editorState
});
...
...
src/pages/Dashboard/index.js
View file @
df3681e1
...
...
@@ -378,7 +378,7 @@ class homePage extends Component {
xAxis
:
[
{
type
:
"category"
,
data
:
[
"
测试
总数"
,
"参加人数"
],
data
:
[
"
培训
总数"
,
"参加人数"
],
boundaryGap
:
[
"0%"
,
"0%"
],
axisLine
:
{
show
:
false
,
// 确保显示 Y 轴线
...
...
src/pages/SystemManagement/Information/addEditForm.jsx
View file @
df3681e1
...
...
@@ -153,9 +153,8 @@ class addEdit extends React.Component {
return
;
}
let
temp
=
this
.
state
.
fileList
;
if
(
file
.
status
==
"removed"
)
{
temp
=
temp
.
filter
(
item
=>
{
const
temp
=
this
.
state
.
fileList
.
filter
(
item
=>
{
return
item
.
uid
!=
file
.
uid
;
});
this
.
setState
({
...
...
@@ -170,26 +169,21 @@ class addEdit extends React.Component {
}),
});
}
else
{
temp
.
push
(
fileList
.
pop
());
// 直接替换而不是添加到列表中
const
newFile
=
fileList
.
pop
();
this
.
setState
({
fileList
:
temp
.
map
(
item
=>
{
return
{
uid
:
item
.
uid
,
name
:
item
.
name
,
size
:
item
.
size
,
fileUrl
:
item
.
fileUrl
,
};
}),
});
this
.
setState
({
responseList
:
temp
.
map
(
item
=>
{
return
{
fileName
:
item
.
name
,
fileUrl
:
item
.
fileUrl
?
item
.
fileUrl
:
item
.
response
.
data
,
size
:
item
.
size
+
""
,
suffix
:
"."
+
item
.
name
.
split
(
"."
)[
1
],
};
}),
fileList
:
[{
uid
:
newFile
.
uid
,
name
:
newFile
.
name
,
size
:
newFile
.
size
,
fileUrl
:
newFile
.
fileUrl
?
newFile
.
fileUrl
:
(
newFile
.
response
?
newFile
.
response
.
data
:
''
),
}],
responseList
:
[{
fileName
:
newFile
.
name
,
fileUrl
:
newFile
.
fileUrl
?
newFile
.
fileUrl
:
(
newFile
.
response
?
newFile
.
response
.
data
:
''
),
size
:
newFile
.
size
+
""
,
suffix
:
"."
+
newFile
.
name
.
split
(
"."
)[
1
],
}]
});
}
}
...
...
src/pages/TrainingPrograms/ProgeamsManage/Baseinfoform.jsx
View file @
df3681e1
...
...
@@ -103,10 +103,6 @@ class App extends React.Component {
</
div
>
);
const
{
// receiveHtml,
// tags,
// logourl,
// onTrainKind,
trainkindlist
,
activityList
,
trainfirstinfo
,
...
...
@@ -139,12 +135,6 @@ class App extends React.Component {
sm
:
{
span
:
8
},
},
};
let
formItemLayoutLogo
=
{
layout
:
{
labelCol
:
{
span
:
4
},
wrapperCol
:
{
span
:
11
},
},
};
let
tagPropsNew
=
{};
if
(
that
.
props
.
infoTitle
===
"新建信息"
)
{
tagPropsNew
=
{
...
...
@@ -220,16 +210,6 @@ class App extends React.Component {
/>
)
}
</
FormItem
>
{
/* {this.props.infoTitle === "查看信息" &&
trainfirstinfo !== undefined && (
<UpLoad {...uploadPropsSee} ref={c => (this.validate = c)} />
)} */
}
{
/* {this.props.infoTitle === "修改信息" &&
trainfirstinfo.logoImg && (
<UpLoad {...uploadPropsEdite} ref={c => (this.validate = c)} />
)} */
}
{
/* 活动分类 */
}
{
(
this
.
props
.
infoTitle
===
"新建信息"
&&
(
<
FormItem
{
...
formItemLayout
}
label=
"活动分类"
>
...
...
src/pages/TrainingPrograms/ProgeamsManage/NewEnrollForm.jsx
View file @
df3681e1
...
...
@@ -383,40 +383,6 @@ class enrollform extends React.Component {
</
FormItem
>
)
}
{
/* {
String(isPayForEnroll) == "0" ?
<FormItem label="是否审核">
<Col span={1}>
{getFieldDecorator("needAudit", {
initialValue: this.state.needFlag,
valuePropName: "checked",
})(
<Switch
disabled={usable}
checkedChildren="ON"
unCheckedChildren="OFF"
//defaultChecked={this.state.needFlag}
/>
)}
</Col>
</FormItem> : ""
} */
}
{
/* <FormItem label="报名须知">
{getFieldDecorator("notice", {
initialValue: this.state.notice,
rules: [{ required: false, message: "请填写须知" }],
})(
<TextArea
maxLength="50"
disabled={usable}
placeholder="可填写报名注意事项,最多可输入50字"
rows={4}
/>
)}
</FormItem> */
}
</
Form
>
</
div
>
);
...
...
src/pages/TrainingPrograms/ProgeamsManage/SignForm/index.jsx
View file @
df3681e1
...
...
@@ -200,6 +200,8 @@ class App extends React.Component {
seeting
,
newsList
,
}
=
this
.
props
;
console
.
clear
()
console
.
log
(
signinfolist
,
'hasEnrolled1111'
);
const
{
getFieldDecorator
}
=
this
.
props
.
form
;
const
{
enableApp
,
enableMail
}
=
this
.
state
;
let
usable
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment