|
@@ -652,9 +652,10 @@ function formatFlawKeys(data){
|
|
|
'<h2 class="title">'+global_modules[mid].modeName+'('+mid+')</h2>'+
|
|
|
(n>1?'<div class="container">':'<div class="container content-ht">');
|
|
|
|
|
|
- for(let i in module){
|
|
|
- hml=hml+'<div class="info-item">';
|
|
|
- for(let j=0;j<module[i].length;j++) {
|
|
|
+
|
|
|
+ for(let i in module){
|
|
|
+ hml=hml+'<div class="info-item">';
|
|
|
+ for(let j=0;j<module[i].length;j++) {
|
|
|
const detal = module[i][j].questionDTO;
|
|
|
const {tagType} = detal;
|
|
|
switch (tagType) {
|
|
@@ -676,11 +677,11 @@ function formatFlawKeys(data){
|
|
|
|
|
|
//基础类型结构生成
|
|
|
function simpleStructure(data,obj){
|
|
|
+ console.log(data,obj,7878787)
|
|
|
const {name, val,monoLine,addLine,position,bold,retract,id} = data;
|
|
|
if(name==="手术记录表格-1"){
|
|
|
const value = val.replace("【","").replace("】","");
|
|
|
const diag = obj[0][value]?JSON.parse(obj[0][value]):"";
|
|
|
- console.log(diag,11111111111)
|
|
|
let thml=`<div class="cont" style="width: 100%;" id="anchor${id}">`;
|
|
|
thml+=$("#tableTmpl").tmpl({k:"手术信息",data:diag})[0].outerHTML+"</div>";
|
|
|
return thml;
|
|
@@ -689,7 +690,6 @@ function formatFlawKeys(data){
|
|
|
const value = val.replace("【","").replace("】","");
|
|
|
const diag = obj[0][value]?JSON.parse(obj[0][value]):"";
|
|
|
|
|
|
- console.log(diag,2222222222)
|
|
|
let thml=`<div class="cont" style="width: 100%;" id="anchor${id}">`;
|
|
|
thml+=$("#tableTmpl").tmpl({k:"出院诊断",data:diag})[0].outerHTML+"</div>";
|
|
|
return thml;
|