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
691d89e9
Commit
691d89e9
authored
Aug 12, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f51e46c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
10 deletions
+43
-10
App.vue
src/App.vue
+1
-1
examManagement.vue
src/pages/exam/examManagement.vue
+42
-9
No files found.
src/App.vue
View file @
691d89e9
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
@import
url("//at.alicdn.com/t/font_2077629_
4texnaxzfra
.css")
;
@import
url("//at.alicdn.com/t/font_2077629_
ou0hmd4zmr8
.css")
;
.q-scrollarea__thumb
{
.q-scrollarea__thumb
{
z-index
:
999999
!important
;
z-index
:
999999
!important
;
}
}
...
...
src/pages/exam/examManagement.vue
View file @
691d89e9
...
@@ -25,6 +25,17 @@
...
@@ -25,6 +25,17 @@
background-color
:
rgb
(
238
,
238
,
239
);
background-color
:
rgb
(
238
,
238
,
239
);
}
}
.Exam_PaperName
{
width
:
300px
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
.Exam_PaperName
i
{
font-size
:
18px
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body"
>
...
@@ -37,19 +48,37 @@
...
@@ -37,19 +48,37 @@
</div>
</div>
<div
class=
"page-option"
>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"新增文件夹"
@
click=
"showExamFolder(null)"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"新增文件夹"
@
click=
"showExamFolder(null)"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"新增试卷"
@
click=
"CreatePaper()"
/>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"新增试卷"
style=
"margin-left:10px;"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"CreatePaper()"
>
<q-item-section>
<q-item-label>
手动组卷
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"goExameEdit(null)"
>
<q-item-section>
<q-item-label>
自动组卷
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<el-table
:data=
"dataList"
v-loading=
"loading"
:expand-row-keys=
"expandKeys"
:default-expand-all=
"true"
<el-table
:data=
"dataList"
v-loading=
"loading"
:expand-row-keys=
"expandKeys"
:default-expand-all=
"true"
class=
"tree-tab-chapter"
style=
"width: 100%;margin-bottom: 20px;"
row-key=
"PaperId"
ref=
"examPaperTab"
class=
"tree-tab-chapter"
style=
"width: 100%;margin-bottom: 20px;"
row-key=
"PaperId"
ref=
"examPaperTab"
@
row-click=
"rowsClick"
:tree-props=
"
{ children: 'ChildList', hasChildren: 'hasChildren' }">
@
row-click=
"rowsClick"
:tree-props=
"
{ children: 'ChildList', hasChildren: 'hasChildren' }">
<el-table-column
prop=
"PaperName"
label=
"文件夹/试卷"
width=
"4
5
0"
>
<el-table-column
prop=
"PaperName"
label=
"文件夹/试卷"
width=
"4
0
0"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
PaperName
}}
<div
class=
"Exam_PaperName"
>
{{
scope
.
row
.
PaperName
}}
<i
v-if=
"scope.row.PaperType==1"
title=
"文件夹"
class=
"iconfont icon-wenjianjia"
></i>
<i
v-if=
"scope.row.PaperType==2"
title=
"试卷"
class=
"iconfont icon-icon-test1"
></i>
<q-tooltip
v-if=
"scope.row.PaperName.length>10"
:offset=
"[10, 10]"
>
{{
scope
.
row
.
PaperName
}}
</q-tooltip>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"QuestionCount"
label=
"题量"
width=
"100"
>
<el-table-column
prop=
"QuestionCount"
label=
"题量"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.PaperType==1"
>
<template
v-if=
"scope.row.PaperType==1"
>
---
---
...
@@ -59,7 +88,7 @@
...
@@ -59,7 +88,7 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"DifficultyTypeName"
label=
"难度"
width=
"200"
>
<el-table-column
prop=
"DifficultyTypeName"
label=
"难度"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.PaperType==1"
>
<template
v-if=
"scope.row.PaperType==1"
>
---
---
...
@@ -69,7 +98,7 @@
...
@@ -69,7 +98,7 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"PublishCount"
label=
"发放次数"
width=
"200"
>
<el-table-column
prop=
"PublishCount"
label=
"发放次数"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.PaperType==1"
>
<template
v-if=
"scope.row.PaperType==1"
>
---
---
...
@@ -79,12 +108,12 @@
...
@@ -79,12 +108,12 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"CreateByName"
label=
"创建人"
width=
"200"
>
<el-table-column
prop=
"CreateByName"
label=
"创建人"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
CreateByName
}}
{{
scope
.
row
.
CreateByName
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"CreateTimeStr"
label=
"创建时间"
width=
"200"
>
<el-table-column
prop=
"CreateTimeStr"
label=
"创建时间"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
CreateTimeStr
}}
{{
scope
.
row
.
CreateTimeStr
}}
</
template
>
</
template
>
...
@@ -175,8 +204,12 @@
...
@@ -175,8 +204,12 @@
},
},
//点击编辑 跳转
//点击编辑 跳转
goExameEdit
(
item
)
{
goExameEdit
(
item
)
{
let
PaperId
=
0
;
if
(
item
){
PaperId
=
item
.
PaperId
}
this
.
OpenNewUrl
(
'/exam/examEdit'
,
{
this
.
OpenNewUrl
(
'/exam/examEdit'
,
{
Id
:
item
.
PaperId
Id
:
PaperId
})
})
},
},
//新增修改文件夹
//新增修改文件夹
...
...
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