Commit f3d54268 authored by 刘丹's avatar 刘丹 Committed by hujun

模态框

parent 2fed7eca
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<tr> <tr>
<td colspan="11"> <td colspan="11">
<form id="form_search"> <form id="form_search">
<a href="#modal-user" data-toggle="modal" class="btn btn-default btn3 ld-Marheight " > 变更角色</a> <a href="#modal-user" data-toggle="modal" class="btn btn-default btn3 ld-Marheight User_add" > 变更角色</a>
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="industry_type" placeholder="角色" type="text" value="" name="groupname"> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="industry_type" placeholder="角色" type="text" value="" name="groupname">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="门店" type="text" value="" name="store_name"> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="门店" type="text" value="" name="store_name">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="id" placeholder="姓名/手机号" name="search" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="id" placeholder="姓名/手机号" name="search" type="text" value="">
...@@ -177,7 +177,6 @@ ...@@ -177,7 +177,6 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">角色选择:</label> <label class="col-sm-3 control-label">角色选择:</label>
<select name="status" class="form-control btn6" id="User_add"> <select name="status" class="form-control btn6" id="User_add">
<option>你还没有勾选,无法选择,请返回!</option>
<!--<option value="0">正常</option>--> <!--<option value="0">正常</option>-->
<!--<option value="1" >冻结</option>--> <!--<option value="1" >冻结</option>-->
<!--<option value="2">离职</option>--> <!--<option value="2">离职</option>-->
......
...@@ -29,11 +29,16 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin ...@@ -29,11 +29,16 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
agent.Edit_add(); agent.Edit_add();
}); });
$ (document).delegate (".User_add", "click", function () {//点击变更 $ (document).delegate (".User_add", "click", function () {//点击变更
var use_checkde=$("input[name=ids]").is(":checked"); var vv='';
if(use_checkde==true){ var _idsv='';
$("input[name=ids]:checked").each(function (i) {
vv+= ','+$(this).val();
_idsv= vv.substring(1);
});
if(_idsv=="0"||_idsv==""){
alert("你还没有选择");
}else {
agent.User_add(); agent.User_add();
}else{
return false;
} }
}); });
$ (document).delegate (".submit_user", "click", function () {//提交变更 $ (document).delegate (".submit_user", "click", function () {//提交变更
...@@ -96,11 +101,15 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin ...@@ -96,11 +101,15 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
} }
} }
}); });
}, },
User_add:function(){//获取变更角色 User_add:function(){//获取变更角色
$.ajax({ $.ajax({
url: '/index/getAuth2', url: '/index/getAuth2',
type: 'GET', type: 'GET',
data:{},
async: true, async: true,
dataType: 'json', dataType: 'json',
success: function (data) { success: function (data) {
...@@ -112,6 +121,7 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin ...@@ -112,6 +121,7 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
} }
}); });
}, },
Edit_add:function(){ Edit_add:function(){
......
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