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
d70ed55b
Commit
d70ed55b
authored
Aug 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
9515e750
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
18 deletions
+41
-18
quasar.conf.js
quasar.conf.js
+8
-7
index.js
src/api/teacher/index.js
+12
-0
examEdit.vue
src/pages/exam/examEdit.vue
+21
-11
No files found.
quasar.conf.js
View file @
d70ed55b
...
...
@@ -47,13 +47,14 @@ module.exports = function (ctx) {
vueRouterMode
:
'hash'
,
// available values: 'hash', 'history'
env
:
ctx
.
dev
?
{
API
:
'http://192.168.20.51:8088/api'
,
API_ZC
:
'http://192.168.20.9:8087/api'
,
API_SK
:
'ws:192.168.20.214:'
API
:
'https://localhost:5001/api'
,
// API: 'http://192.168.20.51:8088/api',
API_ZC
:
'http://192.168.20.9:8087/api'
,
API_SK
:
'ws:192.168.20.214:'
}
:
{
API
:
'https://eduapi.oytour.com/api'
,
API_ZC
:
'http://propertyedu.oytour.com/api'
,
API_SK
:
'ws://47.96.23.199:'
API_ZC
:
'http://propertyedu.oytour.com/api'
,
API_SK
:
'ws://47.96.23.199:'
},
// transpile: false,
...
...
src/api/teacher/index.js
View file @
d70ed55b
...
...
@@ -142,3 +142,15 @@ export function GetPaper(data) {
data
})
}
/**
* 保存试卷信息
* @param {JSON参数} data
*/
export
function
savePaperInfo
(
data
)
{
return
request
({
url
:
'/Exam/SetPaper'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/pages/exam/examEdit.vue
View file @
d70ed55b
...
...
@@ -120,7 +120,7 @@
</div>
<div
style=
"width:20%;text-align:right;"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"预览"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"保存并返回"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"保存并返回"
@
click=
"SavePaper()"
/>
</div>
</div>
<div
class=
"Exam-main"
>
...
...
@@ -135,7 +135,8 @@
<b>
(
<label>
{{
gIndex
+
1
}}
</label>
)
</b>
<b>
{{
gItem
.
GroupName
}}
</b>
<ul
class=
"List-ul"
v-if=
"gItem.DetailsList&&gItem.DetailsList.length>0"
>
<li
class=
""
style=
"cursor:pointer;"
v-for=
"(dItem,dIndex) in gItem.DetailsList"
:key=
"dIndex"
@
click=
"ClickItem(dItem)"
>
<li
class=
""
style=
"cursor:pointer;"
v-for=
"(dItem,dIndex) in gItem.DetailsList"
:key=
"dIndex"
@
click=
"ClickItem(dItem)"
>
{{
dIndex
+
1
}}
<span
@
click=
"ClickItem(dItem)"
v-html=
"dItem.Title"
>
</span>
</li>
...
...
@@ -164,7 +165,11 @@
</q-list>
</q-btn-dropdown>
</div>
<div
class=
"edit_stem"
>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"ChooseItem.Score"
class=
"col-12 q-pb-lg"
label=
"分数"
/>
</div>
<div
class=
"col-12"
>
<
template
v-if=
"ChooseItem.QuestionTypeKey=='cloze'"
>
<span
class=
"question_number"
>
选项处用##题号##替换,如##1##
</span>
...
...
@@ -279,13 +284,12 @@
import
sharingChoose
from
'../../components/questiontype/sharing-choose'
import
{
GetPaper
GetPaper
,
savePaperInfo
,
}
from
'../../api/teacher/index'
;
import
{
queryQuestionTypeList
,
queryDifficultyType
,
queryQuestionInfo
,
queryQuestionCategory
,
queryQuestionLevelType
}
from
'../../api/question/question'
...
...
@@ -335,8 +339,8 @@
questionLevalTypeList
:
[],
questionCategoryList
:
[],
//分类
choosePointArray
:
[],
//选择知识点
firstTypeList
:
[],
//第一类题型
secondTypeList
:
[],
//第二类题型
firstTypeList
:
[],
//第一类题型
secondTypeList
:
[],
//第二类题型
}
},
created
()
{
...
...
@@ -409,6 +413,12 @@
ClickItem
(
questionItem
)
{
this
.
ChooseItem
=
questionItem
;
console
.
log
(
"questionItem"
,
questionItem
);
},
//保存题目
SavePaper
()
{
savePaperInfo
(
this
.
DataObj
).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
})
}
}
}
...
...
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