Commit 0930bcdd by lixiaomin

修改优惠券

parent e99c26ef
......@@ -41,7 +41,7 @@
<a @click="handleUpdate(scope.row)" style="color: blue">{{ scope.row.name }}</a>
</template>
</el-table-column>
<el-table-column label="类别" align="center" prop="typeDesc" />
<el-table-column label="类别" align="center" prop="categoryName" />
<el-table-column label="券价值" align="center">
<template slot-scope="scope">
{{ scope.row.ruleDesc }}{{scope.row.ruleName}}
......@@ -79,7 +79,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="150px">
<el-row>
<el-form-item label="优惠券名称" prop="name">
<el-input v-model="form.name" placeholder="请输入优惠券名称" minlength="1" maxlength="100"/>
<el-input v-model="form.name" placeholder="请输入优惠券名称" minlength="1" maxlength="10"/>
</el-form-item>
</el-row>
<el-row>
......@@ -443,7 +443,7 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.queryParams.name=null;
this.queryParams.state=null;
this.queryParams.categoryId=null;
this.handleQuery();
},
/** 新增按钮操作 */
......@@ -519,9 +519,9 @@ export default {
this.priceLimit=response.data.priceLimit;
}
}
if(response.data.daysLimit==0){
if(response.data.daysLimit==0 && response.data.userLimit==0){
this.form.userNumber=2
}else if(response.data.daysLimit!=0){
}else{
this.form.userNumber=1;
this.form.daysLimit=response.data.daysLimit;
this.form.userLimit=response.data.userLimit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment