This commit is contained in:
闫晓茹 2024-07-08 14:19:28 +08:00
parent 2aa010c4e8
commit 8bfe0a4431
2 changed files with 53 additions and 52 deletions

View File

@ -7,7 +7,7 @@
:mode="mode"
/>
<Editor
style="height: 500px; overflow-y: hidden"
style="height: 500px; overflow-y: hidden; line-height: 32px;"
v-model="html"
:defaultConfig="editorConfig"
:mode="mode"
@ -367,7 +367,7 @@ export default {
taskPartitionDictId(newValue, oldValue) {
console.log(newValue, "taskPartitionDictId");
this.labeloptions = [];
// this.labeloptions = [];
this.taskPartitionDictId = newValue;
this.info();
},
@ -833,6 +833,42 @@ Boot.registerModule(parseHtmlConfmodule);
}
}
}
::v-deep .el-textarea__inner {
color: black !important;
background-color: #fff !important;
cursor: default !important
}
.path-tag-wrap {
font-size: 18px;
line-height: 32px;
border-radius: 5px;
}
::v-deep .el-textarea__inner {
color: black !important;
background-color: #fff !important;
cursor: default !important
}
.path-tag-wrap {
font-size: 18px;
line-height: 32px;
border-radius: 5px;
}
::v-deep .el-textarea__inner {
color: black !important;
background-color: #fff !important;
cursor: default !important
}
.path-tag-wrap {
font-size: 18px;
line-height: 32px;
border-radius: 5px;
}
</style>
// ::v-deep .el-textarea__inner {
// color: black !important;

View File

@ -241,17 +241,18 @@
</el-dialog>
<div class="bottomform">
<wangeditor
v-show="
form.taskSubdivisiontemplateType != 'QUESTIONNAIRE' &&
form.taskSubdivisiontemplateType != 'PROPAGANDA' &&
form.taskSubdivisiontemplateType != 'SCRIPT'
"
style="width: 100%"
:nodeContent="form.nodeContent"
:taskPartitionDictId="taskPartitionDictId"
:taskSubdivision="form.taskSubdivision"
:specialDiseaseNodeId="form.specialDiseaseNodeId"
@on-nodeContent="onNodeContent"
v-show="
form.taskSubdivisiontemplateType != 'QUESTIONNAIRE' &&
form.taskSubdivisiontemplateType != 'PROPAGANDA' &&
form.taskSubdivisiontemplateType != 'SCRIPT'
"
ref="wangeditor"
/>
@ -363,7 +364,7 @@
</div>
<div
class="card"
style="height: 250px"
style="margin-top: -30px;"
v-show="form.taskSubdivisiontemplateType == 'SCRIPT'"
>
<div class="flex">
@ -807,6 +808,7 @@ export default {
this.taskinfo();
});
},
//
info() {
const loading = this.$loading({
lock: true,
@ -1091,67 +1093,28 @@ export default {
},
//
async bottomclickevent(uitem, index, uindex) {
// console.log(uitem, index, uindex,'uitem, index, uindex')
console.log(uitem, index, uindex,'uitem, index, uindex')
await this.onemit()
this.listindex = index;
this.itemindex = uindex;
if (uitem.templateType == "PROPAGANDA" && uitem.templateId) {
if (uitem.taskSubdivisiontemplateType == "PROPAGANDA" && uitem.templateId) {
getPropaganda(uitem.templateId).then((response) => {
this.formview = response.data;
});
} else if (uitem.templateType == "QUESTIONNAIRE" && uitem.templateId) {
} else if (uitem.taskSubdivisiontemplateType == "QUESTIONNAIRE" && uitem.templateId) {
questionname(uitem.templateId).then((res) => {
// console.log( this.lookitemnew,' this.lookitemnew')
this.lookitemnew = res.data;
});
} else if (uitem.templateType == 'SCRIPT' && uitem.flowScheme) {
} else if (uitem.taskSubdivisiontemplateType == 'SCRIPT' && uitem.flowScheme) {
this.phoneNodeContent = uitem.flowScheme
}
this.taskPartitionList = [];
if (uitem.taskType) {
this.changeTaskType(uitem.taskType, uitem.taskSubdivision);
}
this.form = uitem;
// this.form.
},
// bottomclickevent(uitem, index, uindex) {
// // this.phoneNodeContent = "";
// // this.lookitemnew = "";
// if (
// this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
// this.form.taskSubdivisiontemplateType != "PROPAGANDA"
// ) {
// this.$refs.wangeditor.emit();
// }
// setTimeout(() => {
// this.form = uitem;
// if (this.form.templateType == "PROPAGANDA" && this.form.templateId) {
// getPropaganda(this.form.templateId).then((response) => {
// //
// this.formview = response.data;
// });
// } else if (
// this.form.templateType == "QUESTIONNAIRE" &&
// this.form.templateId
// ) {
// questionname(this.form.templateId).then((res) => {
// //
// this.lookitemnew = res.data;
// });
// } else if (this.form.templateType == "SCRIPT" && this.form.flowScheme) {
// //
// this.phoneNodeContent = this.form.flowScheme;
// }
// this.taskPartitionList = [];
// if (this.form.taskType) {
// this.changeTaskType(this.form.taskType, this.form.taskSubdivision);
// }
// this.listindex = index;
// this.itemindex = uindex;
// }, 150);
// },
handleStep() {
this.active = 2;
},
@ -1164,6 +1127,7 @@ export default {
},
//
changeTaskType(code, taskSubdivision) {
console.log(code,)
this.taskPartitionDictId = ''
let id = this.selectTaskTypeList?.find((e) => e.taskTypeCode == code)?.id;
@ -1452,6 +1416,7 @@ export default {
background-color: #fff;
width: 100%;
height: 130px;
margin: 20px 0 0;
padding: 20px 50px 0px 20px;