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
李晨
sass-admin
Commits
71b233ea
Commit
71b233ea
authored
Aug 27, 2025
by
end
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投票管理
parent
081a800d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
dist.zip
+0
-0
src/pages/TrainingTools/Survey/Create/AddTest.jsx
+2
-26
No files found.
dist.zip
View file @
71b233ea
No preview for this file type
src/pages/TrainingTools/Survey/Create/AddTest.jsx
View file @
71b233ea
...
...
@@ -243,7 +243,7 @@ class AddTest extends Component {
type
:
values
.
type
,
content
:
values
.
content
,
//bug-9797-liyuan 附件回显
contentAppendix
Url
:
this
.
state
.
fileUrl
attachment
Url
:
this
.
state
.
fileUrl
?
this
.
state
.
fileUrl
:
this
.
state
.
testItem
.
contentAppendixUrl
?
this
.
state
.
testItem
.
contentAppendixUrl
...
...
@@ -260,30 +260,6 @@ class AddTest extends Component {
required
:
this
.
addother
.
state
.
ismust
?
1
:
0
,
},
};
// console.log("777777777", param)
// return
// if( !(param.minSelectItem !== '' && param.minSelectItem <= param.questionOptions.length-1 && param.minSelectItem > 0)) {
// message.error('最少项错误')
// this.setState({
// confirmLoading: false,
// });
// return
// }
// // 判断最大可选
// if( param.maxSelectItem !== '' && param.maxSelectItem > param.questionOptions.length){
// message.error('最多项错误')
// this.setState({
// confirmLoading: false,
// });
// return
// }else if(param.maxSelectItem !== '' && param.minSelectItem !==''&& param.maxSelectItem < param.minSelectItem){
// message.error('最多项不能小于最少项')
// this.setState({
// confirmLoading: false,
// });
// return
// }
const
temp
=
{
questions
:
[{
id
:
editid
,
...
param
}],
researchId
:
surid
,
...
...
@@ -296,7 +272,7 @@ class AddTest extends Component {
keywords
:
this
.
addother
.
state
.
keywords
,
type
:
values
.
type
,
content
:
values
.
content
,
contentAppendix
Url
:
this
.
state
.
fileUrl
?
this
.
state
.
fileUrl
:
""
,
attachment
Url
:
this
.
state
.
fileUrl
?
this
.
state
.
fileUrl
:
""
,
needAnswer
:
values
.
needAnswer
?
1
:
0
,
questionOptions
:
objs
,
maxSelectItem
:
values
.
needAnswer2
?
values
.
maxSelectItem
:
""
,
...
...
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