Commit 5b0f2b94 authored by 刘丹's avatar 刘丹

操作记录

parent a44f9134
......@@ -209,13 +209,9 @@
<th class="text-center">操作时间</th>
</tr>
</thead>
<tbody class="text-center" id="">
<tr>
<td>212</td>
<td>商场</td>
<td>长兴</td>
</tr>
</table>
<tbody class="text-center" id="caozuo_table">
</table>
</div>
</div><!-- /.modal-content -->
......
......@@ -49,6 +49,10 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
business.type="3";
business.Dujia();
});
$ (document).delegate (".caozuo", "click", function () {//点击操作记录
business.house_id = $ (this).attr ("data-id");
business.Caozuo();
});
$ (document).delegate (".submit_follow2", "click", function () {//提交独家
business.Dujianew();
});
......@@ -63,7 +67,6 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
business.jiabox();
});
$ (document).delegate (".addphone", "click", function () {//加号
business.addphone(this);
});
$ (document).delegate (".jian", "click", function () {//叉号
......@@ -205,6 +208,27 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
}
});
},
Caozuo:function(){//获取独家的信息
var caozuo_table="";
$.ajax({
'type': 'GET',
'url' : '/index/getRecords',
data: {"houses_id":business.house_id},
dataType: "json",
success: function(data){
if(data.code == 200){
if (data.data) {
$.each(data.data,function(i,item){
caozuo_table+='<tr><td>'+item.remark+'</td> <td>'+item.name+'</td> <td>'+item.create_time+'</td></tr>'
})
$("#caozuo_table").html(caozuo_table);
}
} else {
alert('获取失败!');
}
}
});
},
Submit_follow:function(){//提交案场权限人数据
var agents_id="";
var _agents_id="";
......
......@@ -51,7 +51,7 @@
<a class="btn1 btn-success is_show" data-toggle="modal" data-id='[%= it[item]["id"] %]'>推荐至首页</a>
<a class="btn1 btn-success anch" data-target="#modal-anch" data-toggle="modal" data-id='[%= it[item]["id"] %]'>设置案场权限人</a>
<a class="btn1 btn-success dujia" href="#modal-dujia" data-toggle="modal" data-id='[%= it[item]["id"] %]' >是否独家</a>
<a class="btn1 btn-success " href="#modal-record" data-toggle="modal" data-id="77" >操作记录</a>
<a class="btn1 btn-success caozuo" href="#modal-record" data-toggle="modal" data-id='[%= it[item]["id"] %]'>操作记录</a>
<a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-delete" class="btn1 btn-danger add_applies del_modal">删除</a>
</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