This commit is contained in:
2024-05-30 11:32:56 +08:00
parent 146ac9851f
commit 3c5be6610f

View File

@ -91,11 +91,11 @@
<el-time-select v-model="form.executionTime" style="width: 120px" placeholder="选择时间">
</el-time-select>
</el-form-item>
<el-form-item label="问卷库模板选择" prop="" v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'">
<el-form-item label="问卷库模板选择" prop="" v-if="form.templateType == 'QUESTIONNAIRE'">
<question @on-template="questionontemplate" :templateId="form.templateId"
:templateName="form.templateName"></question>
</el-form-item>
<el-form-item label="宣教库模板选择" prop="" v-if="form.taskSubdivisiontemplateType == 'PROPAGANDA'">
<el-form-item label="宣教库模板选择" prop="" v-if="form.templateType == 'PROPAGANDA'">
<propaganda @on-template="propagandaontemplate" :templateId="form.templateId"
:templateName="form.templateName"></propaganda>
</el-form-item>
@ -103,7 +103,7 @@
</div>
<div class="bottomform">
<wangeditor style="width: 100%" :nodeContent="form.nodeContent" @on-nodeContent="onNodeContent"
v-if="form.taskSubdivisiontemplateType != 'QUESTIONNAIRE' && form.taskSubdivisiontemplateType != 'PROPAGANDA'"
v-if="form.templateType != 'QUESTIONNAIRE' && form.templateType != 'PROPAGANDA'"
ref="wangeditor" />
<div class="card">
<div class="flex">
@ -333,7 +333,7 @@ export default {
appletPushSign: "0",
officialPushSign: "0",
messagePushSign: "0",
taskSubdivisiontemplateType: "",
templateType: "",
officialRemindContent: "",
messagePreview: "",
appletRemindContent: "",
@ -437,7 +437,7 @@ export default {
messagePushSign: "0",
messagePreview: "",
officialRemindContent: "",
taskSubdivisiontemplateType: "",
templateType: "",
appletRemindContent: "",
appletPromptDescription: "",
},
@ -508,7 +508,7 @@ export default {
},
//
TemporaryStorage() {
if (this.form.taskSubdivisiontemplateType != 'QUESTIONNAIRE' && this.form.taskSubdivisiontemplateType != 'PROPAGANDA') {
if (this.form.templateType != 'QUESTIONNAIRE' && this.form.templateType != 'PROPAGANDA') {
this.$refs.wangeditor.emit();
}
this.$confirm(
@ -565,7 +565,7 @@ export default {
this.form.templateName = item.templateName;
},
bottomclickevent(uitem, index, uindex) {
if (this.form.taskSubdivisiontemplateType != 'QUESTIONNAIRE' && this.form.taskSubdivisiontemplateType != 'PROPAGANDA') {
if (this.form.templateType != 'QUESTIONNAIRE' && this.form.templateType != 'PROPAGANDA') {
this.$refs.wangeditor.emit();
}
setTimeout(() => {
@ -599,7 +599,7 @@ export default {
this.taskPartitionList = res.data;
this.form.taskSubdivision = "";
this.form.taskSubdivisionName = "";
this.form.taskSubdivisiontemplateType = "";
this.form.templateType = "";
this.taskStatusDictList = [];
if (taskSubdivision) {
this.form.taskSubdivision = taskSubdivision;
@ -621,7 +621,7 @@ export default {
this.taskPartitionList.forEach((el) => {
if (code == el.taskPartitionCode) {
this.form.executionTime = el.executionTime;
this.form.taskSubdivisiontemplateType = el.templateType;
this.form.templateType = el.templateType;
if (!type) {
this.form.templateId = "";
this.form.templateName = "";
@ -659,7 +659,7 @@ export default {
officialPushSign: "0",
messagePushSign: "0",
messagePreview: "",
taskSubdivisiontemplateType: "",
templateType: "",
},
],
});
@ -682,7 +682,7 @@ export default {
appletRemindContent: "",
appletPromptDescription: "",
messagePreview: "",
taskSubdivisiontemplateType: "",
templateType: "",
});
},
delitem(item, index) {