Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
br-client
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0a7a1d13
...
0a7a1d137688383434fd2c9e53b29c77b0562408
authored
2021-05-25 17:45:04 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
6cfee680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
125 additions
and
11 deletions
src/page/activityConfig.vue
src/page/activityConfig.vue
View file @
0a7a1d1
...
...
@@ -172,7 +172,67 @@
label=
"机构code规则"
min-width=
"3"
>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"1"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"medium"
@
click=
"handleEdit(scope.$index, scope.row)"
>
编辑
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-drawer
title=
"修改活动信息表"
:visible
.
sync=
"activityInfosDrawer"
direction=
"ltr"
>
<el-form
:model=
"activityInfosForm"
:label-width=
"formLabelWidth"
>
<el-form-item
label=
"活动ID"
>
<el-input
v-model=
"activityInfosForm.id"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"上线状态"
>
<el-input
v-model=
"activityInfosForm.status"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"活动名称"
>
<el-input
v-model=
"activityInfosForm.name"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"参与角色"
>
<el-input
v-model=
"activityInfosForm.joinRoleType"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"预热开始时间"
>
<el-date-picker
v-model=
"activityInfosForm.displayStartTime"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"选择日期时间"
/>
</el-form-item>
<el-form-item
label=
"活动开始时间"
>
<el-date-picker
v-model=
"activityInfosForm.startTime"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"选择日期时间"
/>
</el-form-item>
<el-form-item
label=
"活动结束时间"
>
<el-date-picker
v-model=
"activityInfosForm.endTime"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"选择日期时间"
/>
</el-form-item>
<el-form-item
label=
"展示结束时间"
>
<el-date-picker
v-model=
"activityInfosForm.displayEndTime"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"选择日期时间"
/>
</el-form-item>
<el-form-item
label=
"机构code规则"
>
<el-input
type=
"textarea"
autosize=
"true"
v-model=
"activityInfosForm.locationCodeRule"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"activityInfosFormSubmit"
>
修改
</el-button>
</el-form-item>
</el-form>
</el-drawer>
<br/>
<br/>
<a
href=
"http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498"
target=
"_blank"
>
抽奖规则设置表(health_activity.tbl_activity_dial_config)
</a>
...
...
@@ -324,7 +384,20 @@
activityInfos
:
[],
activityPopPanels
:
[],
operateBannerInfos
:
[],
operateMsgInfos
:
[]
operateMsgInfos
:
[],
activityInfosDrawer
:
false
,
activityInfosForm
:
{
id
:
''
,
status
:
''
,
name
:
''
,
joinRoleType
:
''
,
displayStartTime
:
''
,
startTime
:
''
,
endTime
:
''
,
displayEndTime
:
''
,
locationCodeRule
:
''
},
formLabelWidth
:
'110px'
}
},
mounted
()
{
...
...
@@ -366,16 +439,57 @@
});
})
},
openFullScreen
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
setTimeout
(()
=>
{
loading
.
close
();
},
2000
);
handleEdit
(
index
,
row
)
{
console
.
log
(
row
);
this
.
activityInfosDrawer
=
true
;
this
.
activityInfosForm
.
id
=
row
.
id
;
this
.
activityInfosForm
.
status
=
row
.
status
;
this
.
activityInfosForm
.
name
=
row
.
name
;
this
.
activityInfosForm
.
joinRoleType
=
row
.
joinRoleType
;
this
.
activityInfosForm
.
displayStartTime
=
row
.
displayStartTime
;
this
.
activityInfosForm
.
startTime
=
row
.
startTime
;
this
.
activityInfosForm
.
endTime
=
row
.
endTime
;
this
.
activityInfosForm
.
displayEndTime
=
row
.
displayEndTime
;
this
.
activityInfosForm
.
locationCodeRule
=
row
.
locationCodeRule
;
},
activityInfosFormSubmit
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/activityInfosEdit?'
+
this
.
$qs
.
stringify
({
id
:
this
.
activityInfosForm
.
id
,
displayStartTime
:
this
.
activityInfosForm
.
displayStartTime
,
startTime
:
this
.
activityInfosForm
.
startTime
,
endTime
:
this
.
activityInfosForm
.
endTime
,
displayEndTime
:
this
.
activityInfosForm
.
displayEndTime
,
locationCodeRule
:
this
.
activityInfosForm
.
locationCodeRule
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
activityInfosDrawer
=
false
;
if
(
res
.
data
==
'success'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'活动信息表修改成功'
,
type
:
'success'
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
'活动信息表修改失败'
,
type
:
'error'
});
}
}).
catch
(
error
=>
{
console
.
log
(
error
);
this
.
activityInfosDrawer
=
false
;
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
}
}
}
...
...
Please
register
or
sign in
to post a comment