Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
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
pseer
gxpt_web
Commits
4ddb211d
Commit
4ddb211d
authored
Nov 21, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加集点活动日志
parent
8c7af64c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
677 additions
and
0 deletions
+677
-0
index.vue
src/api/system/pointActivityLog/index.vue
+359
-0
index.vue
src/views/system/pointActivityLog/index.vue
+318
-0
No files found.
src/api/system/pointActivityLog/index.vue
0 → 100644
View file @
4ddb211d
<
template
>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form-item
label=
"用户ID"
prop=
"consumerId"
>
<el-input
v-model=
"queryParams.consumerId"
clearable
placeholder=
"请输入用户ID"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"集点活动id"
prop=
"pointActivityId"
>
<el-input
v-model=
"queryParams.pointActivityId"
clearable
placeholder=
"请输入集点活动id"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"优惠券Id"
prop=
"couponId"
>
<el-input
v-model=
"queryParams.couponId"
clearable
placeholder=
"请输入优惠券Id"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"订单编号"
prop=
"orderNo"
>
<el-input
v-model=
"queryParams.orderNo"
clearable
placeholder=
"请输入订单编号"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"点数"
prop=
"point"
>
<el-input
v-model=
"queryParams.point"
clearable
placeholder=
"请输入点数"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"消费时间"
prop=
"consumptionTime"
>
<el-date-picker
v-model=
"queryParams.consumptionTime"
clearable
placeholder=
"请选择消费时间"
type=
"date"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"是否删除(0:否,1:是)"
prop=
"isDelete"
>
<el-input
v-model=
"queryParams.isDelete"
clearable
placeholder=
"请输入是否删除(0:否,1:是)"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['system:pointActivityLog:add']"
icon=
"el-icon-plus"
plain
size=
"mini"
type=
"primary"
@
click=
"handleAdd"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['system:pointActivityLog:edit']"
:disabled=
"single"
icon=
"el-icon-edit"
plain
size=
"mini"
type=
"success"
@
click=
"handleUpdate"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['system:pointActivityLog:remove']"
:disabled=
"multiple"
icon=
"el-icon-delete"
plain
size=
"mini"
type=
"danger"
@
click=
"handleDelete"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['system:pointActivityLog:export']"
icon=
"el-icon-download"
plain
size=
"mini"
type=
"warning"
@
click=
"handleExport"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"pointActivityLogList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"用户ID"
prop=
"consumerId"
/>
<el-table-column
align=
"center"
label=
"集点活动id"
prop=
"pointActivityId"
/>
<el-table-column
align=
"center"
label=
"优惠券Id"
prop=
"couponId"
/>
<el-table-column
align=
"center"
label=
"订单编号"
prop=
"orderNo"
/>
<el-table-column
align=
"center"
label=
"点数"
prop=
"point"
/>
<el-table-column
align=
"center"
label=
"消费时间"
prop=
"consumptionTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
consumptionTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"是否删除(0:否,1:是)"
prop
=
"isDelete"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"备注"
prop
=
"remark"
/>
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
v
-
hasPermi
=
"['system:pointActivityLog:edit']"
icon
=
"el-icon-edit"
size
=
"mini"
type
=
"text"
@
click
=
"handleUpdate(scope.row)"
>
修改
<
/el-button
>
<
el
-
button
v
-
hasPermi
=
"['system:pointActivityLog:remove']"
icon
=
"el-icon-delete"
size
=
"mini"
type
=
"text"
@
click
=
"handleDelete(scope.row)"
>
删除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"total>0"
:
limit
.
sync
=
"queryParams.pageSize"
:
page
.
sync
=
"queryParams.pageNum"
:
total
=
"total"
@
pagination
=
"getList"
/>
<!--
添加或修改集点活动日志对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
append
-
to
-
body
width
=
"500px"
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"用户ID"
prop
=
"consumerId"
>
<
el
-
input
v
-
model
=
"form.consumerId"
placeholder
=
"请输入用户ID"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"集点活动id"
prop
=
"pointActivityId"
>
<
el
-
input
v
-
model
=
"form.pointActivityId"
placeholder
=
"请输入集点活动id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"优惠券Id"
prop
=
"couponId"
>
<
el
-
input
v
-
model
=
"form.couponId"
placeholder
=
"请输入优惠券Id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"订单编号"
prop
=
"orderNo"
>
<
el
-
input
v
-
model
=
"form.orderNo"
placeholder
=
"请输入订单编号"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"点数"
prop
=
"point"
>
<
el
-
input
v
-
model
=
"form.point"
placeholder
=
"请输入点数"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"消费时间"
prop
=
"consumptionTime"
>
<
el
-
date
-
picker
v
-
model
=
"form.consumptionTime"
clearable
placeholder
=
"请选择消费时间"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"是否删除(0:否,1:是)"
prop
=
"isDelete"
>
<
el
-
input
v
-
model
=
"form.isDelete"
placeholder
=
"请输入是否删除(0:否,1:是)"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
>
<
el
-
input
v
-
model
=
"form.remark"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<
/div
>
<
/template
>
<
script
>
import
{
listPointActivityLog
,
getPointActivityLog
,
delPointActivityLog
,
addPointActivityLog
,
updatePointActivityLog
}
from
"@/api/system/pointActivityLog"
;
export
default
{
name
:
"PointActivityLog"
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 集点活动日志表格数据
pointActivityLogList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
consumerId
:
null
,
pointActivityId
:
null
,
couponId
:
null
,
orderNo
:
null
,
point
:
null
,
consumptionTime
:
null
,
isDelete
:
null
,
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询集点活动日志列表 */
getList
()
{
this
.
loading
=
true
;
listPointActivityLog
(
this
.
queryParams
).
then
(
response
=>
{
this
.
pointActivityLogList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
id
:
null
,
consumerId
:
null
,
pointActivityId
:
null
,
couponId
:
null
,
orderNo
:
null
,
point
:
null
,
consumptionTime
:
null
,
isDelete
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
remark
:
null
}
;
this
.
resetForm
(
"form"
);
}
,
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加集点活动日志"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
id
=
row
.
id
||
this
.
ids
getPointActivityLog
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改集点活动日志"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
updatePointActivityLog
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addPointActivityLog
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除集点活动日志编号为"'
+
ids
+
'"的数据项?'
).
then
(
function
()
{
return
delPointActivityLog
(
ids
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
this
.
download
(
'system/pointActivityLog/export'
,
{
...
this
.
queryParams
}
,
`pointActivityLog_${new Date().getTime()
}
.xlsx`
)
}
}
}
;
<
/script
>
src/views/system/pointActivityLog/index.vue
0 → 100644
View file @
4ddb211d
<
template
>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"68px"
size=
"small"
>
<el-form-item
label=
"订单编号"
prop=
"orderNo"
>
<el-input
v-model=
"queryParams.orderNo"
clearable
placeholder=
"请输入订单编号"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"点数"
prop=
"point"
>
<el-input
v-model=
"queryParams.point"
clearable
placeholder=
"请输入点数"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"消费时间"
prop=
"consumptionTime"
>
<el-date-picker
v-model=
"queryParams.consumptionTime"
clearable
placeholder=
"请选择消费时间"
type=
"date"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
size=
"mini"
type=
"primary"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-button-->
<!-- type="primary"-->
<!-- plain-->
<!-- icon="el-icon-plus"-->
<!-- size="mini"-->
<!-- @click="handleAdd"-->
<!-- v-hasPermi="['system:pointActivityLog:add']"-->
<!-- >新增
</el-button>
-->
<!--
</el-col>
-->
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-button-->
<!-- type="success"-->
<!-- plain-->
<!-- icon="el-icon-edit"-->
<!-- size="mini"-->
<!-- :disabled="single"-->
<!-- @click="handleUpdate"-->
<!-- v-hasPermi="['system:pointActivityLog:edit']"-->
<!-- >修改
</el-button>
-->
<!--
</el-col>
-->
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-button-->
<!-- type="danger"-->
<!-- plain-->
<!-- icon="el-icon-delete"-->
<!-- size="mini"-->
<!-- :disabled="multiple"-->
<!-- @click="handleDelete"-->
<!-- v-hasPermi="['system:pointActivityLog:remove']"-->
<!-- >删除
</el-button>
-->
<!--
</el-col>
-->
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['system:pointActivityLog:export']"
icon=
"el-icon-download"
plain
size=
"mini"
type=
"warning"
@
click=
"handleExport"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"pointActivityLogList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
label=
"主键"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"用户ID"
prop=
"consumerId"
/>
<el-table-column
align=
"center"
label=
"集点活动id"
prop=
"pointActivityId"
/>
<el-table-column
align=
"center"
label=
"订单编号"
prop=
"orderNo"
/>
<el-table-column
align=
"center"
label=
"点数"
prop=
"point"
/>
<el-table-column
align=
"center"
label=
"消费时间"
prop=
"consumptionTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
consumptionTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"备注"
prop
=
"remark"
/>
<!--
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>-->
<!--
<
template
slot
-
scope
=
"scope"
>-->
<!--
<
el
-
button
-->
<!--
size
=
"mini"
-->
<!--
type
=
"text"
-->
<!--
icon
=
"el-icon-edit"
-->
<!--
@
click
=
"handleUpdate(scope.row)"
-->
<!--
v
-
hasPermi
=
"['system:pointActivityLog:edit']"
-->
<!--
>
修改
<
/el-button>--
>
<!--
<
el
-
button
-->
<!--
size
=
"mini"
-->
<!--
type
=
"text"
-->
<!--
icon
=
"el-icon-delete"
-->
<!--
@
click
=
"handleDelete(scope.row)"
-->
<!--
v
-
hasPermi
=
"['system:pointActivityLog:remove']"
-->
<!--
>
删除
<
/el-button>--
>
<!--
<
/template>--
>
<!--
<
/el-table-column>--
>
<
/el-table
>
<
pagination
v
-
show
=
"total>0"
:
limit
.
sync
=
"queryParams.pageSize"
:
page
.
sync
=
"queryParams.pageNum"
:
total
=
"total"
@
pagination
=
"getList"
/>
<!--
添加或修改集点活动日志对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
append
-
to
-
body
width
=
"500px"
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"用户ID"
prop
=
"consumerId"
>
<
el
-
input
v
-
model
=
"form.consumerId"
placeholder
=
"请输入用户ID"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"集点活动id"
prop
=
"pointActivityId"
>
<
el
-
input
v
-
model
=
"form.pointActivityId"
placeholder
=
"请输入集点活动id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"订单编号"
prop
=
"orderNo"
>
<
el
-
input
v
-
model
=
"form.orderNo"
placeholder
=
"请输入订单编号"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"点数"
prop
=
"point"
>
<
el
-
input
v
-
model
=
"form.point"
placeholder
=
"请输入点数"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"消费时间"
prop
=
"consumptionTime"
>
<
el
-
date
-
picker
v
-
model
=
"form.consumptionTime"
clearable
placeholder
=
"请选择消费时间"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"是否删除(0:否,1:是)"
prop
=
"isDelete"
>
<
el
-
input
v
-
model
=
"form.isDelete"
placeholder
=
"请输入是否删除(0:否,1:是)"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
>
<
el
-
input
v
-
model
=
"form.remark"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<
/div
>
<
/template
>
<
script
>
import
{
listPointActivityLog
,
getPointActivityLog
,
delPointActivityLog
,
addPointActivityLog
,
updatePointActivityLog
}
from
"@/api/system/pointActivityLog"
;
export
default
{
name
:
"PointActivityLog"
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 集点活动日志表格数据
pointActivityLogList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
consumerId
:
null
,
pointActivityId
:
null
,
couponId
:
null
,
orderNo
:
null
,
point
:
null
,
consumptionTime
:
null
,
isDelete
:
null
,
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询集点活动日志列表 */
getList
()
{
this
.
loading
=
true
;
listPointActivityLog
(
this
.
queryParams
).
then
(
response
=>
{
this
.
pointActivityLogList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
id
:
null
,
consumerId
:
null
,
pointActivityId
:
null
,
couponId
:
null
,
orderNo
:
null
,
point
:
null
,
consumptionTime
:
null
,
isDelete
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
remark
:
null
}
;
this
.
resetForm
(
"form"
);
}
,
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加集点活动日志"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
id
=
row
.
id
||
this
.
ids
getPointActivityLog
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改集点活动日志"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
updatePointActivityLog
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addPointActivityLog
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除集点活动日志编号为"'
+
ids
+
'"的数据项?'
).
then
(
function
()
{
return
delPointActivityLog
(
ids
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
this
.
download
(
'system/pointActivityLog/export'
,
{
...
this
.
queryParams
}
,
`pointActivityLog_${new Date().getTime()
}
.xlsx`
)
}
}
}
;
<
/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