|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="discountCodeList">
|
|
|
<Header/>
|
|
|
- <Nav navValue="优惠码管理"/>
|
|
|
+ <Nav navValue="授权码管理"/>
|
|
|
<div class="contentInner">
|
|
|
<div class="search-form">
|
|
|
<el-form
|
|
@@ -10,8 +10,8 @@
|
|
|
style="margin-left: 10px"
|
|
|
>
|
|
|
<el-form-item>
|
|
|
- <el-form-item class="label-input" label="优惠码" style="margin-right:30px;">
|
|
|
- <el-input placeholder="输入生成激活码数量" v-model="discountNumber" type="number" oninput ="value=value.replace(/[^0-9]/g,'')"></el-input>
|
|
|
+ <el-form-item class="label-input" label="授权码" style="margin-right:30px;">
|
|
|
+ <el-input placeholder="输入生成激活码数量" v-model="discountNumber" type="number" :oninput="numberInput"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-button @click="onSubmit" size="medium" type="primary" :loading="loading">生成</el-button>
|
|
|
</el-form-item>
|
|
@@ -27,7 +27,7 @@
|
|
|
</div>
|
|
|
<div class="table-box">
|
|
|
<el-table :data="tableData" style="width: 100%" v-loading="tableloading">
|
|
|
- <el-table-column class="table-firstC" label="优惠码" prop="discount_code" width="150"></el-table-column>
|
|
|
+ <el-table-column class="table-firstC" label="授权码" prop="discount_code" width="150"></el-table-column>
|
|
|
<el-table-column label="状态" prop="is_used" width="150" :formatter="handleStatus"></el-table-column>
|
|
|
<el-table-column label="使用者" prop="consumer_name" width="150"></el-table-column>
|
|
|
<el-table-column label="使用时间" prop="use_time" width="200"></el-table-column>
|
|
@@ -89,6 +89,9 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods:{
|
|
|
+ numberInput() {
|
|
|
+ this.discountNumber = this.discountNumber.replace(/[^0-9]/g, "");
|
|
|
+ },
|
|
|
// 切换每页条数
|
|
|
handleSizeChange (val) {
|
|
|
this.currentPage = 1;
|
|
@@ -159,7 +162,7 @@ export default {
|
|
|
},
|
|
|
// 删除书籍
|
|
|
handleDel (row) {
|
|
|
- this.$confirm("确定要删除此优惠码吗?", "提示", {
|
|
|
+ this.$confirm("确定要删除此授权码吗?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|