修改
This commit is contained in:
parent
9e142de3de
commit
327758740b
@ -82,6 +82,7 @@ import { typelist } from "@/api/manage/template";
|
|||||||
import { department, listDisease } from "@/api/manage/script";
|
import { department, listDisease } from "@/api/manage/script";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
props: ['templateId', 'templateName'],
|
||||||
name: "Template",
|
name: "Template",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -143,8 +144,22 @@ export default {
|
|||||||
name(val) {
|
name(val) {
|
||||||
this.querydepartmen.departmentName = val
|
this.querydepartmen.departmentName = val
|
||||||
this.Departmentlist();
|
this.Departmentlist();
|
||||||
|
},
|
||||||
|
templateId(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectId = newValue;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
templateName(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectName = newValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.handleselectId = this.templateId;
|
||||||
|
this.handleselectName = this.templateName;
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.Departmentlist();
|
this.Departmentlist();
|
||||||
|
|||||||
@ -80,6 +80,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listTemplate, getTemplate, delTemplate, addTemplate, updateTemplate, listWechatTemplateNum, typelist } from "@/api/manage/template";
|
import { listTemplate, getTemplate, delTemplate, addTemplate, updateTemplate, listWechatTemplateNum, typelist } from "@/api/manage/template";
|
||||||
export default {
|
export default {
|
||||||
|
props: ['templateId', 'templateName'],
|
||||||
name: "miniProgram",
|
name: "miniProgram",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -143,8 +144,22 @@ export default {
|
|||||||
name(val) {
|
name(val) {
|
||||||
this.querydepartmen.departmentName = val
|
this.querydepartmen.departmentName = val
|
||||||
this.Departmentlist();
|
this.Departmentlist();
|
||||||
|
},
|
||||||
|
templateId(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectId = newValue;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
templateName(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectName = newValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.handleselectId = this.templateId;
|
||||||
|
this.handleselectName = this.templateName;
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.Departmentlist();
|
this.Departmentlist();
|
||||||
|
|||||||
@ -80,6 +80,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listTemplate, getTemplate, delTemplate, addTemplate, updateTemplate, listWechatTemplateNum, typelist } from "@/api/manage/template";
|
import { listTemplate, getTemplate, delTemplate, addTemplate, updateTemplate, listWechatTemplateNum, typelist } from "@/api/manage/template";
|
||||||
export default {
|
export default {
|
||||||
|
props: ['templateId', 'templateName'],
|
||||||
name: "officialAccount",
|
name: "officialAccount",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -143,8 +144,22 @@ export default {
|
|||||||
name(val) {
|
name(val) {
|
||||||
this.querydepartmen.departmentName = val
|
this.querydepartmen.departmentName = val
|
||||||
this.Departmentlist();
|
this.Departmentlist();
|
||||||
|
},
|
||||||
|
templateId(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectId = newValue;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
templateName(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectName = newValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.handleselectId = this.templateId;
|
||||||
|
this.handleselectName = this.templateName;
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.Departmentlist();
|
this.Departmentlist();
|
||||||
|
|||||||
@ -90,6 +90,7 @@ import { listPropaganda, getPropaganda, delPropaganda, addPropaganda, updateProp
|
|||||||
import stationAcatar from "../../system/stationAvatar/index.vue";
|
import stationAcatar from "../../system/stationAvatar/index.vue";
|
||||||
export default {
|
export default {
|
||||||
name: "propaganda",
|
name: "propaganda",
|
||||||
|
props: ['templateId', 'templateName'],
|
||||||
components: { stationAcatar },
|
components: { stationAcatar },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -158,6 +159,22 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.handleselectId = this.templateId
|
||||||
|
this.handleselectName = this.templateName
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
templateId(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectId = newValue;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
templateName(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectName = newValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
pickerStartTime() {
|
pickerStartTime() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -76,6 +76,7 @@ import { listQuestion, getQuestion, delQuestion, addQuestion, updateQuestion, ge
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Question",
|
name: "Question",
|
||||||
|
props: ['templateId', 'templateName'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
classificationOpen: false,
|
classificationOpen: false,
|
||||||
@ -117,6 +118,22 @@ export default {
|
|||||||
this.getTreeselect();
|
this.getTreeselect();
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.handleselectId = this.templateId
|
||||||
|
this.handleselectName = this.templateName
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
templateId(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectId = newValue;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
templateName(newValue, oldValue) {
|
||||||
|
if (newValue) {
|
||||||
|
this.handleselectName = newValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clickDepartmenitem(item) {
|
clickDepartmenitem(item) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|||||||
@ -88,10 +88,12 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="问卷库模板选择" prop=""
|
<el-form-item label="问卷库模板选择" prop=""
|
||||||
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'">
|
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'">
|
||||||
<question @on-template="questionontemplate"></question>
|
<question @on-template="questionontemplate" :templateId="form.templateId"
|
||||||
|
:templateName="form.templateName"></question>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="宣教库模板选择" prop="" v-if="form.taskSubdivisiontemplateType == 'PROPAGANDA'">
|
<el-form-item label="宣教库模板选择" prop="" v-if="form.taskSubdivisiontemplateType == 'PROPAGANDA'">
|
||||||
<propaganda @on-template="propagandaontemplate"></propaganda>
|
<propaganda @on-template="propagandaontemplate" :templateId="form.templateId"
|
||||||
|
:templateName="form.templateName"></propaganda>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@ -108,7 +110,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
模板:
|
模板:
|
||||||
<message @on-template="messageontemplate"></message>
|
<message @on-template="messageontemplate" :templateId="form.messageTemplateId"
|
||||||
|
:templateName="form.messageTemplateName"></message>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
<el-switch v-model="form.messagePushSign" active-color="#13ce66" active-value="1"
|
<el-switch v-model="form.messagePushSign" active-color="#13ce66" active-value="1"
|
||||||
@ -134,7 +137,9 @@
|
|||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
模板:
|
模板:
|
||||||
<span>
|
<span>
|
||||||
<officialAccount @on-template="officialAccountontemplate"></officialAccount>
|
<officialAccount @on-template="officialAccountontemplate"
|
||||||
|
:templateId="form.officialTemplateId" :templateName="form.officialTemplateName">
|
||||||
|
</officialAccount>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
@ -161,7 +166,9 @@
|
|||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
模板:
|
模板:
|
||||||
<span>
|
<span>
|
||||||
<miniProgram @on-template="miniProgramtemplate"></miniProgram>
|
<miniProgram @on-template="miniProgramtemplate"
|
||||||
|
:templateId="form.appletTemplateId" :templateName="form.appletTemplateName">
|
||||||
|
</miniProgram>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
@ -323,6 +330,9 @@ export default {
|
|||||||
e.taskType = Number(e.taskType)
|
e.taskType = Number(e.taskType)
|
||||||
e.taskSubdivision = Number(e.taskSubdivision)
|
e.taskSubdivision = Number(e.taskSubdivision)
|
||||||
e.taskStatus = Number(e.taskStatus)
|
e.taskStatus = Number(e.taskStatus)
|
||||||
|
e.messagePushSign = '' + e.messagePushSign
|
||||||
|
e.officialPushSign = '' + e.officialPushSign
|
||||||
|
e.appletPushSign = '' + e.appletPushSign
|
||||||
this.changeTaskType(e.taskType, e.taskSubdivision)
|
this.changeTaskType(e.taskType, e.taskSubdivision)
|
||||||
let item = {
|
let item = {
|
||||||
routeNodeName: e.routeNodeName,
|
routeNodeName: e.routeNodeName,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user