Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
87e19558
提交
87e19558
authored
6月 10, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Auto stash before merge of "master" and "origin/master"
上级
76177b2a
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
29 行增加
和
30 行删除
+29
-30
Detail.vue
src/modules/admin/teacher/views/Detail.vue
+4
-4
List.vue
src/modules/admin/teacher/views/List.vue
+5
-6
AddDialog.vue
src/modules/system/cover/component/AddDialog.vue
+4
-7
List.vue
src/modules/system/cover/views/List.vue
+2
-2
List.vue
src/modules/system/dictionary/views/List.vue
+11
-8
rowList.vue
src/modules/system/dictionary/views/rowList.vue
+3
-3
没有找到文件。
src/modules/admin/teacher/views/Detail.vue
浏览文件 @
87e19558
...
...
@@ -111,17 +111,17 @@ onMounted(() => {
</el-form>
<el-card>
<div
class=
"form_title"
>
讲授课程:
</div>
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
border
stripe
>
<template
#
header-aside
>
</
template
>
<
template
#
table-operate=
"{ row }"
>
<el-space>
<router-link
to=
"/admin/teacher/detail"
>
<el-
button
type=
"primary"
plain
>
查看
</el-button
>
<el-
link
type=
"primary"
plain
>
查看
</el-link
>
</router-link>
<router-link
to=
"/admin/teacher/update"
>
<el-
button
type=
"primary"
plain
>
更新
</el-button
>
<el-
link
type=
"primary"
plain
>
更新
</el-link
>
</router-link>
<el-
button
type=
"primary"
plain
@
click=
"handleDelete(row)"
>
删除
</el-button
>
<el-
link
type=
"primary"
plain
@
click=
"handleDelete(row)"
>
删除
</el-link
>
</el-space>
</
template
>
</AppList>
...
...
src/modules/admin/teacher/views/List.vue
浏览文件 @
87e19558
...
...
@@ -61,18 +61,17 @@ const handleDetail = (row: any) => {
<
template
>
<AppCard
title=
"讲师管理"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
border
stripe
>
<router-link
to=
"/admin/teacher/add"
>
<el-button
type=
"primary"
round
>
添加讲师
</el-button>
<el-button
type=
"primary"
round
style=
"margin-bottom: 20px"
>
添加讲师
</el-button>
</router-link>
<template
#
header-aside
>
</
template
>
<
template
#
table-img=
"{ row }"
>
<img
:src=
"row.avatar"
alt=
""
style=
"width: 100%"
/></
template
>
<
template
#
table-operate=
"{ row }"
>
<el-space>
<el-
button
type=
"primary"
plain
@
click=
"handleDetail(row)"
>
查看
</el-button
>
<el-
button
type=
"primary"
plain
@
click=
"handleUpdate(row)"
>
更新
</el-button
>
<el-
button
type=
"primary"
plain
@
click=
"handleDelete(row)"
>
删除
</el-button
>
<el-
link
type=
"primary"
plain
@
click=
"handleDetail(row)"
>
查看
</el-link
>
<el-
link
type=
"primary"
plain
@
click=
"handleUpdate(row)"
>
更新
</el-link
>
<el-
link
type=
"primary"
plain
@
click=
"handleDelete(row)"
>
删除
</el-link
>
</el-space>
</
template
>
</AppList>
...
...
src/modules/system/cover/component/AddDialog.vue
浏览文件 @
87e19558
...
...
@@ -3,11 +3,12 @@ import AppUpload from '@/components/base/AppUpload.vue'
import
type
{
FormInstance
,
FormRules
}
from
'element-plus'
import
{
useMapStore
}
from
'@/stores/map'
const
store
=
useMapStore
()
const
emit
=
defineEmits
<
Emits
>
()
const
ruleFormRef
=
ref
<
FormInstance
>
()
// 封面类型
const
typeList
=
store
.
mapList
.
filter
((
item
:
any
)
=>
item
.
key
===
'system_cover_type'
)[
0
].
values
// 封面状态
const
statusList
=
store
.
mapList
.
filter
((
item
:
any
)
=>
item
.
key
===
'system_status'
)[
0
].
values
const
form
=
reactive
({
title
:
''
,
status
:
'1'
,
...
...
@@ -38,11 +39,7 @@ interface Emits {
(
e
:
'createCover'
,
form
:
any
):
void
}
const
emit
=
defineEmits
<
Emits
>
()
const
ruleFormRef
=
ref
<
FormInstance
>
()
// 普通属性
// 取消
const
handleCancel
=
()
=>
{
emit
(
'update:isShowDialog'
,
false
)
}
...
...
@@ -62,7 +59,7 @@ onMounted(() => {
form
.
status
=
props
.
editData
.
status
form
.
url
=
props
.
editData
.
url
form
.
type
=
props
.
editData
.
type
form
.
title
=
props
.
editData
.
url
form
.
title
=
props
.
editData
.
title
}
})
</
script
>
...
...
src/modules/system/cover/views/List.vue
浏览文件 @
87e19558
...
...
@@ -14,7 +14,7 @@ const listOptions = {
},
columns
:
[
{
label
:
'封面
地址'
,
prop
:
'url
'
,
align
:
'center'
},
{
label
:
'封面
标题'
,
prop
:
'title
'
,
align
:
'center'
},
{
label
:
'封面预览'
,
prop
:
'url'
,
slots
:
'table-cover'
,
align
:
'center'
},
{
label
:
'封面类型'
,
prop
:
'type_name'
,
align
:
'center'
},
{
...
...
@@ -68,7 +68,7 @@ const handleEdit = (row: any) => {
<
template
>
<AppCard
title=
"封面管理"
>
<el-button
type=
"primary"
round
@
click=
"handleAdd"
>
添加
</el-button>
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
border
stripe
>
<template
#
header-aside
>
</
template
>
<
template
#
table-cover=
"{ row }"
>
<img
:src=
"row.url"
alt=
""
style=
"width: 100px"
/>
...
...
src/modules/system/dictionary/views/List.vue
浏览文件 @
87e19558
...
...
@@ -13,7 +13,8 @@ const store = useMapStore()
// 状态
//表单每行数据
const
listOptions
=
{
const
listOptions
=
$computed
(()
=>
{
return
{
remote
:
{
httpRequest
:
getDictionaryList
,
params
:
{
...
...
@@ -28,8 +29,9 @@ const listOptions = {
{
type
:
'select'
,
prop
:
'status'
,
placeholder
:
'请选择字典状态'
,
label
:
'字典状态:'
,
options
:
store
.
mapList
?.
filter
((
item
:
any
)
=>
item
.
key
===
'system_status'
)[
0
]?.
values
||
[]
options
:
store
.
mapList
?.
filter
((
item
:
any
)
=>
item
.
key
===
'system_status'
)[
0
]?.
values
},
{
type
:
'input'
,
...
...
@@ -52,7 +54,8 @@ const listOptions = {
{
label
:
'创建时间'
,
prop
:
'created_time'
,
align
:
'center'
},
{
label
:
'操作'
,
slots
:
'table-operate'
,
align
:
'center'
,
width
:
300
}
]
}
}
})
// 新增弹窗
const
handleAdd
=
()
=>
{
isShowDialog
.
value
=
true
...
...
@@ -108,9 +111,9 @@ const handleConfirm = (val: any) => {
<
template
>
<AppCard
title=
"数据字典"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
border
stripe
>
<el-row>
<el-button
type=
"primary"
@
click=
"handleAdd"
>
新增字典
</el-button>
<el-button
type=
"primary"
@
click=
"handleAdd"
style=
"margin-bottom: 20px"
>
新增字典
</el-button>
</el-row>
<template
v-slot:created_time_start=
"
{ params }">
<el-date-picker
v-model=
"params.created_time_start"
type=
"date"
placeholder=
"开始时间"
>
</el-date-picker>
...
...
@@ -121,9 +124,9 @@ const handleConfirm = (val: any) => {
</
template
>
<
template
#
table-operate=
"{ row }"
>
<el-space>
<el-
button
type=
"primary"
plain
@
click=
"handleEdit(row)"
>
编辑
</el-button
>
<el-
button
type=
"primary"
plain
@
click=
"handleList(row)"
>
列表
</el-button
>
<el-
button
type=
"primary"
plain
@
click=
"handleDelete(row)"
>
删除
</el-button
>
<el-
link
type=
"primary"
plain
@
click=
"handleEdit(row)"
>
编辑
</el-link
>
<el-
link
type=
"primary"
plain
@
click=
"handleList(row)"
>
列表
</el-link
>
<el-
link
type=
"primary"
plain
@
click=
"handleDelete(row)"
>
删除
</el-link
>
</el-space>
</
template
>
<
template
v-if=
"isShowDialog === true"
>
...
...
src/modules/system/dictionary/views/rowList.vue
浏览文件 @
87e19558
...
...
@@ -75,15 +75,15 @@ const handleConfirm = (val: any) => {
</
script
>
<
template
>
<AppCard>
<AppCard
title=
"字典列表"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<el-row>
<el-button
type=
"primary"
@
click=
"handleAdd"
>
新增
</el-button>
</el-row>
<template
#
table-operate=
"
{ row }">
<el-space>
<el-
button
type=
"primary"
plain
@
click=
"handleEdit(row)"
>
编辑
</el-button
>
<el-
button
type=
"primary"
plain
@
click=
"handleDelete(row)"
>
删除
</el-button
>
<el-
link
type=
"primary"
plain
@
click=
"handleEdit(row)"
>
编辑
</el-link
>
<el-
link
type=
"primary"
plain
@
click=
"handleDelete(row)"
>
删除
</el-link
>
</el-space>
</
template
>
</AppList>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论