Commit 10a560f0 authored by xinyuandu's avatar xinyuandu

添加高级搜索

parent 9469c0cb
......@@ -43,6 +43,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user_id_edit_introduce:'',
customerInfo: {},
all_custom : true , // true :所有客户 ,false :当前客户
main_select : false , // true : 开启高级搜索 ,false :关闭高级搜索
init: function() {
//初始化dot
$("body").append(template);
......@@ -334,6 +335,19 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user.getList(1);
});
$('#main_select').unbind('click').bind('click',function(){
user.main_select = !user.main_select;
console.log(user.main_select);
if ( user.main_select ){
$('.main-select').show();
$('#main_select').html("关闭高级搜索");
} else {
$('.main-select').hide();
$('#main_select').html("高级搜索");
}
});
//新增 客户 重置信息
$("#close").click(function() {
document.getElementById("add_user_form").reset();
......@@ -1994,4 +2008,4 @@ function edit(obj) {
$("#edit_id").val($(obj).attr("data-id"));
}
\ No newline at end of file
}
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