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
bd006a7f
Commit
bd006a7f
authored
Jan 05, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
题库下载
parent
27568a76
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
187 additions
and
164 deletions
+187
-164
question.js
src/api/question/question.js
+23
-13
questionlist.vue
src/pages/course/questionlist.vue
+164
-151
No files found.
src/api/question/question.js
View file @
bd006a7f
...
...
@@ -153,7 +153,7 @@ export function queryQuestionLevelType() {
url
:
'/Question/GetQuestionLevelType'
,
method
:
'post'
,
})
}
}
/**
* 题目上移下移
...
...
@@ -251,7 +251,7 @@ export function saveBatchQuestionLevel(data) {
method
:
'post'
,
data
})
}
}
/**
* 根据题库编号获取题库题型列表(单选题、多选题、等)【试卷组卷使用】
...
...
@@ -314,4 +314,14 @@ export function DeletePaperDetails(data) {
data
})
}
/**
* 题库下载
* @param {*} data
*/
export
function
DownLoadBank
(
data
)
{
return
request
({
url
:
'/Question/DownLoadBank'
,
method
:
'post'
,
data
})
}
src/pages/course/questionlist.vue
View file @
bd006a7f
<
style
>
.page-content
p
{
.page-content
p
{
margin
:
0
!important
;
}
}
.quetion_Title
{
.quetion_Title
{
background
:
transparent
!important
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
width
:
400px
;
}
}
</
style
>
<
template
>
<div
class=
"page-body"
>
...
...
@@ -34,17 +34,17 @@
</
template
>
<
template
v-slot:body-cell-BankId=
"props"
>
<q-td
:props=
"props"
style=
"width:150px;"
>
{{
props
.
row
.
BankId
}}
{{
props
.
row
.
BankId
}}
</q-td>
</
template
>
<
template
v-slot:body-cell-BankName=
"props"
>
<q-td
:props=
"props"
style=
"width:400px;"
>
{{
props
.
row
.
BankName
}}
{{
props
.
row
.
BankName
}}
</q-td>
</
template
>
<
template
v-slot:body-cell-QuestionCount=
"props"
>
<q-td
:props=
"props"
style=
"width:200px;"
>
{{
props
.
row
.
QuestionCount
}}
{{
props
.
row
.
QuestionCount
}}
</q-td>
</
template
>
...
...
@@ -54,6 +54,8 @@
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
style=
"width:200px;"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
@
click=
"downloads(props.row)"
label=
"下载"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
@
click=
"EditQuestion(props.row)"
label=
"编辑"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
@
click=
"goQuestionList(props.row)"
...
...
@@ -71,12 +73,13 @@
</div>
</template>
<
script
>
import
{
import
{
queryQuestionBankPage
,
RemoveQuestionBank
}
from
'../../api/question/question'
;
import
questionbankForm
from
'../../components/question/questionbank-form'
;
export
default
{
RemoveQuestionBank
,
DownLoadBank
}
from
'../../api/question/question'
;
import
questionbankForm
from
'../../components/question/questionbank-form'
;
export
default
{
meta
:
{
title
:
"题库管理"
},
...
...
@@ -140,11 +143,21 @@
data
:
[],
}
},
created
()
{
},
created
()
{
},
mounted
()
{
this
.
getQuestionBankPage
();
},
methods
:
{
//下载
downloads
(
item
)
{
let
msg
=
{
BankId
:
item
.
BankId
,
}
DownLoadBank
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
}
})
},
research
()
{
this
.
getQuestionBankPage
();
},
...
...
@@ -219,7 +232,7 @@
});
}
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
...
...
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