2023-11-21

This commit is contained in:
2023-11-21 15:44:14 +08:00
parent 416366935c
commit 9c2a562d94
5 changed files with 149 additions and 109 deletions
+66 -107
View File
@@ -7,14 +7,40 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>质量管理</title>
<script src="lib/flex.js"></script>
<link rel="stylesheet" href="css/base.css"/>
<link rel="stylesheet" href="css/quality.css"/>
<link rel="stylesheet" href="css/swiper-bundle.min.css" />
<link rel="stylesheet" href="../res/assets/css/xfk.css"/>
<script src="lib/jquery.js"></script>
<style>
.swiper-box {
height: calc(100% - 3.7rem);
width: 100%;
padding-top:.75rem;
/* padding-top: .375rem; */
position: relative;
}
.img-select {
position: absolute;
top: 0;
left: 0;
height: .5rem;
width: 50%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="y_body y_row">
<body style="height:11.8rem;background-color:#040031;">
<form id="form1" runat="server" style="height:100%;">
<f:PageManager ID="PageManager1" runat="server"></f:PageManager>
<div class="y_body y_row" style="height:100%;">
<div class="site y_column">
<div class="y_box js-hover" data-type="ManagerData">
<div class="y_box_label y_image_default">质量管理人员数据</div>
@@ -88,12 +114,14 @@
<div class="site y_column">
<div class="swiper-box">
<div class="img-select">
<f:DropDownList runat="server" Width="300px" ID="drpProject" OnSelectedIndexChanged="drpProject_SelectedIndexChanged"
AutoPostBack="true" EnableEdit="true" CssClass="" >
</f:DropDownList>
</div>
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide"><img src="imags/16.png"/></div>
<div class="swiper-slide"><img src="imags/16.png"/></div>
<div class="swiper-slide"><img src="imags/16.png"/></div>
<div class="swiper-slide"><img src="imags/16.png"/></div>
<div class="swiper-wrapper" id="swiper-wrapper">
<%=divProjectImg %>
</div>
<!-- 如果需要分页器 -->
<div class="swiper-pagination"></div>
@@ -209,36 +237,40 @@
</form>
</body>
</html>
<script src="lib/echarts.min.js"></script>
<script src="lib/jquery.js"></script>
<script src="lib/echarts.min.js"></script>
<script src="lib/swiper-bundle.min.js"></script>
<script>
// 轮播
var mySwiper = new Swiper('.swiper', {
direction: 'horizontal', // 垂直切换选项
loop: true, // 循环模式选项
autoplay: true,
autoplay: {
delay: 8000,
stopOnLastSlide: false,
disableOnInteraction: true,
},
// 如果需要分页器
pagination: {
el: '.swiper-pagination',
},
function createSwiper() {
var mySwiper = null
// 轮播
mySwiper = new Swiper('.swiper', {
direction: 'horizontal', // 垂直切换选项
loop: true, // 循环模式选项
autoplay: true,
autoplay: {
delay: 8000,
stopOnLastSlide: false,
disableOnInteraction: true,
},
// 如果需要分页器
pagination: {
el: '.swiper-pagination',
},
// 如果需要前进后退按钮
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
// 如果需要前进后退按钮
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
// 如果需要滚动条
scrollbar: {
el: '.swiper-scrollbar',
},
})
// 如果需要滚动条
scrollbar: {
el: '.swiper-scrollbar',
},
})
}
createSwiper()
// 质量问题治理数据
zlmap()
@@ -512,81 +544,8 @@
}
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 == 'QualityTrainingData') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityTrainingData.aspx') //质量培训数据
window.open("../DataShow/QualityTraining.aspx")
}
else if (type == 'MeasuringInstrumentsData') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/MeasuringInstrumentsData.aspx') //计量器具数据
window.open("../DataShowLocal/QualityInstruments.aspx")
title = '计量器具数据'
}
else if (type == 'ManagerData') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/ManagerData.aspx') //管理人员数据
window.open("../DataShow/QualityPerson.aspx")
title = '管理人员数据'
}
else if (type == 'QualityProblem') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量问题数据
window.open("../DataShow/QualityProblem.aspx")
}
else if (type == 'QualityInspection') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量问题数据
window.open("../DataShowLocal/InspectionManagementStatisc.aspx")
}
else if (type == 'QualityControlPoint') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityControlPoint.aspx') //质量控制点数据
window.open("../DataShow/QualityControlPoint.aspx")
}
else if (type == 'QualityAcceptance') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityAcceptance.aspx') //质量验收数据
window.open("../DataShow/QualityAcceptance.aspx")
}
else if (type == 'ProjectDivision') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/ProjectDivision.aspx') //工程划分数据
window.open("../DataShow/ProjectDivision.aspx")
}
else if (type == 'HjData') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/HjData.aspx') //焊接数据
window.open("../DataShow/HJGLWelding.aspx")
}
else if (type == 'DefectAnalysis') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/DefectAnalysis.aspx') //缺陷分析
window.open("../DataShow/HJGLDefect.aspx")
}
else if (type == 'NCRData') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/DefectAnalysis.aspx') //缺陷分析
window.open("../DataShowLocal/NCRStatisc.aspx")
}
else {
// $('iframe').attr('src', '../SysManage/Unit.aspx')
//window.open("../DataShow/HJGLDefect.aspx")
console.log("通用")
}
}
initClick();
function initClick() {
// 设置iframe高度