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
c73e753d
Commit
c73e753d
authored
Aug 11, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f57dae51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
123 additions
and
16 deletions
+123
-16
index.js
src/api/teacher/index.js
+12
-0
paperfolder-form.vue
src/components/exam/paperfolder-form.vue
+90
-0
examManagement.vue
src/pages/exam/examManagement.vue
+21
-16
No files found.
src/api/teacher/index.js
View file @
c73e753d
...
...
@@ -153,4 +153,16 @@ export function savePaperInfo(data) {
method
:
'post'
,
data
})
}
/**
* 新增修改文件夹
* @param {JSON参数} data
*/
export
function
savePaperFolderInfo
(
data
)
{
return
request
({
url
:
'/Exam/SetPaperFolder'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/exam/paperfolder-form.vue
0 → 100644
View file @
c73e753d
<
template
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 800px;max-width:900px;"
>
<q-card-section>
<div
class=
"text-h6"
>
{{
objOption
.
PaperId
==
0
?
'新增文件夹'
:
'修改文件夹名称'
}}
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"text-caption q-mb-md q-px-xs text-grey-6"
>
基本资料
</div>
<div
class=
"row wrap"
>
<q-input
filled
stack-label
maxlength=
"50"
:dense=
"false"
v-model=
"objOption.PaperName"
ref=
"PaperName"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"文件夹名称"
:rules=
"[val => !!val || '请填写文件夹名称']"
/>
</div>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeSaveForm"
/>
<q-btn
label=
"立即提交"
color=
"accent"
class=
"q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveLoading"
@
click=
"setPaperFolderInfo"
/>
</q-card-actions>
</q-card>
</q-dialog>
</
template
>
<
script
>
import
{
GetPaper
,
savePaperFolderInfo
}
from
'../../api/teacher/index'
export
default
{
props
:
{
saveObj
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
persistent
:
true
,
objOption
:
{
PaperId
:
0
,
PaperName
:
''
,
//文件夹名称
PaperType
:
1
,
//试卷类型(1-文件夹,2-试卷)
ParentId
:
0
,
//上级文件夹编号
},
}
},
created
()
{
},
mounted
()
{
this
.
initObj
()
},
methods
:
{
initObj
()
{
if
(
this
.
saveObj
)
{
this
.
optionTitle
=
"修改助教信息"
this
.
objOption
.
PaperId
=
this
.
saveObj
.
PaperId
;
this
.
objOption
.
PaperName
=
this
.
saveObj
.
PaperName
;
this
.
objOption
.
PaperType
=
this
.
saveObj
.
PaperType
;
this
.
objOption
.
ParentId
=
this
.
saveObj
.
ParentId
;
}
else
{
this
.
optionTitle
=
"新增助教"
}
},
closeSaveForm
()
{
this
.
$emit
(
'close'
)
this
.
persistent
=
false
},
setPaperFolderInfo
()
{
this
.
saveLoading
=
true
savePaperFolderInfo
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveLoading
=
false
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据保存成功!'
,
position
:
'top'
})
this
.
$emit
(
"success"
)
this
.
closeSaveForm
()
}).
catch
(()
=>
{
this
.
saveLoading
=
false
})
},
},
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/pages/exam/examManagement.vue
View file @
c73e753d
...
...
@@ -30,7 +30,6 @@
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
change=
"getList"
clearable
filled
v-model=
"msg.PaperName"
@
clear=
"getList"
maxlength=
"20"
label=
"输入试卷名称、组卷人查找"
/>
...
...
@@ -68,11 +67,15 @@
</div>
</template>
<
script
>
import
paperfolderForm
from
'../../components/exam/paperfolder-form'
import
{
GetPaperPage
}
from
'../../api/teacher/index'
;
//获取校区列表
export
default
{
components
:
{
paperfolderForm
},
meta
:
{
title
:
"考试管理"
},
...
...
@@ -98,26 +101,30 @@
Name
:
'质量管理与可靠性'
}],
dataList
:
[],
columns
:
[
// {
// name: 'PaperId',
// label: '序号',
// field: 'PaperId',
// align: 'left',
// },
{
columns
:
[{
name
:
'PaperName'
,
label
:
'试卷名称'
,
field
:
'PaperName'
,
align
:
'left'
},
{
name
:
'CreateTimeStr'
,
label
:
'创建时间'
,
field
:
'CreateTimeStr'
,
name
:
'QuestionCount'
,
label
:
'题量'
,
field
:
'QuestionCount'
,
align
:
'left'
},
{
name
:
'DifficultyTypeName'
,
label
:
'难度'
,
field
:
'DifficultyTypeName'
,
align
:
'left'
},
{
name
:
'PublishCount'
,
label
:
'发放次数'
,
field
:
'PublishCount'
,
align
:
'left'
},
{
name
:
'CreateByName'
,
label
:
'创建人'
,
...
...
@@ -139,8 +146,7 @@
methods
:
{
//创建试卷
CreatePaper
()
{
this
.
OpenNewUrl
(
'/exam/examCreate'
,
{
})
this
.
OpenNewUrl
(
'/exam/examCreate'
,
{})
},
//翻页
changePage
(
val
)
{
...
...
@@ -165,7 +171,6 @@
},
//点击编辑 跳转
goExameEdit
(
item
)
{
console
.
log
(
"item"
,
item
);
this
.
OpenNewUrl
(
'/exam/examEdit'
,
{
Id
:
item
.
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