Commit 05845114 by xuyl

Merge branch 'v3.1.0' of http://192.168.3.233:8090/glsx-web/glsx-oss-task into xuyl_dev_v2.12.0

2 parents df36aeab 090b771a
...@@ -621,23 +621,21 @@ export default { ...@@ -621,23 +621,21 @@ export default {
async handleVideoChange(e) { async handleVideoChange(e) {
await this.uploadFileVideo(e) await this.uploadFileVideo(e)
const that = this const that = this
if (!this.uploadInfo) { this.uploadInfo = new upload({
this.uploadInfo = new upload({ showprocess: true,
showprocess: true, success: function (res) {
success: function (res) { that.$notify({
that.$notify({ title: '提示',
title: '提示', message: '视频上传成功',
message: '视频上传成功', type: 'success',
type: 'success', })
}) document.querySelector('.upload-video').value = ''
document.querySelector('.upload-video').value = '' that.previewList.push({
that.previewList.push({ materialType: that.ATT_TYPE.VEDIO,
materialType: that.ATT_TYPE.VEDIO, materialContent: res,
materialContent: res, })
}) },
}, })
})
}
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '视频上传中,请稍后', message: '视频上传中,请稍后',
......
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
<el-form-item <el-form-item
:prop="'missionList.' + index1 + '.missionMaterialList'" :prop="'missionList.' + index1 + '.missionMaterialList'"
:rules="taskFormRules.attachmentList" :rules="taskFormRules.attachmentList"
v-if="itm.missonType && itm.missonType == 2" v-if="itm.missonType && itm.missonType != 1"
> >
<label slot="label" class="required">分享素材:</label> <label slot="label" class="required">分享素材:</label>
<GLEditor <GLEditor
...@@ -192,6 +192,18 @@ ...@@ -192,6 +192,18 @@
></GLEditor> ></GLEditor>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="分享模式:"
:prop="'missionList.' + index1 + '.shareModel'"
:rules="taskFormRules.shareModel"
v-if="itm.missonType && itm.missonType != 1"
>
<el-checkbox-group v-model="itm.shareModel">
<el-checkbox label="微信群发"></el-checkbox>
<el-checkbox label="分享好友"></el-checkbox>
<el-checkbox label="分享朋友圈"></el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
v-if="itm.missonType && itm.missonType != 1" v-if="itm.missonType && itm.missonType != 1"
label="奖励模式:" label="奖励模式:"
:prop="'missionList.' + index1 + '.rewardType'" :prop="'missionList.' + index1 + '.rewardType'"
...@@ -466,29 +478,33 @@ export default { ...@@ -466,29 +478,33 @@ export default {
rewardCount: '', rewardCount: '',
triggerValue: '', triggerValue: '',
minTriggerValue: '', minTriggerValue: '',
shareModel: [],
}, },
// 浏览指标任务类型 // 浏览指标任务类型
browseObj: { browseObj: {
// missionMaterialList: [], missionMaterialList: [],
rewardType: '', rewardType: '',
rewardCount: '', rewardCount: '',
repeatCount: '', repeatCount: '',
triggerValue: '', triggerValue: '',
minTriggerValue: '', minTriggerValue: '',
shareModel: [],
}, },
// 访客指标任务类型 // 访客指标任务类型
visitorObj: { visitorObj: {
// missionMaterialList: [], missionMaterialList: [],
rewardType: '', rewardType: '',
triggerValue: '', triggerValue: '',
minTriggerValue: '', minTriggerValue: '',
shareModel: [],
}, },
// 成单指标任务类型 // 成单指标任务类型
orderObj: { orderObj: {
// missionMaterialList: [], missionMaterialList: [],
rewardType: '', rewardType: '',
triggerValue: '', triggerValue: '',
minTriggerValue: '', minTriggerValue: '',
shareModel: [],
}, },
// 编辑任务计划数据 // 编辑任务计划数据
taskEditList: {}, taskEditList: {},
...@@ -542,7 +558,10 @@ export default { ...@@ -542,7 +558,10 @@ export default {
rewardScore: [ rewardScore: [
{ required: true, trigger: 'blur', validator: validateAwardIntegral }, { required: true, trigger: 'blur', validator: validateAwardIntegral },
], ],
attachmentList: [{ required: true, message: '请输入入群欢迎语' }], shareModel: [
{ required: true, trigger: 'change', message: '请选择分享模式' },
],
attachmentList: [{ required: true, message: '请输入分享素材' }],
}, },
} }
}, },
...@@ -695,8 +714,8 @@ export default { ...@@ -695,8 +714,8 @@ export default {
if (this.isEditor || (this.isClone && !this.basicForm.activityName)) if (this.isEditor || (this.isClone && !this.basicForm.activityName))
this.dealEcho() this.dealEcho()
if (this.isClone && this.basicForm.activityName) this.dealEcho(1) if (this.isClone && this.basicForm.activityName) this.dealEcho(1)
// 如果是如果是编辑/新建页面,还需处理当前日期之前是否可编辑处理 // 处理当前日期之前是否可编辑处理
if (!this.isClone) this.getEditTaskList() this.getEditTaskList()
// 如果是克隆,还需处理克隆时间 // 如果是克隆,还需处理克隆时间
if (this.isClone && !this.basicForm.activityName) this.getCloneTaskList() if (this.isClone && !this.basicForm.activityName) this.getCloneTaskList()
this.cloneList = this.taskList this.cloneList = this.taskList
...@@ -1008,7 +1027,7 @@ export default { ...@@ -1008,7 +1027,7 @@ export default {
itm.minTriggerValue = 1 itm.minTriggerValue = 1
} }
// 自定义uuid删除 // 自定义uuid删除
delete itm.id delete itm.taskid
}) })
}) })
try { try {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!