Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
293b7c06
Commit
293b7c06
authored
Mar 17, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动清单批量审核
parent
85dfb431
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
22 deletions
+80
-22
src/api/school-center/activityRecordAPI.js
+1
-1
src/views/school-center/activity/activityList.vue
+11
-2
src/views/school-center/activity/activityRecord.vue
+67
-18
src/views/school-center/uploadVerify/studentCardVerify.vue
+1
-1
No files found.
src/api/school-center/activityRecordAPI.js
View file @
293b7c06
...
@@ -5,7 +5,7 @@ const prefix = '/manager/ciop';
...
@@ -5,7 +5,7 @@ const prefix = '/manager/ciop';
let
getList
=
(
params
)
=>
postAction
(
prefix
+
"/activityRecord/list"
,
params
);
let
getList
=
(
params
)
=>
postAction
(
prefix
+
"/activityRecord/list"
,
params
);
// 审核活动参与记录
// 审核活动参与记录
let
audit
=
(
params
)
=>
postAction
(
prefix
+
"/activityRecord/auditActivityRecord"
,
params
);
let
audit
=
(
params
)
=>
postAction
(
prefix
+
"/activityRecord/auditActivityRecord
s
"
,
params
);
export
{
export
{
getList
,
audit
getList
,
audit
...
...
src/views/school-center/activity/activityList.vue
View file @
293b7c06
...
@@ -130,10 +130,11 @@
...
@@ -130,10 +130,11 @@
import
{
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
}
from
"../../../api/school-center/activity/activityAPI"
import
{
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
}
from
"../../../api/school-center/activity/activityAPI"
import
{
cloneObject
}
from
'@/utils/util'
;
import
{
cloneObject
}
from
'@/utils/util'
;
import
{
initSubstName
}
from
"../../../api/school-center/userManager/newUserAPI"
;
import
{
initSubstName
}
from
"../../../api/school-center/userManager/newUserAPI"
;
import
moment
from
"moment"
;
export
default
{
export
default
{
name
:
"activity"
,
name
:
"activity"
,
components
:
{
components
:
{
STable
,
STable
,
moment
},
},
data
:
function
()
{
data
:
function
()
{
return
{
return
{
...
@@ -182,7 +183,15 @@
...
@@ -182,7 +183,15 @@
{
dataIndex
:
'subclass'
,
width
:
200
,
title
:
'活动小类'
,
align
:
"center"
},
{
dataIndex
:
'subclass'
,
width
:
200
,
title
:
'活动小类'
,
align
:
"center"
},
{
dataIndex
:
'sort'
,
width
:
200
,
title
:
'排序号'
,
align
:
"center"
},
{
dataIndex
:
'sort'
,
width
:
200
,
title
:
'排序号'
,
align
:
"center"
},
{
dataIndex
:
'creator'
,
width
:
200
,
title
:
'创建人'
,
align
:
"center"
},
{
dataIndex
:
'creator'
,
width
:
200
,
title
:
'创建人'
,
align
:
"center"
},
{
dataIndex
:
'createTime'
,
width
:
200
,
title
:
'创建时间'
,
align
:
"center"
},
{
dataIndex
:
'createTime'
,
width
:
200
,
title
:
'创建时间'
,
align
:
"center"
,
customRender
:
function
(
text
,
record
,
index
)
{
//text:当前行的值,record: 当前行的数据, index:索引
if
(
text
==
null
)
{
return
""
;
}
return
moment
(
text
).
format
(
"YYYY-MM-DD HH:mm:ss"
);
},
},
{
{
dataIndex
:
'operation'
,
dataIndex
:
'operation'
,
width
:
200
,
width
:
200
,
...
...
src/views/school-center/activity/activityRecord.vue
View file @
293b7c06
...
@@ -51,7 +51,10 @@
...
@@ -51,7 +51,10 @@
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button><a-divider
type=
"vertical"
/>
<a-button
type=
"primary"
:disabled=
"hasSelected"
:loading=
"loading"
@
click=
"start()"
>
审核
</a-button>
</a-col>
</a-col>
</span>
</span>
</a-row>
</a-row>
...
@@ -59,18 +62,22 @@
...
@@ -59,18 +62,22 @@
</div>
</div>
<!--列表-->
<!--列表-->
<s-table
:locale=
"emptyText"
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
>
<s-table
:locale=
"emptyText"
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
:row-selection=
"
{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<template
slot=
"status"
slot-scope=
"text"
>
<span
v-if=
"text=='1'"
>
未审核
</span>
<span
v-if=
"text=='2'"
>
审核通过
</span>
<span
v-if=
"text=='3'"
>
审核不通过
</span>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<a
@
click=
"modifyfunction(record)"
>
审核
</a>
<a
@
click=
"modifyfunction(record)"
>
查看
</a>
</
template
>
</
template
>
</s-table>
</s-table>
<!--编辑----弹框-->
<!--编辑----弹框-->
<a-modal
:title=
"titleName"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"840px"
>
<a-modal
:title=
"titleName"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"840px"
>
<a-form
:form=
"Formtable"
>
<a-form
:form=
"Formtable"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"审核状态"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"审核状态"
>
<a-radio-group
v-decorator=
"['status', {rules: [{ required: true, message: '审核状态不能为空!'}]} ]"
>
<a-radio-group
v-decorator=
"['status', {rules: [{ required: true, message: '审核状态不能为空!'}]} ]"
>
<a-radio
value=
"2"
>
通过
</a-radio>
<a-radio
value=
"2"
>
通过
</a-radio>
...
@@ -95,10 +102,12 @@
...
@@ -95,10 +102,12 @@
import
STable
from
'@/components/table'
;
import
STable
from
'@/components/table'
;
import
{
getList
,
audit
}
from
"../../../api/school-center/activityRecordAPI"
import
{
getList
,
audit
}
from
"../../../api/school-center/activityRecordAPI"
import
{
cloneObject
}
from
'@/utils/util'
;
import
{
cloneObject
}
from
'@/utils/util'
;
import
moment
from
"moment"
;
import
{
queryById
,
update
}
from
"../../../api/school-center/uploadVerify/studentCardVerifyAPI"
;
export
default
{
export
default
{
name
:
"activityRecord"
,
name
:
"activityRecord"
,
components
:
{
components
:
{
STable
,
STable
,
moment
},
},
data
:
function
()
{
data
:
function
()
{
return
{
return
{
...
@@ -137,12 +146,20 @@
...
@@ -137,12 +146,20 @@
{
dataIndex
:
'activityType'
,
width
:
200
,
title
:
'活动类型'
,
align
:
"center"
},
{
dataIndex
:
'activityType'
,
width
:
200
,
title
:
'活动类型'
,
align
:
"center"
},
{
dataIndex
:
'subclass'
,
width
:
200
,
title
:
'活动小类'
,
align
:
"center"
},
{
dataIndex
:
'subclass'
,
width
:
200
,
title
:
'活动小类'
,
align
:
"center"
},
{
dataIndex
:
'integral'
,
width
:
200
,
title
:
'活动积分'
,
align
:
"center"
},
{
dataIndex
:
'integral'
,
width
:
200
,
title
:
'活动积分'
,
align
:
"center"
},
{
dataIndex
:
'status'
,
width
:
200
,
title
:
'审核状态'
,
align
:
"center"
},
{
dataIndex
:
'status'
,
width
:
200
,
title
:
'审核状态'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
"status"
}
},
{
dataIndex
:
'remark'
,
width
:
200
,
title
:
'审核备注'
,
align
:
"center"
},
{
dataIndex
:
'remark'
,
width
:
200
,
title
:
'审核备注'
,
align
:
"center"
},
{
dataIndex
:
'recordIntegral'
,
width
:
200
,
title
:
'所得积分'
,
align
:
"center"
},
{
dataIndex
:
'recordIntegral'
,
width
:
200
,
title
:
'所得积分'
,
align
:
"center"
},
{
dataIndex
:
'creator'
,
width
:
200
,
title
:
'参与者'
,
align
:
"center"
},
{
dataIndex
:
'creator'
,
width
:
200
,
title
:
'参与者'
,
align
:
"center"
},
{
dataIndex
:
'message'
,
width
:
200
,
title
:
'活动留言'
,
align
:
"center"
},
{
dataIndex
:
'message'
,
width
:
200
,
title
:
'活动留言'
,
align
:
"center"
},
{
dataIndex
:
'createTime'
,
width
:
200
,
title
:
'参与时间'
,
align
:
"center"
},
{
dataIndex
:
'createTime'
,
width
:
200
,
title
:
'参与时间'
,
align
:
"center"
,
customRender
:
function
(
text
,
record
,
index
)
{
//text:当前行的值,record: 当前行的数据, index:索引
if
(
text
==
null
)
{
return
""
;
}
return
moment
(
text
).
format
(
"YYYY-MM-DD HH:mm:ss"
);
},
},
{
dataIndex
:
'isRepeal'
,
width
:
200
,
title
:
'是否重复参与'
,
align
:
"center"
},
{
dataIndex
:
'isRepeal'
,
width
:
200
,
title
:
'是否重复参与'
,
align
:
"center"
},
{
{
dataIndex
:
'operation'
,
dataIndex
:
'operation'
,
...
@@ -151,7 +168,8 @@
...
@@ -151,7 +168,8 @@
align
:
"center"
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'operation'
},
scopedSlots
:
{
customRender
:
'operation'
},
fixed
:
"right"
fixed
:
"right"
}]
},
]
,
,
rowdata
:
parameter
=>
{
rowdata
:
parameter
=>
{
let
params
=
{
let
params
=
{
...
@@ -184,7 +202,9 @@
...
@@ -184,7 +202,9 @@
}
}
return
data
return
data
})
})
}
},
selectedRowKeys
:
[],
hasSelected
:
true
,
}
}
},
},
methods
:{
methods
:{
...
@@ -195,29 +215,36 @@
...
@@ -195,29 +215,36 @@
this
.
$refs
.
table
.
refresh
({
search
:
true
})
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
},
modifyfunction
(
data
){
modifyfunction
(
data
){
//初始化
console
.
log
(
data
);
this
.
titleName
=
"审核"
alert
(
data
.
id
);
this
.
modifyForm
.
id
=
data
.
id
this
.
modifyvisible
=
true
;
},
},
//提交表单
//提交表单
createfunctionOk
(){
createfunctionOk
(){
this
.
Formtable
.
validateFields
([
'status'
,
"integral"
,
"remark"
],
{
force
:
true
},
(
err
,
values
)
=>
{
this
.
Formtable
.
validateFields
([
'status'
,
"integral"
,
"remark"
],
{
force
:
true
},
(
err
,
values
)
=>
{
if
(
!
err
){
if
(
!
err
){
let
params
=
{
ids
:
this
.
selectedRowKeys
}
//表示
this
.
modifyForm
.
status
=
values
.
status
this
.
modifyForm
.
status
=
values
.
status
this
.
modifyForm
.
remark
=
values
.
remark
this
.
modifyForm
.
remark
=
values
.
remark
this
.
modifyForm
.
integral
=
values
.
integral
this
.
modifyForm
.
integral
=
values
.
integral
//表示
let
obj
=
cloneObject
(
this
.
modifyForm
)
//修改数据
//修改数据
audit
(
this
.
modifyForm
).
then
(
res
=>
{
audit
(
Object
.
assign
(
params
,
obj
)
).
then
(
res
=>
{
if
(
res
.
state
==
"success"
)
{
if
(
res
.
state
==
"success"
)
{
setTimeout
(()
=>
{
this
.
loading
=
false
;
this
.
selectedRowKeys
=
[];
},
1000
);
this
.
hasSelected
=
true
;
this
.
modifyvisible
=
false
this
.
$message
.
success
(
res
.
data
?
res
.
data
:
'审核成功!'
,
5
);
this
.
$message
.
success
(
res
.
data
?
res
.
data
:
'审核成功!'
,
5
);
this
.
search
();
this
.
search
();
this
.
modifyvisible
=
false
return
null
;
return
null
;
}
}
this
.
$message
.
error
(
res
.
data
?
res
.
data
:
'审核失败!'
,
5
);
this
.
$message
.
error
(
res
.
data
?
res
.
data
:
'审核失败!'
,
5
);
})
})
}
}
})
})
...
@@ -230,7 +257,29 @@
...
@@ -230,7 +257,29 @@
})
})
this
.
modifyForm
.
id
=
""
this
.
modifyForm
.
id
=
""
this
.
modifyvisible
=
false
;
this
.
modifyvisible
=
false
;
},
start
()
{
this
.
Formtable
.
setFieldsValue
({
status
:
''
,
remark
:
''
,
integral
:
''
});
if
(
this
.
selectedRowKeys
.
length
==
0
){
this
.
$message
.
error
(
"请勾选审核项!!!"
,
5
);
return
;
}
}
//初始化
this
.
titleName
=
"审核"
this
.
modifyvisible
=
true
;
},
onSelectChange
(
selectedRowKeys
)
{
this
.
selectedRowKeys
=
selectedRowKeys
;
if
(
this
.
selectedRowKeys
.
length
>
0
){
this
.
hasSelected
=
false
;
}
else
{
this
.
hasSelected
=
true
;
}
},
}
}
}
}
</
script
>
</
script
>
...
...
src/views/school-center/uploadVerify/studentCardVerify.vue
View file @
293b7c06
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
{
dataIndex
:
'idCard'
,
width
:
100
,
title
:
'身份证'
},
{
dataIndex
:
'idCard'
,
width
:
100
,
title
:
'身份证'
},
{
dataIndex
:
'uploadDate'
,
width
:
100
,
title
:
'上传时间'
,
scopedSlots
:
{
customRender
:
"uploadDate"
}},
{
dataIndex
:
'uploadDate'
,
width
:
100
,
title
:
'上传时间'
,
scopedSlots
:
{
customRender
:
"uploadDate"
}},
{
dataIndex
:
'isFirstUpload'
,
width
:
100
,
title
:
'是否首次上传'
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"isFirstUpload"
}},
{
dataIndex
:
'isFirstUpload'
,
width
:
100
,
title
:
'是否首次上传'
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"isFirstUpload"
}},
{
dataIndex
:
'auditState'
,
width
:
100
,
title
:
'是否通过审核'
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"auditState"
}},
{
dataIndex
:
'auditState'
,
width
:
100
,
title
:
'是否通过审核'
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"auditState"
}},
{
dataIndex
:
'auditName'
,
width
:
100
,
title
:
'审核人姓名'
},
{
dataIndex
:
'auditName'
,
width
:
100
,
title
:
'审核人姓名'
},
{
dataIndex
:
'studentCardUrl'
,
width
:
180
,
title
:
'学生证封面照片'
,
scopedSlots
:
{
customRender
:
"studentCardUrl"
}},
{
dataIndex
:
'studentCardUrl'
,
width
:
180
,
title
:
'学生证封面照片'
,
scopedSlots
:
{
customRender
:
"studentCardUrl"
}},
{
dataIndex
:
'otherImgUrl1'
,
width
:
180
,
title
:
'学生证内页照片'
,
scopedSlots
:
{
customRender
:
"otherImgUrl1"
}},
{
dataIndex
:
'otherImgUrl1'
,
width
:
180
,
title
:
'学生证内页照片'
,
scopedSlots
:
{
customRender
:
"otherImgUrl1"
}},
...
...
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