parent
4cc5c068d0
commit
6cbde05399
@ -0,0 +1,93 @@ |
||||
<template> |
||||
<div class="app-container"> |
||||
<el-button type="primary" @click="open = true">新增优惠券</el-button> |
||||
<el-button>批量删除</el-button> |
||||
<el-table :data="dataList" border class="table"> |
||||
<el-table-column type="index" align="center" label="序号"></el-table-column> |
||||
<el-table-column label="优惠券" align="center">满300减50</el-table-column> |
||||
<el-table-column label="创建人" align="center">张帆</el-table-column> |
||||
<el-table-column label="角色" align="center">经销商、普通用户</el-table-column> |
||||
<el-table-column label="备注" align="center"></el-table-column> |
||||
<el-table-column label="创建事件" align="center">2022-12-31 12:31</el-table-column> |
||||
<el-table-column label="状态" align="center"> |
||||
<el-switch active-color="#13ce66" inactive-color="#13ce66"> |
||||
</el-switch> |
||||
</el-table-column> |
||||
<el-table-column label="操作" align="center"> |
||||
<el-button type="text">编辑</el-button> |
||||
<el-button type="text">删除</el-button> |
||||
</el-table-column> |
||||
</el-table> |
||||
|
||||
<el-dialog :visible.sync="open" title="新增新人优惠券"> |
||||
<el-form :inline="true" :model="form" ref="form"> |
||||
<el-form-item label="满"> |
||||
<el-input placeholder="请输入"></el-input> |
||||
</el-form-item> |
||||
<el-form-item label="元,减"> |
||||
<el-input placeholder="请输入"></el-input> |
||||
</el-form-item> |
||||
<el-form-item>元</el-form-item> |
||||
<br /> |
||||
<el-form-item label="排序"> |
||||
<el-input v-model="form.sort" prop="sort"></el-input> |
||||
</el-form-item> |
||||
<br /> |
||||
<el-form-item label="使用限制" prop="limit"> |
||||
<el-input v-model="form.limit"></el-input> |
||||
</el-form-item> |
||||
<br /> |
||||
<el-form-item label="备注" prop="remark"> |
||||
<el-input v-model="form.remark" type="textarea" autosize></el-input> |
||||
</el-form-item> |
||||
</el-form> |
||||
<div class="text-center"> |
||||
<el-button type="primary" @click="save">保存</el-button> |
||||
<el-button @click="reset">重置</el-button> |
||||
</div> |
||||
</el-dialog> |
||||
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" |
||||
:limit.sync="queryParams.pageSize" @pagination="getList" /> |
||||
</div> |
||||
</template> |
||||
<script> |
||||
export default { |
||||
name: "Coupon", |
||||
data() { |
||||
return { |
||||
open: false, |
||||
dataList: [{}], |
||||
total: 1, |
||||
//查询参数 |
||||
queryParams: { |
||||
pageNum: 1, |
||||
pageSize: 10, |
||||
}, |
||||
form: { |
||||
sort: 1, |
||||
limit: '全场通用', |
||||
remark: '' |
||||
} |
||||
} |
||||
}, |
||||
methods: { |
||||
reset() { |
||||
this.resetForm('form') |
||||
|
||||
}, |
||||
getList() { |
||||
|
||||
}, |
||||
save() { |
||||
this.$modal.msgSuccess('保存成功') |
||||
this.open = false |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
<style scoped lang="scss"> |
||||
.table { |
||||
margin-top: 10px; |
||||
} |
||||
</style> |
Loading…
Reference in new issue