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
07f856dd
Commit
07f856dd
authored
Dec 17, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑名单 权限
parent
b02fc627
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
15 deletions
+33
-15
blackListCon.html
application/index/view/blackList/blackListCon.html
+2
-2
agent.html
application/index/view/broker/agent.html
+2
-2
agent.js
public/resource/js/agent.js
+14
-2
black_list.js
public/resource/js/black_list.js
+5
-1
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+10
-8
No files found.
application/index/view/blackList/blackListCon.html
View file @
07f856dd
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
<div
class=
"form-group full-width-100 full-pic-area"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<!--input上传图片-->
<div
id=
"container_body"
>
<div
id=
"container_body"
>
<label>
简历等
附件(选填
):
</label>
<label>
简历等
文件(选填:图片格式
):
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input"
/>
<input
type=
"file"
id=
"file_input"
/>
<div
id=
"container_body_img_area"
></div>
<div
id=
"container_body_img_area"
></div>
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
data-dismiss=
"modal"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
>
保存
保存
</button>
</button>
</div>
</div>
...
...
application/index/view/broker/agent.html
View file @
07f856dd
...
@@ -685,7 +685,7 @@
...
@@ -685,7 +685,7 @@
<div
class=
"form-group full-width-100 full-pic-area"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<!--input上传图片-->
<div
id=
"container_body"
>
<div
id=
"container_body"
>
<label>
简历等
附件(选填
):
</label>
<label>
简历等
文件(选填:图片格式
):
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input"
/>
<input
type=
"file"
id=
"file_input"
/>
<div
id=
"container_body_img_area"
></div>
<div
id=
"container_body_img_area"
></div>
...
@@ -698,7 +698,7 @@
...
@@ -698,7 +698,7 @@
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
data-dismiss=
"modal"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
>
保存
保存
</button>
</button>
</div>
</div>
...
...
public/resource/js/agent.js
View file @
07f856dd
...
@@ -359,6 +359,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -359,6 +359,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
};
};
console
.
log
(
imgname
.
join
(
','
));
console
.
log
(
imgname
.
join
(
','
));
_data
[
'img_info'
]
=
imgname
.
join
(
','
);
_data
[
'img_info'
]
=
imgname
.
join
(
','
);
if
(
$
.
trim
(
$
(
'.black-list-text'
).
val
())
==
''
){
alert
(
'违反公司事项内容未填写!'
);
return
;
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/addAgentsBlackList'
,
url
:
'/index/addAgentsBlackList'
,
...
@@ -367,8 +371,16 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -367,8 +371,16 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
if
(
_data
.
code
==
200
){
agent
.
getList
(
0
);
alert
(
'保存成功'
);
$
(
"#modal-blackList"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
agent
.
getList
(
0
);
}
else
{
alert
(
_data
.
msg
);
$
(
"#modal-blackList"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
agent
.
getList
(
0
);
}
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
};
};
...
...
public/resource/js/black_list.js
View file @
07f856dd
...
@@ -97,7 +97,10 @@ define(['doT', 'text!temp/black_list_template_tpl.html', 'css!style/home.css', '
...
@@ -97,7 +97,10 @@ define(['doT', 'text!temp/black_list_template_tpl.html', 'css!style/home.css', '
}
}
_data
[
'content'
]
=
$
(
'.black-list-text'
).
val
();
_data
[
'content'
]
=
$
(
'.black-list-text'
).
val
();
_data
[
'agents_black_list_id'
]
=
adjustment
.
agent_id
;
_data
[
'agents_black_list_id'
]
=
adjustment
.
agent_id
;
if
(
$
.
trim
(
$
(
'.black-list-text'
).
val
())
==
''
){
alert
(
'违反公司事项内容未填写!'
);
return
;
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/addAgentsBlackList'
,
url
:
'/index/addAgentsBlackList'
,
...
@@ -107,6 +110,7 @@ define(['doT', 'text!temp/black_list_template_tpl.html', 'css!style/home.css', '
...
@@ -107,6 +110,7 @@ define(['doT', 'text!temp/black_list_template_tpl.html', 'css!style/home.css', '
success
:
function
(
_data
)
{
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
alert
(
'保存成功'
);
$
(
"#modal-blackList"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
adjustment
.
getList
(
0
);
adjustment
.
getList
(
0
);
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
...
...
public/resource/template/agent_template_tpl.html
View file @
07f856dd
...
@@ -50,23 +50,25 @@
...
@@ -50,23 +50,25 @@
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
a
class
=
"btn1 btn-info yetai_checkbox"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
status
=
'[%= it[item]["status"] %]'
>
长假
<
/a
>
<
a
class
=
"btn1 btn-info yetai_checkbox"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
status
=
'[%= it[item]["status"] %]'
>
长假
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-show-caozuo"
>>>><
/a
>
<
a
class
=
"btn1 btn-default btn-default-show-caozuo"
>>>><
/a
>
[
%
if
(
check_auth
(
'index/updateRole'
))
{
%
]
[
%
if
(
check_auth
(
'index/updateRole'
))
{
%
]
<
a
href
=
"#modal-user"
class
=
"btn1 btn-danger btn-default-hide-display"
id
=
'role'
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
角色设置
<
/a
>
<
a
href
=
"#modal-user"
class
=
"btn1 btn-danger btn-default-hide-display"
id
=
'role'
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
角色设置
<
/a
>
[
%
}
%
]
[
%
}
%
]
<!--
绑定手机权限
-->
<!--
绑定手机权限
-->
[
%
if
(
check_auth
(
'index/updateDevice'
))
{
%
]
[
%
if
(
check_auth
(
'index/updateDevice'
))
{
%
]
<
a
class
=
"btn1 btn-success phone-bundling btn-default-hide-display"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
/
电脑
<
/a
>
<
a
class
=
"btn1 btn-success phone-bundling btn-default-hide-display"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
/
电脑
<
/a
>
<
a
class
=
"btn1 btn-success btn-default-hide-display state-record"
href
=
"#modal-stateRecord"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
状态记录
<
/a
>
<
a
class
=
"btn1 btn-success btn-default-hide-display state-record"
href
=
"#modal-stateRecord"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
状态记录
<
/a
>
[
%
if
(
it
[
item
][
"status"
]
==
4
)
{
%
]
<
a
class
=
"btn1 btn-default btn-default-hide-display"
href
=
""
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
已黑化
<
/a
>
[
%
}
else
{
%
]
<
a
class
=
"btn1 btn-success btn-default-hide-display black-list"
href
=
"#modal-blackList"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
加黑名单
<
/a
>
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
[
%
if
(
check_auth
(
'index/updateDevice'
))
{
%
]
[
%
if
(
it
[
item
][
"status"
]
==
4
)
{
%
]
<
a
class
=
"btn1 btn-default btn-default-hide-display"
href
=
""
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
已黑化
<
/a
>
[
%
}
else
{
%
]
<
a
class
=
"btn1 btn-success btn-default-hide-display black-list"
href
=
"#modal-blackList"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
加黑名单
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
[
%
}
%
]
[
%
}
%
]
...
...
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