修改
This commit is contained in:
parent
a0404d86b5
commit
e19b3f3a63
@ -85,6 +85,10 @@ export default ({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
emit() {
|
||||||
|
console.log(this.html)
|
||||||
|
this.$emit("on-nodeContent", { nodeContent: this.html });
|
||||||
|
},
|
||||||
panelchange(item) {
|
panelchange(item) {
|
||||||
if (this.labelshow) {
|
if (this.labelshow) {
|
||||||
this.labeloptions.forEach(e => {
|
this.labeloptions.forEach(e => {
|
||||||
@ -477,7 +481,14 @@ const elemToHtmlConf = {
|
|||||||
type: 'attachment', // 新元素的 type ,重要!!!
|
type: 'attachment', // 新元素的 type ,重要!!!
|
||||||
elemToHtml: attachmentToHtml,
|
elemToHtml: attachmentToHtml,
|
||||||
}
|
}
|
||||||
Boot.registerElemToHtml(elemToHtmlConf)
|
const elemToHtmlConftwo = {
|
||||||
|
type: 'attachmenttwo', // 新元素的 type ,重要!!!
|
||||||
|
elemToHtml: attachmentToHtml,
|
||||||
|
}
|
||||||
|
const elemToHtmlConfmodule = { // JS 语法
|
||||||
|
elemsToHtml: [elemToHtmlConf, elemToHtmlConftwo /* 其他元素... */] // elemToHtml
|
||||||
|
}
|
||||||
|
Boot.registerModule(elemToHtmlConfmodule)
|
||||||
function parseAttachmentHtml(domElem, children, editor) { // JS 语法
|
function parseAttachmentHtml(domElem, children, editor) { // JS 语法
|
||||||
// 从 DOM element 中获取“附件”的信息
|
// 从 DOM element 中获取“附件”的信息
|
||||||
const link = domElem.getAttribute('data-link') || ''
|
const link = domElem.getAttribute('data-link') || ''
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
</el-timeline>
|
</el-timeline>
|
||||||
</div>
|
</div>
|
||||||
<div class="texts">
|
<div class="texts">
|
||||||
<div class="topform" style="height:50px">
|
<div class="topform">
|
||||||
<el-form ref="form" :inline="true" :model="form" class="form">
|
<el-form ref="form" :inline="true" :model="form" class="form">
|
||||||
<el-form-item label="任务类型" prop="">
|
<el-form-item label="任务类型" prop="">
|
||||||
<el-select v-model="form.taskType" style="width:110px" @change="changeTaskType">
|
<el-select v-model="form.taskType" style="width:110px" @change="changeTaskType">
|
||||||
@ -88,7 +88,7 @@
|
|||||||
</el-time-select>
|
</el-time-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="问卷库模板选择" prop=""
|
<el-form-item label="问卷库模板选择" prop=""
|
||||||
>
|
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'">
|
||||||
<question @on-template="questionontemplate"></question>
|
<question @on-template="questionontemplate"></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'">
|
||||||
@ -97,7 +97,8 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottomform">
|
<div class="bottomform">
|
||||||
<wangeditor style="width:100%;" ref="editor" v-if="wangeditorshow" />
|
<wangeditor style="width:100%;" @on-nodeContent="onNodeContent" ref="wangeditor"
|
||||||
|
v-if="wangeditorshow" v-model="form.nodeContent" />
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
@ -138,7 +139,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
<el-switch v-model="form.officialPushSign" active-color="#13ce66">
|
<el-switch v-model="form.officialPushSign" active-color="#13ce66" active-value="1"
|
||||||
|
inactive-value="0">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -165,7 +167,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
<el-switch v-model="form.appletPushSign" active-color="#13ce66">
|
<el-switch v-model="form.appletPushSign" active-color="#13ce66" active-value="1"
|
||||||
|
inactive-value="0">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -203,7 +206,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
<el-switch v-model="form.value" active-color="#13ce66">
|
<el-switch v-model="form.value" active-color="#13ce66" active-value="1"
|
||||||
|
inactive-value="0">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -278,6 +282,7 @@ export default {
|
|||||||
suitRange: '',
|
suitRange: '',
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
|
nodeContent: '',
|
||||||
templateId: '',
|
templateId: '',
|
||||||
templateName: '',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
@ -299,17 +304,20 @@ export default {
|
|||||||
routeNodeDay: '',
|
routeNodeDay: '',
|
||||||
list: [
|
list: [
|
||||||
{
|
{
|
||||||
taskTypeName: '',
|
nodeContent: '',
|
||||||
taskSubdivisionName: '',
|
|
||||||
templateId: '',
|
templateId: '',
|
||||||
templateName: '',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
taskSubdivisionName: ' ',
|
taskSubdivisionName: '',
|
||||||
taskStatus: '',
|
taskStatus: '',
|
||||||
secondClassifyDescribe: '',
|
secondClassifyDescribe: '',
|
||||||
executionTime: '',
|
executionTime: '',
|
||||||
|
appletPushSign: '0',
|
||||||
|
officialPushSign: '0',
|
||||||
|
messagePushSign: '0',
|
||||||
|
taskSubdivisiontemplateType: '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
@ -336,6 +344,10 @@ export default {
|
|||||||
this.form = this.lists[0].list[0]
|
this.form = this.lists[0].list[0]
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//wangeditor传值
|
||||||
|
onNodeContent(item) {
|
||||||
|
this.form.nodeContent = item.nodeContent
|
||||||
|
},
|
||||||
//小程序传值
|
//小程序传值
|
||||||
miniProgramtemplate(item) {
|
miniProgramtemplate(item) {
|
||||||
this.form.appletTemplateId = item.templateId
|
this.form.appletTemplateId = item.templateId
|
||||||
@ -356,6 +368,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//暂存
|
//暂存
|
||||||
TemporaryStorage() {
|
TemporaryStorage() {
|
||||||
|
this.$refs.wangeditor.emit()
|
||||||
console.log(this.lists)
|
console.log(this.lists)
|
||||||
},
|
},
|
||||||
//问卷传值
|
//问卷传值
|
||||||
@ -414,34 +427,40 @@ export default {
|
|||||||
routeNodeDay: '',
|
routeNodeDay: '',
|
||||||
list: [
|
list: [
|
||||||
{
|
{
|
||||||
taskTypeName: '',
|
nodeContent: '',
|
||||||
taskSubdivisionName: '',
|
|
||||||
templateId: '',
|
templateId: '',
|
||||||
templateName: '',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
taskSubdivisionName: ' ',
|
taskSubdivisionName: '',
|
||||||
taskStatus: '',
|
taskStatus: '',
|
||||||
secondClassifyDescribe: '',
|
secondClassifyDescribe: '',
|
||||||
executionTime: '',
|
executionTime: '',
|
||||||
|
appletPushSign: '0',
|
||||||
|
officialPushSign: '0',
|
||||||
|
messagePushSign: '0',
|
||||||
|
taskSubdivisiontemplateType: '',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
additem(item) {
|
additem(item) {
|
||||||
item.list.push({
|
item.list.push({
|
||||||
taskTypeName: '',
|
nodeContent: '',
|
||||||
taskSubdivisionName: '',
|
|
||||||
templateId: '',
|
templateId: '',
|
||||||
templateName: '',
|
templateName: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
taskTypeName: '',
|
taskTypeName: '',
|
||||||
taskSubdivision: '',
|
taskSubdivision: '',
|
||||||
taskSubdivisionName: ' ',
|
taskSubdivisionName: '',
|
||||||
taskStatus: '',
|
taskStatus: '',
|
||||||
secondClassifyDescribe: '',
|
secondClassifyDescribe: '',
|
||||||
executionTime: '',
|
executionTime: '',
|
||||||
|
appletPushSign: '0',
|
||||||
|
officialPushSign: '0',
|
||||||
|
messagePushSign: '0',
|
||||||
|
taskSubdivisiontemplateType: '',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
delitem(item, index) {
|
delitem(item, index) {
|
||||||
@ -461,7 +480,7 @@ export default {
|
|||||||
|
|
||||||
.bottomform {
|
.bottomform {
|
||||||
background-color: #f2f4f5;
|
background-color: #f2f4f5;
|
||||||
margin-top: 20px;
|
margin-top: 10px;
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@ -533,7 +552,6 @@ export default {
|
|||||||
|
|
||||||
.topform {
|
.topform {
|
||||||
padding: 15px 0 0 15px;
|
padding: 15px 0 0 15px;
|
||||||
height: 70px;
|
|
||||||
|
|
||||||
.form {
|
.form {
|
||||||
::v-deep .el-input__inner {
|
::v-deep .el-input__inner {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user