This commit is contained in:
2024-04-08 11:12:05 +08:00
parent 327758740b
commit c1ecd8f4d9

View File

@ -166,8 +166,8 @@
<div class="pushMethod"> <div class="pushMethod">
模板 模板
<span> <span>
<miniProgram @on-template="miniProgramtemplate" <miniProgram @on-template="miniProgramtemplate" :templateId="form.appletTemplateId"
:templateId="form.appletTemplateId" :templateName="form.appletTemplateName"> :templateName="form.appletTemplateName">
</miniProgram> </miniProgram>
</span> </span>
</div> </div>
@ -457,17 +457,21 @@ export default {
} }
}) })
if (taskSubdivision) { if (taskSubdivision) {
this.changetaskSubdivision(taskSubdivision) this.changetaskSubdivision(taskSubdivision, 1)
} }
}) })
}, },
changetaskSubdivision(e) { changetaskSubdivision(e, type) {
this.form.taskSubdivision = e this.form.taskSubdivision = e
this.taskPartitionList.forEach(el => { this.taskPartitionList.forEach(el => {
if (e == el.id) { if (e == el.id) {
this.form.executionTime = el.executionTime this.form.executionTime = el.executionTime
this.form.taskSubdivisionName = el.taskTypeName this.form.taskSubdivisionName = el.taskTypeName
this.form.taskSubdivisiontemplateType = el.templateType this.form.taskSubdivisiontemplateType = el.templateType
if (!type) {
this.form.templateId = ''
this.form.templateName = ''
}
} }
}) })
}, },