Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
P
park-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
huang
park-ui
Commits
3d4f422b
提交
3d4f422b
authored
6月 04, 2020
作者:
huang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加模块
上级
e0f81280
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
284 行增加
和
0 行删除
+284
-0
refundList.js
src/api/refund/refundList.js
+10
-0
index.vue
src/views/announcement/announcementList/index.vue
+9
-0
index.vue
src/views/recipe/recipeSetting/index.vue
+9
-0
index.vue
src/views/recipe/recipeType/index.vue
+9
-0
index.vue
src/views/refund/refundList/index.vue
+247
-0
没有找到文件。
src/api/refund/refundList.js
0 → 100644
浏览文件 @
3d4f422b
import
request
from
'@/utils/request'
// 查询定时任务调度列表
export
function
listRefund
(
query
)
{
return
request
({
url
:
'/monitor/job/list'
,
method
:
'get'
,
params
:
query
})
}
src/views/announcement/announcementList/index.vue
0 → 100644
浏览文件 @
3d4f422b
<
template
>
<div>
666
</div>
</
template
>
<
script
>
</
script
>
<
style
scoped
>
</
style
>
src/views/recipe/recipeSetting/index.vue
0 → 100644
浏览文件 @
3d4f422b
<
template
>
<div>
666
</div>
</
template
>
<
script
>
</
script
>
<
style
scoped
>
</
style
>
src/views/recipe/recipeType/index.vue
0 → 100644
浏览文件 @
3d4f422b
<
template
>
<div>
666
</div>
</
template
>
<
script
>
</
script
>
<
style
scoped
>
</
style
>
src/views/refund/refundList/index.vue
0 → 100644
浏览文件 @
3d4f422b
<
template
>
<div
class=
"app-container"
>
<!--搜索框-->
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"参数"
prop=
"id"
>
<el-input
v-model=
"queryParams.id"
placeholder=
"文本框"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"参数"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"文本框"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"参数"
prop=
"rechargeTotal"
>
<el-select
v-model=
"queryParams.rechargeTotal"
placeholder=
"请选择充值金额"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"参数"
prop=
"updateTime"
>
<el-date-picker
clearable
size=
"small"
style=
"width: 200px"
v-model=
"queryParams.updateTime"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择最新更新时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"参数"
prop=
"createTime"
>
<el-input
v-model=
"queryParams.createTime"
placeholder=
"请输入创建时间"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"即时配送"
prop=
"delivery"
>
<el-switch
v-model=
"queryParams.delivery"
></el-switch>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
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"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:account:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['system:account:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['system:account:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
v-hasPermi=
"['system:account:export']"
>
导出
</el-button>
</el-col>
</el-row>
<!--列表标题-->
<el-table
v-loading=
"loading"
:data=
"accountList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"余额"
align=
"center"
prop=
"balance"
/>
<el-table-column
label=
"状态 1:正常 -1:冻结"
align=
"center"
prop=
"status"
/>
<el-table-column
label=
"充值金额"
align=
"center"
prop=
"rechargeTotal"
/>
<el-table-column
label=
"消费金额"
align=
"center"
prop=
"consumeTotal"
/>
<el-table-column
label=
"最新更新时间"
align=
"center"
prop=
"updateTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
updateTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"创建时间"
align
=
"center"
prop
=
"createTime"
/>
<
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:account:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['system:account:remove']"
>
删除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<!--
分页组件
-->
<
pagination
v
-
show
=
"total>0"
:
total
=
"total"
:
page
.
sync
=
"queryParams.pageNum"
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
/>
<!--
添加或修改账户对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"余额"
prop
=
"balance"
>
<
el
-
input
v
-
model
=
"form.balance"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"状态 1:正常 -1:冻结"
>
<
el
-
select
v
-
model
=
"form.status"
placeholder
=
"请选择状态 1:正常 -1:冻结"
>
<
el
-
option
label
=
"请选择字典生成"
value
=
""
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"充值金额"
>
<
el
-
radio
-
group
v
-
model
=
"form.rechargeTotal"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/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
>
export
default
{
name
:
"Account"
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 总条数
total
:
0
,
// 账户表格数据
accountList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询账户列表 */
getList
()
{
this
.
loading
=
true
;
//请求后台 请求成功后 this.loading = false;
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
//参数名: undefined
}
;
this
.
resetForm
(
"form"
);
}
,
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
//收集item的id
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
//如果选了多条列表,single设置为false,此时编辑按钮就禁用 :disabled="single"
this
.
single
=
selection
.
length
!=
1
//如果没有选择列表,multiple设置为false,此时删除按钮就禁用 :disabled="multiple"
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加账户"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
id
=
row
.
id
||
this
.
ids
getAccount
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改账户"
;
}
);
}
,
/** 提交按钮 */
submitForm
:
function
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
undefined
)
{
updateAccount
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
else
{
this
.
msgError
(
response
.
msg
);
}
}
);
}
else
{
addAccount
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
else
{
this
.
msgError
(
response
.
msg
);
}
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除账户编号为"'
+
ids
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delAccount
(
ids
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(
function
()
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有账户数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
exportAccount
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
}
).
catch
(
function
()
{
}
);
}
}
}
;
<
/script
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论