修改
This commit is contained in:
parent
4dc9184867
commit
3561f70b13
@ -1,4 +1,5 @@
|
||||
<template> <div style="border: 1px solid #ccc">
|
||||
<template>
|
||||
<div style="border: 1px solid #ccc">
|
||||
<Toolbar
|
||||
style="border-bottom: 1px solid #ccc"
|
||||
:editor="editor"
|
||||
@ -51,8 +52,6 @@
|
||||
:before-close="beforeClose"
|
||||
class="category-cascader-panel"
|
||||
>
|
||||
|
||||
|
||||
<!-- 在这里 -->
|
||||
<el-cascader-panel
|
||||
:options="fieldoptions"
|
||||
@ -61,16 +60,15 @@
|
||||
value: 'termCode',
|
||||
label: 'termContent',
|
||||
children: 'children',
|
||||
checkStrictly: true,
|
||||
checkStrictly: false,
|
||||
multiple: true,
|
||||
emitPath: false,
|
||||
}"
|
||||
ref="cascaderAddr"
|
||||
>
|
||||
</el-cascader-panel>
|
||||
|
||||
<div style="margin: 20px 0">结果预览:</div>
|
||||
<div style="width: 80%;height: 100%; border: 2px solid #ECEFF7 ;">
|
||||
<div style="width: 80%; height: 100%; border: 2px solid #eceff7">
|
||||
<div v-for="(item, index) of add" :key="index">
|
||||
<!-- <input type="text"> -->
|
||||
<div>{{ item }}</div>
|
||||
@ -200,7 +198,6 @@ methods: {
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
async handleUpload(file, insertFn) {
|
||||
@ -212,8 +209,7 @@ methods: {
|
||||
this.html +=
|
||||
'<video poster="" controls="true" width="auto" height="auto"><source src="' +
|
||||
process.env.VUE_APP_BASE_API +
|
||||
+
|
||||
'" type="video/mp4"/></video>';
|
||||
+'" type="video/mp4"/></video>';
|
||||
},
|
||||
async uploadFile(form) {
|
||||
let res = await richTextPictureUrl(form); //此处换为自己的上传接口地址
|
||||
@ -268,16 +264,16 @@ methods: {
|
||||
fieldclick() {
|
||||
// 先判断 富文本里有没有这个名字叫divBox的标签 有的话用原生js给他删掉 然后继续走下面的+=
|
||||
// 如果富文本里面没有这个元素 就直接走+= ‘divBox’唯一标识符 这样就第二次选择的时候 会覆盖第一次选择的
|
||||
var aaa = document.querySelectorAll('.divBox')
|
||||
console.log(this.html,'this.html--before');
|
||||
console.log(aaa,'打印dom')
|
||||
var aaa = document.querySelectorAll(".divBox");
|
||||
console.log(this.html, "this.html--before");
|
||||
console.log(aaa, "打印dom");
|
||||
if (aaa.length != 0) {
|
||||
console.log(this.html,'this.html111');
|
||||
aaa.remove()
|
||||
console.log(this.html, "this.html111");
|
||||
aaa.remove();
|
||||
} else {
|
||||
aaa.innerHTML = ''
|
||||
this.html += `<p >${this.add}</p>`
|
||||
console.log(this.html,'this.html2222');
|
||||
aaa.innerHTML = "";
|
||||
this.html += `<p >${this.add}</p>`;
|
||||
console.log(this.html, "this.html2222");
|
||||
}
|
||||
this.fieldshow = false;
|
||||
setTimeout(() => {
|
||||
@ -305,11 +301,10 @@ methods: {
|
||||
// fieldMark: "",
|
||||
// fileSpan: "",
|
||||
// };
|
||||
this.add=[]
|
||||
// this.editor.focus();
|
||||
this.add = [];
|
||||
this.editor.focus();
|
||||
++this.isResouceShow;
|
||||
}, 100);
|
||||
|
||||
},
|
||||
onCreated(editor) {
|
||||
this.editor = Object.seal(editor);
|
||||
@ -332,7 +327,7 @@ methods: {
|
||||
});
|
||||
|
||||
bankLevel("3").then((res) => {
|
||||
console.log(res,'打印res值')
|
||||
console.log(res, "打印res值");
|
||||
// res.forEach((e) => {
|
||||
// e.children.forEach((el) => {
|
||||
// el.children.forEach((f) => {
|
||||
@ -344,7 +339,7 @@ methods: {
|
||||
// });
|
||||
// });
|
||||
this.fieldoptions = res;
|
||||
console.log(this.fieldoptions ,'***')
|
||||
console.log(this.fieldoptions, "***");
|
||||
});
|
||||
},
|
||||
beforeClose() {
|
||||
@ -616,7 +611,7 @@ const nameiconVnode = h(
|
||||
click() {
|
||||
that.modify = true;
|
||||
that.fieldshow = true;
|
||||
this.add=[]
|
||||
this.add = [];
|
||||
} /* 其他... */,
|
||||
},
|
||||
}
|
||||
@ -796,8 +791,8 @@ Boot.registerModule(parseHtmlConfmodule);
|
||||
.category-cascader-panel {
|
||||
.el-cascader-panel {
|
||||
// background-color: red !important;
|
||||
|
||||
li[aria-haspopup="true"] {
|
||||
.el-scrollbar:first-child {
|
||||
// li[aria-haspopup="true"] {
|
||||
.el-checkbox {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@ -583,7 +583,7 @@ export default {
|
||||
executionTime: "",
|
||||
appletPushSign: "0",
|
||||
officialPushSign: "0",
|
||||
messagePushSign: "0",
|
||||
messagePushSign: 0,
|
||||
taskSubdivisiontemplateType: "",
|
||||
officialRemindContent: "",
|
||||
messagePreview: "",
|
||||
@ -692,10 +692,21 @@ export default {
|
||||
this.totalNumber = res.data.totalNumber;
|
||||
res.data.specialDiseaseNodeList.forEach((e) => {
|
||||
console.log(e, "eeeeeeeeeeeeeeeee");
|
||||
if(e.messagePushSign){
|
||||
e.messagePushSign = "" + e.messagePushSign;
|
||||
|
||||
}if( e.officialPushSign ){
|
||||
e.officialPushSign = "" + e.officialPushSign;
|
||||
|
||||
}
|
||||
if(e.appletPushSign){
|
||||
e.appletPushSign = "" + e.appletPushSign;
|
||||
e.phonePushSign = "" + e.phonePushSign;
|
||||
|
||||
}
|
||||
if(e.phonePushSign){
|
||||
e.phonePushSign = ""+e.phonePushSign
|
||||
|
||||
}
|
||||
});
|
||||
this.lists = this.handleData(
|
||||
res.data.specialDiseaseNodeList,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user