Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
admin
Overview
Overview
Details
Activity
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
baihong
admin
Commits
bcd85003
Commit
bcd85003
authored
Apr 21, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理后台
parent
40fd0e01
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
169 additions
and
170 deletions
+169
-170
App.vue
src/App.vue
+2
-2
editor.vue
src/components/editor/editor.vue
+20
-20
form.vue
src/view/advertisingManager/advertisement/form.vue
+10
-10
index.vue
src/view/advertisingManager/advertisement/index.vue
+7
-7
table.vue
src/view/advertisingManager/advertisement/table.vue
+20
-21
table.vue
src/view/advertisingManager/banner/table.vue
+23
-23
theme.vue
src/view/cms/theme.vue
+42
-42
upload.vue
src/view/common/upload.vue
+9
-9
detail.vue
src/view/signIn/detail.vue
+23
-23
userList.vue.vue
src/view/signIn/userList.vue.vue
+13
-13
No files found.
src/App.vue
View file @
bcd85003
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"App"
name
:
'App'
}
;
}
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
...
...
src/components/editor/editor.vue
View file @
bcd85003
...
@@ -53,38 +53,38 @@ export default {
...
@@ -53,38 +53,38 @@ export default {
mounted
()
{
mounted
()
{
this
.
editor
=
new
Editor
(
`#
${
this
.
editorId
}
`
)
this
.
editor
=
new
Editor
(
`#
${
this
.
editorId
}
`
)
this
.
editor
.
customConfig
.
uploadImgServer
=
'https://applet.mwcx.cn/bg/survey/uploadFile'
this
.
editor
.
customConfig
.
uploadImgServer
=
'https://applet.mwcx.cn/bg/survey/uploadFile'
this
.
editor
.
customConfig
.
uploadFileName
=
'imgFile'
this
.
editor
.
customConfig
.
uploadFileName
=
'imgFile'
this
.
editor
.
customConfig
.
uploadImgHooks
=
{
this
.
editor
.
customConfig
.
uploadImgHooks
=
{
// 上传图片之前
// 上传图片之前
before
:
function
(
xhr
)
{
before
:
function
(
xhr
)
{
console
.
log
(
xhr
)
console
.
log
(
xhr
)
},
},
// 图片上传并返回了结果,图片插入已成功
// 图片上传并返回了结果,图片插入已成功
success
:
function
(
xhr
)
{
success
:
function
(
xhr
)
{
console
.
log
(
'success'
,
xhr
)
console
.
log
(
'success'
,
xhr
)
},
},
// 图片上传并返回了结果,但图片插入时出错了
// 图片上传并返回了结果,但图片插入时出错了
fail
:
function
(
xhr
,
editor
,
resData
)
{
fail
:
function
(
xhr
,
editor
,
resData
)
{
console
.
log
(
'fail'
,
resData
)
console
.
log
(
'fail'
,
resData
)
},
},
// 上传图片出错,一般为 http 请求的错误
// 上传图片出错,一般为 http 请求的错误
error
:
function
(
xhr
,
editor
,
resData
)
{
error
:
function
(
xhr
,
editor
,
resData
)
{
console
.
log
(
'error'
,
xhr
,
resData
)
console
.
log
(
'error'
,
xhr
,
resData
)
},
},
// 上传图片超时
// 上传图片超时
timeout
:
function
(
xhr
)
{
timeout
:
function
(
xhr
)
{
console
.
log
(
'timeout'
)
console
.
log
(
'timeout'
)
},
},
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
customInsert
:
function
(
insertImgFn
,
result
)
{
customInsert
:
function
(
insertImgFn
,
result
)
{
// result 即服务端返回的接口
// result 即服务端返回的接口
console
.
log
(
'customInsert'
,
result
)
console
.
log
(
'customInsert'
,
result
)
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
insertImgFn
(
result
.
data
[
0
])
insertImgFn
(
result
.
data
[
0
])
}
}
}
}
this
.
editor
.
customConfig
.
onchange
=
(
html
)
=>
{
this
.
editor
.
customConfig
.
onchange
=
(
html
)
=>
{
let
text
=
this
.
editor
.
txt
.
text
()
let
text
=
this
.
editor
.
txt
.
text
()
if
(
this
.
cache
)
localStorage
.
editorCache
=
html
if
(
this
.
cache
)
localStorage
.
editorCache
=
html
...
...
src/view/advertisingManager/advertisement/form.vue
View file @
bcd85003
...
@@ -64,7 +64,7 @@ export default {
...
@@ -64,7 +64,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
id
:
null
,
id
:
null
,
modalVisible
:
false
,
modalVisible
:
false
,
editMode
:
false
,
editMode
:
false
,
formTitle
:
''
,
formTitle
:
''
,
...
@@ -74,9 +74,9 @@ export default {
...
@@ -74,9 +74,9 @@ export default {
paddingBottom
:
'53px'
,
paddingBottom
:
'53px'
,
position
:
'static'
position
:
'static'
},
},
moodType
:
null
,
moodType
:
null
,
mood
:
null
,
mood
:
null
,
content
:
''
content
:
''
}
}
},
},
watch
:
{
watch
:
{
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
}
else
{
}
else
{
this
.
editMode
=
true
this
.
editMode
=
true
this
.
formTitle
=
'编辑回复'
this
.
formTitle
=
'编辑回复'
// this.content=val.content
// this.content=val.content
this
.
id
=
val
.
id
this
.
id
=
val
.
id
}
}
},
},
...
@@ -107,12 +107,12 @@ export default {
...
@@ -107,12 +107,12 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
let
params
=
{
let
params
=
{
content
:
this
.
content
content
:
this
.
content
}
}
if
(
this
.
editMode
)
{
if
(
this
.
editMode
)
{
params
.
id
=
this
.
id
params
.
id
=
this
.
id
relayTreeHole
(
params
).
then
((
res
)
=>
{
relayTreeHole
(
params
).
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
this
.
$Message
.
success
(
res
.
msg
)
this
.
$Message
.
success
(
res
.
msg
)
...
@@ -123,8 +123,8 @@ export default {
...
@@ -123,8 +123,8 @@ export default {
}
}
})
})
}
else
{
}
else
{
params
.
mood
=
this
.
mood
params
.
mood
=
this
.
mood
params
.
moodType
=
this
.
moodType
params
.
moodType
=
this
.
moodType
addTreeHole
(
params
).
then
((
res
)
=>
{
addTreeHole
(
params
).
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
this
.
$Message
.
success
(
'新增成功'
)
this
.
$Message
.
success
(
'新增成功'
)
...
...
src/view/advertisingManager/advertisement/index.vue
View file @
bcd85003
...
@@ -57,13 +57,13 @@ export default {
...
@@ -57,13 +57,13 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
types
:
[{
id
:
0
,
name
:
'留言'
},{
id
:
1
,
name
:
'评论'
}],
types
:
[{
id
:
0
,
name
:
'留言'
},
{
id
:
1
,
name
:
'评论'
}],
orderTypes
:[{
id
:
0
,
name
:
'创建时间'
},{
id
:
1
,
name
:
'热度'
}],
orderTypes
:
[{
id
:
0
,
name
:
'创建时间'
},
{
id
:
1
,
name
:
'热度'
}],
searchParams
:
{
searchParams
:
{
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
type
:
0
,
type
:
0
,
orderType
:
0
orderType
:
0
},
},
config
:
{
total
:
0
,
size
:
10
,
current
:
1
},
config
:
{
total
:
0
,
size
:
10
,
current
:
1
},
selectList
:
[],
selectList
:
[],
...
@@ -74,9 +74,9 @@ export default {
...
@@ -74,9 +74,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
selectChange
(
p
)
{
selectChange
(
p
)
{
console
.
log
(
p
)
;
console
.
log
(
p
)
this
.
search
(
this
.
searchParams
)
;
this
.
search
(
this
.
searchParams
)
},
},
handlePager
(
pager
)
{
handlePager
(
pager
)
{
this
.
searchParams
.
page
=
pager
.
current
this
.
searchParams
.
page
=
pager
.
current
...
...
src/view/advertisingManager/advertisement/table.vue
View file @
bcd85003
...
@@ -58,11 +58,11 @@ export default {
...
@@ -58,11 +58,11 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
id
:
null
,
id
:
null
,
type
:
0
,
type
:
0
,
content
:
''
,
content
:
''
,
dznum
:
null
,
dznum
:
null
,
showModal
:
false
,
showModal
:
false
,
selectList
:
[],
selectList
:
[],
columns
:
[
columns
:
[
{
{
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
title
:
'属性'
,
title
:
'属性'
,
slot
:
'enable'
slot
:
'enable'
},
},
{
{
title
:
'用户点赞数'
,
title
:
'用户点赞数'
,
key
:
'greatNum'
key
:
'greatNum'
},
},
...
@@ -97,7 +97,7 @@ export default {
...
@@ -97,7 +97,7 @@ export default {
title
:
'情绪值'
,
title
:
'情绪值'
,
key
:
'mood'
key
:
'mood'
},
},
{
{
title
:
'热度'
,
title
:
'热度'
,
key
:
'sore'
key
:
'sore'
},
},
...
@@ -120,25 +120,24 @@ export default {
...
@@ -120,25 +120,24 @@ export default {
edit
(
row
)
{
edit
(
row
)
{
this
.
$emit
(
'edit'
,
row
)
this
.
$emit
(
'edit'
,
row
)
},
},
editly
(
val
,
type
)
{
editly
(
val
,
type
)
{
this
.
showModal
=
true
;
this
.
showModal
=
true
this
.
type
=
type
this
.
type
=
type
this
.
id
=
val
.
id
this
.
id
=
val
.
id
this
.
content
=
val
.
content
this
.
content
=
val
.
content
},
},
submit
()
{
submit
()
{
if
(
this
.
type
)
{
if
(
this
.
type
)
{
updateContent
({
id
:
this
.
id
,
content
:
this
.
content
}).
then
((
res
)
=>
{
updateContent
({
id
:
this
.
id
,
content
:
this
.
content
}).
then
((
res
)
=>
{
this
.
$Message
.
success
(
res
.
msg
)
this
.
$Message
.
success
(
res
.
msg
)
this
.
$emit
(
'refresh'
)
this
.
$emit
(
'refresh'
)
})
})
}
else
{
}
else
{
pretendGreate
({
id
:
this
.
id
,
num
:
this
.
dznum
}).
then
((
res
)
=>
{
pretendGreate
({
id
:
this
.
id
,
num
:
this
.
dznum
}).
then
((
res
)
=>
{
this
.
$Message
.
success
(
res
.
msg
)
this
.
$Message
.
success
(
res
.
msg
)
this
.
$emit
(
'refresh'
)
this
.
$emit
(
'refresh'
)
})
})
}
}
},
},
onSelect
(
val
)
{
onSelect
(
val
)
{
this
.
selectList
=
val
.
map
((
p
)
=>
{
this
.
selectList
=
val
.
map
((
p
)
=>
{
...
@@ -153,7 +152,7 @@ export default {
...
@@ -153,7 +152,7 @@ export default {
this
.
$emit
(
'select'
,
this
.
selectList
)
this
.
$emit
(
'select'
,
this
.
selectList
)
},
},
setTops
(
id
)
{
setTops
(
id
)
{
setTop
({
id
}).
then
((
res
)
=>
{
setTop
({
id
}).
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
this
.
$Message
.
success
(
'操作成功'
)
this
.
$Message
.
success
(
'操作成功'
)
this
.
$emit
(
'refresh'
)
this
.
$emit
(
'refresh'
)
...
...
src/view/advertisingManager/banner/table.vue
View file @
bcd85003
...
@@ -64,11 +64,11 @@ export default {
...
@@ -64,11 +64,11 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
type
:
null
,
type
:
null
,
id
:
null
,
id
:
null
,
pxnum
:
null
,
pxnum
:
null
,
salePrice
:
null
,
salePrice
:
null
,
showModal
:
false
,
showModal
:
false
,
selectList
:
[],
selectList
:
[],
columns
:
[
columns
:
[
{
{
...
@@ -102,7 +102,7 @@ export default {
...
@@ -102,7 +102,7 @@ export default {
title
:
'测试图片'
,
title
:
'测试图片'
,
slot
:
'enable'
slot
:
'enable'
},
},
{
{
title
:
'是否设置为推荐'
,
title
:
'是否设置为推荐'
,
slot
:
'recommend'
slot
:
'recommend'
},
},
...
@@ -125,12 +125,12 @@ export default {
...
@@ -125,12 +125,12 @@ export default {
edit
(
row
)
{
edit
(
row
)
{
this
.
$emit
(
'edit'
,
row
)
this
.
$emit
(
'edit'
,
row
)
},
},
pxedit
(
id
,
type
)
{
pxedit
(
id
,
type
)
{
this
.
pxnum
=
null
this
.
pxnum
=
null
this
.
salePrice
=
null
this
.
salePrice
=
null
this
.
showModal
=
true
this
.
showModal
=
true
this
.
id
=
id
this
.
id
=
id
this
.
type
=
type
this
.
type
=
type
},
},
onSelect
(
val
)
{
onSelect
(
val
)
{
this
.
selectList
=
val
.
map
((
p
)
=>
{
this
.
selectList
=
val
.
map
((
p
)
=>
{
...
@@ -144,23 +144,23 @@ export default {
...
@@ -144,23 +144,23 @@ export default {
})
})
this
.
$emit
(
'select'
,
this
.
selectList
)
this
.
$emit
(
'select'
,
this
.
selectList
)
},
},
submit
()
{
submit
()
{
if
(
this
.
type
)
{
if
(
this
.
type
)
{
this
.
setSores
()
this
.
setSores
()
}
else
{
}
else
{
updateSalePrice
({
id
:
this
.
id
,
salePrice
:
this
.
salePrice
}).
then
((
res
)
=>
{
updateSalePrice
({
id
:
this
.
id
,
salePrice
:
this
.
salePrice
}).
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
this
.
$Message
.
success
(
'操作成功'
)
this
.
$Message
.
success
(
'操作成功'
)
this
.
$emit
(
'getlist'
)
this
.
$emit
(
'getlist'
)
}
}
})
})
}
}
},
},
setSores
()
{
setSores
()
{
setSore
({
id
:
this
.
id
,
sore
:
this
.
pxnum
}).
then
((
res
)
=>
{
setSore
({
id
:
this
.
id
,
sore
:
this
.
pxnum
}).
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
this
.
$Message
.
success
(
'操作成功'
)
this
.
$Message
.
success
(
'操作成功'
)
this
.
$emit
(
'getlist'
)
this
.
$emit
(
'getlist'
)
}
}
})
})
},
},
...
@@ -182,8 +182,8 @@ export default {
...
@@ -182,8 +182,8 @@ export default {
console
.
log
(
'开关状态:'
+
status
+
row
)
console
.
log
(
'开关状态:'
+
status
+
row
)
let
falg
=
status
?
1
:
0
let
falg
=
status
?
1
:
0
recommend
({
recommend
({
id
:
row
.
id
,
id
:
row
.
id
,
recommend
:
falg
recommend
:
falg
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
this
.
$Message
.
success
(
'设置成功'
)
this
.
$Message
.
success
(
'设置成功'
)
...
...
src/view/cms/theme.vue
View file @
bcd85003
...
@@ -36,92 +36,92 @@
...
@@ -36,92 +36,92 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Stable
from
"@/view/components/theme/table.vue"
;
import
Stable
from
'@/view/components/theme/table.vue'
import
Forms
from
"@/view/components/theme/form.vue"
;
import
Forms
from
'@/view/components/theme/form.vue'
import
draggableList
from
"@/view/common/draggable.vue"
;
import
draggableList
from
'@/view/common/draggable.vue'
import
{
getThemes
,
delThemes
,
editThemes
}
from
"@/api/themes"
;
import
{
getThemes
,
delThemes
,
editThemes
}
from
'@/api/themes'
export
default
{
export
default
{
components
:
{
components
:
{
Stable
,
Stable
,
Forms
,
Forms
,
draggableList
draggableList
},
},
data
()
{
data
()
{
return
{
return
{
types
:
[{
id
:
0
,
name
:
'留言'
},{
id
:
1
,
name
:
'评论'
}],
types
:
[{
id
:
0
,
name
:
'留言'
},
{
id
:
1
,
name
:
'评论'
}],
seleted
:
null
,
seleted
:
null
,
selectList
:
[],
selectList
:
[],
visible
:
false
,
visible
:
false
,
draggableVisible
:
false
,
draggableVisible
:
false
,
row
:
{},
row
:
{},
data
:
[]
data
:
[]
}
;
}
},
},
methods
:
{
methods
:
{
edit
(
row
)
{
edit
(
row
)
{
this
.
visible
=
true
;
this
.
visible
=
true
this
.
row
=
row
;
this
.
row
=
row
},
},
add
()
{
add
()
{
this
.
visible
=
true
;
this
.
visible
=
true
this
.
row
=
{
this
.
row
=
{
id
:
"add"
id
:
'add'
}
;
}
},
},
selectChange
(
p
)
{
selectChange
(
p
)
{
console
.
log
(
p
)
;
console
.
log
(
p
)
this
.
search
({
this
.
search
({
scene
:
p
scene
:
p
})
;
})
},
},
select
(
val
)
{
select
(
val
)
{
this
.
selectList
=
val
;
this
.
selectList
=
val
},
},
seq
()
{
seq
()
{
this
.
draggableVisible
=
true
;
this
.
draggableVisible
=
true
},
},
ok
(
list
)
{
ok
(
list
)
{
editThemes
(
list
).
then
(
res
=>
{
editThemes
(
list
).
then
(
res
=>
{
if
(
res
.
code
===
200
&&
res
.
data
.
length
>
0
)
{
if
(
res
.
code
===
200
&&
res
.
data
.
length
>
0
)
{
this
.
$Message
.
success
(
"操作成功"
);
this
.
$Message
.
success
(
'操作成功'
)
this
.
draggableVisible
=
false
;
this
.
draggableVisible
=
false
this
.
search
()
;
this
.
search
()
}
}
})
;
})
},
},
del
()
{
del
()
{
delThemes
(
this
.
selectList
).
then
(
res
=>
{
delThemes
(
this
.
selectList
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$Message
.
success
(
"删除成功"
);
this
.
$Message
.
success
(
'删除成功'
)
this
.
search
()
;
this
.
search
()
}
else
{
}
else
{
this
.
$Message
.
error
(
"删除失败"
);
this
.
$Message
.
error
(
'删除失败'
)
}
}
})
;
})
},
},
onSearch
(
p
)
{
onSearch
(
p
)
{
this
.
search
({
this
.
search
({
keyword
:
p
keyword
:
p
})
;
})
},
},
search
(
p
)
{
search
(
p
)
{
getThemes
(
p
).
then
(
res
=>
{
getThemes
(
p
).
then
(
res
=>
{
this
.
data
=
res
.
data
;
this
.
data
=
res
.
data
})
;
})
}
}
},
},
mounted
()
{
mounted
()
{
this
.
seleted
=
this
.
$route
.
query
.
row
&&
this
.
$route
.
query
.
row
.
id
;
this
.
seleted
=
this
.
$route
.
query
.
row
&&
this
.
$route
.
query
.
row
.
id
let
parmas
=
{
let
parmas
=
{
scene
:
this
.
seleted
scene
:
this
.
seleted
}
;
}
if
(
parmas
)
{
if
(
parmas
)
{
this
.
search
(
parmas
)
;
this
.
search
(
parmas
)
}
else
{
}
else
{
this
.
search
({})
;
this
.
search
({})
}
}
}
}
}
;
}
</
script
>
</
script
>
<
style
lang=
"less"
></
style
>
<
style
lang=
"less"
></
style
>
src/view/common/upload.vue
View file @
bcd85003
...
@@ -100,15 +100,15 @@ export default {
...
@@ -100,15 +100,15 @@ export default {
},
},
methods
:
{
methods
:
{
random_string
(
len
)
{
random_string
(
len
)
{
len
=
len
||
32
len
=
len
||
32
var
chars
=
'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'
var
chars
=
'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'
var
maxPos
=
chars
.
length
var
maxPos
=
chars
.
length
var
pwd
=
''
var
pwd
=
''
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
pwd
+=
chars
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
maxPos
))
pwd
+=
chars
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
maxPos
))
}
}
return
pwd
return
pwd
},
},
handleRemove
(
file
)
{
handleRemove
(
file
)
{
const
fileList
=
this
.
$refs
[
'upload'
].
fileList
const
fileList
=
this
.
$refs
[
'upload'
].
fileList
...
...
src/view/signIn/detail.vue
View file @
bcd85003
...
@@ -72,55 +72,55 @@
...
@@ -72,55 +72,55 @@
</template>
</template>
<
script
>
<
script
>
import
{
getScenes
,
delScenes
,
editScenes
}
from
"@/api/scenes"
;
import
{
getScenes
,
delScenes
,
editScenes
}
from
'@/api/scenes'
export
default
{
export
default
{
name
:
"categories"
,
name
:
'categories'
,
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
tab
:
"1"
,
tab
:
'1'
,
data
:
[],
data
:
[],
yhqcolumns
:
[
yhqcolumns
:
[
{
{
title
:
"优惠卷名称"
,
title
:
'优惠卷名称'
,
key
:
"created_at"
key
:
'created_at'
},
},
{
{
title
:
"获奖时间"
,
title
:
'获奖时间'
,
slot
:
"name"
slot
:
'name'
}
}
],
],
columns
:
[
columns
:
[
{
{
title
:
"签到日期"
,
title
:
'签到日期'
,
key
:
"created_at"
key
:
'created_at'
},
},
{
{
title
:
"获得收益"
,
title
:
'获得收益'
,
slot
:
"name"
slot
:
'name'
},
},
{
{
title
:
"签到时间"
,
title
:
'签到时间'
,
slot
:
"title"
slot
:
'title'
},
},
{
{
title
:
"分享收益"
,
title
:
'分享收益'
,
key
:
"created_at"
key
:
'created_at'
},
},
{
{
title
:
"总收益"
,
title
:
'总收益'
,
slot
:
"enable"
slot
:
'enable'
},
},
{
{
title
:
"操作"
,
title
:
'操作'
,
slot
:
"action"
slot
:
'action'
}
}
]
]
}
;
}
},
},
methods
:
{},
methods
:
{},
mounted
()
{}
mounted
()
{}
}
;
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
src/view/signIn/userList.vue.vue
View file @
bcd85003
...
@@ -46,16 +46,16 @@
...
@@ -46,16 +46,16 @@
</template>
</template>
<
script
>
<
script
>
import
{
getScenes
,
delScenes
,
editScenes
}
from
"@/api/scenes"
;
import
{
getScenes
,
delScenes
,
editScenes
}
from
'@/api/scenes'
export
default
{
export
default
{
name
:
"categories"
,
name
:
'categories'
,
components
:
{
components
:
{
},
},
data
()
{
data
()
{
return
{
return
{
data
:
[],
data
:
[],
columns
:
[
columns
:
[
{
{
title
:
'用户ID'
,
title
:
'用户ID'
,
key
:
'created_at'
key
:
'created_at'
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
},
},
{
{
title
:
'姓名'
,
title
:
'姓名'
,
slot
:
'title'
,
slot
:
'title'
},
},
{
{
title
:
'手机号'
,
title
:
'手机号'
,
...
@@ -81,17 +81,17 @@ export default {
...
@@ -81,17 +81,17 @@ export default {
slot
:
'action'
slot
:
'action'
}
}
]
]
}
;
}
},
},
methods
:
{
methods
:
{
goDetail
()
{
goDetail
()
{
this
.
$router
.
push
({
path
:
"/signIn/detail"
,
query
:
{
id
:
"new"
}
});
this
.
$router
.
push
({
path
:
'/signIn/detail'
,
query
:
{
id
:
'new'
}
})
}
}
},
},
mounted
()
{
mounted
()
{
}
}
}
;
}
</
script
>
</
script
>
<
style
lang=
"less"
></
style
>
<
style
lang=
"less"
></
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