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
6269570a
Commit
6269570a
authored
Aug 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
c5325aab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
160 deletions
+87
-160
exampublishlist.vue
src/components/exam/exampublishlist.vue
+69
-9
ExamManage.vue
src/pages/course/ExamManage.vue
+9
-76
examlist.vue
src/pages/exam/examlist.vue
+9
-75
No files found.
src/components/exam/exam
-form
.vue
→
src/components/exam/exam
publishlist
.vue
View file @
6269570a
<
style
>
.examForm
.q-table__bottom
{
min-height
:
10px
;
}
.examForm
.q-table__bottom
{
min-height
:
10px
;
}
</
style
>
<
template
>
<div
class=
"page-content examForm"
>
...
...
@@ -49,6 +50,10 @@
</div>
</template>
<
script
>
import
{
submitExamApply
,
deletePublishExam
}
from
"../../api/teacher/index"
;
export
default
{
meta
:
{
title
:
"考试管理"
...
...
@@ -59,7 +64,7 @@
default
:
null
},
loading
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
null
}
},
...
...
@@ -124,12 +129,67 @@
},
}
},
created
()
{
},
mounted
()
{
},
created
()
{},
mounted
()
{},
methods
:
{
//删除考卷
deleteExamPublish
(
item
)
{
var
delMsg
=
{
Id
:
item
.
Id
};
var
tipMsg
=
"是否要删除【"
+
item
.
PaperName
+
"】试卷?删除后将无法恢复!"
;
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
tipMsg
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
deletePublishExam
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
$emit
(
'success'
);
}
});
})
},
//提交申请
submitExamAudit
(
item
)
{
var
msg
=
{
Id
:
item
.
Id
};
submitExamApply
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
$emit
(
'success'
);
}
})
},
//修改考试相关
publishExam
(
item
)
{
this
.
OpenNewUrl
(
"/exam/paperPublish"
,
{
Id
:
item
.
Id
,
});
},
//查看考生列表
seeExamineeList
(
item
)
{
this
.
OpenNewUrl
(
"/exam/examineeManager"
,
{
Id
:
item
.
Id
,
});
},
}
}
...
...
src/pages/course/ExamManage.vue
View file @
6269570a
<
style
>
</
style
>
<!--
试卷库
管理-->
<!--
考试
管理-->
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
...
...
@@ -14,27 +14,24 @@
<div
class=
"page-option"
></div>
</div>
<div
class=
"page-content"
>
<examForm
:dataList=
"dataList"
:loading=
"loading"
></examForm>
<exampublishlist
:dataList=
"dataList"
:loading=
"loading"
@
close=
"closeExamPublishForm"
@
success=
"refreshPage"
>
</exampublishlist>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</div>
</div>
</
template
>
<
script
>
import
{
queryPublishExamPage
,
submitExamApply
,
deletePublishExam
}
from
"../../api/teacher/index"
;
//获取校区列表
import
examForm
from
"../../components/exam/exam-form"
import
exampublishlist
from
"../../components/exam/exampublishlist"
export
default
{
components
:
{
examForm
exampublishlist
},
meta
:
{
title
:
"考
卷
管理"
,
title
:
"考
试
管理"
,
},
data
()
{
return
{
...
...
@@ -48,9 +45,6 @@
pageCount
:
0
,
loading
:
false
,
dataList
:
[],
expandKeys
:
[],
isShowExamFolder
:
false
,
//是否显示新增文件夹
examObj
:
{},
//弹窗对象
};
},
created
()
{},
...
...
@@ -58,67 +52,6 @@
this
.
getList
();
},
methods
:
{
//删除考卷
deleteExamPublish
(
item
)
{
var
delMsg
=
{
Id
:
item
.
Id
};
var
tipMsg
=
"是否要删除【"
+
item
.
PaperName
+
"】试卷?删除后将无法恢复!"
;
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
tipMsg
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
deletePublishExam
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
refreshPage
();
}
});
})
},
submitExamAudit
(
item
)
{
var
msg
=
{
Id
:
item
.
Id
};
submitExamApply
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
refreshPage
();
}
})
},
//修改考试相关
publishExam
(
item
)
{
this
.
OpenNewUrl
(
"/exam/paperPublish"
,
{
Id
:
item
.
Id
,
});
},
//创建试卷
CreatePaper
()
{
this
.
OpenNewUrl
(
"/exam/paperCreate"
,
{});
},
//查看考生列表
seeExamineeList
(
item
)
{
this
.
OpenNewUrl
(
"/exam/examineeManager"
,
{
Id
:
item
.
Id
,
});
},
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
...
...
@@ -143,8 +76,8 @@
this
.
getList
();
},
//关闭弹窗
closeExamForm
()
{
this
.
isShowExamFolder
=
false
;
closeExam
Publish
Form
()
{
},
},
};
...
...
src/pages/exam/examlist.vue
View file @
6269570a
<
style
>
</
style
>
<!--
试卷库
管理-->
<!--
考试
管理-->
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
...
...
@@ -14,7 +14,8 @@
<div
class=
"page-option"
></div>
</div>
<div
class=
"page-content"
>
<examForm
:dataList=
"dataList"
:loading=
"loading"
></examForm>
<exampublishlist
:dataList=
"dataList"
:loading=
"loading"
@
close=
"closeExamPublishForm"
@
success=
"refreshPage"
>
</exampublishlist>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</div>
...
...
@@ -23,17 +24,14 @@
<
script
>
import
{
queryPublishExamPage
,
submitExamApply
,
deletePublishExam
}
from
"../../api/teacher/index"
;
//获取校区列表
import
examForm
from
"../../components/exam/exam-form"
import
exampublishlist
from
"../../components/exam/exampublishlist"
export
default
{
components
:
{
examForm
exampublishlist
},
meta
:
{
title
:
"考
卷
管理"
,
title
:
"考
试
管理"
,
},
data
()
{
return
{
...
...
@@ -47,9 +45,6 @@
pageCount
:
0
,
loading
:
false
,
dataList
:
[],
expandKeys
:
[],
isShowExamFolder
:
false
,
//是否显示新增文件夹
examObj
:
{},
//弹窗对象
};
},
created
()
{},
...
...
@@ -57,67 +52,6 @@
this
.
getList
();
},
methods
:
{
//删除考卷
deleteExamPublish
(
item
)
{
var
delMsg
=
{
Id
:
item
.
Id
};
var
tipMsg
=
"是否要删除【"
+
item
.
PaperName
+
"】试卷?删除后将无法恢复!"
;
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
tipMsg
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
deletePublishExam
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
refreshPage
();
}
});
})
},
submitExamAudit
(
item
)
{
var
msg
=
{
Id
:
item
.
Id
};
submitExamApply
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功!'
,
position
:
'top'
})
this
.
refreshPage
();
}
})
},
//修改考试相关
publishExam
(
item
)
{
this
.
OpenNewUrl
(
"/exam/paperPublish"
,
{
Id
:
item
.
Id
,
});
},
//创建试卷
CreatePaper
()
{
this
.
OpenNewUrl
(
"/exam/paperCreate"
,
{});
},
//查看考生列表
seeExamineeList
(
item
)
{
this
.
OpenNewUrl
(
"/exam/examineeManager"
,
{
Id
:
item
.
Id
,
});
},
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
...
...
@@ -142,8 +76,8 @@
this
.
getList
();
},
//关闭弹窗
closeExamForm
()
{
this
.
isShowExamFolder
=
false
;
closeExam
Publish
Form
()
{
},
},
};
...
...
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