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
834c00c8
Commit
834c00c8
authored
May 05, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
楼盘列表权限控制
parent
6e647e5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
3 deletions
+46
-3
route.php
application/route.php
+0
-1
houseList.js
public/resource/js/houseList.js
+45
-1
house_template_tpl.html
public/resource/template/house_template_tpl.html
+1
-1
No files found.
application/route.php
View file @
834c00c8
...
@@ -95,7 +95,6 @@ Route::group('index', [
...
@@ -95,7 +95,6 @@ Route::group('index', [
'getBrokerList'
=>
[
'index/broker/getBrokerList'
,[
'method'
=>
'get'
]],
//门店列表的经纪人
'getBrokerList'
=>
[
'index/broker/getBrokerList'
,[
'method'
=>
'get'
]],
//门店列表的经纪人
'addHousesAgents'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]],
//新增楼盘与经纪人关系(案场权限人)
'addHousesAgents'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]],
//新增楼盘与经纪人关系(案场权限人)
'addHousesAgentsDish'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]],
//新增楼盘与经纪人关系(盘方)
'addHousesAgentsDish'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]],
//新增楼盘与经纪人关系(盘方)
'addHousesAgentsExclusive'
=>
[
'index/broker/AddHousesAgents'
,
[
'method'
=>
'POST'
]],
//新增楼盘与经纪人关系(独家)
'delTohouses'
=>
[
'index/broker/delTohouses'
,
[
'method'
=>
'POST'
]],
//解除经纪人和楼盘关系
'delTohouses'
=>
[
'index/broker/delTohouses'
,
[
'method'
=>
'POST'
]],
//解除经纪人和楼盘关系
'getAgentsTohouses'
=>
[
'index/broker/getAgentsTohouses'
,
[
'method'
=>
'GET'
]],
//获取经纪人和楼盘关系信息
'getAgentsTohouses'
=>
[
'index/broker/getAgentsTohouses'
,
[
'method'
=>
'GET'
]],
//获取经纪人和楼盘关系信息
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]
],
//批量修改盘方
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]
],
//批量修改盘方
...
...
public/resource/js/houseList.js
View file @
834c00c8
...
@@ -62,9 +62,16 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
...
@@ -62,9 +62,16 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
()
{
//提交独家
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
()
{
//提交独家
business
.
Dujianew
();
business
.
Dujianew
();
});
});
// 提交按钮设置案场权限人
// 提交按钮设置案场权限人
$
(
document
).
delegate
(
".submit_follow"
,
"click"
,
function
()
{
//提交按钮设置案场权限人
$
(
document
).
delegate
(
".submit_follow"
,
"click"
,
function
()
{
//提交按钮设置案场权限人
business
.
Submit_follow
();
var
myModalLabel
=
$
(
"#myModalLabel"
).
html
();
if
(
myModalLabel
==
'设置案场权限人'
)
{
business
.
Submit_follow
();
}
else
{
business
.
Submit_follow2
();
// 提交按钮设置盘方
}
});
});
$
(
document
).
delegate
(
"#confirm_delete"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#confirm_delete"
,
"click"
,
function
()
{
...
@@ -364,6 +371,43 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
...
@@ -364,6 +371,43 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
business
.
ldHtml
.
html
(
''
);
business
.
ldHtml
.
html
(
''
);
business
.
stopstatus
=
true
;
business
.
stopstatus
=
true
;
},
},
Submit_follow2
:
function
(){
//提交盘方
var
agents_id
=
""
;
var
_agents_id
=
""
;
$
(
"input[name='ues_id']"
).
each
(
function
()
{
//拼接经纪人id
var
s
=
$
(
this
).
val
();
var
m
=
s
.
match
(
/
[^
-
]
+
(?=[
-
])
/g
);
if
(
m
===
null
){
return
false
;
}
else
{
agents_id
+=
","
+
m
[
0
];
_agents_id
=
agents_id
.
substring
(
1
);
}
});
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/addHousesAgentsDish'
,
data
:
{
"houses_id"
:
business
.
house_id
,
"type"
:
business
.
type
,
"agents_id"
:
_agents_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
$
(
"#modal-anch"
).
hide
;
}
business
.
getList
(
1
);
}
else
{
$
(
"#modal-anch"
).
hide
;
}
}
});
},
resetLoad
:
function
(){
//手机号
if
(
business
.
ajaxObj
){
business
.
ajaxObj
.
abort
();
}
business
.
ldHtml
.
html
(
''
);
business
.
stopstatus
=
true
;
},
// 下拉列表
// 下拉列表
loadMain
:
function
(
phone
,
obj
)
{
//手机号
loadMain
:
function
(
phone
,
obj
)
{
//手机号
business
.
ajaxObj
=
$
.
ajax
({
business
.
ajaxObj
=
$
.
ajax
({
...
...
public/resource/template/house_template_tpl.html
View file @
834c00c8
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<
a
class
=
"btn1 btn-success anch"
data
-
target
=
"#modal-anch"
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
>
[
%
}
%
]
[
%
}
%
]
[
%
if
(
check_auth
(
'index/
addHousesAgents
Exclusive'
))
{
%
]
[
%
if
(
check_auth
(
'index/
edit
Exclusive'
))
{
%
]
<
a
class
=
"btn1 btn-success dujia"
href
=
"#modal-dujia"
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
>
[
%
}
%
]
[
%
}
%
]
...
...
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