Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
f3d54268
Commit
f3d54268
authored
Mar 12, 2018
by
刘丹
Committed by
hujun
Mar 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模态框
parent
2fed7eca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
20 deletions
+29
-20
agent.html
application/index/view/agent/agent.html
+1
-2
agent.js
public/resource/js/agent.js
+28
-18
No files found.
application/index/view/agent/agent.html
View file @
f3d54268
...
...
@@ -26,7 +26,7 @@
<tr>
<td
colspan=
"11"
>
<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=
"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=
""
>
...
...
@@ -177,7 +177,6 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
角色选择:
</label>
<select
name=
"status"
class=
"form-control btn6"
id=
"User_add"
>
<option>
你还没有勾选,无法选择,请返回!
</option>
<!--<option value="0">正常</option>-->
<!--<option value="1" >冻结</option>-->
<!--<option value="2">离职</option>-->
...
...
public/resource/js/agent.js
View file @
f3d54268
...
...
@@ -29,12 +29,17 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
agent
.
Edit_add
();
});
$
(
document
).
delegate
(
".User_add"
,
"click"
,
function
()
{
//点击变更
var
use_checkde
=
$
(
"input[name=ids]"
).
is
(
":checked"
);
if
(
use_checkde
==
true
){
var
vv
=
''
;
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
();
}
else
{
return
false
;
}
}
});
$
(
document
).
delegate
(
".submit_user"
,
"click"
,
function
()
{
//提交变更
agent
.
Submit_user
();
...
...
@@ -96,22 +101,27 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
}
}
});
},
User_add
:
function
(){
//获取变更角色
$
.
ajax
({
url
:
'/index/getAuth2'
,
type
:
'GET'
,
async
:
true
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
User_add
=
""
;
$
.
each
(
data
.
data
.
list
,
function
(
i
,
item
){
User_add
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
title
+
'</option>'
;
});
$
(
"#User_add"
).
html
(
User_add
);
}
});
$
.
ajax
({
url
:
'/index/getAuth2'
,
type
:
'GET'
,
data
:{},
async
:
true
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
User_add
=
""
;
$
.
each
(
data
.
data
.
list
,
function
(
i
,
item
){
User_add
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
title
+
'</option>'
;
});
$
(
"#User_add"
).
html
(
User_add
);
}
});
},
Edit_add
:
function
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment