You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
3.0 KiB
57 lines
3.0 KiB
6 years ago
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||
|
<%--
|
||
|
Created by IntelliJ IDEA.
|
||
|
User: 10295
|
||
|
Date: 2018/6/3
|
||
|
Time: 20:55
|
||
|
To change this template use File | Settings | File Templates.
|
||
|
--%>
|
||
|
|
||
|
<%@ page pageEncoding="utf-8" %>
|
||
|
<html>
|
||
|
<head>
|
||
|
<c:if test="${param.index==0}">
|
||
|
<script>
|
||
|
function get(cid, i) {
|
||
|
$("td[cid=" + cid + "]").find("span").text("获取中");
|
||
|
$.get("/data/count/" + cid, function (result) {
|
||
|
if (result>=0) {
|
||
|
if(result > 0){
|
||
|
$("#cid_" + cid).removeAttr("disabled");
|
||
|
}
|
||
|
$("td[cid=" + cid + "]").text(result);
|
||
|
}else {
|
||
|
$("td[cid=" + cid + "]").find("span").html('<a href="javascript:get('+cid+',0)">获取异常,点击重新获取</a>');
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
$(function () {
|
||
|
$.each($("td[cid]"), function () {
|
||
|
get($(this).attr("cid"), 0);
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
</c:if>
|
||
|
</head>
|
||
|
<body>
|
||
|
<td cid="${param.id}">
|
||
|
<span>获取中</span>
|
||
|
<svg aria-hidden="true" data-prefix="fas" data-icon="spinner" role="img"
|
||
|
style="width: 20px;height: 20px"
|
||
|
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"
|
||
|
class="svg-inline--fa fa-spinner fa-w-16 fa-spin fa-lg">
|
||
|
<path fill="currentColor"
|
||
|
d="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"
|
||
|
class=""></path>
|
||
|
</svg>
|
||
|
<svg aria-hidden="true" data-prefix="fas" data-icon="spinner" role="img" xmlns="http://www.w3.org/2000/svg"
|
||
|
viewBox="0 0 512 512" class="svg-inline--fa fa-spinner fa-w-16 fa-lg" hidden>
|
||
|
<path fill="currentColor"
|
||
|
d="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"
|
||
|
class=""></path>
|
||
|
</svg>
|
||
|
</td>
|
||
|
</body>
|
||
|
</html>
|