|
@@ -1577,6 +1577,21 @@
|
|
|
document.getElementById("examTime").innerHTML =
|
|
|
window.parent.globalData.examTime;
|
|
|
|
|
|
+ /// 处理配置表单可能没有一个表格导致表格错位
|
|
|
+ if (!window.parent.globalData.examData.hasOwnProperty("Hospitalization_History")) {
|
|
|
+ let length = 0;
|
|
|
+ var trRowspan = document.getElementById('Hospitalization_History1');
|
|
|
+ trRowspan.setAttribute("rowspan", length+1);
|
|
|
+ var hospitalizationLenght = document.getElementById('Hospitalization_History1').getAttribute('rowspan')
|
|
|
+ var hospitalAtHomeLength = document.getElementById('Hospital_At_Home1').getAttribute('rowspan')
|
|
|
+ if(!hospitalizationLenght) {
|
|
|
+ hospitalizationLenght = 1
|
|
|
+ }
|
|
|
+ if(!hospitalAtHomeLength) {
|
|
|
+ hospitalAtHomeLength = 1
|
|
|
+ }
|
|
|
+ document.getElementById('Hospitalization_And_Home').setAttribute("rowspan",parseInt(hospitalAtHomeLength) + parseInt(hospitalizationLenght))
|
|
|
+ }
|
|
|
for (let key in window.parent.globalData.examData) {
|
|
|
if (
|
|
|
Object.prototype.hasOwnProperty.call(
|
|
@@ -1584,6 +1599,7 @@
|
|
|
key
|
|
|
)
|
|
|
) {
|
|
|
+
|
|
|
if (document.getElementById(key)) {
|
|
|
if (
|
|
|
Array.isArray(
|
|
@@ -1613,7 +1629,7 @@
|
|
|
}
|
|
|
/// 这边是表格的
|
|
|
}else {
|
|
|
- const container = document.getElementById(key);
|
|
|
+ const container = document.getElementById(key);
|
|
|
let length = 0;
|
|
|
var trRowspan = document.getElementById(key+'1');
|
|
|
trRowspan.setAttribute("rowspan", arr.length+1);
|