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.
109 lines
4.5 KiB
109 lines
4.5 KiB
{layout name="public/layout" /}
|
|
<ol class="breadcrumb" style="margin-top:10px">
|
|
<li><i class="glyphicon glyphicon-home"></i> <a href="{:url('center/index')}">用户中心</a></li>
|
|
<li class="active">待评分</li>
|
|
</ol>
|
|
<table id="mytg" class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" width="16px">#</th>
|
|
<th scope="col" width="58px">托管类型</th>
|
|
<th scope="col" width="70px">申请时间</th>
|
|
<th scope="col" >申请状态</th>
|
|
<th scope="col" width="56px" >评分状态</th>
|
|
<th scope="col" width="46px">待操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<script src="{$yf_theme_path}public/js/layer/layer.js"></script>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$("#mytg").on("click",".editcheck", function(event){
|
|
event.preventDefault();
|
|
var $url=this.href;
|
|
$(this).prop("disabled",true);
|
|
$.get($url, function(data){
|
|
if(data.code==1){
|
|
window.location.href=data.url;
|
|
} else {
|
|
layer.alert(data.msg, {icon: 5}, function(index){
|
|
layer.close(index);
|
|
window.location.href=data.url;
|
|
});
|
|
}
|
|
|
|
$(this).prop("disabled",false);
|
|
}, "json");
|
|
});
|
|
});
|
|
function getList(){
|
|
$.ajax({type:"get",
|
|
url:'/api/capital/getList?apply_type=2',
|
|
data:{},
|
|
success:function (data) {
|
|
if(data && typeof(data)=="string"){
|
|
data=JSON.parse(data);
|
|
}
|
|
|
|
//console.log('--data-=-',data);
|
|
var databodyobj=$("#mytg tbody");
|
|
databodyobj.empty();
|
|
if(data.data && data.data.data){
|
|
var list=data.data.data;
|
|
//console.log('--list-=-',list);
|
|
var listsize=list==null?0:list.length;
|
|
for(var i=0;i<listsize;i++){
|
|
//`apply_type` tinyint(2) unsigned NOT NULL COMMENT '申请类型 1 文化 2艺术品',
|
|
var onelist=list[i];
|
|
var apply_id=onelist.apply_id;
|
|
var apply_type=onelist.apply_type;
|
|
var apply_status=onelist.apply_status;
|
|
var status=onelist.status;
|
|
var status_name=onelist.status_name;
|
|
var statusdesc="";
|
|
var score=onelist.score;
|
|
var scorestr="未评分";
|
|
if(score>0)scorestr="已评分";
|
|
if(apply_status==0){
|
|
statusdesc="待审核";
|
|
}else if(apply_status==1){
|
|
statusdesc="审核通过";
|
|
}else if(apply_status==2){
|
|
statusdesc="审核不通过";
|
|
}
|
|
var descstr1=(status_name||statusdesc);
|
|
if(apply_status==1 || apply_status==2){
|
|
if(onelist.advice){
|
|
descstr1='<div>'+descstr1+'<div style="font-size:12px;color:#808080">'+onelist.advice+'</div></div>';
|
|
}
|
|
}
|
|
|
|
var datestr=onelist.create_date;
|
|
var html='<tr>'
|
|
+'<th scope="row">'+(i+1)+'</th>'
|
|
+'<td>'+(apply_type==1?'文化资产':apply_type==2?'艺术资产':apply_type==3?'古建资产':'')+'</td>'
|
|
+'<td>'+datestr+'</td>'
|
|
+'<td>'+descstr1+'<span id="pro'+apply_id+'"></span></td>'
|
|
+'<td>'+scorestr+'</td>'
|
|
+'<td>';
|
|
if(status==40){
|
|
html+='<a class="btn btn-danger btn-xs editcheck" href="{:url("home/listn/tg_procheck")}?mobile=1&apply_id='+apply_id+'">评审</a>';
|
|
}
|
|
html+='</td>'
|
|
+'</tr>';
|
|
|
|
databodyobj.append(html);
|
|
}
|
|
}
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
getList();
|
|
|
|
</script>
|
|
|