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