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
Hide 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
...
...
@@ -45,15 +45,16 @@ module.exports = function (ctx) {
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
build
:
{
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,
...
...
@@ -153,7 +154,7 @@ module.exports = function (ctx) {
],
directives
:
[
'ClosePopup'
],
],
// Quasar plugins
plugins
:
[
...
...
src/api/teacher/index.js
View file @
d70ed55b
...
...
@@ -141,4 +141,16 @@ export function GetPaper(data) {
method
:
'post'
,
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>
...
...
@@ -147,7 +148,7 @@
<div
class=
"Exam-right f1"
>
<span></span>
<div
class=
"row wrap"
v-if=
"ChooseItem"
>
<div
class=
"col-12"
style=
"margin-bottom:20px"
>
<div
class=
"col-12"
style=
"margin-bottom:20px"
>
题型
<
template
v-for=
"(fItem,fIndex) in firstTypeList"
>
<q-btn
:key=
"fIndex"
color=
"accent"
:label=
"fItem.Name"
style=
"margin-left:5px;"
...
...
@@ -163,8 +164,12 @@
</q-item>
</q-list>
</q-btn-dropdown>
</div>
</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
()
{
...
...
@@ -352,7 +356,7 @@
this
.
GetPaperInfo
()
},
methods
:
{
//获取题型列表
//获取题型列表
getQuestionType
()
{
queryQuestionTypeList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
@@ -364,7 +368,7 @@
}
});
},
//题型点击
//题型点击
onItemClick
(
item
)
{
// this.AnswerList = [];
// this.questionObj = item;
...
...
@@ -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