Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
5d6ab129
Commit
5d6ab129
authored
Jan 29, 2023
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
访客添加考试题目的时候都要有表单验证
parent
5e599d6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
visitorAdd.vue
...src/views/educationPlanExam/visitorProgram/visitorAdd.vue
+9
-10
No files found.
danger-manage-web/src/views/educationPlanExam/visitorProgram/visitorAdd.vue
View file @
5d6ab129
...
@@ -50,15 +50,11 @@
...
@@ -50,15 +50,11 @@
:label=
"'选项' + (index + 1)"
:label=
"'选项' + (index + 1)"
:key=
"question.key"
:key=
"question.key"
:prop=
"'questions.' + index + '.value'"
:prop=
"'questions.' + index + '.value'"
:rules=
"
:rules=
"
{
index === 0
required: true,
?
{
message: '第一项不能为空不能为空',
required: true,
trigger: 'blur',
message: '第一项不能为空不能为空',
}"
trigger: 'blur',
}
: {}
"
>
>
<div
class=
"add-select flex"
>
<div
class=
"add-select flex"
>
<el-input
<el-input
...
@@ -128,7 +124,10 @@
...
@@ -128,7 +124,10 @@
</div>
</div>
</el-form-item>
-->
</el-form-item>
-->
<div
style=
"padding-left: 55px"
v-if=
"form.topicType != 3"
>
<div
style=
"padding-left: 55px"
v-if=
"form.topicType != 3"
>
<el-button
size=
"mini"
type=
"primary"
@
click
.
prevent=
"add(addValue)"
<el-button
size=
"mini"
style=
"background: #0bab0c; color: #fff; border: 1px solid #0bab0c"
@
click
.
prevent=
"add(addValue)"
>
新增选项
</el-button
>
新增选项
</el-button
>
>
</div>
</div>
...
...
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