|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: sueRimn |
|
|
|
|
* @Date: 2021-06-16 13:56:54 |
|
|
|
|
* @LastEditors: sueRimn |
|
|
|
|
* @LastEditTime: 2021-08-24 15:32:48 |
|
|
|
|
* @LastEditTime: 2021-08-25 08:44:19 |
|
|
|
|
*/ |
|
|
|
|
import { HttpClient } from '@angular/common/http'; |
|
|
|
|
import { Component, Inject, OnInit, Renderer2, ViewChild, Input } from '@angular/core'; |
|
|
|
@ -636,98 +636,101 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
var orginputCount=0 |
|
|
|
|
var orgtextAreaCount=0 |
|
|
|
|
var orgtreeCount=0 |
|
|
|
|
if(this.planTemplateData[4]!=undefined&&this.planTemplateData[4].groupName=='组织指挥'){ |
|
|
|
|
this.planTemplateData[4].attribute.forEach((orgvalue,orgi,orgArr) => { |
|
|
|
|
if(orgArr[orgi].level=='1'){ |
|
|
|
|
orgtableCount++ |
|
|
|
|
this.yinJson.organizationCommands.tableCount.tables.push({itemCount:orgArr[orgi].tableth.length}) |
|
|
|
|
}else if(orgArr[orgi].level=='2'){ |
|
|
|
|
orginputCount++ |
|
|
|
|
this.yinJson.organizationCommands.inputCount.inputs.push({colCount:orgArr[orgi].lieNumber,rowCount:orgArr[orgi].hNumber}) |
|
|
|
|
}else if(orgArr[orgi].level=='3'){ |
|
|
|
|
orgtextAreaCount++ |
|
|
|
|
}else if(orgArr[orgi].level=='4'){ |
|
|
|
|
orgtreeCount++ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.yinJson.organizationCommands.tableCount.totalCount=orgtableCount |
|
|
|
|
this.yinJson.organizationCommands.inputCount.totalCount=orginputCount |
|
|
|
|
this.yinJson.organizationCommands.textAreaCount.totalCount=orgtextAreaCount |
|
|
|
|
this.yinJson.organizationCommands.treeCount.totalCount=orgtreeCount |
|
|
|
|
var shetableCount=0 |
|
|
|
|
var sheinputCount=0 |
|
|
|
|
var shetextAreaCount=0 |
|
|
|
|
var shetreeCount=0 |
|
|
|
|
if(this.planTemplateData[6]!=undefined&&this.planTemplateData[6].groupName=='社会联动'){ |
|
|
|
|
this.planTemplateData[6].attribute.forEach((orgvalue,orgi,orgArr) => { |
|
|
|
|
if(orgArr[orgi].level=='1'){ |
|
|
|
|
shetableCount++ |
|
|
|
|
//this.yinJson.organizationCommands.tableCount.tables.push({itemCount:orgtableCount})
|
|
|
|
|
}else if(orgArr[orgi].level=='2'){ |
|
|
|
|
sheinputCount++ |
|
|
|
|
this.yinJson.socialLinkages.inputCount.inputs.push({colCount:orgArr[orgi].lieNumber,rowCount:orgArr[orgi].hNumber}) |
|
|
|
|
}else if(orgArr[orgi].level=='3'){ |
|
|
|
|
shetextAreaCount++ |
|
|
|
|
}else if(orgArr[orgi].level=='4'){ |
|
|
|
|
shetreeCount++ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.yinJson.socialLinkages.tableCount.totalCount=shetableCount |
|
|
|
|
this.yinJson.socialLinkages.inputCount.totalCount=sheinputCount |
|
|
|
|
this.yinJson.socialLinkages.textAreaCount.totalCount=shetextAreaCount |
|
|
|
|
this.yinJson.socialLinkages.treeCount.totalCount=shetreeCount |
|
|
|
|
var qintableCount=0 |
|
|
|
|
var qininputCount=0 |
|
|
|
|
var qintextAreaCount=0 |
|
|
|
|
var qintreeCount=0 |
|
|
|
|
if(this.planTemplateData[7]!=undefined&&this.planTemplateData[7].groupName=='勤务保障'){ |
|
|
|
|
this.planTemplateData[7].attribute.forEach((orgvalue,orgi,orgArr) => { |
|
|
|
|
if(orgArr[orgi].level=='1'){ |
|
|
|
|
qintableCount++ |
|
|
|
|
//this.yinJson.organizationCommands.tableCount.tables.push({itemCount:orgtableCount})
|
|
|
|
|
}else if(orgArr[orgi].level=='2'){ |
|
|
|
|
qininputCount++ |
|
|
|
|
this.yinJson.serviceSupports.inputCount.inputs.push({colCount:orgArr[orgi].lieNumber,rowCount:orgArr[orgi].hNumber}) |
|
|
|
|
}else if(orgArr[orgi].level=='3'){ |
|
|
|
|
qintextAreaCount++ |
|
|
|
|
}else if(orgArr[orgi].level=='4'){ |
|
|
|
|
qintreeCount++ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.yinJson.serviceSupports.tableCount.totalCount=qintableCount |
|
|
|
|
this.yinJson.serviceSupports.inputCount.totalCount=qininputCount |
|
|
|
|
this.yinJson.serviceSupports.textAreaCount.totalCount=qintextAreaCount |
|
|
|
|
this.yinJson.serviceSupports.treeCount.totalCount=qintreeCount |
|
|
|
|
var futableCount=0 |
|
|
|
|
var fuinputCount=0 |
|
|
|
|
var futextAreaCount=0 |
|
|
|
|
var futreeCount=0 |
|
|
|
|
if(this.planTemplateData[9]!=undefined&&this.planTemplateData[9].groupName=='辅助决策'){ |
|
|
|
|
this.planTemplateData[9].attribute.forEach((orgvalue,orgi,orgArr) => { |
|
|
|
|
if(orgArr[orgi].level=='1'){ |
|
|
|
|
futableCount++ |
|
|
|
|
//this.yinJson.organizationCommands.tableCount.tables.push({itemCount:orgtableCount})
|
|
|
|
|
}else if(orgArr[orgi].level=='2'){ |
|
|
|
|
fuinputCount++ |
|
|
|
|
this.yinJson.decisionSupports.inputCount.inputs.push({colCount:orgArr[orgi].lieNumber,rowCount:orgArr[orgi].hNumber}) |
|
|
|
|
}else if(orgArr[orgi].level=='3'){ |
|
|
|
|
futextAreaCount++ |
|
|
|
|
}else if(orgArr[orgi].level=='4'){ |
|
|
|
|
futreeCount++ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
this.planTemplateData.forEach((value,index,array) => { |
|
|
|
|
if(value.groupName=='组织指挥'){ |
|
|
|
|
this.planTemplateData[4].attribute.forEach((orgvalue,orgi,orgArr) => { |
|
|
|
|
if(orgArr[orgi].level=='1'){ |
|
|
|
|
orgtableCount++ |
|
|
|
|
this.yinJson.organizationCommands.tableCount.tables.push({itemCount:orgArr[orgi].tableth.length}) |
|
|
|
|
}else if(orgArr[orgi].level=='2'){ |
|
|
|
|
orginputCount++ |
|
|
|
|
this.yinJson.organizationCommands.inputCount.inputs.push({colCount:orgArr[orgi].lieNumber,rowCount:orgArr[orgi].hNumber}) |
|
|
|
|
}else if(orgArr[orgi].level=='3'){ |
|
|
|
|
orgtextAreaCount++ |
|
|
|
|
}else if(orgArr[orgi].level=='4'){ |
|
|
|
|
orgtreeCount++ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.yinJson.organizationCommands.tableCount.totalCount=orgtableCount |
|
|
|
|
this.yinJson.organizationCommands.inputCount.totalCount=orginputCount |
|
|
|
|
this.yinJson.organizationCommands.textAreaCount.totalCount=orgtextAreaCount |
|
|
|
|
this.yinJson.organizationCommands.treeCount.totalCount=orgtreeCount |
|
|
|
|
var shetableCount=0 |
|
|
|
|
var sheinputCount=0 |
|
|
|
|
var shetextAreaCount=0 |
|
|
|
|
var shetreeCount=0 |
|
|
|
|
if(value.groupName=='社会联动'){ |
|
|
|
|
this.planTemplateData[6].attribute.forEach((orgvalue,orgi,orgArr) => { |
|
|
|
|
if(orgArr[orgi].level=='1'){ |
|
|
|
|
shetableCount++ |
|
|
|
|
//this.yinJson.organizationCommands.tableCount.tables.push({itemCount:orgtableCount})
|
|
|
|
|
}else if(orgArr[orgi].level=='2'){ |
|
|
|
|
sheinputCount++ |
|
|
|
|
this.yinJson.socialLinkages.inputCount.inputs.push({colCount:orgArr[orgi].lieNumber,rowCount:orgArr[orgi].hNumber}) |
|
|
|
|
}else if(orgArr[orgi].level=='3'){ |
|
|
|
|
shetextAreaCount++ |
|
|
|
|
}else if(orgArr[orgi].level=='4'){ |
|
|
|
|
shetreeCount++ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.yinJson.socialLinkages.tableCount.totalCount=shetableCount |
|
|
|
|
this.yinJson.socialLinkages.inputCount.totalCount=sheinputCount |
|
|
|
|
this.yinJson.socialLinkages.textAreaCount.totalCount=shetextAreaCount |
|
|
|
|
this.yinJson.socialLinkages.treeCount.totalCount=shetreeCount |
|
|
|
|
var qintableCount=0 |
|
|
|
|
var qininputCount=0 |
|
|
|
|
var qintextAreaCount=0 |
|
|
|
|
var qintreeCount=0 |
|
|
|
|
if(value.groupName=='勤务保障'){ |
|
|
|
|
this.planTemplateData[7].attribute.forEach((orgvalue,orgi,orgArr) => { |
|
|
|
|
if(orgArr[orgi].level=='1'){ |
|
|
|
|
qintableCount++ |
|
|
|
|
//this.yinJson.organizationCommands.tableCount.tables.push({itemCount:orgtableCount})
|
|
|
|
|
}else if(orgArr[orgi].level=='2'){ |
|
|
|
|
qininputCount++ |
|
|
|
|
this.yinJson.serviceSupports.inputCount.inputs.push({colCount:orgArr[orgi].lieNumber,rowCount:orgArr[orgi].hNumber}) |
|
|
|
|
}else if(orgArr[orgi].level=='3'){ |
|
|
|
|
qintextAreaCount++ |
|
|
|
|
}else if(orgArr[orgi].level=='4'){ |
|
|
|
|
qintreeCount++ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.yinJson.serviceSupports.tableCount.totalCount=qintableCount |
|
|
|
|
this.yinJson.serviceSupports.inputCount.totalCount=qininputCount |
|
|
|
|
this.yinJson.serviceSupports.textAreaCount.totalCount=qintextAreaCount |
|
|
|
|
this.yinJson.serviceSupports.treeCount.totalCount=qintreeCount |
|
|
|
|
var futableCount=0 |
|
|
|
|
var fuinputCount=0 |
|
|
|
|
var futextAreaCount=0 |
|
|
|
|
var futreeCount=0 |
|
|
|
|
if(value.groupName=='辅助决策'){ |
|
|
|
|
this.planTemplateData[9].attribute.forEach((orgvalue,orgi,orgArr) => { |
|
|
|
|
if(orgArr[orgi].level=='1'){ |
|
|
|
|
futableCount++ |
|
|
|
|
//this.yinJson.organizationCommands.tableCount.tables.push({itemCount:orgtableCount})
|
|
|
|
|
}else if(orgArr[orgi].level=='2'){ |
|
|
|
|
fuinputCount++ |
|
|
|
|
this.yinJson.decisionSupports.inputCount.inputs.push({colCount:orgArr[orgi].lieNumber,rowCount:orgArr[orgi].hNumber}) |
|
|
|
|
}else if(orgArr[orgi].level=='3'){ |
|
|
|
|
futextAreaCount++ |
|
|
|
|
}else if(orgArr[orgi].level=='4'){ |
|
|
|
|
futreeCount++ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.yinJson.decisionSupports.tableCount.totalCount=futableCount |
|
|
|
|
this.yinJson.decisionSupports.inputCount.totalCount=fuinputCount |
|
|
|
|
this.yinJson.decisionSupports.textAreaCount.totalCount=futextAreaCount |
|
|
|
|
this.yinJson.decisionSupports.treeCount.totalCount=futreeCount |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.yinJson.decisionSupports.tableCount.totalCount=futableCount |
|
|
|
|
this.yinJson.decisionSupports.inputCount.totalCount=fuinputCount |
|
|
|
|
this.yinJson.decisionSupports.textAreaCount.totalCount=futextAreaCount |
|
|
|
|
this.yinJson.decisionSupports.treeCount.totalCount=futreeCount |
|
|
|
|
} |
|
|
|
|
if(type==5){ |
|
|
|
|
var orgtableCount=0 |
|
|
|
|