Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
snow-guizhou-web-frontend
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
雪花
snow-guizhou-web-frontend
Commits
812f3b05
提交
812f3b05
authored
5月 12, 2022
作者:
郁骅焌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
满减券编辑
上级
46d4cae0
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
52 行增加
和
2 行删除
+52
-2
list.js
src/api/coupon/list.js
+17
-0
index.scss
src/assets/styles/index.scss
+24
-0
edit.vue
src/views/coupon/list/edit.vue
+0
-0
index.vue
src/views/coupon/list/index.vue
+11
-2
没有找到文件。
src/api/coupon/list.js
浏览文件 @
812f3b05
...
...
@@ -17,3 +17,20 @@ export function editStatus(data) {
data
:
data
})
}
// 查询详细
export
function
couponDetail
(
id
)
{
return
request
({
url
:
'/xh/coupon/coupon/xh/'
+
id
,
method
:
'get'
})
}
// 修改
export
function
editCoupon
(
data
)
{
return
request
({
url
:
'/xh/coupon/coupon/edit'
,
method
:
'post'
,
data
:
data
})
}
src/assets/styles/index.scss
浏览文件 @
812f3b05
...
...
@@ -259,3 +259,27 @@ aside {
position
:
relative
;
}
}
$form-input-width
:
688px
;
.form-common-input
{
.el-input
,
.el-textarea
,
.vue-treeselect
{
width
:
$form-input-width
;
}
.el-input__inner
{
width
:
$form-input-width
;
}
.el-tag--medium
{
color
:
#3370ff
;
background-color
:
#fff
;
border-radius
:
2px
;
border
:
1px
solid
#3370ff
;
.el-tag__close
:hover
{
color
:
#aeb1c1
;
background-color
:
#fff
;
}
}
}
src/views/coupon/list/edit.vue
0 → 100644
浏览文件 @
812f3b05
差异被折叠。
点击展开。
src/views/coupon/list/index.vue
浏览文件 @
812f3b05
...
...
@@ -143,7 +143,7 @@ export default {
columns
:
[
{
prop
:
'couponName'
,
label
:
'优惠券标题'
}
,
{
prop
:
'couponType'
,
label
:
'优惠券类型'
,
slotName
:
'couponType'
}
,
{
prop
:
'categoryName'
,
label
:
'优惠券分类'
}
,
{
prop
:
'categoryName
s
'
,
label
:
'优惠券分类'
}
,
{
prop
:
'expiryType'
,
label
:
'有效期'
,
slotName
:
'expiryType'
,
minWidth
:
200
}
,
{
prop
:
'total'
,
label
:
'总库存'
}
,
{
label
:
'剩余库存'
,
slotName
:
'left'
}
,
...
...
@@ -155,6 +155,12 @@ export default {
mounted
()
{
this
.
initOptions
()
}
,
// 页面被触发
activated
()
{
if
(
this
.
$route
.
params
&&
this
.
$route
.
params
.
refreshTable
)
{
this
.
getList
()
}
}
,
methods
:
{
initOptions
()
{
this
.
table
.
searchForm
.
listOptions
.
couponTypeOptions
=
this
.
dict
.
type
.
coupon_type2
...
...
@@ -169,7 +175,10 @@ export default {
}
,
/** 编辑按钮操作 */
handleEdit
(
row
)
{
this
.
$tab
.
closePage
({
name
:
'CouponEdit'
}
)
this
.
$nextTick
(()
=>
{
this
.
$router
.
push
({
name
:
'CouponEdit'
,
query
:
{
id
:
row
.
couponInfoId
}}
)
}
)
}
,
/** 删除按钮操作 */
async
handleDelete
(
row
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论