Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-road-admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-road-admin
Commits
af716ea1
提交
af716ea1
authored
9月 07, 2022
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
07a5c2f3
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
95 行增加
和
53 行删除
+95
-53
List.vue
src/modules/banner/views/List.vue
+16
-8
List.vue
src/modules/essay/views/List.vue
+19
-11
Update.vue
src/modules/essay/views/Update.vue
+1
-1
List.vue
src/modules/menu/views/List.vue
+20
-12
Update.vue
src/modules/menu/views/Update.vue
+4
-2
List.vue
src/modules/notice/views/List.vue
+16
-8
List.vue
src/modules/pages/views/List.vue
+19
-11
没有找到文件。
src/modules/banner/views/List.vue
浏览文件 @
af716ea1
...
...
@@ -142,15 +142,23 @@ export default {
this
.
$router
.
push
({
path
:
'/banner/update'
,
query
:
{
id
:
row
.
id
}
})
},
handleDelete
(
row
)
{
deleteBanner
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
this
.
$confirm
(
'此操作将永久删除该banner, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
deleteBanner
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
})
})
.
catch
(()
=>
{})
}
}
}
...
...
src/modules/essay/views/List.vue
浏览文件 @
af716ea1
...
...
@@ -129,9 +129,9 @@ export default {
},
// 更新发布状态
updateStatus
(
row
)
{
const
params
=
row
params
.
status
=
row
.
status
?
'1'
:
'0'
updateEssay
(
row
).
then
(
res
=>
{
const
params
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
params
.
status
=
params
.
status
?
'1'
:
'0'
updateEssay
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'修改成功'
,
...
...
@@ -145,15 +145,23 @@ export default {
this
.
$router
.
push
({
path
:
'/essay/update'
,
query
:
{
id
:
row
.
id
}
})
},
handleDelete
(
row
)
{
deleteEssay
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
this
.
$confirm
(
'此操作将永久删除该图文, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
deleteEssay
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
})
})
.
catch
(()
=>
{})
}
}
}
...
...
src/modules/essay/views/Update.vue
浏览文件 @
af716ea1
...
...
@@ -26,7 +26,7 @@
<div
class=
"upload-img-box"
>
<upload-image
v-model=
"ruleForm.picture"
></upload-image>
<div
class=
"upload-img-tips"
>
<div>
只能
上传jpg/png文件,且不超过500kb
</div>
<div>
建议
上传jpg/png文件,且不超过500kb
</div>
<div>
建议竖图上传尺寸 96×120
</div>
<div>
建议横图上传尺寸 311×120
</div>
</div>
...
...
src/modules/menu/views/List.vue
浏览文件 @
af716ea1
...
...
@@ -25,7 +25,7 @@
<el-switch
v-model=
"row.status"
@
change=
"updateStatus(row)"
>
</el-switch>
</
template
>
<
template
v-slot:sort-select=
"{ row }"
>
<el-select
style=
"width: 70px
;
"
v-model=
"row.sort"
placeholder=
"请选择"
@
change=
"updateStatus(row)"
>
<el-select
style=
"width: 70px"
v-model=
"row.sort"
placeholder=
"请选择"
@
change=
"updateStatus(row)"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</
template
>
...
...
@@ -128,15 +128,15 @@ export default {
},
// 更新发布状态
updateStatus
(
row
)
{
const
params
=
row
const
params
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
params
.
status
=
row
.
status
?
'1'
:
'0'
updateMenu
(
row
).
then
(
res
=>
{
updateMenu
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'修改成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
//
this.$refs.list.refetch(true)
}
})
},
...
...
@@ -144,15 +144,23 @@ export default {
this
.
$router
.
push
({
path
:
'/menu/update'
,
query
:
{
id
:
row
.
id
}
})
},
handleDelete
(
row
)
{
deleteMenu
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
this
.
$confirm
(
'此操作将永久删除该模块, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
deleteMenu
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
})
})
.
catch
(()
=>
{})
}
}
}
...
...
src/modules/menu/views/Update.vue
浏览文件 @
af716ea1
...
...
@@ -22,7 +22,7 @@
<div
class=
"upload-img-box"
>
<upload-image
v-model=
"ruleForm.picture"
></upload-image>
<div
class=
"upload-img-tips"
>
<div>
只能
上传jpg/png文件,且不超过500kb
</div>
<div>
建议
上传jpg/png文件,且不超过500kb
</div>
<div>
建议菜单图片上传尺寸 40×40
</div>
</div>
</div>
...
...
@@ -78,7 +78,7 @@
<el-form-item>
<div
style=
"padding-top: 20px"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确认
</el-button>
<el-button
@
click=
"
drawer = true
"
>
取消
</el-button>
<el-button
@
click=
"
$router.go(-1)
"
>
取消
</el-button>
</div>
</el-form-item>
</el-form>
...
...
@@ -352,6 +352,8 @@ export default {
.title
{
font-size
:
16px
;
color
:
#000000
;
width
:
150px
;
line-height
:
20px
;
}
.tool-btn
{
display
:
flex
;
...
...
src/modules/notice/views/List.vue
浏览文件 @
af716ea1
...
...
@@ -114,15 +114,23 @@ export default {
this
.
$router
.
push
({
path
:
'/notice/update'
,
query
:
{
id
:
row
.
id
}
})
},
handleDelete
(
row
)
{
deleteNotice
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
this
.
$confirm
(
'此操作将永久删除该通知, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
deleteNotice
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
})
})
.
catch
(()
=>
{})
}
}
}
...
...
src/modules/pages/views/List.vue
浏览文件 @
af716ea1
...
...
@@ -131,9 +131,9 @@ export default {
},
// 更新发布状态
updateStatus
(
row
)
{
const
params
=
row
params
.
status
=
row
.
status
?
'1'
:
'0'
updatePages
(
row
).
then
(
res
=>
{
const
params
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
params
.
status
=
params
.
status
?
'1'
:
'0'
updatePages
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'修改成功'
,
...
...
@@ -147,15 +147,23 @@ export default {
this
.
$router
.
push
({
path
:
'/pages/update'
,
query
:
{
id
:
row
.
id
}
})
},
handleDelete
(
row
)
{
deletePages
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
this
.
$confirm
(
'此操作将永久删除该页面, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
deletePages
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
list
.
refetch
(
true
)
}
})
})
.
catch
(()
=>
{})
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论