修改
This commit is contained in:
parent
3e2918b1d3
commit
13bbbdc114
@ -712,7 +712,7 @@ export default {
|
||||
this.infolistMESSAGE();
|
||||
},
|
||||
beforeDestroy() {
|
||||
console.log(111111111)
|
||||
// console.log(111111111)
|
||||
localStorage.removeItem('wangeditorlist')
|
||||
},
|
||||
watch: {
|
||||
@ -856,7 +856,7 @@ export default {
|
||||
this.formview = response.data;
|
||||
});
|
||||
} else
|
||||
if ( this.form.templateId&&this.form.templateType == "QUESTIONNAIRE" || this.form.templateType == "SCRIPT" ) {
|
||||
if ( this.form.templateId&&this.form.templateType == "QUESTIONNAIRE" ) {
|
||||
// 问卷模板回显
|
||||
questionname(this.form.templateId).then((res) => {
|
||||
this.lookitemnew = res.data;
|
||||
@ -937,7 +937,7 @@ export default {
|
||||
},
|
||||
//wangeditor传值
|
||||
onNodeContent(item) {
|
||||
console.log(item, 'items')
|
||||
// console.log(item, 'items')
|
||||
let wangeditorlist = []
|
||||
if (localStorage.getItem('wangeditorlist')) {
|
||||
wangeditorlist = JSON.parse(localStorage.getItem('wangeditorlist'))
|
||||
@ -949,7 +949,7 @@ export default {
|
||||
if (item.nodeContent) {
|
||||
// console.log(555)
|
||||
this.form.nodeContent = item.nodeContent;
|
||||
console.log(this.form.nodeContent, 'this.form.nodeContentthis.form.nodeContentthis.form.nodeContent')
|
||||
// console.log(this.form.nodeContent, 'this.form.nodeContentthis.form.nodeContentthis.form.nodeContent')
|
||||
var abc = new RegExp("<br>", "g");
|
||||
var bbb = this.form.nodeContent.replace(abc, "");
|
||||
this.form.nodeContent = bbb;
|
||||
@ -1050,7 +1050,7 @@ export default {
|
||||
if (localStorage.getItem('wangeditorlist')) {
|
||||
wangeditorlist = JSON.parse(localStorage.getItem('wangeditorlist'))
|
||||
wangeditorlist = wangeditorlist.filter(e => e.specialDiseaseNodeId == this.form.specialDiseaseNodeId)
|
||||
console.log(wangeditorlist,'wangeditorlist')
|
||||
// console.log(wangeditorlist,'wangeditorlist')
|
||||
localStorage.setItem('wangeditorlist', JSON.stringify(wangeditorlist))
|
||||
}
|
||||
this.info();
|
||||
@ -1091,6 +1091,8 @@ export default {
|
||||
},
|
||||
// 点击
|
||||
async bottomclickevent(uitem, index, uindex) {
|
||||
// console.log(uitem, index, uindex,'uitem, index, uindex')
|
||||
|
||||
await this.onemit()
|
||||
this.listindex = index;
|
||||
this.itemindex = uindex;
|
||||
@ -1100,6 +1102,8 @@ export default {
|
||||
});
|
||||
} else if (uitem.templateType == "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) {
|
||||
@ -1195,7 +1199,7 @@ export default {
|
||||
let id = this.taskPartitionList?.find(
|
||||
(e) => e.taskPartitionCode == code
|
||||
)?.id;
|
||||
console.log(id, 'id')
|
||||
// console.log(id, 'id')
|
||||
this.taskPartitionDictId = id
|
||||
this.form.secondClassifyDescribe = this.taskPartitionList?.find(
|
||||
(e) => e.taskPartitionCode == code
|
||||
@ -1228,14 +1232,14 @@ export default {
|
||||
wangeditorlist = JSON.parse(localStorage.getItem('wangeditorlist'))
|
||||
this.form.nodeContent = '<p></p>'
|
||||
this.form.nodeContent = wangeditorlist.find(e => e.taskSubdivision == this.form.taskSubdivision && e.specialDiseaseNodeId == this.form.specialDiseaseNodeId)?.nodeContent
|
||||
console.log(this.form.nodeContent, 'this.form.nodeContent8858585')
|
||||
// console.log(this.form.nodeContent, 'this.form.nodeContent8858585')
|
||||
}
|
||||
});
|
||||
|
||||
}, 500);
|
||||
|
||||
|
||||
console.log(this.form)
|
||||
// console.log(this.form)
|
||||
},
|
||||
addlist() {
|
||||
list(this.parentDictCode).then((res) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user