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
c301691d
Commit
c301691d
authored
Jan 26, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5fbd3981
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
questionbank-form.vue
src/components/question/questionbank-form.vue
+1
-1
questionlist.vue
src/pages/course/questionlist.vue
+13
-4
No files found.
src/components/question/questionbank-form.vue
View file @
c301691d
...
...
@@ -25,6 +25,7 @@
props
:
{
questionBankObj
:
{
type
:
Object
,
default
:
null
}
},
components
:
{
...
...
@@ -42,7 +43,6 @@
computed
:
{},
created
()
{},
mounted
()
{
},
methods
:
{
initQuestionBank
()
{
...
...
src/pages/course/questionlist.vue
View file @
c301691d
...
...
@@ -30,7 +30,7 @@
<div
class=
"col-2 q-table__title"
>
题库列表
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
@
click=
"
isShowQuestionBankForm=true
"
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
@
click=
"
EditQuestion(null)
"
label=
"创建新题库"
/>
</div>
</
template
>
...
...
@@ -56,7 +56,7 @@
</
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"
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)"
label=
"管理题目"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"negative"
style=
"font-weight:400"
@
click=
"deleteQuestionBank(props.row)"
label=
"删除"
/>
...
...
@@ -64,7 +64,7 @@
</q-td>
</
template
>
</q-table>
<questionbank-form
v-if=
"isShowQuestionBankForm"
@
close=
"closeQuestionBank"
@
success=
"refreshQuestion"
>
<questionbank-form
v-if=
"isShowQuestionBankForm"
:questionBankObj=
"questionBankObj"
@
close=
"closeQuestionBank"
@
success=
"refreshQuestion"
>
</questionbank-form>
</div>
</div>
...
...
@@ -93,6 +93,7 @@
},
loading
:
false
,
isShowQuestionBankForm
:
false
,
questionBankObj
:
null
,
//传入参数
columns
:
[{
name
:
'BankId'
,
label
:
'序号'
,
...
...
@@ -157,6 +158,15 @@
refreshQuestion
()
{
this
.
getQuestionBankPage
();
},
//编辑题库
EditQuestion
(
obj
){
if
(
obj
){
this
.
questionBankObj
=
obj
}
else
{
this
.
questionBankObj
=
null
}
this
.
isShowQuestionBankForm
=
true
},
//删除问题
deleteQuestionBank
(
item
)
{
let
delMsg
=
{
...
...
@@ -186,7 +196,6 @@
}).
onCancel
(()
=>
{
});
},
//跳转至questionlist
goQuestionList
(
item
)
{
...
...
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