@@ -1336,4 +1336,168 @@
}
}
})
+
+
+
+ function initClick() {
+ // 设置iframe高度
+ $('.click-wrap .click-item iframe').height($('.click-wrap').height())
+ $(".js-hover").click(function () {
+ var htmlContent = GetClickHtml(this)
+ // $('.click-wrap').show()
+ // $(".hover-wrap").hide()
+ })
+ $('.click-close').click(function () {
+ $('.click-wrap').hide()
+ })
+ }
+ $(function () {
+ initClick();
+ });
+
+ function GetClickHtml(obj) {
+ var $this = $(obj), type = $this.attr('data-type'), tabType = $this.attr('data-tabType') || '';
+ var title = '';
+ if (tabType != '') {
+ tabType = $this.closest('.bb-item').find('.tab-wrap .tab .active').attr('data-type')
+ if (tabType == null) {
+ tabType = $this.closest('.str-bottom').find('.tab-wrap .tab .active').attr('data-type')
+ }
+ }
+ console.log(type)
+ if (type == 'HeadOfficeNum') {
+ $('iframe').attr('src', '../DataShow/CompanyPerson.aspx') //企业总部
+ window.open("../DataShow/CompanyPerson.aspx")
+ }
+ else if (type == 'Branch') {
+ $('iframe').attr('src', '../DataShow/CompanyPerson.aspx') //分支机构
+ window.open("../DataShow/CompanyPerson.aspx")
+ }
+ else if (type == 'ProjectNum') {
+ $('iframe').attr('src', '../DataShow/ProjectPerson.aspx')//项目人数
+ window.open("../DataShow/ProjectPerson.aspx")
+ }
+ else if (type == 'SafetyInjectionEngineer') {
+ $('iframe').attr('src', '../DataShow/ProjectPerson.aspx')//注安师
+ window.open("../DataShow/ProjectPerson.aspx")
+ }
+ else if (type == 'Certificate') {
+ $('iframe').attr('src', '../DataShow/ProjectPerson.aspx') //三类人员
+ window.open("../DataShow/ProjectPerson.aspx")
+ }
+ else if (type == 'yjjb') {
+ // $('iframe').attr('src', '../DataShow/QualityProblem.aspx') //预警警报
+ // window.open('../DataShow/QualityProblem.aspx')
+ }
+ else if (type == 'yhpc') {
+ $('iframe').attr('src', '../DataShow/HiddenRectification.aspx') //安全检查
+ window.open("../DataShow/HiddenRectification.aspx")
+ }
+ else if (type == 'cqmsjc') {
+ $('iframe').attr('src', '../DataShow/QualityProblem.aspx') //质量检查
+ window.open('../DataShow/QualityProblem.aspx')
+ }
+ else if (type == 'SafeRiskData') {
+ $('iframe').attr('src', '../DataShow/SecurityRisk.aspx') //风险分级管控
+ window.open("../DataShow/SecurityRisk.aspx")
+ }
+ else if (type == 'SafeCost') {
+ $('iframe').attr('src', '../DataShow/SecurityCost.aspx') //安全费用
+ window.open("../DataShow/SecurityCost.aspx")
+ }
+ else if (type == 'ConstructionEquipment') {
+ $('iframe').attr('src', '../DataShow/ConstructionEquipment.aspx') //施工机具设备
+ window.open("../DataShow/ConstructionEquipment.aspx")
+ }
+ else if (type == 'SafetyMeetingData') {
+ $('iframe').attr('src', '../DataShow/Meeting.aspx') //安全会议数据
+ window.open("../DataShow/Meeting.aspx")
+ }
+ else if (type == 'BeUnderConstructionNum') {
+ $('iframe').attr('src', '../DataShow/Project.aspx') //在建项目
+ window.open("../DataShow/Project.aspx")
+ }
+ else if (type == 'ShutdownNum') {
+ $('iframe').attr('src', '../DataShow/Project.aspx') //停工项目
+ window.open("../DataShow/Project.aspx")
+ }
+ else if (type == 'JoinConstructionPersonNum') {
+ $('iframe').attr('src', '../DataShow/Project.aspx') //参建人数
+ window.open("../DataShow/Project.aspx")
+ }
+ else if (type == 'MajorProjectsUnderConstructionNum') {
+ $('iframe').attr('src', '../DataShow/Project.aspx') //在施危大工程
+ window.open("../DataShow/Project.aspx")
+ }
+ else if (type == 'wdgcsj') {
+ $('iframe').attr('src', '../DataShow/LargeEngineering.aspx')//危大工程管控数据
+ window.open("../DataShow/LargeEngineering.aspx")
+ }
+ else if (type == 'yjglsj') {
+ $('iframe').attr('src', '../DataShow/Emergency.aspx')//应急管理数据
+ window.open("../DataShow/Emergency.aspx")
+ }
+ else if (type == 'ProjectDivision') {
+ $('iframe').attr('src', '../DataShow/ProjectDivision.aspx') //工程划分
+ window.open('../DataShow/ProjectDivision.aspx')
+ }
+ else if (type == 'QualityAcceptance') {
+ $('iframe').attr('src', '../DataShow/QualityAcceptance.aspx') //质量验收数据
+ window.open('../DataShow/QualityAcceptance.aspx')
+ }
+ else if (type == 'tzsbzbtx') {
+ // $('iframe').attr('src', '../DataShow/QualityTraining.aspx') //特种设备质保体系
+ // window.open('../DataShow/QualityTraining.aspx')
+ }
+ else if (type == 'QualityPerson') {
+ $('iframe').attr('src', '../DataShow/QualityPerson.aspx') //图纸会审/设计交流
+ window.open('../DataShow/QualityPerson.aspx')
+ }
+ else if (type == 'SafeTrainData') {
+ $('iframe').attr('src', '../DataShow/EduTrain.aspx') //安全教育培训
+ window.open("../DataShow/EduTrain.aspx")
+ }
+ else if (type == 'WorkingHourData') {
+ $('iframe').attr('src', '../DataShow/WorkingHours.aspx') //工时数据
+ window.open("../DataShow/WorkingHours.aspx")
+ }
+ else if (type == 'QualityTraining') {
+ $('iframe').attr('src', '../DataShow/QualityTraining.aspx') //质量教育-培训人数
+ window.open('../DataShow/QualityTraining.aspx')
+ }
+ else if (type == 'byjl') {
+ // $('iframe').attr('src', '../DataShow/QualityInstruments.aspx') //报验记录
+ // window.open('../DataShow/QualityInstruments.aspx')
+ }
+ else if (type == 'sgfa') {
+ // $('iframe').attr('src', '../DataShow/QualityProblem.aspx') //施工方案
+ // window.open('../DataShow/QualityProblem.aspx')
+ }
+ else if (type == 'HighRiskWorkPermit') {
+ $('iframe').attr('src', '../DataShow/License.aspx') //高风险作业许可
+ window.open("../DataShow/License.aspx")
+ }
+ else if (type == 'QualityInstruments') {
+ $('iframe').attr('src', '../DataShow/QualityInstruments.aspx') //计量器具数据
+ window.open('../DataShow/QualityInstruments.aspx')
+ }
+
+ else if (type == 'EnvironmentalData') {
+ $('iframe').attr('src', '../DataShow/Environmental.aspx') //环保数据
+ window.open("../DataShow/Environmental.aspx")
+ }
+ else if (type == 'SafetySupervisionAndInspectionData') {
+ $('iframe').attr('src', '../DataShow/Check.aspx') //安全监督检查
+ window.open("../DataShow/Check.aspx")
+ }
+ else if (type == 'AccidentEventData') {
+ $('iframe').attr('src', '../DataShow/Accident.aspx') //事故事件数据
+ window.open("../DataShow/Accident.aspx")
+ }
+ else {
+ // $('iframe').attr('src', '../SysManage/Unit.aspx')
+ // window.open("../DataShow/Unit.aspx")
+ console.log("通用")
+ }
+ }
\ No newline at end of file