|
@@ -53,8 +53,8 @@ function initMenu(data){
|
|
|
$(".page").on("click",function(){
|
|
|
const title = $(this).attr("code");
|
|
|
if(title==="缺陷总览"||title==="谈话告知书"||title==="知情同意书"){
|
|
|
- $(".flaw-table table").hide();
|
|
|
- $(".flaw-table,.flaw-table table[code="+title+"]").show();
|
|
|
+ $(".flaw-table .page-item").hide();
|
|
|
+ $(".flaw-table,.flaw-table .page-item[code="+title+"]").show();
|
|
|
}else{
|
|
|
$(".flaw-table").hide();
|
|
|
}
|
|
@@ -115,9 +115,10 @@ function initContent(data){
|
|
|
const obj = JSON.parse(data);
|
|
|
let info=[];
|
|
|
let hml='',moduleId='';
|
|
|
+ formatSpecPage(obj["谈话告知书"],"谈话告知书");
|
|
|
+ formatSpecPage(obj["知情同意书"],"知情同意书");
|
|
|
for(let k in obj){
|
|
|
if(k==="谈话告知书"||k==="知情同意书"){
|
|
|
- formatSpecPage(obj[k],k);
|
|
|
continue;
|
|
|
}
|
|
|
for(let i in obj[k]){
|
|
@@ -152,8 +153,9 @@ function formatInfoData(k,data){
|
|
|
}
|
|
|
|
|
|
function initList(data){
|
|
|
- $("#flawTotalList").tmpl({data:data}).appendTo(".flaw-table");
|
|
|
- $(".flaw-table table[code="+global_activeTab+"]").show();
|
|
|
+ //$("#flawTotalList").tmpl({title:"缺陷总览",data:data}).appendTo(".flaw-table");
|
|
|
+ formatSpecPage(data,"缺陷总览");
|
|
|
+ $(".flaw-table .page-item[code="+global_activeTab+"]").show();
|
|
|
$(".slide-up").off("click").on("click",function(){
|
|
|
const name = $(this).text();
|
|
|
$("tr[code='"+name+"']").slideToggle();
|