|
@@ -0,0 +1,172 @@
|
|
|
|
+{{template "inc"}}
|
|
|
|
+<!-- Main Header -->
|
|
|
|
+{{template "header"}}
|
|
|
|
+<!-- Left side column. 权限菜单 -->
|
|
|
|
+{{template "memu"}}
|
|
|
|
+<link href="../res/other/css/other.css" rel="stylesheet" type="text/css">
|
|
|
|
+<div class="content-wrapper">
|
|
|
|
+ <section class="content-header" style="padding: 49px 15px 0 15px;">
|
|
|
|
+ <h1>
|
|
|
|
+
|
|
|
|
+ </h1>
|
|
|
|
+ <ol class="breadcrumb">
|
|
|
|
+ <li><a href="#"><i class="fa fa-dashboard"></i> 结果追踪</a></li>
|
|
|
|
+ </ol>
|
|
|
|
+ </section>
|
|
|
|
+ <!-- Main content -->
|
|
|
|
+ <section class="content">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-xs-12">
|
|
|
|
+ <div class="box">
|
|
|
|
+ <div class="box-body">
|
|
|
|
+ <table id="dataTable" class="table table-bordered table-hover">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th>项目名称</th>
|
|
|
|
+ <th>预算金额</th>
|
|
|
|
+ <th>中标金额</th>
|
|
|
|
+ <th>采购单位</th>
|
|
|
|
+ <th>中标单位</th>
|
|
|
|
+ <th>招标机构</th>
|
|
|
|
+ <th>类型</th>
|
|
|
|
+ <th>操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- /.box-body -->
|
|
|
|
+ </div>
|
|
|
|
+ <!-- /.box -->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </section>
|
|
|
|
+
|
|
|
|
+</div>
|
|
|
|
+<!--新增标签-->
|
|
|
|
+<div class="modal fade" id="modal-info-resulttrack">
|
|
|
|
+ <div class="modal-dialog">
|
|
|
|
+ <form id="resulttrack-dataform" class="form-horizontal" role="form">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header">
|
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
+ <span aria-hidden="true">×</span></button>
|
|
|
|
+ <h4 class="modal-title">信息</h4>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="code" class="col-sm-2 control-label">项目名称:</label>
|
|
|
|
+ <div class="col-sm-10 styleclass">
|
|
|
|
+ <input type="text" class="form-control" id="projectname">
|
|
|
|
+ <button type="button" class="btn btn-primary track">追踪</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="code" class="col-sm-2 control-label">预算金额:</label>
|
|
|
|
+ <div class="col-sm-10 styleclass">
|
|
|
|
+ <input type="text" class="form-control" id="budget">
|
|
|
|
+ <button type="button" class="btn btn-primary track">追踪</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="code" class="col-sm-2 control-label">中标单位:</label>
|
|
|
|
+ <div class="col-sm-10 styleclass">
|
|
|
|
+ <input type="text" class="form-control" id="winner">
|
|
|
|
+ <button type="button" class="btn btn-primary track">追踪</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="code" class="col-sm-2 control-label">采购单位:</label>
|
|
|
|
+ <div class="col-sm-10 styleclass">
|
|
|
|
+ <input type="text" class="form-control" id="buyer">
|
|
|
|
+ <button type="button" class="btn btn-primary track" >追踪</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="code" class="col-sm-2 control-label">招标机构:</label>
|
|
|
|
+ <div class="col-sm-10 styleclass">
|
|
|
|
+ <input type="text" class="form-control" id="agency">
|
|
|
|
+ <button type="button" class="btn btn-primary track">追踪</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- /.modal-content -->
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- /.modal-dialog -->
|
|
|
|
+</div>
|
|
|
|
+{{template "dialog"}}
|
|
|
|
+{{template "footer"}}
|
|
|
|
+<script>
|
|
|
|
+var rowdata ={};
|
|
|
|
+var trackId = "";
|
|
|
|
+$(function () {
|
|
|
|
+ ttable=$('#dataTable').DataTable({
|
|
|
|
+ "paging" : true,
|
|
|
|
+ "lengthChange": false,
|
|
|
|
+ "searching" : true,
|
|
|
|
+ "ordering" : true,
|
|
|
|
+ "info" : true,
|
|
|
|
+ "autoWidth" : false,
|
|
|
|
+ "serverSide" : true,
|
|
|
|
+ "ajax": {
|
|
|
|
+ "url": "/admin/resulttrack/list",
|
|
|
|
+ "type": "post",
|
|
|
|
+ "data":{}
|
|
|
|
+ },
|
|
|
|
+ "language": {
|
|
|
|
+ "url": "/res/dist/js/dataTables.chinese.lang"
|
|
|
|
+ },
|
|
|
|
+ "columns": [
|
|
|
|
+ { "data": "projectname","width":"16%",render:function(val,a,row){
|
|
|
|
+ var tmpval = val;
|
|
|
|
+ if(tmpval == undefined){
|
|
|
|
+ tmpval = "";
|
|
|
|
+ }
|
|
|
|
+ if(tmpval.length>10){
|
|
|
|
+ tmpval = tmpval.substr(0,10)+"...";
|
|
|
|
+ }
|
|
|
|
+ return"<a style='color:#333' target='_blank' title='"+val+"'>"+tmpval+"</a>"
|
|
|
|
+ }},
|
|
|
|
+ { "data": "budget"},
|
|
|
|
+ { "data": "_id",render:function(val,a,row){
|
|
|
|
+ return "测试"
|
|
|
|
+ }},
|
|
|
|
+ { "data": "_id",render:function(val,a,row){
|
|
|
|
+ return "测试"
|
|
|
|
+ }},
|
|
|
|
+ { "data": "_id",render:function(val,a,row){
|
|
|
|
+ return "测试"
|
|
|
|
+ }},
|
|
|
|
+ { "data": "_id",render:function(val,a,row){
|
|
|
|
+ return "测试"
|
|
|
|
+ }},
|
|
|
|
+ { "data": "toptype"},
|
|
|
|
+ { "data": "_id",render:function(val,a,row){
|
|
|
|
+ rowdata[val]= row;
|
|
|
|
+ return "<a class='btn btn-primary' onclick='trackShow(\""+val+"\")'>详细</a>"
|
|
|
|
+ }}
|
|
|
|
+ ]
|
|
|
|
+ });
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+//追踪
|
|
|
|
+function trackShow(_id){
|
|
|
|
+ trackId = _id;
|
|
|
|
+ var data = rowdata[_id];
|
|
|
|
+ $("#modal-info-resulttrack #projectname").val(data["projectname"]);
|
|
|
|
+ $("#modal-info-resulttrack #budget").val(data["budget"]);
|
|
|
|
+ $("#modal-info-resulttrack #winner").val();
|
|
|
|
+ $("#modal-info-resulttrack #buyer").val();
|
|
|
|
+ $("#modal-info-resulttrack #agency").val();
|
|
|
|
+ $("#modal-info-resulttrack").modal("show");
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+$("#modal-info-resulttrack .track").click(function(){
|
|
|
|
+ var field = $(this).prev().attr("id");
|
|
|
|
+ window.open("/admin/resulttrack/trackData/?trackId="+trackId+"&field="+field);
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</script>
|