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
7781e98d
Commit
7781e98d
authored
Oct 14, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建一些页面
parent
f2a11095
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
710 additions
and
0 deletions
+710
-0
index.js
src/api/system/index.js
+30
-0
contribution.js
src/api/teacher/contribution.js
+31
-0
platformdeploy.vue
src/pages/system/platformdeploy.vue
+330
-0
addimageText.vue
src/pages/teacher/contribution/addimageText.vue
+31
-0
imageTextlist.vue
src/pages/teacher/contribution/imageTextlist.vue
+44
-0
materialList.vue
src/pages/teacher/contribution/materialList.vue
+0
-0
tgGroupingManage.vue
src/pages/teacher/contribution/tgGroupingManage.vue
+218
-0
routes.js
src/router/routes.js
+26
-0
No files found.
src/api/system/index.js
View file @
7781e98d
...
...
@@ -412,4 +412,34 @@ export function GetClassPlanStatistical(data) {
data
});
}
/**
* 获取各平台枚举列表
*/
export
function
getContributeConfigTypeEnumList
(
data
)
{
return
request
({
url
:
'/QYContribute/GetContributeConfigTypeEnumList'
,
method
:
'post'
,
data
});
}
/**
* 获取平台配置信息
*/
export
function
getContributeConfigInfo
(
data
)
{
return
request
({
url
:
'/QYContribute/GetContributeConfigInfo'
,
method
:
'post'
,
data
});
}
/**
* 保存平台配置
*/
export
function
setContributeConfigInfo
(
data
)
{
return
request
({
url
:
'/QYContribute/SetContributeConfigInfo'
,
method
:
'post'
,
data
});
}
src/api/teacher/contribution.js
0 → 100644
View file @
7781e98d
import
request
from
'../../utils/request'
/**
* 获取课程分页列表
* @param {JSON参数} data
*/
// 获取素材分组分页列表
export
function
getContributeMediumGroupPageList
(
data
)
{
return
request
({
url
:
'/QYContribute/GetContributeMediumGroupPageList'
,
method
:
'post'
,
data
})
}
// 新增修改素材分组
export
function
setContributeMediumGroup
(
data
)
{
return
request
({
url
:
'/QYContribute/SetContributeMediumGroup'
,
method
:
'post'
,
data
})
}
// 删除素材分组
export
function
delContributeMediumGroup
(
data
)
{
return
request
({
url
:
'/QYContribute/DelContributeMediumGroup'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/pages/system/platformdeploy.vue
0 → 100644
View file @
7781e98d
This diff is collapsed.
Click to expand it.
src/pages/teacher/contribution/addimageText.vue
0 → 100644
View file @
7781e98d
<
template
>
<div
class=
"page-body"
>
124
</div>
</
template
>
<
script
>
export
default
{
meta
:
{
title
:
"新增/修改图文"
},
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
src/pages/teacher/contribution/imageTextlist.vue
0 → 100644
View file @
7781e98d
<
template
>
<div
class=
"page-body"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增素材"
@
click=
"addimgtext(null)"
/>
</div>
</
template
>
<
script
>
import
{
}
from
'../../../api/teacher/contribution'
;
export
default
{
meta
:
{
title
:
"图文管理"
},
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
rowsPerPage
:
15
,
Name
:
""
,
//系列名称
},
}
},
mounted
()
{
},
methods
:
{
addimgtext
(){
this
.
$router
.
push
({
path
:
'/teacher/contribution/addimageText'
,
});
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
src/pages/teacher/contribution/materialList.vue
0 → 100644
View file @
7781e98d
src/pages/teacher/contribution/tgGroupingManage.vue
0 → 100644
View file @
7781e98d
<
template
>
<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
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
label=
"分组名称"
@
clear=
"resetSearch"
maxlength=
"20"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
>
<template
v-slot:top=
"props"
>
<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"
label=
"新增分组"
@
click=
"EditCategory(null)"
/>
</div>
</
template
>
<
template
v-slot:body-cell-CateId=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditCategory(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400;"
label=
"删除"
@
click=
"deleteCategory(props.row)"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"msg.PageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
</div>
<q-dialog
v-model=
"isShow"
persistent
>
<q-card
style=
"width: 520px; max-width: 80vw;"
>
<q-card-section>
<div
class=
"text-h6"
>
新增分组
</div>
</q-card-section>
<q-separator
/>
<q-card-section
class=
"q-pt-none"
style=
"margin-top: 15px;padding: 20px;"
>
<q-input
filled
clearable
standout=
"bg-primary text-white"
v-model=
"addMsg.Name"
label=
"分组名称"
:rules=
"[val => !!val || '请输入分组名称']"
ref=
"Name"
/>
<q-input
filled
clearable
standout=
"bg-primary text-white"
v-model=
"addMsg.Sort"
label=
"分组排序"
style=
"margin-top: 20px;"
:rules=
"[val => !!val || '请输入分组排序']"
ref=
"Sort"
/>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"isShow = false"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"确定"
@
click=
"submit()"
/>
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<
script
>
import
{
getContributeMediumGroupPageList
,
setContributeMediumGroup
,
delContributeMediumGroup
}
from
'../../../api/teacher/contribution'
;
const
addobj
=
{
Id
:
0
,
Name
:
''
,
Sort
:
1
}
export
default
{
meta
:
{
title
:
"分组管理"
},
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
rowsPerPage
:
15
,
Name
:
""
,
//系列名称
},
currentUrl
:
""
,
dataList
:
[],
keyWords
:
''
,
isShow
:
false
,
loading
:
true
,
columns
:
[{
name
:
'Id'
,
label
:
'ID'
,
field
:
'Id'
,
align
:
'left'
},
{
name
:
'Sort'
,
label
:
'排序'
,
field
:
'Sort'
,
align
:
'left'
},
{
name
:
'Name'
,
label
:
'分组名称'
,
field
:
'Name'
,
align
:
'center'
},
{
name
:
'UpdateByName'
,
label
:
'创建人'
,
field
:
'UpdateByName'
,
align
:
'center'
},
{
name
:
'UpdateTime'
,
label
:
'创建时间'
,
field
:
'UpdateTime'
,
align
:
'center'
},
{
name
:
'CateId'
,
label
:
'操作'
,
field
:
'CateId'
}
],
addMsg
:
Object
.
assign
({},
addobj
)
}
},
mounted
()
{
this
.
getcategorypage
()
},
methods
:
{
//重新查询
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getcategorypage
();
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getcategorypage
()
},
//删除系列
deleteCategory
(
item
)
{
let
delMsg
=
{
MediumId
:
item
.
Id
,
};
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
'是否确定删除该分组?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
delContributeMediumGroup
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'删除成功!'
,
position
:
'top'
})
this
.
getcategorypage
();
}
})
}).
onCancel
(()
=>
{
});
},
//刷新页面
refreshPage
()
{
this
.
getcategorypage
();
},
//获取课程系列分页列表
getcategorypage
()
{
this
.
loading
=
true
;
getContributeMediumGroupPageList
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
msg
.
PageCount
=
res
.
Data
.
PageCount
})
},
//新增修改课程系列
EditCategory
(
obj
)
{
if
(
obj
)
{
this
.
addMsg
.
Id
=
obj
.
Id
this
.
addMsg
.
Name
=
obj
.
Name
this
.
addMsg
.
Sort
=
obj
.
Sort
}
else
{
this
.
addMsg
=
Object
.
assign
({},
addobj
)
}
this
.
isShow
=
true
;
},
submit
()
{
this
.
$refs
.
Name
.
validate
();
this
.
$refs
.
Sort
.
validate
();
if
(
!
this
.
$refs
.
Name
.
hasError
&&
!
this
.
$refs
.
Sort
.
hasError
)
{
setContributeMediumGroup
(
this
.
addMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据保存成功!'
,
position
:
'top'
})
this
.
resetSearch
()
this
.
isShow
=
false
;
}
})
}
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
src/router/routes.js
View file @
7781e98d
...
...
@@ -188,6 +188,11 @@ const routes = [{
component
:
()
=>
import
(
"pages/system/receiptManage.vue"
)
},
{
path
:
"/system/platformdeploy"
,
//平台配置
component
:
()
=>
import
(
"pages/system/platformdeploy.vue"
)
},
{
path
:
"/course/catagory"
,
//课程分类
component
:
()
=>
...
...
@@ -1209,6 +1214,27 @@ const routes = [{
component
:
()
=>
import
(
"pages/teacher/teacherSchedule"
)
},
{
path
:
"/teacher/contribution/materialList"
,
//投稿设置 素材管理
component
:
()
=>
import
(
"pages/teacher/contribution/materialList"
)
},
{
path
:
"/teacher/contribution/tgGroupingManage"
,
//投稿设置 分组管理
component
:
()
=>
import
(
"pages/teacher/contribution/tgGroupingManage"
)
},
{
path
:
"/teacher/contribution/imageTextlist"
,
//投稿设置 素材图文管理
component
:
()
=>
import
(
"pages/teacher/contribution/imageTextlist"
)
},
{
path
:
"/teacher/contribution/addimageText"
,
//投稿设置 新增修改图文
component
:
()
=>
import
(
"pages/teacher/contribution/addimageText"
)
},
{
path
:
"/stuMan/activeList"
,
//学管 活动列表
component
:
()
=>
import
(
"pages/stuMan/activeList"
)
...
...
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