Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
40eb76fb
Commit
40eb76fb
authored
Jun 13, 2020
by
Junling Bu
Browse files
fix[litemall-wx]: 列表项删除以后重新加载
parent
2786b410
Changes
16
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/views/goods/comment.vue
View file @
40eb76fb
...
@@ -129,6 +129,7 @@ export default {
...
@@ -129,6 +129,7 @@ export default {
type
:
'
success
'
,
type
:
'
success
'
,
duration
:
2000
duration
:
2000
})
})
this
.
getList
()
})
})
},
},
handleDownload
()
{
handleDownload
()
{
...
...
litemall-admin/src/views/goods/create.vue
View file @
40eb76fb
...
@@ -410,7 +410,8 @@ export default {
...
@@ -410,7 +410,8 @@ export default {
this
.
goods
.
categoryId
=
value
[
value
.
length
-
1
]
this
.
goods
.
categoryId
=
value
[
value
.
length
-
1
]
},
},
handleCancel
:
function
()
{
handleCancel
:
function
()
{
this
.
$router
.
push
({
path
:
'
/goods/goods
'
})
this
.
$store
.
dispatch
(
'
tagsView/delView
'
,
this
.
$route
)
this
.
$router
.
push
({
path
:
'
/goods/list
'
})
},
},
handlePublish
:
function
()
{
handlePublish
:
function
()
{
const
finalGoods
=
{
const
finalGoods
=
{
...
@@ -424,6 +425,7 @@ export default {
...
@@ -424,6 +425,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
创建成功
'
message
:
'
创建成功
'
})
})
this
.
$store
.
dispatch
(
'
tagsView/delView
'
,
this
.
$route
)
this
.
$router
.
push
({
path
:
'
/goods/list
'
})
this
.
$router
.
push
({
path
:
'
/goods/list
'
})
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
...
...
litemall-admin/src/views/goods/edit.vue
View file @
40eb76fb
...
@@ -419,6 +419,7 @@ export default {
...
@@ -419,6 +419,7 @@ export default {
this
.
goods
.
categoryId
=
value
[
value
.
length
-
1
]
this
.
goods
.
categoryId
=
value
[
value
.
length
-
1
]
},
},
handleCancel
:
function
()
{
handleCancel
:
function
()
{
this
.
$store
.
dispatch
(
'
tagsView/delView
'
,
this
.
$route
)
this
.
$router
.
push
({
path
:
'
/goods/list
'
})
this
.
$router
.
push
({
path
:
'
/goods/list
'
})
},
},
handleEdit
:
function
()
{
handleEdit
:
function
()
{
...
@@ -432,8 +433,9 @@ export default {
...
@@ -432,8 +433,9 @@ export default {
.
then
(
response
=>
{
.
then
(
response
=>
{
this
.
$notify
.
success
({
this
.
$notify
.
success
({
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
创建
成功
'
message
:
'
编辑
成功
'
})
})
this
.
$store
.
dispatch
(
'
tagsView/delView
'
,
this
.
$route
)
this
.
$router
.
push
({
path
:
'
/goods/list
'
})
this
.
$router
.
push
({
path
:
'
/goods/list
'
})
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
...
...
litemall-admin/src/views/goods/list.vue
View file @
40eb76fb
...
@@ -190,8 +190,7 @@ export default {
...
@@ -190,8 +190,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除成功
'
message
:
'
删除成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
'
失败
'
,
title
:
'
失败
'
,
...
...
litemall-admin/src/views/mall/brand.vue
View file @
40eb76fb
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<!-- 查询和其他操作 -->
<!-- 查询和其他操作 -->
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.id"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入品牌商ID"
/>
<el-input
v-model=
"listQuery.id"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入品牌商ID"
/>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入品牌商名称"
/>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入品牌商名称"
/>
<el-button
v-permission=
"['GET /admin/brand/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['GET /admin/brand/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['POST /admin/brand/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['POST /admin/brand/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
...
@@ -13,9 +13,9 @@
...
@@ -13,9 +13,9 @@
<!-- 查询结果 -->
<!-- 查询结果 -->
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
"品牌商ID"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"品牌商ID"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"品牌商名称"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"品牌商名称"
prop=
"name"
/>
<el-table-column
align=
"center"
property=
"picUrl"
label=
"品牌商图片"
>
<el-table-column
align=
"center"
property=
"picUrl"
label=
"品牌商图片"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
min-width=
"400px"
label=
"介绍"
prop=
"desc"
/>
<el-table-column
align=
"center"
min-width=
"400px"
label=
"介绍"
prop=
"desc"
/>
<el-table-column
align=
"center"
label=
"底价"
prop=
"floorPrice"
/>
<el-table-column
align=
"center"
label=
"底价"
prop=
"floorPrice"
/>
<el-table-column
align=
"center"
label=
"操作"
width=
"200"
class-name=
"small-padding fixed-width"
>
<el-table-column
align=
"center"
label=
"操作"
width=
"200"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -41,10 +41,10 @@
...
@@ -41,10 +41,10 @@
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form-item
label=
"品牌商名称"
prop=
"name"
>
<el-form-item
label=
"品牌商名称"
prop=
"name"
>
<el-input
v-model=
"dataForm.name"
/>
<el-input
v-model=
"dataForm.name"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"介绍"
prop=
"simpleDesc"
>
<el-form-item
label=
"介绍"
prop=
"simpleDesc"
>
<el-input
v-model=
"dataForm.desc"
/>
<el-input
v-model=
"dataForm.desc"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"品牌商图片"
prop=
"picUrl"
>
<el-form-item
label=
"品牌商图片"
prop=
"picUrl"
>
<el-upload
<el-upload
...
@@ -53,13 +53,14 @@
...
@@ -53,13 +53,14 @@
:show-file-list=
"false"
:show-file-list=
"false"
:on-success=
"uploadPicUrl"
:on-success=
"uploadPicUrl"
class=
"avatar-uploader"
class=
"avatar-uploader"
accept=
".jpg,.jpeg,.png,.gif"
>
accept=
".jpg,.jpeg,.png,.gif"
>
<img
v-if=
"dataForm.picUrl"
:src=
"dataForm.picUrl"
class=
"avatar"
>
<img
v-if=
"dataForm.picUrl"
:src=
"dataForm.picUrl"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"底价"
prop=
"floorPrice"
>
<el-form-item
label=
"底价"
prop=
"floorPrice"
>
<el-input
v-model=
"dataForm.floorPrice"
/>
<el-input
v-model=
"dataForm.floorPrice"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -254,8 +255,7 @@ export default {
...
@@ -254,8 +255,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除成功
'
message
:
'
删除成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
...
litemall-admin/src/views/mall/issue.vue
View file @
40eb76fb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<!-- 查询和其他操作 -->
<!-- 查询和其他操作 -->
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.question"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入问题"
/>
<el-input
v-model=
"listQuery.question"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入问题"
/>
<el-button
v-permission=
"['GET /admin/issue/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['GET /admin/issue/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['POST /admin/issue/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['POST /admin/issue/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
...
@@ -11,11 +11,11 @@
...
@@ -11,11 +11,11 @@
<!-- 查询结果 -->
<!-- 查询结果 -->
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
width=
"100px"
label=
"问题ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
width=
"100px"
label=
"问题ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
min-width=
"200px"
label=
"问题内容"
prop=
"question"
/>
<el-table-column
align=
"center"
min-width=
"200px"
label=
"问题内容"
prop=
"question"
/>
<el-table-column
align=
"center"
min-width=
"400px"
label=
"问题回复"
prop=
"answer"
/>
<el-table-column
align=
"center"
min-width=
"400px"
label=
"问题回复"
prop=
"answer"
/>
<el-table-column
align=
"center"
label=
"操作"
width=
"250"
class-name=
"small-padding fixed-width"
>
<el-table-column
align=
"center"
label=
"操作"
width=
"250"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -31,10 +31,10 @@
...
@@ -31,10 +31,10 @@
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form-item
label=
"问题"
prop=
"question"
>
<el-form-item
label=
"问题"
prop=
"question"
>
<el-input
v-model=
"dataForm.question"
/>
<el-input
v-model=
"dataForm.question"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"回复"
prop=
"answer"
>
<el-form-item
label=
"回复"
prop=
"answer"
>
<el-input
v-model=
"dataForm.answer"
:rows=
"8"
type=
"textarea"
placeholder=
"请输入内容"
/>
<el-input
v-model=
"dataForm.answer"
:rows=
"8"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -177,8 +177,7 @@ export default {
...
@@ -177,8 +177,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除成功
'
message
:
'
删除成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
'
失败
'
,
title
:
'
失败
'
,
...
...
litemall-admin/src/views/mall/keyword.vue
View file @
40eb76fb
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<!-- 查询和其他操作 -->
<!-- 查询和其他操作 -->
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.keyword"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入关键字"
/>
<el-input
v-model=
"listQuery.keyword"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入关键字"
/>
<el-input
v-model=
"listQuery.url"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入跳转链接"
/>
<el-input
v-model=
"listQuery.url"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入跳转链接"
/>
<el-button
v-permission=
"['GET /admin/keyword/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['GET /admin/keyword/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['POST /admin/keyword/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['POST /admin/keyword/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
...
@@ -13,11 +13,11 @@
...
@@ -13,11 +13,11 @@
<!-- 查询结果 -->
<!-- 查询结果 -->
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
width=
"150px"
label=
"关键词ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
width=
"150px"
label=
"关键词ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
min-width=
"100px"
label=
"关键词"
prop=
"keyword"
/>
<el-table-column
align=
"center"
min-width=
"100px"
label=
"关键词"
prop=
"keyword"
/>
<el-table-column
align=
"center"
min-width=
"300px"
label=
"跳转链接"
prop=
"url"
/>
<el-table-column
align=
"center"
min-width=
"300px"
label=
"跳转链接"
prop=
"url"
/>
<el-table-column
align=
"center"
min-width=
"100px"
label=
"是否推荐"
prop=
"isHot"
>
<el-table-column
align=
"center"
min-width=
"100px"
label=
"是否推荐"
prop=
"isHot"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -45,21 +45,21 @@
...
@@ -45,21 +45,21 @@
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form-item
label=
"关键词"
prop=
"keyword"
>
<el-form-item
label=
"关键词"
prop=
"keyword"
>
<el-input
v-model=
"dataForm.keyword"
/>
<el-input
v-model=
"dataForm.keyword"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"跳转链接"
prop=
"url"
>
<el-form-item
label=
"跳转链接"
prop=
"url"
>
<el-input
v-model=
"dataForm.url"
/>
<el-input
v-model=
"dataForm.url"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否推荐"
prop=
"isHot"
>
<el-form-item
label=
"是否推荐"
prop=
"isHot"
>
<el-select
v-model=
"dataForm.isHot"
placeholder=
"请选择"
>
<el-select
v-model=
"dataForm.isHot"
placeholder=
"请选择"
>
<el-option
:value=
"true"
label=
"推荐"
/>
<el-option
:value=
"true"
label=
"推荐"
/>
<el-option
:value=
"false"
label=
"普通"
/>
<el-option
:value=
"false"
label=
"普通"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否默认"
prop=
"isDefault"
>
<el-form-item
label=
"是否默认"
prop=
"isDefault"
>
<el-select
v-model=
"dataForm.isDefault"
placeholder=
"请选择"
>
<el-select
v-model=
"dataForm.isDefault"
placeholder=
"请选择"
>
<el-option
:value=
"true"
label=
"默认"
/>
<el-option
:value=
"true"
label=
"默认"
/>
<el-option
:value=
"false"
label=
"非默认"
/>
<el-option
:value=
"false"
label=
"非默认"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -207,8 +207,7 @@ export default {
...
@@ -207,8 +207,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除成功
'
message
:
'
删除成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
'
失败
'
,
title
:
'
失败
'
,
...
...
litemall-admin/src/views/profile/notice.vue
View file @
40eb76fb
...
@@ -112,8 +112,7 @@ export default {
...
@@ -112,8 +112,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除通知成功
'
message
:
'
删除通知成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
...
litemall-admin/src/views/promotion/ad.vue
View file @
40eb76fb
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<!-- 查询和其他操作 -->
<!-- 查询和其他操作 -->
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入广告标题"
/>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入广告标题"
/>
<el-input
v-model=
"listQuery.content"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入广告内容"
/>
<el-input
v-model=
"listQuery.content"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入广告内容"
/>
<el-button
v-permission=
"['GET /admin/ad/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['GET /admin/ad/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['POST /admin/ad/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['POST /admin/ad/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
...
@@ -13,11 +13,11 @@
...
@@ -13,11 +13,11 @@
<!-- 查询结果 -->
<!-- 查询结果 -->
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
"广告ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
label=
"广告ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
label=
"广告标题"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"广告标题"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"广告内容"
prop=
"content"
/>
<el-table-column
align=
"center"
label=
"广告内容"
prop=
"content"
/>
<el-table-column
align=
"center"
label=
"广告图片"
prop=
"url"
>
<el-table-column
align=
"center"
label=
"广告图片"
prop=
"url"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"广告位置"
prop=
"position"
/>
<el-table-column
align=
"center"
label=
"广告位置"
prop=
"position"
/>
<el-table-column
align=
"center"
label=
"活动链接"
prop=
"link"
/>
<el-table-column
align=
"center"
label=
"活动链接"
prop=
"link"
/>
<el-table-column
align=
"center"
label=
"是否启用"
prop=
"enabled"
>
<el-table-column
align=
"center"
label=
"是否启用"
prop=
"enabled"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -49,10 +49,10 @@
...
@@ -49,10 +49,10 @@
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form-item
label=
"广告标题"
prop=
"name"
>
<el-form-item
label=
"广告标题"
prop=
"name"
>
<el-input
v-model=
"dataForm.name"
/>
<el-input
v-model=
"dataForm.name"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"广告内容"
prop=
"content"
>
<el-form-item
label=
"广告内容"
prop=
"content"
>
<el-input
v-model=
"dataForm.content"
/>
<el-input
v-model=
"dataForm.content"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"广告图片"
prop=
"url"
>
<el-form-item
label=
"广告图片"
prop=
"url"
>
<el-upload
<el-upload
...
@@ -62,24 +62,25 @@
...
@@ -62,24 +62,25 @@
:on-success=
"uploadUrl"
:on-success=
"uploadUrl"
:before-upload=
"checkFileSize"
:before-upload=
"checkFileSize"
class=
"avatar-uploader"
class=
"avatar-uploader"
accept=
".jpg,.jpeg,.png,.gif"
>
accept=
".jpg,.jpeg,.png,.gif"
>
<img
v-if=
"dataForm.url"
:src=
"dataForm.url"
class=
"avatar"
>
<img
v-if=
"dataForm.url"
:src=
"dataForm.url"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过1024kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过1024kb
</div>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"广告位置"
prop=
"position"
>
<el-form-item
label=
"广告位置"
prop=
"position"
>
<el-select
v-model=
"dataForm.position"
placeholder=
"请选择"
>
<el-select
v-model=
"dataForm.position"
placeholder=
"请选择"
>
<el-option
:value=
"1"
label=
"首页"
/>
<el-option
:value=
"1"
label=
"首页"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"活动链接"
prop=
"link"
>
<el-form-item
label=
"活动链接"
prop=
"link"
>
<el-input
v-model=
"dataForm.link"
/>
<el-input
v-model=
"dataForm.link"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否启用"
prop=
"enabled"
>
<el-form-item
label=
"是否启用"
prop=
"enabled"
>
<el-select
v-model=
"dataForm.enabled"
placeholder=
"请选择"
>
<el-select
v-model=
"dataForm.enabled"
placeholder=
"请选择"
>
<el-option
:value=
"true"
label=
"启用"
/>
<el-option
:value=
"true"
label=
"启用"
/>
<el-option
:value=
"false"
label=
"不启用"
/>
<el-option
:value=
"false"
label=
"不启用"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -290,8 +291,7 @@ export default {
...
@@ -290,8 +291,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除成功
'
message
:
'
删除成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
...
litemall-admin/src/views/promotion/coupon.vue
View file @
40eb76fb
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
<!-- 查询和其他操作 -->
<!-- 查询和其他操作 -->
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入优惠券标题"
/>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入优惠券标题"
/>
<el-select
v-model=
"listQuery.type"
clearable
style=
"width: 200px"
class=
"filter-item"
placeholder=
"请选择优惠券类型"
>
<el-select
v-model=
"listQuery.type"
clearable
style=
"width: 200px"
class=
"filter-item"
placeholder=
"请选择优惠券类型"
>
<el-option
v-for=
"type in typeOptions"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
/>
<el-option
v-for=
"type in typeOptions"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
/>
</el-select>
</el-select>
<el-select
v-model=
"listQuery.status"
clearable
style=
"width: 200px"
class=
"filter-item"
placeholder=
"请选择优惠券状态"
>
<el-select
v-model=
"listQuery.status"
clearable
style=
"width: 200px"
class=
"filter-item"
placeholder=
"请选择优惠券状态"
>
<el-option
v-for=
"type in statusOptions"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
/>
<el-option
v-for=
"type in statusOptions"
:key=
"type.value"
:label=
"type.label"
:value=
"type.value"
/>
</el-select>
</el-select>
<el-button
v-permission=
"['GET /admin/coupon/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['GET /admin/coupon/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['POST /admin/coupon/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['POST /admin/coupon/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
...
@@ -18,13 +18,13 @@
...
@@ -18,13 +18,13 @@
<!-- 查询结果 -->
<!-- 查询结果 -->
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
"优惠券ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
label=
"优惠券ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
label=
"优惠券名称"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"优惠券名称"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"介绍"
prop=
"desc"
/>
<el-table-column
align=
"center"
label=
"介绍"
prop=
"desc"
/>
<el-table-column
align=
"center"
label=
"标签"
prop=
"tag"
/>
<el-table-column
align=
"center"
label=
"标签"
prop=
"tag"
/>
<el-table-column
align=
"center"
label=
"最低消费"
prop=
"min"
>
<el-table-column
align=
"center"
label=
"最低消费"
prop=
"min"
>
<template
slot-scope=
"scope"
>
满
{{
scope
.
row
.
min
}}
元可用
</
template
>
<template
slot-scope=
"scope"
>
满
{{
scope
.
row
.
min
}}
元可用
</
template
>
...
@@ -69,13 +69,13 @@
...
@@ -69,13 +69,13 @@
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form-item
label=
"优惠券名称"
prop=
"name"
>
<el-form-item
label=
"优惠券名称"
prop=
"name"
>
<el-input
v-model=
"dataForm.name"
/>
<el-input
v-model=
"dataForm.name"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"介绍"
prop=
"desc"
>
<el-form-item
label=
"介绍"
prop=
"desc"
>
<el-input
v-model=
"dataForm.desc"
/>
<el-input
v-model=
"dataForm.desc"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标签"
prop=
"tag"
>
<el-form-item
label=
"标签"
prop=
"tag"
>
<el-input
v-model=
"dataForm.tag"
/>
<el-input
v-model=
"dataForm.tag"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"最低消费"
prop=
"min"
>
<el-form-item
label=
"最低消费"
prop=
"min"
>
<el-input
v-model=
"dataForm.min"
>
<el-input
v-model=
"dataForm.min"
>
...
@@ -98,7 +98,8 @@
...
@@ -98,7 +98,8 @@
v-for=
"type in typeOptions"
v-for=
"type in typeOptions"
:key=
"type.value"
:key=
"type.value"
:label=
"type.label"
:label=
"type.label"
:value=
"type.value"
/>
:value=
"type.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"优惠券数量"
prop=
"total"
>
<el-form-item
label=
"优惠券数量"
prop=
"total"
>
...
@@ -119,11 +120,11 @@
...
@@ -119,11 +120,11 @@
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"dataForm.timeType === 1"
>
<el-form-item
v-show=
"dataForm.timeType === 1"
>
<el-col
:span=
"11"
>
<el-col
:span=
"11"
>
<el-date-picker
v-model=
"dataForm.startTime"
type=
"datetime"
placeholder=
"选择日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
style=
"width: 100%;"
/>
<el-date-picker
v-model=
"dataForm.startTime"
type=
"datetime"
placeholder=
"选择日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
style=
"width: 100%;"
/>
</el-col>
</el-col>
<el-col
:span=
"2"
class=
"line"
>
至
</el-col>
<el-col
:span=
"2"
class=
"line"
>
至
</el-col>
<el-col
:span=
"11"
>
<el-col
:span=
"11"
>
<el-date-picker
v-model=
"dataForm.endTime"
type=
"datetime"
placeholder=
"选择日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
style=
"width: 100%;"
/>
<el-date-picker
v-model=
"dataForm.endTime"
type=
"datetime"
placeholder=
"选择日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
style=
"width: 100%;"
/>
</el-col>
</el-col>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品限制范围"
>
<el-form-item
label=
"商品限制范围"
>
...
@@ -408,8 +409,7 @@ export default {
...
@@ -408,8 +409,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除优惠券成功
'
message
:
'
删除优惠券成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
...
litemall-admin/src/views/promotion/grouponRule.vue
View file @
40eb76fb
...
@@ -237,8 +237,7 @@ export default {
...
@@ -237,8 +237,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除团购规则成功
'
message
:
'
删除团购规则成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
'
失败
'
,
title
:
'
失败
'
,
...
...
litemall-admin/src/views/promotion/topic.vue
View file @
40eb76fb
...
@@ -163,8 +163,7 @@ export default {
...
@@ -163,8 +163,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除专题成功
'
message
:
'
删除专题成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
...
litemall-admin/src/views/sys/admin.vue
View file @
40eb76fb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<!-- 查询和其他操作 -->
<!-- 查询和其他操作 -->
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.username"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入管理员名称"
/>
<el-input
v-model=
"listQuery.username"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入管理员名称"
/>
<el-button
v-permission=
"['GET /admin/admin/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['GET /admin/admin/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['POST /admin/admin/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['POST /admin/admin/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
<!-- 查询结果 -->
<!-- 查询结果 -->
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
"管理员ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
label=
"管理员ID"
prop=
"id"
sortable
/>
<el-table-column
align=
"center"
label=
"管理员名称"
prop=
"username"
/>
<el-table-column
align=
"center"
label=
"管理员名称"
prop=
"username"
/>
<el-table-column
align=
"center"
label=
"管理员头像"
prop=
"avatar"
>
<el-table-column
align=
"center"
label=
"管理员头像"
prop=
"avatar"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -41,10 +41,10 @@
...
@@ -41,10 +41,10 @@
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form-item
label=
"管理员名称"
prop=
"username"
>
<el-form-item
label=
"管理员名称"
prop=
"username"
>
<el-input
v-model=
"dataForm.username"
/>
<el-input
v-model=
"dataForm.username"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"管理员密码"
prop=
"password"
>
<el-form-item
label=
"管理员密码"
prop=
"password"
>
<el-input
v-model=
"dataForm.password"
type=
"password"
auto-complete=
"off"
/>
<el-input
v-model=
"dataForm.password"
type=
"password"
auto-complete=
"off"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"管理员头像"
prop=
"avatar"
>
<el-form-item
label=
"管理员头像"
prop=
"avatar"
>
<el-upload
<el-upload
...
@@ -53,9 +53,10 @@
...
@@ -53,9 +53,10 @@
:show-file-list=
"false"
:show-file-list=
"false"
:on-success=
"uploadAvatar"
:on-success=
"uploadAvatar"
class=
"avatar-uploader"
class=
"avatar-uploader"
accept=
".jpg,.jpeg,.png,.gif"
>
accept=
".jpg,.jpeg,.png,.gif"
>
<img
v-if=
"dataForm.avatar"
:src=
"dataForm.avatar"
class=
"avatar"
>
<img
v-if=
"dataForm.avatar"
:src=
"dataForm.avatar"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"管理员角色"
prop=
"roleIds"
>
<el-form-item
label=
"管理员角色"
prop=
"roleIds"
>
...
@@ -64,7 +65,8 @@
...
@@ -64,7 +65,8 @@
v-for=
"item in roleOptions"
v-for=
"item in roleOptions"
:key=
"item.value"
:key=
"item.value"
:label=
"item.label"
:label=
"item.label"
:value=
"item.value"
/>
:value=
"item.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -275,8 +277,7 @@ export default {
...
@@ -275,8 +277,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除管理员成功
'
message
:
'
删除管理员成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
...
litemall-admin/src/views/sys/notice.vue
View file @
40eb76fb
...
@@ -237,8 +237,7 @@ export default {
...
@@ -237,8 +237,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除通知成功
'
message
:
'
删除通知成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
...
litemall-admin/src/views/sys/os.vue
View file @
40eb76fb
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<!-- 查询和其他操作 -->
<!-- 查询和其他操作 -->
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.key"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入对象KEY"
/>
<el-input
v-model=
"listQuery.key"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入对象KEY"
/>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入对象名称"
/>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入对象名称"
/>
<el-button
v-permission=
"['GET /admin/storage/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['GET /admin/storage/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['POST /admin/storage/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['POST /admin/storage/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
<el-button
:loading=
"downloadLoading"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleDownload"
>
导出
</el-button>
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
<!-- 查询结果 -->
<!-- 查询结果 -->
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
"对象KEY"
prop=
"key"
/>
<el-table-column
align=
"center"
label=
"对象KEY"
prop=
"key"
/>
<el-table-column
align=
"center"
label=
"对象名称"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"对象名称"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"对象类型"
prop=
"type"
/>
<el-table-column
align=
"center"
label=
"对象类型"
prop=
"type"
/>
<el-table-column
align=
"center"
label=
"对象大小"
prop=
"size"
/>
<el-table-column
align=
"center"
label=
"对象大小"
prop=
"size"
/>
<el-table-column
align=
"center"
property=
"url"
label=
"图片"
>
<el-table-column
align=
"center"
property=
"url"
label=
"图片"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"图片链接"
prop=
"url"
/>
<el-table-column
align=
"center"
label=
"图片链接"
prop=
"url"
/>
<el-table-column
align=
"center"
label=
"操作"
width=
"200"
class-name=
"small-padding fixed-width"
>
<el-table-column
align=
"center"
label=
"操作"
width=
"200"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<el-dialog
:visible.sync=
"updateDialogVisible"
title=
"修改对象名称"
>
<el-dialog
:visible.sync=
"updateDialogVisible"
title=
"修改对象名称"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form-item
label=
"对象名称"
prop=
"name"
>
<el-form-item
label=
"对象名称"
prop=
"name"
>
<el-input
v-model=
"dataForm.name"
/>
<el-input
v-model=
"dataForm.name"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -177,8 +177,7 @@ export default {
...
@@ -177,8 +177,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除成功
'
message
:
'
删除成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
'
失败
'
,
title
:
'
失败
'
,
...
...
litemall-admin/src/views/sys/role.vue
View file @
40eb76fb
...
@@ -3,16 +3,16 @@
...
@@ -3,16 +3,16 @@
<!-- 查询和其他操作 -->
<!-- 查询和其他操作 -->
<div
class=
"filter-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入角色名称"
/>
<el-input
v-model=
"listQuery.name"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入角色名称"
/>
<el-button
v-permission=
"['GET /admin/role/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['GET /admin/role/list']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleFilter"
>
查找
</el-button>
<el-button
v-permission=
"['POST /admin/role/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['POST /admin/role/create']"
class=
"filter-item"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
</div>
</div>
<!-- 查询结果 -->
<!-- 查询结果 -->
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
"角色名称"
prop=
"name"
sortable
/>
<el-table-column
align=
"center"
label=
"角色名称"
prop=
"name"
sortable
/>
<el-table-column
align=
"center"
label=
"说明"
prop=
"desc"
/>
<el-table-column
align=
"center"
label=
"说明"
prop=
"desc"
/>
<el-table-column
align=
"center"
label=
"操作"
class-name=
"small-padding fixed-width"
>
<el-table-column
align=
"center"
label=
"操作"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -29,10 +29,10 @@
...
@@ -29,10 +29,10 @@
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-dialog
:title=
"textMap[dialogStatus]"
:visible.sync=
"dialogFormVisible"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"dataForm"
status-icon
label-position=
"left"
label-width=
"100px"
style=
"width: 400px; margin-left:50px;"
>
<el-form-item
label=
"角色名称"
prop=
"name"
>
<el-form-item
label=
"角色名称"
prop=
"name"
>
<el-input
v-model=
"dataForm.name"
/>
<el-input
v-model=
"dataForm.name"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"说明"
prop=
"desc"
>
<el-form-item
label=
"说明"
prop=
"desc"
>
<el-input
v-model=
"dataForm.desc"
/>
<el-input
v-model=
"dataForm.desc"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -50,7 +50,8 @@
...
@@ -50,7 +50,8 @@
:default-checked-keys=
"assignedPermissions"
:default-checked-keys=
"assignedPermissions"
show-checkbox
show-checkbox
node-key=
"id"
node-key=
"id"
highlight-current
>
highlight-current
>
<span
slot-scope=
"{ node, data }"
class=
"custom-tree-node"
>
<span
slot-scope=
"{ node, data }"
class=
"custom-tree-node"
>
<span>
{{ data.label }}
</span>
<span>
{{ data.label }}
</span>
<el-tag
v-if=
"data.api"
type=
"success"
size=
"mini"
>
{{ data.api }}
</el-tag>
<el-tag
v-if=
"data.api"
type=
"success"
size=
"mini"
>
{{ data.api }}
</el-tag>
...
@@ -208,8 +209,7 @@ export default {
...
@@ -208,8 +209,7 @@ export default {
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
删除管理员成功
'
message
:
'
删除管理员成功
'
})
})
const
index
=
this
.
list
.
indexOf
(
row
)
this
.
getList
()
this
.
list
.
splice
(
index
,
1
)
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
...
...
Write
Preview
Supports
Markdown
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