first commit
This commit is contained in:
@@ -0,0 +1,112 @@
|
||||
${zhiqim_manager_breadcrumb("作品审核")}
|
||||
${zhiqim_manager_content()}
|
||||
<style>
|
||||
|
||||
.item {
|
||||
width: 18.78328%;
|
||||
position: relative;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.item .z-bg-white {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.item .worksInfo {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.itemCtrBar {
|
||||
right: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
|
||||
Z.onload(function(){
|
||||
Z(".item .z-bg-white").mouseover(function(){
|
||||
Z(this).find(".itemCtrBar ").show();
|
||||
})
|
||||
Z(".item .z-bg-white").mouseout(function(){
|
||||
Z(this).find(".itemCtrBar ").hide();
|
||||
})
|
||||
});
|
||||
|
||||
function doWorksReview(designerWorksId,state){
|
||||
Z.confirm("确认" + (state == 2 ? "通过" : "退回") + "审核?", function(){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerWorksPresenter");
|
||||
ajax.setMethodName("doWorksReview");
|
||||
ajax.addParam("designerWorksId",designerWorksId);
|
||||
ajax.addParam("state",state);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function()
|
||||
{
|
||||
parent.Z.tips("审核成功");
|
||||
location.reload();
|
||||
});
|
||||
ajax.execute();
|
||||
});
|
||||
}
|
||||
|
||||
function showLargeImg(thisImg)
|
||||
{
|
||||
var dialog = new parent.Z.Dialog();
|
||||
dialog.shadow = true;
|
||||
dialog.title = "图片预览";
|
||||
//dialog.hasTitle = false;
|
||||
dialog.fixed = true;
|
||||
dialog.text = '<img style="width:100%;max-height: none;" src="' + thisImg.src + '">';
|
||||
dialog.width = 1200;
|
||||
dialog.height = 801;
|
||||
dialog.execute();
|
||||
dialog.$background.remove();
|
||||
}
|
||||
|
||||
</script>
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('designerManage.htm');">设计师管理</li>
|
||||
<li onclick="Z.L.href('onlineLog.htm');">在线设计师</li>
|
||||
<li onclick="Z.L.href('workSearchLog.htm');">工作日志</li>
|
||||
<li onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
|
||||
<li class="z-active">数据审核</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b5">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
|
||||
<li onclick="Z.L.href('designerProfile.htm');">简介审核</li>
|
||||
<li class="z-active">作品审核</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<#-- 列表 -->
|
||||
${zhiqim_manager_tr_no_record(pageResult, 39, "<table class='z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center'><tr class='zi-h60 z-bg-white z-text-center'><td colspan='39'>暂时没有作品信息</td></tr></table>")}
|
||||
<div style="display: flex;width: 100%;justify-content: flex-start;flex-wrap: wrap;">
|
||||
<#for item : pageResult.list()>
|
||||
<div class="item">
|
||||
<div class="z-bg-white z-pointer">
|
||||
<img style="width:100%;" src="${item.getImgPath()}" onclick="showLargeImg(this);" />
|
||||
<span class="itemCtrBar z-absolute">
|
||||
<button class="z-button modelCheckBtn z-small z-blue z-float-left" onclick="doWorksReview('${item.getDesignerWorksId()}','2');"><i class="z-font z-px12 z-success"></i>通过</button>
|
||||
<button class="z-button modelCheckBtn z-small z-red z-float-right" onclick="doWorksReview('${item.getDesignerWorksId()}','1');"><i class="z-font z-px12 z-error"></i>退回</button>
|
||||
</span>
|
||||
<div class="worksInfo">
|
||||
设计师: ${item.getOperatorCode()} 时间:${Sqls.toDateTimeString(item.getAddTime())}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
${zhiqim_manager_paging(pageResult, "/designerWorks.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
Reference in New Issue
Block a user