Commit 772845ba by chenwq

无有效期-永久有效

1 parent 4e1cfa55
......@@ -14,7 +14,7 @@
<el-form-item size="small" label="有效期" prop="effectiveType">
<div class="radioGroupWrap">
<el-radio-group v-model="ruleForm.effectiveType" :disabled="disabledContent">
<el-radio :label="3" class="itemBlock">无有效期</el-radio>
<el-radio :label="3" class="itemBlock">永久有效</el-radio>
<!-- effectiveType:1, effectiveDays:5 -->
<el-radio :label="1">
领取后
......@@ -233,7 +233,7 @@ export default {
// delivery: false,
// type: [],
// resource: '',
effectiveType: 3, //有效期(默认无有效期)
effectiveType: 3, //有效期(默认永久有效)
effectiveDays: '',
customUseLimit: 0, //使用限制(默认不限制使用次数)
limitTime1: 1,
......
......@@ -250,7 +250,7 @@ export default {
toLabelText(row) {
switch (row.effectiveType) {
case 3:
return '无有效期'
return '永久有效'
case 2:
return row.effectiveStartTime ? row.effectiveStartTime.split(' ')[0] + '-' + row.effectiveEndTime.split(' ')[0] : ''
case 1:
......
......@@ -277,7 +277,7 @@ export default {
toLabelText(row) {
switch (row.effectiveType) {
case 3:
return '无有效期'
return '永久有效'
case 2:
return row.effectiveStartTime ? row.effectiveStartTime.split(' ')[0] + '-' + row.effectiveEndTime.split(' ')[0] : ''
case 1:
......
......@@ -165,7 +165,7 @@ export default {
toLabelText(row) {
switch (row.effectiveType) {
case 3:
return '无有效期'
return '永久有效'
case 2:
return row.effectiveStartTime ? row.effectiveStartTime.split(' ')[0] + '-' + row.effectiveEndTime.split(' ')[0] : ''
case 1:
......
......@@ -14,7 +14,7 @@
<el-form-item size="small" label="有效期" prop="effectiveType">
<div class="radioGroupWrap">
<el-radio-group v-model="ruleForm.effectiveType" :disabled="disabledContent">
<el-radio :label="3" class="itemBlock">无有效期</el-radio>
<el-radio :label="3" class="itemBlock">永久有效</el-radio>
<!-- effectiveType:1, effectiveDays:5 -->
<el-radio :label="1">
领取后
......@@ -239,7 +239,7 @@ export default {
// delivery: false,
// type: [],
// resource: '',
effectiveType: 3, //有效期(默认无有效期)
effectiveType: 3, //有效期(默认永久有效)
effectiveDays: '',
customUseLimit: 0, //使用限制(默认不限制使用次数)
limitTime1: 1,
......
......@@ -87,7 +87,7 @@
<span>¥</span>
{{ item.vipPrice }}
</div>
<div class="effectiveRange" v-if="item.effectiveType == 3">有效期:无有效期</div>
<div class="effectiveRange" v-if="item.effectiveType == 3">有效期:永久有效</div>
<div class="effectiveRange" v-if="item.effectiveType == 1">有效期:{{ item.effectiveDays }}天</div>
<div class="effectiveRange" v-if="item.effectiveType == 2">有效期:{{ item.effectiveStartTime.split(' ')[0] }} - {{ item.effectiveEndTime.split(' ')[0] }}</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!