Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
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
张伯涛
tea-resources-web
Commits
0d2b602c
Commit
0d2b602c
authored
Mar 28, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/1.0' into 1.0
parents
b9a969b6
6a1992d9
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
496 additions
and
263 deletions
+496
-263
teaExamExaminationPaper.js
src/api/examination/teaExamExaminationPaper.js
+68
-0
teaExamQuestions.js
src/api/examination/teaExamQuestions.js
+68
-0
index.vue
src/views/contentManagement/centralCase/index.vue
+1
-0
index.vue
src/views/contentManagement/centralCase/info/index.vue
+1
-0
index.vue
src/views/contentManagement/competitionSupport/index.vue
+1
-1
index.vue
src/views/contentManagement/newsInformation/info/index.vue
+5
-2
index.vue
src/views/courseInformation/courseManagement/index.vue
+9
-3
examinationPaper.vue
...rseInformation/examinationManagement/examinationPaper.vue
+281
-212
index.vue
src/views/courseInformation/examinationManagement/index.vue
+18
-3
questionManagement.vue
...eInformation/examinationManagement/questionManagement.vue
+32
-33
index.vue
src/views/courseInformation/feedback/index.vue
+2
-2
index.vue
src/views/courseInformation/lecturerManagement/index.vue
+10
-7
No files found.
src/api/examination/teaExamExaminationPaper.js
0 → 100644
View file @
0d2b602c
import
request
from
'@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询试卷表列表
export
function
listTeaExamExaminationPaper
(
query
)
{
return
request
({
url
:
'/teaexamexaminationpaper/queryTeaExamExaminationPaperByPagination'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询试卷表详细信息
export
function
getTeaExamExaminationPaper
(
businessId
)
{
return
request
({
url
:
'/teaexamexaminationpaper/detail/'
+
businessId
,
method
:
'get'
})
}
// 3. 新增试卷表
export
function
addTeaExamExaminationPaper
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/teaexamexaminationpaper/add'
,
method
:
'post'
,
data
:
data
})
}
// 4. 修改试卷表
export
function
updateTeaExamExaminationPaper
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/teaexamexaminationpaper/update/'
+
businessId
,
method
:
'put'
,
data
})
}
// 5. 逻辑删除试卷表
export
function
delTeaExamExaminationPaper
(
businessId
)
{
return
request
({
url
:
'/teaexamexaminationpaper/deleteLogical/'
+
businessId
,
method
:
'delete'
})
}
// 6. 导出试卷表
export
function
exportTeaExamExaminationPaper
(
query
)
{
return
request
({
url
:
'/teaexamexaminationpaper/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
src/api/examination/teaExamQuestions.js
0 → 100644
View file @
0d2b602c
import
request
from
'@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询试题表列表
export
function
listTeaExamQuestions
(
query
)
{
return
request
({
url
:
'/teaexamquestions/queryTeaExamQuestionsByPagination'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询试题表详细信息
export
function
getTeaExamQuestions
(
businessId
)
{
return
request
({
url
:
'/teaexamquestions/detail/'
+
businessId
,
method
:
'get'
})
}
// 3. 新增试题表
export
function
addTeaExamQuestions
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/teaexamquestions/add'
,
method
:
'post'
,
data
:
data
})
}
// 4. 修改试题表
export
function
updateTeaExamQuestions
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/teaexamquestions/update/'
+
businessId
,
method
:
'put'
,
data
})
}
// 5. 逻辑删除试题表
export
function
delTeaExamQuestions
(
businessId
)
{
return
request
({
url
:
'/teaexamquestions/deleteLogical/'
+
businessId
,
method
:
'delete'
})
}
// 6. 导出试题表
export
function
exportTeaExamQuestions
(
query
)
{
return
request
({
url
:
'/teaexamquestions/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
src/views/contentManagement/centralCase/index.vue
View file @
0d2b602c
...
...
@@ -248,6 +248,7 @@ export default {
res
.
rows
.
forEach
(
item
=>
{
item
.
srclist
=
[]
item
.
srclist
.
push
(
this
.
imagePath
+
item
.
path
)
console
.
log
(
item
.
srclist
)
})
_this
.
tableData
=
res
.
rows
_this
.
fullscreenLoading
=
false
...
...
src/views/contentManagement/centralCase/info/index.vue
View file @
0d2b602c
...
...
@@ -272,6 +272,7 @@ export default {
})
}
else
{
// 新增
form
.
flag
=
'1'
addCmsProject
(
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
...
...
src/views/contentManagement/competitionSupport/index.vue
View file @
0d2b602c
...
...
@@ -55,7 +55,7 @@
<div
style=
"padding:5px 10px"
>
<el-table
class=
"table"
v-loading=
"loading"
border
:data=
"cmsContestList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"60"
align=
"center"
/>
<el-table-column
label=
"封面"
prop=
"contestPicture"
:show-overflow-tooltip=
"true"
width=
"150"
>
<el-table-column
label=
"封面"
prop=
"contestPicture"
width=
"150"
>
<template
slot-scope=
"scope"
>
<div
:id=
"step(scope.$index)"
class=
"img"
>
<el-image
@
click=
"handleClickStop(scope.$index)"
style=
"width:100px;height:100%;"
:src=
"imagePath+scope.row.url"
:preview-src-list=
"[imagePath+scope.row.url]"
/>
...
...
src/views/contentManagement/newsInformation/info/index.vue
View file @
0d2b602c
...
...
@@ -98,9 +98,11 @@
</el-row>
<el-row>
<el-col
:span=
"18"
>
<el-col
:span=
"18"
>
<el-form-item
label=
"新闻内容:"
prop=
"remarks"
>
<div
class=
"ql-editor"
>
<vue-editor
id=
"editorsay"
v-model=
"form.details"
:editor-toolbar=
"customToolbar"
@
image-added=
"handleImageAdded"
/>
</div>
</el-form-item>
</el-col>
...
...
@@ -314,6 +316,7 @@ export default {
})
}
else
{
// 新增
form
.
flag
=
'1'
addSysContentNewsInformation
(
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
...
...
src/views/courseInformation/courseManagement/index.vue
View file @
0d2b602c
...
...
@@ -280,7 +280,7 @@
:class=
"commonField.updateClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"handleExamination(scope.
$index
)"
@
click=
"handleExamination(scope.
row
)"
>
考试管理
</el-button>
<el-button
:class=
"commonField.updateClass"
...
...
@@ -622,6 +622,7 @@ export default {
obj
.
id
=
i
+
1
obj
.
tcode
=
pages
[
i
].
code
obj
.
tlessonName
=
pages
[
i
].
lessonName
obj
.
bussinessId
=
pages
[
i
].
businessId
obj
.
tname
=
pages
[
i
].
name
obj
.
tsex
=
(
pages
[
i
].
sex
==
'1'
)
?
'女'
:
'男'
obj
.
imageSrc
=
pages
[
i
].
defaultUrl
?
pages
[
i
].
defaultUrl
:
require
(
'@/assets/image/test.png'
)
...
...
@@ -762,9 +763,14 @@ export default {
}
},
// 跳转考试管理
handleExamination
(
index
)
{
handleExamination
(
data
)
{
console
.
log
(
'data'
,
data
)
this
.
$router
.
push
({
path
:
'/courseInformation/examinationManagement/index'
path
:
'/courseInformation/examinationManagement/index'
,
query
:
{
bussinessId
:
data
.
bussinessId
,
name
:
data
.
tlessonName
}
})
},
// 下载模板
...
...
src/views/courseInformation/examinationManagement/examinationPaper.vue
View file @
0d2b602c
This diff is collapsed.
Click to expand it.
src/views/courseInformation/examinationManagement/index.vue
View file @
0d2b602c
...
...
@@ -2,9 +2,9 @@
<
template
>
<div
class=
"app-container"
>
<!-- 标题-->
<div
class=
"examinationTitle"
>
大数据平台核心技术
</div>
<div
class=
"examinationTitle"
>
{{
name
}}
</div>
<el-tabs
v-model=
"activeName"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"tabClick"
>
<el-tab-pane
label=
"试题管理"
name=
"ExaminationPaper"
/>
<el-tab-pane
label=
"试卷管理"
name=
"QuestionManagement"
/>
</el-tabs>
...
...
@@ -23,14 +23,29 @@ export default {
ExaminationPaper
,
QuestionManagement
},
// 向子组件QuestionManagement传递参数bussinessId
data
()
{
return
{
activeName
:
'ExaminationPaper'
// 标签默认选中
activeName
:
'ExaminationPaper'
,
// 标签默认选中
bussinessId
:
''
,
// 业务id
name
:
''
// 课程名称
}
},
created
()
{
// 接受路由传递的参数
this
.
bussinessId
=
this
.
$route
.
query
.
bussinessId
this
.
name
=
this
.
$route
.
query
.
name
console
.
log
(
this
.
bussinessId
,
this
.
name
)
},
methods
:
{
tabClick
()
{
// 在tab切换时更新bussinessId
if
(
this
.
activeName
===
'ExaminationPaper'
)
{
this
.
bussinessId
=
'123'
// 传递给ExaminationPaper组件的业务id值
}
else
if
(
this
.
activeName
===
'QuestionManagement'
)
{
this
.
bussinessId
=
'456'
// 传递给QuestionManagement组件的业务id值
}
}
}
}
</
script
>
...
...
src/views/courseInformation/examinationManagement/questionManagement.vue
View file @
0d2b602c
...
...
@@ -6,7 +6,7 @@
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"填写人"
>
<el-input
v-model=
"queryParams.
unit
"
placeholder=
"请输入填写人"
clearable
/>
<el-input
v-model=
"queryParams.
answerName
"
placeholder=
"请输入填写人"
clearable
/>
</el-form-item>
<!-- 状态-->
<el-form-item
label=
"状态"
>
...
...
@@ -56,17 +56,17 @@
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"
student
Name"
label=
"填写人"
show-overflow-tooltip
/>
<el-table-column
prop=
"
examDat
e"
label=
"填写时间"
/>
<el-table-column
prop=
"
status
"
label=
"状态"
>
<el-table-column
prop=
"
answer
Name"
label=
"填写人"
show-overflow-tooltip
/>
<el-table-column
prop=
"
fillingTim
e"
label=
"填写时间"
/>
<el-table-column
prop=
"
flag
"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
{{
statusChange
(
scope
.
row
.
status
)
}}
{{
statusChange
(
scope
.
row
.
flag
)
}}
</
template
>
</el-table-column>
<!-- 得分-->
<el-table-column
prop=
"score"
label=
"得分"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.
status === '1
'"
>
{{
scope
.
row
.
score
}}
</span>
<span
v-if=
"scope.row.
flag === '0
'"
>
{{
scope
.
row
.
score
}}
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
...
...
@@ -163,6 +163,7 @@
import
commonField
from
'@/utils/commonField'
import
{
updateProjectStatus
,
delCmsProject
,
listCmsProject
}
from
'@/api/contentManagement/cmsProject'
import
{
parseTime
}
from
'@/utils'
import
{
listTeaExamExaminationPaper
}
from
'@/api/examination/teaExamExaminationPaper'
export
default
{
name
:
'QuestionManagement'
,
data
()
{
...
...
@@ -353,33 +354,31 @@ export default {
return
'困难'
}
},
// loadData() {
// // 列表渲染数据
// var data = []
// const _this = this
// this.tableData = []
// _this.fullscreenLoading = true
// const params = {
// page: _this.queryParams.page,
// rows: _this.queryParams.rows,
// title: _this.queryParams.title,
// unit: _this.queryParams.unit
// }
// listCmsProject(params).then(res => {
// var pages = res.rows// 查询过来的每页数据
// _this.total = res.total// 总记录数
// _this.bussid = []
// res.rows.forEach(item => {
// item.srclist = []
// item.srclist.push(item.path)
// })
// _this.tableData = res.rows
// _this.fullscreenLoading = false
// if (res.rows.length === 0) {
// _this.tableDataTips = '暂无数据'
// }
// })
// },
loadData
()
{
// 列表渲染数据
var
data
=
[]
const
_this
=
this
this
.
tableData
=
[]
_this
.
fullscreenLoading
=
true
const
params
=
{
page
:
_this
.
queryParams
.
page
,
rows
:
_this
.
queryParams
.
rows
}
listTeaExamExaminationPaper
(
params
).
then
(
res
=>
{
var
pages
=
res
.
rows
// 查询过来的每页数据
_this
.
total
=
res
.
total
// 总记录数
_this
.
bussid
=
[]
res
.
rows
.
forEach
(
item
=>
{
item
.
srclist
=
[]
item
.
srclist
.
push
(
item
.
path
)
})
_this
.
tableData
=
res
.
rows
_this
.
fullscreenLoading
=
false
if
(
res
.
rows
.
length
===
0
)
{
_this
.
tableDataTips
=
'暂无数据'
}
})
},
// 修改状态
// handleStatusChange(row) {
// const text = row.flag === '1' ? '启用' : '停用'
...
...
src/views/courseInformation/feedback/index.vue
View file @
0d2b602c
...
...
@@ -110,7 +110,7 @@
<!-- <span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
20
0px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
13
0px"
>
<
template
slot-scope=
"scope"
>
<el-button
:class=
"commonField.updateClass"
...
...
src/views/courseInformation/lecturerManagement/index.vue
View file @
0d2b602c
...
...
@@ -51,13 +51,11 @@
<div
class=
"mb12 font-small-bold"
>
讲师信息表列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"cmsLecturerList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"头像"
prop=
"avatarId"
:show-overflow-tooltip=
"true"
width=
"150"
>
<el-table-column
label=
"头像"
prop=
"avatarId"
width=
"150"
>
<template
slot-scope=
"scope"
>
<div
:id=
"step(scope.$index)"
class=
"img"
>
<!--
<el-image
@
click=
"handleClickStop(scope.$index)"
style=
"width:100px;height:100%;"
:src=
"imagePath+scope.row.avatarUrl"
:preview-src-list=
"[imagePath+scope.row.avatarUrl]"
/>
-->
<el-avatar
fit=
"fill"
:size=
"30"
:src=
"imagePath+scope.row.avatarUrl"
></el-avatar>
<el-image
@
click=
"handleClickStop(scope.$index)"
fit=
"fill"
class=
"self-avatar"
:src=
"imagePath+scope.row.avatarUrl"
:preview-src-list=
"[imagePath+scope.row.avatarUrl]"
/>
</div>
</
template
>
</el-table-column>
...
...
@@ -97,7 +95,7 @@
<!-- <span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"1
7
0px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"1
3
0px"
>
<
template
slot-scope=
"scope"
>
<el-button
:class=
"commonField.updateClass"
...
...
@@ -125,7 +123,7 @@
@
pagination=
"getList"
/>
<!-- 添加或修改讲师信息表配置对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"7
0
0px"
append-to-body
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"7
5
0px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"90px"
>
<el-form-item
label=
"姓名"
prop=
"name"
>
<el-input
v-model
.
trim=
"form.name"
placeholder=
"请输入讲师姓名"
/>
...
...
@@ -447,7 +445,11 @@ export default {
//margin: 10px;
//text-align: center!important;
}
.self-avatar
{
width
:
30px
;
height
:
30px
;
border-radius
:
50%
;
}
.placeholder
{
height
:
1
.3vh
;
...
...
@@ -483,4 +485,5 @@ export default {
height
:
178px
;
display
:
block
;
}
</
style
>
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