Commit b522c453 authored by agping's avatar agping

周报 日报 修改

parent 4b50ef26
...@@ -2,10 +2,18 @@ ...@@ -2,10 +2,18 @@
<input type="hidden" class="page-load" id="dayAchievementsReport" /> <input type="hidden" class="page-load" id="dayAchievementsReport" />
<style> <style>
.modal-body{ .modal-body{
/*height: 600px;*/
overflow-y: auto; overflow-y: auto;
padding-bottom: 60px; padding-bottom: 60px;
} }
.modal-body-img{
height: 666px;
overflow-y: auto;
padding-bottom: 60px;
text-align: center;
}
.modal-body-img img{
width: 466px;
}
.user-ul2{ .user-ul2{
width: 100%; width: 100%;
height: auto; height: auto;
...@@ -127,10 +135,10 @@ ...@@ -127,10 +135,10 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
业绩图片 日报图片
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body-img">
<img src="" alt="" class="review-images2"/> <img src="" alt="" class="review-images2"/>
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
......
...@@ -2,10 +2,18 @@ ...@@ -2,10 +2,18 @@
<input type="hidden" class="page-load" id="weekAchievementsReport" /> <input type="hidden" class="page-load" id="weekAchievementsReport" />
<style> <style>
.modal-body{ .modal-body{
/*height: 600px;*/
overflow-y: auto; overflow-y: auto;
padding-bottom: 60px; padding-bottom: 60px;
} }
.modal-body-img{
height: 666px;
overflow-y: auto;
padding-bottom: 60px;
text-align: center;
}
.modal-body-img img{
width: 466px;
}
.user-ul2{ .user-ul2{
width: 100%; width: 100%;
height: auto; height: auto;
...@@ -99,10 +107,10 @@ ...@@ -99,10 +107,10 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
业绩图片 周报图片
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body-img">
<img src="" alt="" class="review-images2"/> <img src="" alt="" class="review-images2"/>
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
$("#reset").click(function() { //重置 $("#reset").click(function() { //重置
document.getElementById("form_search").reset(); document.getElementById("form_search").reset();
$('#guest_stores').html(''); $('#guest_stores').html('');
report.agent_id_phone='';
}); });
}, },
...@@ -120,7 +121,8 @@ ...@@ -120,7 +121,8 @@
params.pageSize = report.pageSize; params.pageSize = report.pageSize;
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/getPerformanceReportList',//拜访列表 // url: 'https://pre2.tonglianjituan.com' + '/index/getPerformanceReportList',
url: '/index/getPerformanceReportList',//日报
data: params, data: params,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
......
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
$("#reset").click(function() { //重置 $("#reset").click(function() { //重置
document.getElementById("form_search").reset(); document.getElementById("form_search").reset();
$('#guest_stores').html(''); $('#guest_stores').html('');
report.agent_id_phone='';
}); });
}, },
...@@ -65,8 +67,8 @@ ...@@ -65,8 +67,8 @@
var params = {}; var params = {};
params.start_date =$('#create_time_start').val(); params.start_date =$('#create_time_start').val();
params.end_date =$('#create_time_end').val(); params.end_date =$('#create_time_end').val();
params.district_id =$('#district_id').val()*1; params.district_id =$('#district_id').val();
params.store_id =$('#guest_stores').val()*1; params.store_id =$('#guest_stores').val();
params.type = 0;//周报 params.type = 0;//周报
params.pageNo = report.pageNo; params.pageNo = report.pageNo;
params.pageSize = report.pageSize; params.pageSize = report.pageSize;
......
<script id="day_achievements_report_list_tpl" type="text/template"> <script id="day_achievements_report_list_tpl" type="text/template">
[% if(it) { %] [% if(it&&it.length!=0) { %]
[% for(var item in it){ %] [% for(var item in it){ %]
<tr class="text-center"> <tr class="text-center">
<td>[%= it[item]['create_time'] %]</td> <td>[%= it[item]['create_time'] %]</td>
<td> <td>
<a class="review-images" href="#modal-report-img" data-toggle="modal" data-img='[%= it[item]["scene_photo"] %]'>查看</a> <a class="review-images" href="#modal-report-img" data-toggle="modal" data-img='[%= it[item]["img_file_path"] %]'>查看</a>
</td> </td>
<td>[%= it[item]['house_title'] %]</td> <td>[% if(it[item]["name"] != null) { %] [%= it[item]["name"] %] [% } %]</td>
<td> <td>
<a class="btn1 btn-danger report-del" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除</a> <a class="btn1 btn-danger report-del" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除</a>
</td> </td>
......
<script id="week_achievements_report_list_tpl" type="text/template"> <script id="week_achievements_report_list_tpl" type="text/template">
[% if(it) { %] [% if(it&&it.length!=0) { %]
[% for(var item in it){ %] [% for(var item in it){ %]
<tr class="text-center"> <tr class="text-center">
<td>[%= it[item]['user_name'] %]</td> <td>[%= it[item]['start_date'] + '至' + it[item]['end_date']%]</td>
<td> <td>
<a class="review-images" href="#modal-report-img" data-toggle="modal" data-img='[%= it[item]["scene_photo"] %]'>查看</a> <a class="review-images" href="#modal-report-img" data-toggle="modal" data-img='[%= it[item]["img_file_path"] %]'>查看</a>
</td> </td>
<td>[% if(it[item]["name"] != null) { %] [%= it[item]["name"] %] [% } %]</td>
<td>[%= it[item]['create_time'] %]</td> <td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['report_agent_name'] %]</td>
<td> <td>
<a class="btn1 btn-danger report-del" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除</a> <a class="btn1 btn-danger report-del" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除</a>
</td> </td>
......
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