Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
7c11483c
Commit
7c11483c
authored
Aug 16, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
4195baee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
examEdit.vue
src/pages/exam/examEdit.vue
+18
-6
No files found.
src/pages/exam/examEdit.vue
View file @
7c11483c
...
...
@@ -208,10 +208,10 @@
<div
class=
"examPaper page-body"
>
<div
class=
"examPaper_Top"
>
<div
style=
"width:80%;display:flex;"
>
<div
style=
"width:
40
%;margin:0 20px;"
>
<div
style=
"width:
36
%;margin:0 20px;"
>
<q-input
filled
label=
"标题"
v-model=
"DataObj.PaperName"
/>
</div>
<div
style=
"width:2
0
%;"
>
<div
style=
"width:2
4
%;"
>
<q-select
filled
option-value=
"Id"
option-label=
"Name"
:options=
"questionDifficultyTypeList"
emit-value
map-options
label=
"难度"
use-input
clearable
v-model=
"DataObj.DifficultyType"
/>
</div>
...
...
@@ -224,8 +224,8 @@
<div
class=
"Exam-main"
>
<div
class=
"Exam-left f1"
>
<p
class=
"Left-ptitel"
>
<span>
题量:
<i>
10
</i></span>
<span>
总分:
<i>
50.0
</i></span>
<span>
题量:
<i>
{{
examNum
}}
</i></span>
<span>
总分:
<i>
{{
examScore
}}
</i></span>
</p>
<div
class=
"Left-list"
style=
"height:740px;overflow:auto;"
>
<template
v-if=
"DataObj&&DataObj.GroupList&&DataObj.GroupList.length>0"
>
...
...
@@ -250,7 +250,7 @@
<span
class=
"exam_ListSHow"
>
<i
class=
"iconfont icon-shangyi2"
@
click
.
stop=
"MoveChildItem(gIndex,dIndex,0)"
style=
"margin-right:5px;"
v-if=
"dIndex!=0"
></i>
<i
class=
"iconfont icon-xiayi"
@
click
.
stop=
"MoveChildItem(gIndex,dIndex,1)"
v-if=
"dIndex!=gItem.DetailsList.length-1"
></i>
<i
class=
"iconfont icon-shanchu2"
style=
"margin-left:5px;font-size:17px;"
></i>
<i
class=
"iconfont icon-shanchu2"
@
click
.
stop=
"delExam(gItem.DetailsList,dIndex)"
style=
"margin-left:5px;font-size:17px;"
></i>
</span>
</li>
</ul>
...
...
@@ -436,7 +436,9 @@
firstTypeList
:
[],
//第一类题型
secondTypeList
:
[],
//第二类题型
isShowQuestion
:
false
,
commonIndex
:
-
1
commonIndex
:
-
1
,
examNum
:
0
,
//题量
examScore
:
0
//总分
}
},
created
()
{
...
...
@@ -494,6 +496,10 @@
}
}
},
//删除题目
delExam
(
item
,
index
){
item
.
splice
(
index
,
1
);
},
//点击修改标题名字和分数
getNameEdit
(
item
,
index
){
item
.
forEach
(
x
=>
{
...
...
@@ -566,8 +572,14 @@
if
(
res
.
Code
==
1
)
{
this
.
DataObj
=
res
.
Data
;
}
this
.
examScore
=
0
;
this
.
examNum
=
0
;
this
.
DataObj
.
GroupList
.
forEach
(
x
=>
{
x
.
isShowEdit
=
false
;
this
.
examNum
+=
x
.
DetailsList
.
length
;
x
.
DetailsList
.
forEach
(
y
=>
{
this
.
examScore
+=
y
.
Score
;
})
})
})
},
...
...
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