|
@@ -1,7 +1,9 @@
|
|
|
+
|
|
|
<html>
|
|
|
<head>
|
|
|
<title>审核用户</title>
|
|
|
{{include "/common/inc.html"}}
|
|
|
+<script src="{{Msg "seo" "cdn"}}/js/jquery.cookie.js"></script>
|
|
|
<script src="/js/qfwtable.js"></script>
|
|
|
<style type="text/css">
|
|
|
#dataExportOrder{
|
|
@@ -75,82 +77,89 @@ background-color:#18CC7D;
|
|
|
<script>
|
|
|
$(function(){
|
|
|
$("#audit").datatable({
|
|
|
- perPage: 10
|
|
|
- ,showPagination:true
|
|
|
- ,checkbox:"" //check radio
|
|
|
- ,checkboxHeader:false
|
|
|
- ,idField:"_id"
|
|
|
- ,classname:"table-hover"
|
|
|
- ,css:{"height":"450px"}
|
|
|
- //,post:{"name":"ee"}
|
|
|
- ,buttons: ['<div style="width:50%;margin:5px" class="input-group pull-right" id="search"><input type="text" id="searchtext" value="" data-original-title="Search" class="form-control" placeholder="请输入订单编号"><span class="input-group-btn"><button class="btn btn-success" onclick="SearchContent()" data-original-title="Search" id="searchtip" type="button" style="height:38px;">检索</button></span></div><div style="margin:5px;" class="controls pull-right"><select class="form-control" id="select2" ><option value=""> 数据发送状态 </option><option value="1"> 发送成功</option><option value="0"> 发送失败 </option></select></div><div style="margin:5px;" class="controls pull-right"><select class="form-control" id="select1"><option value=""> 订单状态 </option><option value="1"> 已支付 </option><option value="0"> 未支付 </option></select></div>']
|
|
|
- , url: '/manage/dataExport/p'
|
|
|
- , columns: [
|
|
|
- {
|
|
|
- title: "序号", field: "index"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "订单编号", field: "order_code"
|
|
|
- ,callback:function(ct,cd,val,k,m){
|
|
|
- if(ct["order_code"]){
|
|
|
- return "<a href='/manage/dataExport/dataDetail/"+ct["order_code"]+"' style='color:#4e5051;text-decoration:none'>"+ ct["order_code"]+"</a>"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: "购买时间",field: "pay_time"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "数据规格", field: "data_spec"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "价格", field: "order_money"
|
|
|
- ,callback:function(ct,cd,val,k,m){
|
|
|
- if(ct["order_money"]){
|
|
|
- return ct["order_money"]/100+"元"
|
|
|
+ perPage: 10
|
|
|
+ ,showPagination:true
|
|
|
+ ,checkbox:"" //check radio
|
|
|
+ ,checkboxHeader:false
|
|
|
+ ,idField:"_id"
|
|
|
+ ,classname:"table-hover"
|
|
|
+ ,css:{"height":"450px"}
|
|
|
+ //,post:{"name":"ee"}
|
|
|
+ ,buttons: ['<div style="width:50%;margin:5px" class="input-group pull-right" id="search"><input type="text" id="searchtext" value="" data-original-title="Search" class="form-control" placeholder="请输入订单编号"><span class="input-group-btn"><button class="btn btn-success" onclick="SearchContent()" data-original-title="Search" id="searchtip" type="button" style="height:38px;">检索</button></span></div><div style="margin:5px;" class="controls pull-right"><select class="form-control" id="select2" ><option value=""> 数据发送状态 </option><option value="1"> 发送成功</option><option value="0"> 发送失败 </option></select></div><div style="margin:5px;" class="controls pull-right"><select class="form-control" id="select1"><option value=""> 订单状态 </option><option value="1"> 已支付 </option><option value="0"> 未支付 </option></select></div>']
|
|
|
+ , url: '/manage/dataExport/p'
|
|
|
+ , columns: [
|
|
|
+ {
|
|
|
+ title: "序号", field: "index"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "订单编号", field: "order_code"
|
|
|
+ ,callback:function(ct,cd,val,k,m){
|
|
|
+ if(ct["order_code"]){
|
|
|
+ return "<a onclick='redirect(\""+ct["order_code"]+"\")' style='color:#4e5051;text-decoration:none'>"+ ct["order_code"]+"</a>"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "购买时间",field: "pay_time"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "数据规格", field: "data_spec"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "价格", field: "order_money"
|
|
|
+ ,callback:function(ct,cd,val,k,m){
|
|
|
+ if(ct["order_money"]){
|
|
|
+ return ct["order_money"]/100+"元"
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: "支付状态", field: "order_status"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "发票状态", field: "applybill_status"
|
|
|
- },
|
|
|
- {
|
|
|
- title: "下载链接", field: "download_url"
|
|
|
- ,callback:function(ct,cd,val,k,m){
|
|
|
- if(ct["download_url"]){
|
|
|
- return "<a href='"+ct["download_url"]+"' title='"+ct["download_url"]+"'>"+ ct["download_url"]+"</a>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "支付状态", field: "order_status"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "发票状态", field: "applybill_status"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "下载链接", field: "download_url"
|
|
|
+ ,callback:function(ct,cd,val,k,m){
|
|
|
+ if(ct["download_url"]){
|
|
|
+ return "<a href='"+ct["download_url"]+"' title='"+ct["download_url"]+"'>"+ ct["download_url"]+"</a>"
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: "数据发送状态", field: "service_status"
|
|
|
- }
|
|
|
- ]
|
|
|
- });
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "数据发送状态", field: "service_status"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ });
|
|
|
+
|
|
|
$("select").change(function(){
|
|
|
+ //$("body").on("change","select",function(){
|
|
|
//选择已支付,才能选择是否发送成功
|
|
|
if($("#select1").val()=="0"){
|
|
|
$("#select2").val("").attr("disabled","disabled");
|
|
|
}else{
|
|
|
$("#select2").removeAttr("disabled","disabled");
|
|
|
}
|
|
|
-
|
|
|
- var find=$("#audit").data("datatable")
|
|
|
+ var find=$("#audit").data("datatable");
|
|
|
if(!find.options.opost) find.options.opost=find.options.post||{};
|
|
|
find.options.post=$.extend(find.options.opost,{strSel1:$("#select1").val(),strSel2:$("#select2").val()});
|
|
|
- find.options.currentPage=1
|
|
|
+ find.options.currentPage=1;
|
|
|
find.render();
|
|
|
});
|
|
|
-
|
|
|
});
|
|
|
+
|
|
|
+//点击跳转新页面
|
|
|
+function redirect(code){
|
|
|
+ //sessionStorage.setItem("contentHtml",$("#content").prop("outerHTML"));
|
|
|
+ window.open("/manage/dataExport/dataDetail/"+code);
|
|
|
+}
|
|
|
+//
|
|
|
function SearchContent(){
|
|
|
- var find=$("#audit").data("datatable")
|
|
|
+ var find=$("#audit").data("datatable");
|
|
|
if(!find.options.opost) find.options.opost=find.options.post||{};
|
|
|
find.options.post=$.extend(find.options.opost,{query:$("#searchtext").val()});
|
|
|
- find.options.currentPage=1
|
|
|
+ find.options.currentPage=1;
|
|
|
find.render();
|
|
|
}
|
|
|
</script>
|