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.

117 lines
4.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>教学计划</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="../../static/css/font.css">
<link rel="stylesheet" href="../../static/css/weadmin.css">
<link rel="stylesheet" href="../../lib/layui/css/layui.css">
<script src="../../lib/jquery-1.12.4.min.js"></script>
<script src="../../lib/ztree/jquery.ztree.core-3.5.min.js"></script>
<!-- 让IE8/9支持媒体查询从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
select {
width: 180px;
height: 38px;
line-height: 38px;
border: 1px solid #ccc;
border-radius: 3px;
font-size: 15px;
padding-left: 6px;
color: #666;
}
.inline {
display: inline-block;
vertical-align: top;
}
ul.log li {
color: #666666;
list-style: none;
padding-left: 10px;
}
</style>
</head>
<body>
<div class="weadmin-body">
<div class="layui-form-item">
<table class="layui-table" lay-filter="idTest" id="idTest"></table>
</div>
</div>
<script src="../../lib/layui/layui.js"></script>
<script src="../../lib/template.js"></script>
<script src="../../lib/base64.js"></script>
<script>
layui.extend({
admin: '{/}../../static/js/admin'
});
layui.use(['form', 'jquery', 'laytpl', 'admin', 'layer', 'table'], function () {
var form = layui.form,
$ = layui.jquery,
admin = layui.admin,
layer = layui.layer,
table = layui.table,
laytpl = layui.laytpl;
var module_id = GetQueryString("module_id");
var business_id = GetQueryString("business_id");
var type = GetQueryString("type");
// 绑定场地
window.bindSite = function () {
table.render({
elem: '#idTest',
url: '/baseService/teachbase/getVerificationPace?module_id=' + module_id +'&business_id='+business_id,
cols: [[
{field: 'site_id', title: '序号', align: 'center', type: 'numbers', width: 80}
, {field: 'verification_status', title: '审批状态', align: 'center'}
, {field: 'step_id', title: '审批级别', align: 'center'}
, {field: 'step_name', title: '审批人职务', align: 'center'}
, {field: 'person_name', title: '审批人姓名', align: 'center'}
, {field: 'verification_judgement', title: '审批意见', align: 'center'}
]]
, page: false
, height: 'full'
, done: function () {
$("[data-field='verification_status']").children().each(function () {
if ($(this).text() == '0') {
$(this).css("background", "#FFA500")
$(this).text("待审批")
} else if ($(this).text() == '-1') {
$(this).css("background", "#FF5722")
$(this).text("已返回")
} else if ($(this).text() == '1') {
$(this).css("background", "#5FB878")
$(this).text("已通过")
}
});
$("[data-field='verification_judgement']").children().each(function () {
if ($(this).text() == '') {
$(this).text("空")
}
});
$("[data-field='step_id']").children().each(function () {
if ($(this).text() == '1') {
$(this).text("一级审批")
}else if ($(this).text() == '2') {
$(this).text("二级审批")
}
});
}
});
};
//绑定场地
bindSite();
})
</script>
</body>
</html>