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
b004d534
Commit
b004d534
authored
Aug 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独家权限判断
parent
59e7b9b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
GHouses.php
application/model/GHouses.php
+12
-0
house_template_tpl.html
public/resource/template/house_template_tpl.html
+1
-1
No files found.
application/model/GHouses.php
View file @
b004d534
...
@@ -336,6 +336,18 @@ class GHouses extends BaseModel
...
@@ -336,6 +336,18 @@ class GHouses extends BaseModel
}
else
{
}
else
{
$result
[
$k
][
'auth_edit_house'
]
=
0
;
$result
[
$k
][
'auth_edit_house'
]
=
0
;
}
}
//独家方
$exclusive_num
=
Db
::
table
(
'g_houses_to_agents'
)
->
alias
(
'a'
)
->
field
(
'a.id'
)
->
join
(
'a_agents b'
,
'a.agents_id=b.id'
,
'left'
)
->
where
(
'a.is_del'
,
0
)
->
where
(
'a.type'
,
3
)
->
where
(
'a.agents_id'
,
$agents_id
)
->
count
();
if
(
$exclusive_num
>
0
)
{
$result
[
$k
][
'auth_edit_exclusive'
]
=
0
;
}
}
}
}
}
return
$result
;
return
$result
;
...
...
public/resource/template/house_template_tpl.html
View file @
b004d534
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,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/editExclusive'
))
{
%
]
[
%
if
(
check_auth
(
'index/editExclusive'
)
||
it
[
item
][
is_exclusive_type
]
==
0
||
it
[
item
][
auth_edit_exclusive
]
==
0
)
{
%
]
<
a
class
=
"btn1 btn-success dujia btn-default-hide-display"
href
=
"#modal-dujia"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
是否独家
<
/a
>
<
a
class
=
"btn1 btn-success dujia btn-default-hide-display"
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