tzqdn/qdntz/inc/xmtzk/zs/list.html
2024-02-28 15:42:52 +08:00

99 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>投资黔东南</title>
<link rel="stylesheet" href="../css/01.css">
<link rel="stylesheet" href="../css/bootstrap.min.css">
</head>
<body>
<div class="container-01">
<div class="Background">
<!--返回箭头-->
<div class="column_01 text-center">
<div class="return_Arrow">
<a href="../index.html">
<img src="../image/zuojiantou.png">
</a>
</div>
再生资源循环材料
</div>
<!--输入框-->
<div class="input_01">
<div class="input-group input-group-sm">
<input type="text" id="categories" class="form-control" value="" placeholder="请输入项目名或地址">
</div>
</div>
<!--内容框-->
<div class="container-02" style="width: 100%;height: 88%;">
<div style="height: 100%;overflow-y:scroll;">
<table id="details" class="table table-hover">
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="../js/bootstrap.bundle.min.js"></script>
<script src="../js/jquery.js"></script>
<script>
$('#categories').bind('input propertychange', function() {
var insertVal = $(this).val();
$("#details tr").each(function(){
var paraStr = $(this).children().children().html();
if(paraStr.indexOf(insertVal)<0){
$(this).hide();
}else{
$(this).show();
}
})
});
</script>
<script>
var token = '';
$.ajax({
url: 'https://qdngz.guizhoujc.com/seeyon/rest/token/test/6fc1c885-3aac-4489-95f0-7b6923622743',
dataType: 'xml',
success: function(data) {
$(data).find('UserToken').each(function() {
var id = $(this).find('id').text();
token = id;
});
},
error: function() {
console.log('Error loading XML document');
}
}).done(function() {
if (token !== '') {
$.ajax({
url: 'https://qdngz.guizhoujc.com/seeyon/rest/dee/task/getRegeneration',
dataType: 'xml',
data: {token: token},
success: function(data) {
$(data).find('row').each(function() {
var xiangmumingchen = $(this).find('FIELD0001').text();
var ID = $(this).find('ID').text();
var row = `<tr data-id="${ID}">
<td data-label="项目名称">${xiangmumingchen}</td>
</tr>`;
$('#details').append(row);
});
$('#details tr').on('click', function() {
var id = $(this).data('id');
window.document.location = 'show-zs.html?id=' + id;
});
},
error: function(xhr, textStatus, errorThrown) {
console.error(xhr.status + ": " + errorThrown);
}
});
}
});
</script>
</body>
</html>