Commit 3023da8b authored by agping's avatar agping

业绩记录

parent 7ae8a6c6
<?php
namespace app\index\controller;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/3/13
* Time: 15:48
*/
use app\index\extend\Basic;
class PerformanceAdjustment extends Basic
{
public function performanceAdjustment()
{
if (!$this->request->isAjax()) {
return view('performanceAdjustment/performanceAdjustmentList');
}
}
}
{layout name="global/frame_tpl" /}
<input type="hidden" class="page-load" id="performance_adjustment" />
<style>
#note_text {
width: 80%;
margin-left: 48px;
margin-top: -20px;
}
#note_text_re {
width: 80%;
margin-left: 48px;
margin-top: -20px;
}
.Tswitch_one {
display: none;
}
.Tswitch_two {
display: none;
}
.left {
float: left;
width: 340px;
line-height: 36px;
}
.right {
line-height: 36px;
}
.btn_2 {
width: 60px;
display: inline-block;
height: 26px;
padding: 3px 6px
}
.edit_new {
float: right;
margin-bottom: 5px;
margin-top: -10px;
}
.form-control-one {
display: inline-block;
width: 40%;
}
#form_search {
line-height: 48px;
}
.modal-body-two {
height: 500px;
overflow-y: scroll;
}
.btn2-2{
width: 9%!important;
}
.clear{
clear: both;
}
</style>
<div id="page-content-wrapper">
<div class="container">
<div class="row">
<div class="">
<div class="panel panel-default">
<div class="panel-heading breadcrumb">
<li>
<a href="#">业绩调整记录</a>
</li>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<td colspan="10">
<form id="form_search">
<input class="form-control btn2 ld-Marheight btn2-2" data-rule-phoneus="false" data-rule-required="false" id="user_name" placeholder="姓名" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_phone" placeholder="手机号" type="text" value="">
<span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span>
</form>
</td>
</tr>
<tr>
<th class="text-center">提交时间</th>
<th class="text-center">用户ID</th>
<th class="text-center">被调整人</th>
<th class="text-center">手机号</th>
<th class="text-center">被调整到的新门店</th>
<th class="text-center">业绩开始调整时间</th>
</tr>
</thead>
<tbody class="text-center" id="performance_adjustment_list">
</table>
</div>
<!-- /#page-content-wrapper -->
<div class="text-right" id="pagediv">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......@@ -300,6 +300,7 @@ Route::group('index', [
'agentEvaluateNumAndFraction' => ['index/broker/agentEvaluateNumAndFraction', ['method' => 'POST|GET']],//经纪人列表计算-评价次数和分数 朱伟 2018-07-03
'uploadImg' => ['index/UploadImg/uploadImg', ['method' => 'POST']],//全局图片上传
'followUpList' => ['index/HouseFollowUp/followUpList', ['method' => 'GET']],//商铺跟进liu
'performanceAdjustment' => ['index/PerformanceAdjustment/performanceAdjustment', ['method' => 'GET']],//业绩调整记录 liu
'inspectionRecordList' => ['index/InspectionRecord/inspectionRecordList', ['method' => 'GET']],//约带看记录liu
'realtimePerformance' => ['index/RealTimePerformance/realtimePerformanceList', ['method' => 'GET']],//实时业绩liu
'shopinspectionLog' => ['index/ShopInspectionLog/shopinspectionLogList', ['method' => 'POST|GET']],//商铺查看日志liu
......
define(['doT', 'text!temp/performance_adjustment_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template) {
adjustment = {
pageNo: 1,
/*第几页*/
pageSize: 15,
/*每页显示多少条*/
init: function() {
//初始化dot
$("body").append(template);
adjustment.getList();
adjustment.event();
},
event: function() {
var _doc = $(document);
$("#search").click(function() {
adjustment.getList(1);
});
$("#reset").click(function() { //重置
document.getElementById("form_search").reset();
});
},
getList: function(pageNo) {
adjustment.pageNo = pageNo;
var params = {};
params.pageNo = adjustment.pageNo;
params.pageSize = adjustment.pageSize;
params.phone = $('#user_phone').val();
params.name = $('#user_name').val();
$.ajax({
url: '/index/financeUpdateLog', //获取列表
type: 'GET',
async: true,
data: params,
dataType: 'json',
success: function(data) {
console.log(data);
var temp = document.getElementById('performance_adjustment_list_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#performance_adjustment_list").html(doTtmpl(data.data.list));
/*分页代码*/
add_page(data.data.total, pageNo, adjustment.pageSize, adjustment.getList);
}
});
},
};
return adjustment;
});
\ No newline at end of file
<script id="performance_adjustment_list_tpl" type="text/template">
[% if(it[0]) { %]
[% for(var item in it){ %]
<tr>
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time']%]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time']%]</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="8" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment