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
e0e2c2f5
Commit
e0e2c2f5
authored
Apr 26, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:对接照片列表,照片审核
parent
a3917a65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
41 deletions
+110
-41
add.vue
src/view/admin/add.vue
+1
-0
photoReview.vue
src/view/clockEarly/photoReview.vue
+109
-41
No files found.
src/view/admin/add.vue
View file @
e0e2c2f5
...
...
@@ -108,6 +108,7 @@ export default {
this
.
search
();
if
(
this
.
$route
.
query
.
id
)
{
adminsDe
(
this
.
$route
.
query
.
id
).
then
(
res
=>
{
res
.
group_uuid
=
res
.
group_uuid
this
.
formValidate
=
Object
.
assign
(
this
.
formValidate
,
res
);
});
}
...
...
src/view/clockEarly/photoReview.vue
View file @
e0e2c2f5
...
...
@@ -24,7 +24,7 @@
<Option
:value=
"1"
>
已通过
</Option>
<Option
:value=
"2"
>
已拒绝
</Option>
</Select>
<Button
type=
"primary"
@
click=
"
goDetail
"
>
查 询
</Button>
<Button
type=
"primary"
@
click=
"
search
"
>
查 询
</Button>
<Button
type=
"primary"
ghost
>
重 置
</Button>
</div>
<div
class=
"right"
>
...
...
@@ -33,8 +33,11 @@
</div>
<Row
style=
"margin:-10px 0 20px 0"
>
<Col
span=
"24"
><Button
type=
"primary"
@
click=
"goDetail"
>
批量通过
</Button
><Button
style=
"margin-left:20px"
type=
"primary"
@
click=
"goDetail"
><Button
type=
"primary"
@
click=
"confirm"
>
批量通过
</Button
><Button
style=
"margin-left:20px"
type=
"primary"
@
click=
"modal1 = true;"
>
批量拒绝
</Button
></Col
>
...
...
@@ -44,32 +47,44 @@
border
ref=
"selection"
:columns=
"columns"
@
on-select=
"onSelect"
@
on-select-all=
"onSelectAll"
:data=
"data"
>
<template
slot-scope=
"
{ row }" slot="
nam
e">
<span>
{{
row
.
details
.
name
}}
</span>
<template
slot-scope=
"
{ row }" slot="
activity_dat
e">
<span>
{{
row
.
activity_date
|
format
}}
</span>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"
title
"
>
<
span>
{{
row
.
details
.
title
}}
</span
>
<
template
slot-scope=
"{ row }"
slot=
"
url
"
>
<
Avatar
shape=
"square"
:src=
"row.url"
size=
"large"
/
>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"create
d_at
"
>
<span>
{{
row
.
create
d_at
|
format
}}
</span>
<
template
slot-scope=
"{ row }"
slot=
"create
_time
"
>
<span>
{{
row
.
create
_time
|
format
}}
</span>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"enable"
>
<i-switch
:value=
"row.is_enable === 1 ? true : false"
@
on-change=
"
value =>
{
change(value, row);
}
"
/>
<
template
slot-scope=
"{ row }"
slot=
"check_status"
>
{{
row
.
check_status
===
0
?
"待审核"
:
row
.
check_status
===
1
?
"已通过"
:
"已拒绝"
}}
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"action"
>
<a
@
click=
"edit(row)"
>
编辑
</a>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"edit"
>
<a
@
click=
"goTheme(row)"
>
编辑
</a>
<a
@
click=
"
modal2 = true;
id = row.id;
"
>
通过
</a
>
<a
style=
"margin-left:10px"
@
click=
"
modal1 = true;
id = row.id;
"
>
拒绝
</a
>
</
template
>
</Table>
<Pager
...
...
@@ -77,10 +92,20 @@
:config=
"config"
@
on-change=
"handlePager"
></Pager>
<Modal
v-model=
"modal1"
title=
"拒绝"
@
on-ok=
"ok"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"modal1"
title=
"拒绝"
@
on-ok=
"checkActivity(2)"
@
on-cancel=
"cancel"
>
<Input
v-model=
"remark"
type=
"textarea"
placeholder=
"请输入退回原因"
/>
</Modal>
<Modal
v-model=
"modal2"
title=
"通过"
@
on-ok=
"ok"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"modal2"
title=
"通过"
@
on-ok=
"checkActivity(1)"
@
on-cancel=
"modal2 = false"
>
<Form
ref=
"formCustom"
:label-width=
"70"
>
<FormItem
label=
"评论内容"
prop=
"passwd"
>
<Input
...
...
@@ -103,49 +128,62 @@ import {
checkActivityFile
}
from
"@/api/clock/activityClocks"
;
import
Pager
from
"@/view/common/Pager.vue"
;
import
{
formatDate
}
from
"@/libs/util"
;
export
default
{
name
:
"categories"
,
components
:
{
Pager
},
filters
:
{
format
(
value
)
{
return
formatDate
(
value
);
}
},
data
()
{
return
{
id
:
null
,
selectList
:
[],
config
:
{
total
:
0
,
size
:
10
,
current
:
1
},
modal1
:
false
,
modal2
:
tru
e
,
modal2
:
fals
e
,
name
:
""
,
date
:
[],
checkStatu
:
null
,
award_amount
:
null
,
comment
:
''
,
remark
:
''
,
award_amount
:
null
,
comment
:
""
,
remark
:
""
,
data
:
[],
pageIndex
:
1
,
pageSize
:
10
,
columns
:
[
{
type
:
"selection"
,
width
:
60
,
align
:
"center"
},
{
title
:
"活动日期"
,
key
:
"created_at
"
slot
:
"activity_date
"
},
{
title
:
"姓名"
,
slot
:
"
name"
key
:
"nick_
name"
},
{
title
:
"手机号"
,
slot
:
"titl
e"
key
:
"phon
e"
},
{
title
:
"图片"
,
key
:
"created_at
"
slot
:
"url
"
},
{
title
:
"上传时间"
,
slot
:
"
enabl
e"
slot
:
"
create_tim
e"
},
{
title
:
"审核状态"
,
slot
:
"
enable
"
slot
:
"
check_status
"
},
{
title
:
"操作"
,
...
...
@@ -155,6 +193,28 @@ export default {
};
},
methods
:
{
onSelect
(
val
)
{
this
.
selectList
=
val
.
map
(
p
=>
{
return
p
.
id
;
});
},
onSelectAll
(
val
)
{
this
.
selectList
=
val
.
map
(
p
=>
{
return
p
.
id
;
});
},
confirm
()
{
this
.
$Modal
.
confirm
({
title
:
"批量通过"
,
content
:
"您确认要批量通过吗?"
,
onOk
:
()
=>
{
this
.
checkActivity
(
1
)
},
onCancel
:
()
=>
{
}
});
},
search
()
{
let
params
=
{
name
:
this
.
name
,
...
...
@@ -170,17 +230,23 @@ export default {
this
.
data
=
res
.
data
;
});
},
checkActivity
()
{
checkActivity
(
status
)
{
if
(
!
this
.
id
&&
!
this
.
selectList
.
length
)
{
this
.
$Message
.
error
(
"至少选择一项"
);
return
;
}
let
params
=
{
award_amount
:
this
.
award_amount
,
check_status
:
1
,
check_status
:
status
,
comment
:
this
.
comment
,
ids
:
[]
,
object_type
:
1
,
remark
:
this
.
remark
ids
:
this
.
id
?
[
this
.
id
]
:
this
.
selectList
,
object_type
:
1
,
remark
:
this
.
remark
};
checkActivityFile
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
);
this
.
$Message
.
success
(
"操作成功!"
);
this
.
search
();
});
},
handlePager
(
pager
)
{
...
...
@@ -189,7 +255,9 @@ export default {
this
.
search
();
}
},
mounted
()
{}
mounted
()
{
this
.
search
();
}
};
</
script
>
...
...
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