修改专病路径

This commit is contained in:
闫晓茹 2024-06-13 17:34:26 +08:00
parent 425b33a6bd
commit ad6f635ada
3 changed files with 760 additions and 812 deletions

View File

@ -297,7 +297,11 @@ export default {
}
});
},
cancels() { },
cancels() {
this.opens=false
this.reset();
},
// change(e) {
// console.log(e, "78");
// // console.log(this.$refs.cascader)

View File

@ -1,12 +1,10 @@
<template>
<div style="border: 1px solid #ccc">
<template> <div style="border: 1px solid #ccc">
<Toolbar
style="border-bottom: 1px solid #ccc"
:editor="editor"
:defaultConfig="toolbarConfig"
:mode="mode"
/>
<!-- 研究一下 如何清除这个富文本里的东西 我给加了标签不生效 他富文本自动编译class名字了 你百度一下 我搞杯咖啡区 困不行了好的 -->
<Editor
style="height: 500px; overflow-y: hidden"
v-model="html"
@ -69,9 +67,6 @@
}"
ref="cascaderAddr"
>
<!-- dengyixia 看一下api -->
<!-- :props="{ checkStrictly: true, multiple: true, emitPath: false } -->
</el-cascader-panel>
<div style="margin: 20px 0">结果预览:</div>
@ -191,7 +186,6 @@ export default {
},
methods: {
// children e
handleChange(e) {
console.log(e, "e");
this.add = [];
@ -205,103 +199,8 @@ export default {
this.add.push(e.label);
}
// console.log(this.add, "777");
});
// // console.log(this.$refs["cascaderAddr"],'this.$refs["cascaderAddr"]')
// // const arr = this.$refs["cascaderAddr"].children.getCheckedNodes().termContent;
// // console.log(arr,'arr')
// this.elist.push(e);
// console.log(this.elist, "this.elist");
// if (this.fieldshow) {
// this.fieldoptions.forEach((e) => {
// //
// e.children.forEach((el) => {
// //
// el.children.forEach((f) => {
// //
// this.elist.forEach((m) => {
// // code
// // console.log(m, "m");
// m.forEach((r) => {
// //
// if (r == f.termCode) {
// // if (this.add.indexOf(f.termContent)==-1) {
// // console.log("")
// this.add=[]
// // console.log(arr, "arr")
// this.add.push(f.termContent);
// console.log(this.add, "add")
// // }
// }
// });
// });
// // console.log(f,'fffff')
// // console.log(this.add, "this.add");
// });
// });
// });
// }
// console.log(this.termContent, "this.termContent");
// el.children.forEach(f=>{
// console.log(f,'ff')
// let list=[]
// list.push(el)
// this.addnode
// console.log(list,'list')
// list = list.split(',')
// id
// const list = [{id: 1, name:2}, {id: 2, name:2}]
// const result = [1,2]
// let abbc=[]
// abbc=list.filter(item =>elist.includes(item.termCode))
// console.log(abbc,'abbc')
//val.newData,B,
// val.newData = A.filter(item => elist.includes(item.AId.toString()))
// let differentArr = list.filter((item) => elist.indexOf(item) != -1);
// console.log(differentArr, "differentArr");
// })
// if (el.labelFieldId == item) {
// this.addnode.fileSpan = el.fieldName;
// this.addnode.fileName = e.fieldName;
// this.addnode.fieldMark = el.fieldMark;
// }
// });
// });
// }
// let changeFlag = false;
// let nowItem = [];
// let firstItem = [];
// if (this.shareScopeEnd.length == 0) {
// this.searchForm.customerTags = val;
// } else {
// //
// this.searchForm.customerTags.forEach((item) => {
// if (item[0] !== this.shareScopeEnd[0][0]) {
// //
// changeFlag = true;
// firstItem.push(item);
// } else if (item[1] != this.shareScopeEnd[0][1]) {
// //
// changeFlag = false;
// nowItem.push(item);
// }
// });
// }
// if (changeFlag && firstItem.length) {
// this.searchForm.customerTags = firstItem;
// } else if (!changeFlag && nowItem.length) {
// this.searchForm.customerTags = nowItem;
// }
// this.shareScopeEnd = this.searchForm.customerTags;
},
async handleUpload(file, insertFn) {
@ -310,14 +209,11 @@ export default {
let res = await this.uploadFile(form); //id
console.log(res);
const videoUrl = URL.createObjectURL(file);
// this.content += '<video poster=\"\" controls=\"true\" width=\"auto\" height=\"auto\"><source src=\"'+ res +'\" type=\"video/mp4\"/></video>'
// resurl
this.html +=
'<video poster="" controls="true" width="auto" height="auto"><source src="' +
process.env.VUE_APP_BASE_API +
+
'" type="video/mp4"/></video>';
// 使
},
async uploadFile(form) {
let res = await richTextPictureUrl(form); //
@ -371,7 +267,7 @@ export default {
},
fieldclick() {
// divBox js +=
// += divBox
// += divBox
var aaa = document.querySelectorAll('.divBox')
console.log(this.html,'this.html--before');
console.log(aaa,'打印dom')
@ -380,7 +276,7 @@ export default {
aaa.remove()
}else{
aaa.innerHTML = ''
this.html += `<p class="divBox">${this.add}</p>`
this.html += `<p >${this.add}</p>`
console.log(this.html,'this.html2222');
}
this.fieldshow = false;
@ -630,7 +526,7 @@ function renderAttachment(elem, children, editor) {
props: { contentEditable: false }, // HTML
style: {
color: "#22343C",
background: "red",
background: "#E5F5F2",
padding: "5px 10px" /* 其他... */,
}, // style
on: { click() {} /* 其他... */ },
@ -734,7 +630,7 @@ function renderAttachmenttwo(elem, children, editor) {
props: { contentEditable: false }, // HTML
style: {
color: "#22343C",
background: "yellow",
background: "#E5F5F2",
padding: "5px 10px" /* 其他... */,
}, // style
on: { click() {} /* 其他... */ },
@ -750,7 +646,7 @@ function renderAttachmenttwo(elem, children, editor) {
props: { contentEditable: false }, // HTML
style: {
color: "#fff",
background: "orange",
background: "#436AE9",
padding: "5px 10px" /* 其他... */,
}, // style
on: { click() {} /* 其他... */ },
@ -908,7 +804,7 @@ Boot.registerModule(parseHtmlConfmodule);
}
}
}
</style>
// ::v-deep .el-textarea__inner {
// color: black !important;
// background-color: #fff !important;
@ -931,5 +827,53 @@ Boot.registerModule(parseHtmlConfmodule);
// line-height: 32px;
// border-radius: 5px;
// }
</style>
<style src="@wangeditor/editor/dist/css/style.css"></style>
// parseElemHtml: parseAttachmentHtml,
// }
// const parseHtmlConftwo = {
// selector: 'span[data-w-e-type="attachmenttwo"]', // CSS HTML
// parseElemHtml: parseAttachmentHtmltwo,
// }
// const parseHtmlConfmodule = {
// parseElemsHtml: [parseHtmlConf, parseHtmlConftwo] // parseElemHtml
// }
// Boot.registerModule(parseHtmlConfmodule)
// <!-- </script> -->
<!-- <style lang="scss" scoped>
::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> -->
<style src="@wangeditor/editor/dist/css/style.css"></>

View File

@ -38,7 +38,7 @@
<el-option label="术前" value="PREOPERATIVE" />
<el-option label="术后" value="POSTOPERATIVE" /> -->
</el-select>
<el-input v-model="item.routeNodeDay" style="width: 70px" type="number"></el-input>
<el-input v-model="item.routeNodeDay" style="width: 70px" type="number" :min="0"></el-input>
<span></span>
</div>
<div>