Commit 11c885e3 authored by agping's avatar agping

后台列表修改完成

parent fb997156
......@@ -27,6 +27,11 @@
#reset{
float: left;
}
.evaluation-score{
margin-right: 10px;
font-weight: bold;
font-size: 16px;
}
</style>
<div id="page-content-wrapper">
<div class="container">
......@@ -65,8 +70,8 @@
</select>
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_phone" placeholder="手机号" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_name" placeholder="姓名" type="text" value="">
<span class="fore-span ld-Marheight">进场平均分数:</span><span class="fore-span ld-Marheight" id='average_score'></span>
<span class="fore-span ld-Marheight">评价平均分数:</span><span class="fore-span ld-Marheight" id='average_score_evaluation'></span>
<span class="fore-span ld-Marheight">进场平均分数:</span><span class="fore-span ld-Marheight evaluation-score" id='average_score'></span>
<span class="fore-span ld-Marheight">评价平均分数:</span><span class="fore-span ld-Marheight evaluation-score" id='average_score_evaluation'></span>
<span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span>
</form>
......@@ -110,7 +115,7 @@
</h4>
</div>
<div class="modal-body">
暂不删除
暂不支持删除
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
......
......@@ -66,7 +66,7 @@
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="report_agent_phone" placeholder="报备人手机号" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="house_title" placeholder="商铺名" type="text" value="">
<select class="form-control btn2 ld-Marheight" id="shop_type">
<option value="-1">商铺类型</option>
<option value="">商铺类型</option>
<option value="0">商场</option>
<option value="1">街铺</option>
</select>
......
......@@ -7,7 +7,8 @@
padding-bottom: 60px;
}
.modal-body2{
padding: 45px;
padding: 35px;
height: 380px;
}
.user-ul {
......@@ -98,6 +99,22 @@
.bottom{
margin-top: 30px;
}
.btn6_1{
width: 80% !important;
float: left;
}
.notice-title{
font-size: 20px;
}
.notice-time{
font-size: 13px;
margin-top: 20px;
}
.notice-text{
font-size: 16px;
margin-top: 30px;
text-indent: 2em;
}
</style>
<!--导航star-->
......@@ -198,7 +215,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-9">
<textarea class="form-control btn6" name="agent_id" autocomplete="off" id="announcement_content" rows="10" cols="40"></textarea>
<textarea class="form-control btn6_1" name="agent_id" autocomplete="off" id="announcement_content" rows="10" cols="40" placeholder="请输入内容"></textarea>
<ul class="user-ul">
</ul>
......
......@@ -51,9 +51,6 @@ define(['doT', 'text!temp/evaluation_list_template_tpl.html', 'css!style/home.cs
console.log($(this).attr ("data-img"));
});
$("#export").click(function() { //导出列表
follow.exportList();
});
$ (document).delegate (".submit_edit2", "click", function () {//提交
follow.house_id2 = $ (this).attr ("data-id");
console.log(follow.house_id2);
......@@ -137,7 +134,7 @@ define(['doT', 'text!temp/evaluation_list_template_tpl.html', 'css!style/home.cs
params.march_in_time_end =$('#create_time_end').val();
params.district_id =$('#district_id').val()*1;
params.store_id =$('#guest_stores').val()*1;
params.user_name =$('#user_name').val();
params.user_nick =$('#user_name').val();
params.user_phone =$('#user_phone').val();
params.pageNo = follow.pageNo;
params.pageSize = follow.pageSize;
......
......@@ -149,17 +149,6 @@ define(['doT', 'text!temp/marchin_list_template_tpl.html', 'css!style/home.css',
params.report_agent_name =$('#report_agent_name').val();
params.house_title =$('#house_title').val();
params.shop_type =$('#shop_type').val()*1;//跟进搜索
// create_time_start false string 进场时间开始时间
//create_time_end false string 进场时间结束时间
//district_id false int 部门(传ID)
//store_id false int 门店名称(传ID)
//user_name false sting 客户姓名
//user_phone false string 客户手机号
//report_agent_phone false string 报备人手机号
//report_agent_name false sting 报备人姓名
//house_title false sting 商铺名
//shop_type false int 商铺类型(0商场,1街铺)
params.pageNo = follow.pageNo;
params.pageSize = follow.pageSize;
$.ajax({
......
......@@ -11,8 +11,6 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
$ ("body").append (template);
user.getList ();
user.event ();
user.getDistrict();
user.getDistricttwo();
//时间控件初始化
/* $('#datetimepicker').datetimepicker({
format: 'yyyy-MM-dd',
......@@ -288,6 +286,8 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
params.start_time = $("#start_date").val();
params.end_time = $("#end_date").val();
params.title = $("#release_title").val();
params.pageNo = user.pageNo;
params.pageSize = user.pageSize;
$.ajax ({
url: '/index/noticeIndex',
......@@ -330,7 +330,7 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
return ;
}
if (params.content.length > 250) {
alert('公告字数250以内');
alert('公告内容字数250以内');
$("#announcement_content").focus();
return ;
}
......@@ -368,44 +368,7 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
}
});
},
getDistrict : function () {
$.ajax ({
url: '/index/getDistrict',
type: 'GET',
async: true,
data: {"pageSize":50},
dataType: 'json',
success: function (data) {
if (data.code == 200 && data.data != null) {
var str = '<option value="0">客方所属部门</option>';
$.each(data.data, function(i,item) {
str += '<option value="'+item.id+'">'+item.district_name+'</option>';
});
$("#district_id").html(str);
}
}
});
},
getDistricttwo : function () {
$.ajax ({
url: '/index/getDistrict',
type: 'GET',
async: true,
data: {"pageSize":50},
dataType: 'json',
success: function (data) {
if (data.code == 200 && data.data != null) {
var str = '<option value="0">邀请人所属部门</option>';
$.each(data.data, function(i,item) {
str += '<option value="'+item.id+'">'+item.district_name+'</option>';
});
$("#district_id2").html(str);
}
}
});
}
};
return user;
});
......
......@@ -8,7 +8,7 @@
<td>[%= it[item]['report_agent_name'] %]</td>
<td>[%= it[item]['house_title'] %]</td>
<td>
<a class="btn1 btn-info timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
<a class="btn1 btn-info timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["report_id"] %]'>时间轴</a>
</td>
</tr>
[% } %]
......
......@@ -3,15 +3,21 @@
[% for(var item in it){ %]
<tr>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= hideTel(it[item]["name"]) %]</td>
<!--<td>[%= hideTel(it[item]["name"]) %]</td>-->
<td>[% if(it[item]["name"] != null) { %]
[%= it[item]["name"] %]
[% } %]
</td>
<td>[%= it[item]["title"] %]</td>
<td>
<a class="btn1 btn-success announcement-details" href="#modal-record" data-toggle="modal" data-createTime='[%= it[item]["create_time"] %]' data-title='[%= it[item]["title"] %]' data-content='[%= it[item]["content"] %]'>
查看
</a>
<a class="btn1 btn-success announcement-del" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
删除
</a>
[% if(check_auth('index/delNotice')) { %]
<!--删除权限-->
<a class="btn1 btn-success announcement-del" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除</a>
[% } %]
</td>
</tr>
[% } %]
......@@ -20,4 +26,4 @@
<td colspan="7" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
</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