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
2659d1b9
Commit
2659d1b9
authored
Jun 02, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动审核
parent
fc8c09bf
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
148 additions
and
11 deletions
+148
-11
src/api/school-center/activity/activityAPI.js
+4
-1
src/views/school-center/activity/activityList.vue
+104
-10
src/views/school-center/activity/activityRecord.vue
+1
-0
src/views/school-center/activity/addActivity.vue
+13
-0
src/views/school-center/louZhang/KpiScore.vue
+13
-0
src/views/school-center/louZhang/salesAlert.vue
+13
-0
No files found.
src/api/school-center/activity/activityAPI.js
View file @
2659d1b9
...
...
@@ -19,6 +19,9 @@ let uploadImg = (params) => postAction(prefix + "/activity/uploadImg" , params);
//审核
let
auditActivity
=
(
params
)
=>
postAction
(
prefix
+
"/activity/auditActivity"
,
params
);
//审核
let
auditActivityNew
=
(
params
)
=>
postAction
(
prefix
+
"/activity/auditActivityNew"
,
params
);
export
{
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
,
auditActivity
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
,
auditActivity
,
auditActivityNew
}
src/views/school-center/activity/activityList.vue
View file @
2659d1b9
...
...
@@ -37,6 +37,10 @@
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-divider
type=
"vertical"
/>
<a-button
@
click=
"add()"
type=
"primary"
>
添加
</a-button>
<a-divider
type=
"vertical"
/>
<a-button
@
click=
"start()"
type=
"primary"
:disabled=
"hasSelected"
:loading=
"loading"
>
审核
</a-button>
</a-col>
</span>
</a-row>
...
...
@@ -44,17 +48,24 @@
</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=
"imageUrl"
slot-scope=
"text"
>
<img
style=
"width: 20%"
:src=
"apis + text"
@
click=
"imgClick(text)"
>
</
template
>
<!--拦截器-->
<
template
slot=
"createTime"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
</
template
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<a
@
click=
"modifyfunction(record)"
>
编辑
</a>
<a
@
click=
"modifyfunctionExamine(record.id)"
>
审核
</a>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"deleteActivity(record.id)"
>
<a>
删除
</a>
</a-popconfirm>
<a
@
click=
"modifyfunction(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"deleteActivity(record.id)"
><a>
删除
</a></a-popconfirm>
</
template
>
<
template
slot=
"status"
slot-scope=
"text"
>
<span
v-if=
"text == 0"
>
未审核
</span>
<span
v-if=
"text == 1"
>
审核通过
</span>
<span
v-if=
"text == 2"
>
审核不通过
</span>
</
template
>
</s-table>
...
...
@@ -108,7 +119,17 @@
</a-form>
</a-modal>
<!--编辑----弹框-->
<a-modal
:title=
"titleName"
:visible=
"modifyExamine"
@
ok=
"createOk"
@
cancel=
"createCancel"
html-type=
"submit"
width=
"840px"
>
<a-form
:form=
"Form"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"审核状态"
>
<a-radio-group
v-decorator=
"['status', {rules: [{ required: true, message: '审核状态不能为空!'}]} ]"
>
<a-radio
value=
"1"
>
通过
</a-radio>
<a-radio
value=
"2"
>
不通过
</a-radio>
</a-radio-group>
</a-form-item>
</a-form>
</a-modal>
<!----弹框-->
<a-drawer
title=
"活动图片"
...
...
@@ -127,9 +148,10 @@
<
script
>
import
STable
from
'@/components/table'
;
import
{
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
}
from
"../../../api/school-center/activity/activityAPI"
import
{
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
,
auditActivityNew
}
from
"../../../api/school-center/activity/activityAPI"
import
{
cloneObject
}
from
'@/utils/util'
;
import
{
initSubstName
}
from
"../../../api/school-center/userManager/newUserAPI"
;
import
{
audit
}
from
"../../../api/school-center/activityRecordAPI"
;
export
default
{
name
:
"activity"
,
components
:
{
...
...
@@ -160,6 +182,16 @@
range
:
''
,
sort
:
''
,
},
modifyFormExamine
:
{
id
:
''
,
status
:
''
,
},
Form
:
this
.
$form
.
createForm
(
this
,
{
name
:
'Form'
}),
modifyExamine
:
false
,
imgInfo
:
""
,
selectedRowKeys
:
[],
hasSelected
:
true
,
loading
:
false
,
subNameList
:
[],
packageName
:[],
chosePages
:[],
...
...
@@ -178,6 +210,8 @@
{
dataIndex
:
'desc'
,
width
:
200
,
title
:
'活动详情'
,
align
:
"center"
},
{
dataIndex
:
'integral'
,
width
:
80
,
title
:
'活动积分'
,
align
:
"center"
},
{
dataIndex
:
'imageUrl'
,
title
:
'图片 '
,
scopedSlots
:
{
customRender
:
'imageUrl'
},
align
:
'center'
},
{
dataIndex
:
'status'
,
width
:
80
,
title
:
'审核状态'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'status'
}},
{
dataIndex
:
'activityType'
,
width
:
80
,
title
:
'活动类型'
,
align
:
"center"
},
{
dataIndex
:
'subclass'
,
width
:
80
,
title
:
'活动大类'
,
align
:
"center"
},
{
dataIndex
:
'sort'
,
width
:
80
,
title
:
'排序号'
,
align
:
"center"
},
...
...
@@ -299,7 +333,7 @@
subclass
:
''
,
imageUrl
:
''
,
range
:
''
,
sort
:
'
666
'
,
sort
:
''
,
})
},
0
)
this
.
modifyvisible
=
true
;
...
...
@@ -308,7 +342,6 @@
//初始化
this
.
titleName
=
"编辑"
this
.
modifyForm
.
id
=
data
.
id
setTimeout
(()
=>
{
this
.
Formtable
.
setFieldsValue
({
title
:
data
.
title
,
...
...
@@ -322,7 +355,6 @@
})
},
0
)
this
.
modifyForm
.
range
=
data
.
range
;
this
.
customimg
=
"./img/custom"
+
data
.
serviceQrcode
this
.
modifyvisible
=
true
;
},
...
...
@@ -460,6 +492,68 @@
this
.
imgInfo
=
''
this
.
visiblepicture
=
false
;
},
modifyfunctionExamine
(
data
){
//初始化
this
.
titleName
=
"活动审核"
this
.
modifyFormExamine
.
id
=
data
,
this
.
modifyExamine
=
true
;
},
//提交表单
createOk
(){
this
.
Form
.
validateFields
([
'status'
],
{
force
:
true
},
(
err
,
values
)
=>
{
if
(
!
err
){
let
params
=
{
ids
:
this
.
selectedRowKeys
}
this
.
modifyFormExamine
.
status
=
values
.
status
let
obj
=
cloneObject
(
this
.
modifyFormExamine
)
//修改数据
auditActivityNew
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
if
(
res
.
state
==
"success"
)
{
setTimeout
(()
=>
{
this
.
loading
=
false
;
this
.
selectedRowKeys
=
[];
},
1000
);
this
.
hasSelected
=
true
;
this
.
modifyExamine
=
false
this
.
$message
.
success
(
res
.
data
?
res
.
data
:
'审核成功!'
,
5
);
this
.
search
();
return
null
;
}
this
.
$message
.
error
(
res
.
data
?
res
.
data
:
res
.
msg
,
5
);
})
}
})
},
createCancel
(){
this
.
Form
.
setFieldsValue
({
status
:
''
,
})
this
.
modifyFormExamine
.
id
=
""
;
this
.
modifyExamine
=
false
;
},
start
()
{
this
.
modifyFormExamine
.
id
=
""
;
this
.
Form
.
setFieldsValue
({
status
:
''
,
});
if
(
this
.
selectedRowKeys
.
length
==
0
){
this
.
$message
.
error
(
"请勾选审核项!!!"
,
5
);
return
;
}
//初始化
this
.
titleName
=
"审核"
this
.
modifyExamine
=
true
;
},
onSelectChange
(
selectedRowKeys
)
{
this
.
selectedRowKeys
=
selectedRowKeys
;
if
(
this
.
selectedRowKeys
.
length
>
0
){
this
.
hasSelected
=
false
;
}
else
{
this
.
hasSelected
=
true
;
}
},
}
}
</
script
>
...
...
src/views/school-center/activity/activityRecord.vue
View file @
2659d1b9
...
...
@@ -213,6 +213,7 @@
},
selectedRowKeys
:
[],
hasSelected
:
true
,
loading
:
false
,
}
},
methods
:{
...
...
src/views/school-center/activity/addActivity.vue
0 → 100644
View file @
2659d1b9
<
template
>
<a>
6666666666666666666666666666666666666666666666666666666666666666666
</a>
</
template
>
<
script
>
export
default
{
name
:
"addActivity"
}
</
script
>
<
style
scoped
>
</
style
>
src/views/school-center/louZhang/KpiScore.vue
0 → 100644
View file @
2659d1b9
<
template
>
</
template
>
<
script
>
export
default
{
name
:
"KpiScore"
}
</
script
>
<
style
scoped
>
</
style
>
src/views/school-center/louZhang/salesAlert.vue
0 → 100644
View file @
2659d1b9
<
template
>
</
template
>
<
script
>
export
default
{
name
:
"salesAlert"
}
</
script
>
<
style
scoped
>
</
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