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