Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
snow-guizhou-web-frontend
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
雪花
snow-guizhou-web-frontend
Commits
08f6250e
提交
08f6250e
authored
5月 10, 2022
作者:
郁骅焌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
审核优惠券列表
上级
11bad5e9
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
221 行增加
和
1 行删除
+221
-1
index.vue
packages/xy-table/src/index.vue
+12
-1
audit.js
src/api/coupon/audit.js
+18
-0
index.js
src/router/index.js
+13
-0
detail.vue
src/views/coupon/audit/detail.vue
+13
-0
index.vue
src/views/coupon/audit/index.vue
+165
-0
没有找到文件。
packages/xy-table/src/index.vue
浏览文件 @
08f6250e
...
@@ -214,7 +214,18 @@
...
@@ -214,7 +214,18 @@
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
class=
"operator-btn"
:style=
"table.operatorConfig && table.operatorConfig.style"
>
<div
class=
"operator-btn"
:style=
"table.operatorConfig && table.operatorConfig.style"
>
<template
v-for=
"(item, index) in operatorButtons"
>
<el-button
<el-button
v-if=
"checkIsShow(scope, item)"
:key=
"index"
:type=
"item.type || 'text'"
:style=
"item.style"
:icon=
"item.icon"
:size=
"item.size || 'small'"
@
click=
"item.fun && item.fun(scope.row, scope.$index, table.data)"
>
{{
item
.
text
}}
</el-button>
</
template
>
<!-- <el-button
v-for="(item, index) in operatorButtons"
v-for="(item, index) in operatorButtons"
v-show="checkIsShow(scope, item)"
v-show="checkIsShow(scope, item)"
:key="index"
:key="index"
...
@@ -223,7 +234,7 @@
...
@@ -223,7 +234,7 @@
:icon="item.icon"
:icon="item.icon"
:size="item.size || 'small'"
:size="item.size || 'small'"
@click="item.fun && item.fun(scope.row, scope.$index, table.data)"
@click="item.fun && item.fun(scope.row, scope.$index, table.data)"
>
{{
item
.
text
}}
</el-button>
>{{ item.text }}</el-button>
-->
<el-dropdown
<el-dropdown
v-if=
"operatorMoreButtons.length > 0"
v-if=
"operatorMoreButtons.length > 0"
...
...
src/api/coupon/audit.js
0 → 100644
浏览文件 @
08f6250e
import
request
from
'@/utils/request'
// 查询列表
export
function
listAudit
(
query
)
{
return
request
({
url
:
'/coupon/coupon/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询详细
export
function
auditDetail
(
id
)
{
return
request
({
url
:
'/coupon/coupon/'
+
id
,
method
:
'get'
})
}
src/router/index.js
浏览文件 @
08f6250e
...
@@ -145,6 +145,19 @@ export const constantRoutes = [
...
@@ -145,6 +145,19 @@ export const constantRoutes = [
meta
:
{
title
:
'修改生成配置'
,
activeMenu
:
'/tool/gen'
}
meta
:
{
title
:
'修改生成配置'
,
activeMenu
:
'/tool/gen'
}
}
}
]
]
},
{
path
:
'/coupon'
,
component
:
Layout
,
hidden
:
true
,
children
:
[
{
path
:
'couponAuditDetail/:couponDetailId(
\\
d+)'
,
component
:
(
resolve
)
=>
require
([
'@/views/coupon/audit/detail'
],
resolve
),
name
:
'AuthRole'
,
meta
:
{
title
:
'详情'
,
activeMenu
:
'/coupon/couponAudit'
}
}
]
}
}
]
]
...
...
src/views/coupon/audit/detail.vue
0 → 100644
浏览文件 @
08f6250e
<
template
>
<div>
111
</div>
</
template
>
<
script
>
export
default
{
name
:
'CouponAuditDetail'
}
</
script
>
<
style
>
</
style
>
src/views/coupon/audit/index.vue
0 → 100644
浏览文件 @
08f6250e
<
template
>
<div
class=
"app-container"
>
<xy-table
ref=
"tableRef"
:table=
"table"
:columns=
"columns"
>
<template
#
couponType=
"
{ scope }">
<dict-tag
:options=
"dict.type.coupon_type"
:value=
"scope.row.couponType"
/>
</
template
>
<
template
#
validityType=
"{ scope }"
>
{{
scope
.
row
.
validityType
===
'1'
?
`${scope.row.validityStartDate
}
~ ${scope.row.validityEndDate
}
`
:
`领取后${scope.row.validityNum
}
天内`
}}
<
/template
>
<
template
#
examineStatus
=
"{ scope
}
"
>
<
dict
-
tag
:
options
=
"dict.type.examine_status"
:
value
=
"scope.row.examineStatus"
/>
<
/template
>
<
/xy-table
>
<!--
添加或修改岗位对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"120px"
>
<
el
-
form
-
item
label
=
"分类名称"
prop
=
"categoryName"
>
<
el
-
input
v
-
model
=
"form.categoryName"
placeholder
=
"请输入分类名称"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"是否前端展示"
prop
=
"isShow"
>
<
el
-
radio
-
group
v
-
model
=
"form.isShow"
>
<
el
-
radio
v
-
for
=
"dict in dict.type.classify_isshow"
:
key
=
"dict.value"
:
label
=
"dict.value"
>
{{
dict
.
label
}}
<
/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
>
import
{
listAudit
,
auditDetail
}
from
'@/api/coupon/audit'
export
default
{
name
:
'CouponAudit'
,
dicts
:
[
'coupon_type'
,
'examine_status'
],
data
()
{
return
{
open
:
false
,
title
:
undefined
,
form
:
{
id
:
undefined
,
categoryName
:
undefined
,
isShow
:
'0'
}
,
rules
:
{
categoryName
:
[
{
required
:
true
,
message
:
"分类名称不能为空"
,
trigger
:
"blur"
}
]
}
,
table
:
{
rowKey
:
'id'
,
data
:
[],
firstColumn
:
{
type
:
'index'
}
,
// hiddenLine: true,
// 表格内操作列
operator
:
[
{
text
:
'审核'
,
icon
:
'el-icon-edit'
,
noShow
:
[{
key
:
'examineStatus'
,
val
:
[
1
,
2
]
}
],
fun
:
(
row
)
=>
this
.
handleEdit
(
row
)
}
,
{
text
:
'查看'
,
icon
:
'el-icon-delete'
,
noShow
:
[{
key
:
'examineStatus'
,
val
:
[
0
]
}
],
fun
:
(
row
)
=>
this
.
handleDetail
(
row
)
}
],
// 操作列样式
operatorConfig
:
{
width
:
140
}
,
// 表格外操作
toolbar
:
[
//
{
// text: '新增分类',
// icon: 'el-icon-plus',
// type: 'primary',
// fun: () => this.handleAdd()
//
}
],
// 分页配置
page
:
{
total
:
0
,
pageNum
:
1
,
pageSize
:
10
}
,
// 搜索表单配置
searchForm
:
{
formLabelWidth
:
'90px'
,
formData
:
{
couponTitle
:
undefined
,
examineStatus
:
undefined
}
,
fieldList
:
[
{
prop
:
'couponTitle'
,
label
:
'优惠券标题'
,
type
:
'input'
}
,
{
prop
:
'examineStatus'
,
label
:
'状态'
,
type
:
'select'
,
options
:
'examineStatusOptions'
}
],
// 相关下拉列表
listOptions
:
{
examineStatusOptions
:
[]
}
}
,
// 请求
request
:
listAudit
}
,
columns
:
[
{
prop
:
'couponTitle'
,
label
:
'优惠券标题'
}
,
{
prop
:
'couponType'
,
label
:
'优惠券类型'
,
slotName
:
'couponType'
}
,
{
prop
:
'categoryName'
,
label
:
'优惠券分类'
}
,
{
prop
:
'validityType'
,
label
:
'有效期'
,
slotName
:
'validityType'
,
minWidth
:
200
}
,
{
prop
:
'createTime'
,
label
:
'创建时间'
}
,
{
prop
:
'createBy'
,
label
:
'创建人'
}
,
{
prop
:
'examineStatus'
,
label
:
'状态'
,
slotName
:
'examineStatus'
}
,
{
prop
:
'examinePerson'
,
label
:
'审核人'
}
,
{
prop
:
'examineTime'
,
label
:
'审核时间'
}
,
]
}
}
,
mounted
()
{
this
.
initOptions
()
}
,
methods
:
{
initOptions
()
{
this
.
table
.
searchForm
.
listOptions
.
examineStatusOptions
=
this
.
dict
.
type
.
examine_status
}
,
/** 查询列表 */
getList
()
{
this
.
$refs
.
tableRef
.
getData
()
}
,
/** 新增按钮操作 */
handleAdd
()
{
}
,
/** 编辑按钮操作 */
handleEdit
(
row
)
{
}
,
/** 删除按钮操作 */
async
handleDelete
(
row
)
{
}
,
// 查询详情
handleDetail
(
row
)
{
this
.
$router
.
push
({
path
:
'/coupon/couponAuditDetail/'
+
row
.
couponDetailId
}
)
}
}
}
<
/script
>
<
style
>
<
/style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论