Commit 25132942 by 前端

Merge branch 'xuyl_dev_v2.12.0' into kuangyq_dev_v3.0.0

2 parents af62255a 7deeea54
...@@ -247,6 +247,7 @@ ...@@ -247,6 +247,7 @@
oninput="value=value.replace(/^0[0-9]|[^0-9]/g, '')" oninput="value=value.replace(/^0[0-9]|[^0-9]/g, '')"
size="small" size="small"
:disabled="isEditor && activityStatus == 2" :disabled="isEditor && activityStatus == 2"
placeholder="0表示不做限制"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -281,6 +282,20 @@ ...@@ -281,6 +282,20 @@
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="itm.rewardType == 1" v-if="itm.rewardType == 1"
label="最低指标:"
>
<el-input
v-model="itm.minTriggerValue"
type="number"
:min="1"
oninput="value=value.replace(/^0|[^0-9]/g, '')"
size="small"
:disabled="isEditor && activityStatus == 2"
placeholder="默认为从1开始判断循环奖励"
></el-input>
</el-form-item>
<el-form-item
v-if="itm.rewardType == 1"
label="触发值:" label="触发值:"
:prop="'missionList.' + index1 + '.triggerValue'" :prop="'missionList.' + index1 + '.triggerValue'"
:rules="taskFormRules.triggerValue" :rules="taskFormRules.triggerValue"
...@@ -914,11 +929,12 @@ export default { ...@@ -914,11 +929,12 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$set(itm, 'triggerValue', '') this.$set(itm, 'triggerValue', '')
this.$set(itm, 'rewardCount', '') this.$set(itm, 'rewardCount', '')
this.$set(itm, 'minTriggerValue', '')
}) })
} else { } else {
this.$nextTick(() => { this.$nextTick(() => {
this.$set(itm, 'rewardCount', '') this.$set(itm, 'rewardCount', '')
this.$set(itm, 'minTriggerValue', '') this.$set(itm, 'minTriggerValue', '1')
}) })
} }
}, },
...@@ -973,13 +989,14 @@ export default { ...@@ -973,13 +989,14 @@ export default {
}, },
// 提交任务 // 提交任务
submitTask() { submitTask() {
// 遍历重复次数 // 遍历
this.taskList.map((item) => { this.taskList.map((item) => {
item.missionList.map((itm) => { item.missionList.map((itm) => {
// 重复次数处理
if (itm.repeatCount || itm.repeatFlag) { if (itm.repeatCount || itm.repeatFlag) {
itm.repeatCount = itm.repeatCount ? itm.repeatCount : -1 itm.repeatCount = itm.repeatCount ? itm.repeatCount : -1
} }
delete itm.taskid delete itm.id
}) })
}) })
try { try {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!