Commit d3472e8b authored by 陈珊's avatar 陈珊

调整

parent bd08ff4f
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<script src="../static/plugin/layui/layui.js"></script> <script src="../static/plugin/layui/layui.js"></script>
<script src="../static/js/public.js?v=1.0.1"></script> <script src="../static/js/public.js?v=1.0.1"></script>
<script src="../static/js/swiper.min.js"></script> <script src="../static/js/swiper.min.js"></script>
<script src="../static/js/md5.js"></script>
<style> <style>
.container .content .map .amap-info-content { .container .content .map .amap-info-content {
background: rgba(0, 0, 0, 0.6) !important; background: rgba(0, 0, 0, 0.6) !important;
...@@ -26,6 +27,15 @@ ...@@ -26,6 +27,15 @@
top: 5px !important; top: 5px !important;
right: 5px !important; right: 5px !important;
} }
.hover-row:hover {
background-color: rgba(42, 93, 197, 0.8) !important;
}
.hover-row {
background-color: rgba(42, 93, 197, 0.4) !important;
margin-bottom:10px;
}
</style> </style>
</head> </head>
...@@ -93,7 +103,7 @@ ...@@ -93,7 +103,7 @@
<div id="popup-info" class="popup-info hidden"> <div id="popup-info" class="popup-info hidden">
<div class="head"></div> <div class="head"></div>
<div class="tab"> <div class="tab">
</div> </div>
<div class="main data-detail-main"> <div class="main data-detail-main">
<div class="left-item" id="subrwList"> <div class="left-item" id="subrwList">
...@@ -110,7 +120,7 @@ ...@@ -110,7 +120,7 @@
<div id="popup-info-change-list" class="popup-info hidden"> <div id="popup-info-change-list" class="popup-info hidden">
<div class="content"> <div class="content">
<div class="table"> <div class="table">
<table cellspacing="0"> <table cellspacing="0">
<thead class="table-head"> <thead class="table-head">
<tr> <tr>
<th width="25%">修改人员</th> <th width="25%">修改人员</th>
...@@ -123,7 +133,7 @@ ...@@ -123,7 +133,7 @@
<tbody class="table-body"> <tbody class="table-body">
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
</body> </body>
<script type="text/javascript" <script type="text/javascript"
src="https://webapi.amap.com/maps?v=1.4.15&key=fc00c5b70f67a8414344682f217d4b6e&plugin=AMap.MarkerClusterer,AMap.DistrictSearch"></script> src="https://webapi.amap.com/maps?v=1.4.15&key=fc00c5b70f67a8414344682f217d4b6e&plugin=AMap.MarkerClusterer,AMap.DistrictSearch"></script>
<script src="../static/js/jzjc.js"></script> <script src="../static/js/jzjc.js?vt=1.0.1"></script>
<script> <script>
$(function () { $(function () {
$("#jzjc-item a").addClass('active'); $("#jzjc-item a").addClass('active');
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<div id="popup-info" class="hidden popup-info"></div> <div id="popup-info" class="hidden popup-info"></div>
</body> </body>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=fc00c5b70f67a8414344682f217d4b6e&plugin=AMap.MarkerClusterer,AMap.DistrictSearch"></script> <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=fc00c5b70f67a8414344682f217d4b6e&plugin=AMap.MarkerClusterer,AMap.DistrictSearch"></script>
<script src="../static/js/xcjc.js"></script> <script src="../static/js/xcjc.js?vt=1.0.1"></script>
<script> <script>
$(function(){ $(function(){
$("#xcjc-item a").addClass('active'); $("#xcjc-item a").addClass('active');
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
<link rel="stylesheet" href="../static/plugin/layui/css/layui.css"> <link rel="stylesheet" href="../static/plugin/layui/css/layui.css">
<link rel="stylesheet" href="../static/css/dist/swiper.css"> <link rel="stylesheet" href="../static/css/dist/swiper.css">
<link rel="stylesheet" href="../static/css/dist/public.css"> <link rel="stylesheet" href="../static/css/dist/public.css">
<link rel="stylesheet" href="../static/css/dist/zjjc.css"> <link rel="stylesheet" href="../static/css/dist/zjjc.css?vt=1.0.2">
<script src="../static/js/jquery-3.0.0.min.js"></script> <script src="../static/js/jquery-3.0.0.min.js"></script>
<script src="../static/plugin/layui/layui.js"></script> <script src="../static/plugin/layui/layui.js"></script>
<script src="../static/js/public.js"></script> <script src="../static/js/public.js?vt=1.0.1"></script>
<script src="../static/js/swiper.min.js"></script> <script src="../static/js/swiper.min.js"></script>
</head> </head>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</body> </body>
<script type="text/javascript" <script type="text/javascript"
src="https://webapi.amap.com/maps?v=1.4.15&key=fc00c5b70f67a8414344682f217d4b6e&plugin=AMap.MarkerClusterer,AMap.DistrictSearch"></script> src="https://webapi.amap.com/maps?v=1.4.15&key=fc00c5b70f67a8414344682f217d4b6e&plugin=AMap.MarkerClusterer,AMap.DistrictSearch"></script>
<script src="../static/js/zjjc.js"></script> <script src="../static/js/zjjc.js?vt=1.0.3"></script>
<script> <script>
$(function () { $(function () {
$("#zjjc-item a").addClass('active'); $("#zjjc-item a").addClass('active');
......
...@@ -15,18 +15,7 @@ ...@@ -15,18 +15,7 @@
.map{ .map{
.info-item{ .info-item{
cursor: pointer; cursor: pointer;
display: flex; padding: 12px 27px 10px 12px;
align-items: center;
padding-right: .3rem;
.btn{
font-size: .14rem;
color: $white;
border: $border $white;
border-radius: .12rem;
padding: .05rem .1rem;
cursor: pointer;
white-space: nowrap;
}
} }
.bottom-center .amap-info-sharp{ .bottom-center .amap-info-sharp{
border-top-color: rgba(0, 0, 0, 0.6); border-top-color: rgba(0, 0, 0, 0.6);
...@@ -219,10 +208,6 @@ ...@@ -219,10 +208,6 @@
background: rgba(22,65,152,0.3); background: rgba(22,65,152,0.3);
padding: .13rem; padding: .13rem;
border-top: .01rem solid rgba(68,109,193,0.8); border-top: .01rem solid rgba(68,109,193,0.8);
&:hover{
cursor: pointer;
background: rgba(12,112,164,0.8);
}
.green{ .green{
color: #00FFA2; color: #00FFA2;
} }
...@@ -672,75 +657,4 @@ ...@@ -672,75 +657,4 @@
height: 0.25rem; height: 0.25rem;
} }
} }
} }
\ No newline at end of file
.layui-label {
color: #fff;
margin-bottom: 12px;
}
#popup-unusual {
position: relative;
}
.submit-btn {
position: absolute;
left: 50%;
bottom: .7rem;
transform: translateX(-50%);
width: 100%;
text-align: center;
}
.layui-form {
padding: 20px;
}
.layui-form .layui-input {
background: transparent;
border-color: #4470C5;
color: #fff;
}
.layui-form textarea {
background: transparent;
border-color: #4470C5;
color: #fFF;
}
.layui-form-select dl {
background: #1E499B;
color: #fff;
border-color: #4470C5;
}
.layui-form-select dl dd.layui-this {
background-color: #3069F4;
}
.layui-form-select dl dd:hover {
background-color: #46A6D8;
}
table {
width: 100%;
table-layout: fixed;
}
td {
width: 100%;
word-break: keep-all;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.switch {
height: inherit;
padding: 6px 12px;
line-height: inherit;
background-color: #46A6D8;
}
\ No newline at end of file
function getAccess(cb) {
var api_secret = "40DB5CA9-9FA7-45E6-95B9-E7E8AF24F699";
var api_key = "10014";
var timestamp = new Date().getTime();
$.ajax({
url: `${newBaseURL_htjc}access`,
type: "post",
contentType: "application/json",
data: JSON.stringify({
api_key,
timestamp,
sign: md5(`api_key${api_key}timestamp${timestamp}${api_secret}`),
}),
success: (res) => {
if (res.status == 200) {
$.ajaxSetup({
beforeSend: (xhr) => {
xhr.setRequestHeader('Authorization', `${res.data.token_type} ${res.data.access_token}`);
// 添加其他需要的头部
}
});
if (cb) {
cb()
}
}
}
})
}
var laydateObj; var laydateObj;
var taskList = { var taskList = {
data: [], data: [],
...@@ -307,7 +341,7 @@ var detail = { ...@@ -307,7 +341,7 @@ var detail = {
date: $("#rw-date").val(), date: $("#rw-date").val(),
}, },
success: function (data) { success: function (data) {
if (data.data && data.data.length > 0) { if (data.data && data.data.length > 0) {
...@@ -335,7 +369,7 @@ var detail = { ...@@ -335,7 +369,7 @@ var detail = {
$("#popup-info .tab").html(str); $("#popup-info .tab").html(str);
}, },
changeTab(val) { changeTab(val) {
this.selectedTab = val this.selectedTab = val
$('.tabBox').children().removeClass('actived') $('.tabBox').children().removeClass('actived')
$(`.tabBox .${val}`).addClass('actived') $(`.tabBox .${val}`).addClass('actived')
...@@ -396,7 +430,7 @@ var detail = { ...@@ -396,7 +430,7 @@ var detail = {
}, },
setRightData(index, id) { setRightData(index, id) {
sublistClick(id); sublistClick(id);
var item = this.data[index]; var item = this.data[index];
$("#subrwList .info-item").removeClass("active"); $("#subrwList .info-item").removeClass("active");
$("#subrwList .flex-item").removeClass("active"); $("#subrwList .flex-item").removeClass("active");
...@@ -459,8 +493,8 @@ var detail = { ...@@ -459,8 +493,8 @@ var detail = {
console.log(sample_id, index, index2); console.log(sample_id, index, index2);
let _this = this; let _this = this;
$.ajax({ $.ajax({
url: baseURL_htjc + "GetPartInfo.ashx", url: newBaseURL_htjc + "screen/htjc/sjxq_jcbw",
type: "post", type: "get",
dataType: "json", dataType: "json",
data: { data: {
sample_id sample_id
...@@ -497,10 +531,25 @@ var detail = { ...@@ -497,10 +531,25 @@ var detail = {
${item.test_status == 1 && item.ysjl_list && item.ysjl_list.length > 0 ? ${item.test_status == 1 && item.ysjl_list && item.ysjl_list.length > 0 ?
item.ysjl_list.map((item2, index2) => { item.ysjl_list.map((item2, index2) => {
return (` return (`
<div class="item ${item2.test_status == '1' ? 'common' : 'fail'}" onmouseover="mouseover(${index2}, event)" onmouseout="mouseout()">${item2.jc_data21}
${item2.is_change > 0 ? '<img class="icon-change" src="../static/images/icon-change.png" />' : ''} ${item2.ysjl_list ? `
<div style="margin-bottom:10px">
<div class="flex-item hover-row" style="position:relative;cursor:pointer" onclick="toggleContainer(${index2})">
<div class="value">构件名称:${item2.gj_name}</div>${item2.gj_no ? `<div class="value">构件编号:${item2.gj_no}</div>` : ''}
<img src="../static/images/jiantou.png" id="block_arrow_${index2}" style="width:10px;height:10px;position:absolute;top:8px;right:10px;transform"/>
</div>
<div class="item-container" id="block_${index2}" style="display:none;flex-wrap:wrap">
${item2.ysjl_list && item.ysjl_list.length > 0 ? item2.ysjl_list.map((innerItem, innerIndex) => {
return `<div class="item ${innerItem.test_status == '1' ? 'common' : 'fail'}" onmouseover="mouseover(${index2},${innerIndex}, event)" onmouseout="mouseout()">${innerItem.jc_data21 ? innerItem.jc_data21 : '未计算'}
${modifyChange(innerItem.change_list[0]) > 0 ? '<img class="icon-change" src="../static/images/icon-change.png" />' : ''}
</div>`
}).join('') : ''}
</div> </div>
`); </div >
` : ''}
`);
}).join('') }).join('')
: '<div class="noData">暂无数据</div>' : '<div class="noData">暂无数据</div>'
} }
...@@ -527,12 +576,16 @@ var detail = { ...@@ -527,12 +576,16 @@ var detail = {
} }
}); });
}, },
showPopupChangeList: function (sample_id, jc_data26, group_no, index, val) { showPopupChangeList: function (ysjl_id, index, val) {
$("#popup-info-change-list .content .table .table-body").html(''); $("#popup-info-change-list .content .table .table-body").html('');
$.ajax({ $.ajax({
url: baseURL_htjc + `GetChangeList.ashx?sample_id=${sample_id}&jc_data26=${jc_data26}&group_no=${group_no}&index=${index}`, url: newBaseURL_htjc + `screen/htjc/xgjl`,
type: "get", type: "get",
data: {
ysjl_id,
index
},
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
...@@ -553,7 +606,7 @@ var detail = { ...@@ -553,7 +606,7 @@ var detail = {
${arr.map(item => { ${arr.map(item => {
return (` return (`
<tr> <tr>
<td width="25%">${item.update_opname}</td> <td width="25%">${item.update_opname ? item.update_opname : ''}</td>
<td width="25%">${item.update_time}</td> <td width="25%">${item.update_time}</td>
<td width="25%">${item.jc_data}</td> <td width="25%">${item.jc_data}</td>
<td width="25%">${item.newVal}</td> <td width="25%">${item.newVal}</td>
...@@ -628,26 +681,25 @@ var detail = { ...@@ -628,26 +681,25 @@ var detail = {
var hoverInfoTime; var hoverInfoTime;
var isHoverInfoModal; // 弹窗是否正在显示 var isHoverInfoModal; // 弹窗是否正在显示
function mouseover(index, e) { function mouseover(index, indexInner, e) {
if (isHoverInfoModal) { if (isHoverInfoModal) {
return return
} }
var arr = []; var arr = [];
let notArr = ['jc_data21', 'test_status', 'change_list', 'group_no', 'is_change', 'jc_data26'] let notArr = ['jc_data21', 'test_status', 'change_list', 'group_no', 'is_change', 'jc_data26', 'ysjl_id']
for (i in detail.ysjl_list[index]) { for (i in detail.ysjl_list[index].ysjl_list[indexInner]) {
if (!notArr.includes(i)) { if (!notArr.includes(i)) {
arr.push(detail.ysjl_list[index][i]); arr.push(detail.ysjl_list[index].ysjl_list[indexInner][i]);
} }
} }
$("#hoverInfo").html(` $("#hoverInfo").html(`
${arr.map((item2, index2) => { ${arr.map((item2, index2) => {
let bool = detail.ysjl_list[index].change_list[0][`is_change${index2 + 1}`] > 0 let bool = detail.ysjl_list[index].ysjl_list[indexInner].change_list[0][`is_change${index2 + 1}`] > 0
return (` return (`
<div onClick="detail.showPopupChangeList('${detail.sample_id}', '${detail.ysjl_list[index].jc_data26}','${detail.ysjl_list[index].group_no}','${index2 + 1}','${item2}')" class="${bool ? 'modification' : ''}">${item2}</div> <div onClick="detail.showPopupChangeList('${detail.ysjl_list[index].ysjl_list[indexInner].ysjl_id}','${index2 + 1}','${item2}')" class="${bool ? 'modification' : ''}">${item2}</div>
`); `);
}).join('') }).join('')
} }
...@@ -779,7 +831,7 @@ var testLocationMap = { ...@@ -779,7 +831,7 @@ var testLocationMap = {
}); });
}); });
marker.on("mouseout", () => { marker.on("mouseout", () => {
if (this.isShowMarkerObj[index]) { if (this.isShowMarkerObj[index]) {
return; return;
} }
...@@ -792,14 +844,14 @@ var testLocationMap = { ...@@ -792,14 +844,14 @@ var testLocationMap = {
}, },
modalBoxMouseover: function (index) { modalBoxMouseover: function (index) {
clearTimeout(this.modalBoxTime) clearTimeout(this.modalBoxTime)
this.isShowMarkerObj[index] = true this.isShowMarkerObj[index] = true
}, },
modalBoxMouseout: function (index) { modalBoxMouseout: function (index) {
clearTimeout(this.modalBoxTime) clearTimeout(this.modalBoxTime)
this.modalBoxTime = setTimeout(() => { this.modalBoxTime = setTimeout(() => {
this.markerObj[index].setLabel({ this.markerObj[index].setLabel({
content: null, //设置文本标注内容 content: null, //设置文本标注内容
...@@ -849,7 +901,7 @@ var testLocationMap = { ...@@ -849,7 +901,7 @@ var testLocationMap = {
} }
} }
init();
function init() { function init() {
getHeader(); getHeader();
layui.use(['form', 'layer', 'laydate'], function () { layui.use(['form', 'layer', 'laydate'], function () {
...@@ -909,4 +961,27 @@ function init() { ...@@ -909,4 +961,27 @@ function init() {
}) })
taskList.init(); taskList.init();
testCount.init(); testCount.init();
} }
\ No newline at end of file
function toggleContainer(index) {
console.log($(`#block_${index}`).css("display"))
if ($(`#block_${index}`).css("display") == 'flex') {
$(`#block_${index}`).css("display", "none")
$(`#block_arrow_${index}`).css("transform", "none")
} else {
$(`#block_${index}`).css("display", "flex")
$(`#block_arrow_${index}`).css("transform", "rotate(180deg)")
}
}
function modifyChange(objdata) {
var total = 0
for (var i in objdata) {
total += objdata[i]
}
return total
}
getAccess(() => {
init();
});
\ No newline at end of file
This diff is collapsed.
...@@ -76,10 +76,6 @@ function getHeader() { ...@@ -76,10 +76,6 @@ function getHeader() {
<p class="tab-item" id="htjc-item"><a href='/screen/pages/htjc.html'>回弹检测</a></p> <p class="tab-item" id="htjc-item"><a href='/screen/pages/htjc.html'>回弹检测</a></p>
<span class="icon_font icon-vertical_line"></span> <span class="icon_font icon-vertical_line"></span>
</div> </div>
<div class="sub-tab hiddenImportant">
<p class="tab-item" id="gjjc-item"><a href='/screen/pages/gjjc.html'>钢筋检测</a></p>
<span class="icon_font icon-vertical_line"></span>
</div>
</div> </div>
<div class="back-item" onclick="back()">后台管理</div> <div class="back-item" onclick="back()">后台管理</div>
<div class="user-info"> <div class="user-info">
...@@ -93,7 +89,7 @@ function getHeader() { ...@@ -93,7 +89,7 @@ function getHeader() {
function getHeaderInfo() { function getHeaderInfo() {
$.ajax({ $.ajax({
url: "https://jtjc.vnet1000.net/Ajax/Screen/GetHeaderInfo.ashx", url: "/Ajax/Screen/GetHeaderInfo.ashx",
type: "get", type: "get",
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
...@@ -131,7 +127,7 @@ function showPopup(url, title) { ...@@ -131,7 +127,7 @@ function showPopup(url, title) {
type: 2, type: 2,
shadeClose: true, shadeClose: true,
maxmin: true, maxmin: true,
title: "<p class='popup-title'>" + title + "</p>", title: "<p class='popup-title'>" + title + "</p >",
area: ['9rem', '6rem'], area: ['9rem', '6rem'],
content: url, content: url,
end: function () { end: function () {
...@@ -143,7 +139,7 @@ function showPopup(url, title) { ...@@ -143,7 +139,7 @@ function showPopup(url, title) {
type: 1, type: 1,
shadeClose: true, shadeClose: true,
maxmin: true, maxmin: true,
title: "<p class='popup-title'>" + title + "</p>", title: "<p class='popup-title'>" + title + "</p >",
area: ['9rem', '6rem'], area: ['9rem', '6rem'],
content: $('#popup-info'), content: $('#popup-info'),
end: function () { end: function () {
...@@ -153,7 +149,6 @@ function showPopup(url, title) { ...@@ -153,7 +149,6 @@ function showPopup(url, title) {
} }
}); });
} }
} }
$(function () { $(function () {
window.onresize = function () { window.onresize = function () {
...@@ -171,14 +166,14 @@ $(function () { ...@@ -171,14 +166,14 @@ $(function () {
}) })
}); });
const imgURL = '/'; const imgURL = '';
const baseURL = '/Ajax/Screen/Pile/'; const baseURL = '/Ajax/Screen/Pile/';
const baseURL_xcjc = '/Ajax/Screen/XCJC/'; const baseURL_xcjc = '/Ajax/Screen/XCJC/';
const baseURL_jzjc = '/Ajax/Screen/JZJC/'; const baseURL_jzjc = '/Ajax/Screen/JZJC/';
const baseURL_htjc = 'https://jtjc.vnet1000.net/Ajax/Screen/HTJC/'; const baseURL_htjc = '/Ajax/Screen/HTJC/';
const baseURL_gjjc = 'https://jtjc.vnet1000.net/Ajax/Screen/GJBHC/'; const newBaseURL_htjc = `${window.location.protocol}//detectapi.cnjsjd.net/api/`
const baseURL_Utility = 'https://jtjc.vnet1000.net/Ajax/Screen/Utility/'; const baseURL_Utility = '/Ajax/Screen/Utility/';
window._AMapSecurityConfig = { window._AMapSecurityConfig = {
securityJsCode: '0711374220aba81dbf7515aaac08e50b', securityJsCode: '0711374220aba81dbf7515aaac08e50b',
......
...@@ -268,15 +268,11 @@ var getLeftData = { ...@@ -268,15 +268,11 @@ var getLeftData = {
$(".content .left-item .panel2 .panel-info").html('<div class="noData">暂无数据</div>'); $(".content .left-item .panel2 .panel-info").html('<div class="noData">暂无数据</div>');
} }
}, },
// 视频通话     // 视频通话
videoConnection(target_op_code){     videoConnection(target_op_code){
<<<<<<< static/js/xcjc.js         window.open('https://detect.cnjsjd.net/VideoConnection.aspx?target_op_code='+target_op_code);
window.open('https://detect.cnjsjd.net/VideoConnection.aspx?target_op_code='+target_op_code);         // showPopup('http://detect.cnjsjd.net/VideoConnection.aspx?target_op_code='+target_op_code, '视频通话');
// showPopup('http://detect.cnjsjd.net/VideoConnection.aspx?target_op_code='+target_op_code, '视频通话');     }
=======
window.open('https://detect.cnjsjd.net/VideoConnection.aspx?target_op_code=' + target_op_code);
>>>>>>> static/js/xcjc.js
}
} }
var getCenterData = { var getCenterData = {
......
...@@ -337,6 +337,7 @@ var getLeftdata = { ...@@ -337,6 +337,7 @@ var getLeftdata = {
map.getMap(data); map.getMap(data);
}, },
error: function (jqXHR) { error: function (jqXHR) {
map.getMap([]);
console.log("发生错误:" + jqXHR.status); console.log("发生错误:" + jqXHR.status);
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment