Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhupu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
zhupu
Commits
d78d9eb5
Commit
d78d9eb5
authored
Nov 24, 2023
by
sugar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://rungit.jxdsy.cn:10000/sugar/zhupu
into dev
parents
62fbf153
b6bd217c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
3 deletions
+17
-3
application/admin/controller/family/Family.php
application/admin/controller/family/Family.php
+0
-1
application/admin/lang/zh-cn/family/family.php
application/admin/lang/zh-cn/family/family.php
+2
-1
application/admin/view/family/family/add.html
application/admin/view/family/family/add.html
+6
-0
application/admin/view/family/family/edit.html
application/admin/view/family/family/edit.html
+6
-0
application/api/controller/Family.php
application/api/controller/Family.php
+3
-1
No files found.
application/admin/controller/family/Family.php
View file @
d78d9eb5
...
@@ -99,7 +99,6 @@ class Family extends Backend
...
@@ -99,7 +99,6 @@ class Family extends Backend
}
}
$params
[
'family_name'
]
=
\app\admin\model\family\Surname
::
where
([
'ID'
=>
$params
[
'surname_id'
]])
->
value
(
"Surname"
);
$params
[
'family_name'
]
=
\app\admin\model\family\Surname
::
where
([
'ID'
=>
$params
[
'surname_id'
]])
->
value
(
"Surname"
);
$params
[
'rw_user_id'
]
=
$params
[
'create_user_id'
];
$result
=
$this
->
model
->
allowField
(
true
)
->
save
(
$params
);
$result
=
$this
->
model
->
allowField
(
true
)
->
save
(
$params
);
Db
::
commit
();
Db
::
commit
();
}
catch
(
ValidateException
$e
)
{
}
catch
(
ValidateException
$e
)
{
...
...
application/admin/lang/zh-cn/family/family.php
View file @
d78d9eb5
...
@@ -14,7 +14,8 @@ return [
...
@@ -14,7 +14,8 @@ return [
'Village_id'
=>
'居委会'
,
'Village_id'
=>
'居委会'
,
'Address'
=>
'详细地址'
,
'Address'
=>
'详细地址'
,
'Createtime'
=>
'创建时间'
,
'Createtime'
=>
'创建时间'
,
'Rw_user_id'
=>
'管理人员'
,
'Rw_user_id'
=>
'读写权限'
,
'Ro_user_id'
=>
'查看权限'
,
'Status'
=>
'订单状态'
,
'Status'
=>
'订单状态'
,
'Status 0'
=>
'隐藏(软删除)'
,
'Status 0'
=>
'隐藏(软删除)'
,
'Status 1'
=>
'显示'
,
'Status 1'
=>
'显示'
,
...
...
application/admin/view/family/family/add.html
View file @
d78d9eb5
...
@@ -49,6 +49,12 @@
...
@@ -49,6 +49,12 @@
<input
id=
"c-rw_user_id"
data-rule=
"required"
data-multiple=
"true"
data-source=
"user/user/index"
data-search-field=
"id,nickname,mobile"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {mobile}"
class=
"form-control selectpage"
name=
"row[rw_user_id]"
type=
"text"
value=
""
>
<input
id=
"c-rw_user_id"
data-rule=
"required"
data-multiple=
"true"
data-source=
"user/user/index"
data-search-field=
"id,nickname,mobile"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {mobile}"
class=
"form-control selectpage"
name=
"row[rw_user_id]"
type=
"text"
value=
""
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Ro_user_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-ro_user_id"
data-rule=
""
data-multiple=
"true"
data-source=
"user/user/index"
data-search-field=
"id,nickname,mobile"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {mobile}"
class=
"form-control selectpage"
name=
"row[ro_user_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Type')}:
</label>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Type')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"col-xs-12 col-sm-8"
>
...
...
application/admin/view/family/family/edit.html
View file @
d78d9eb5
...
@@ -49,6 +49,12 @@
...
@@ -49,6 +49,12 @@
<input
id=
"c-rw_user_id"
data-rule=
"required"
data-multiple=
"true"
data-source=
"user/user/index"
data-search-field=
"id,nickname,mobile"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {mobile}"
class=
"form-control selectpage"
name=
"row[rw_user_id]"
type=
"text"
value=
"{$row.rw_user_id}"
>
<input
id=
"c-rw_user_id"
data-rule=
"required"
data-multiple=
"true"
data-source=
"user/user/index"
data-search-field=
"id,nickname,mobile"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {mobile}"
class=
"form-control selectpage"
name=
"row[rw_user_id]"
type=
"text"
value=
"{$row.rw_user_id}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Ro_user_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-ro_user_id"
data-rule=
""
data-multiple=
"true"
data-source=
"user/user/index"
data-search-field=
"id,nickname,mobile"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {mobile}"
class=
"form-control selectpage"
name=
"row[ro_user_id]"
type=
"text"
value=
"{$row.ro_user_id}"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Type')}:
</label>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Type')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"col-xs-12 col-sm-8"
>
...
...
application/api/controller/Family.php
View file @
d78d9eb5
...
@@ -157,6 +157,7 @@ class Family extends Api
...
@@ -157,6 +157,7 @@ class Family extends Api
$params
[
'address'
]
=
$this
->
request
->
param
(
"address"
);
$params
[
'address'
]
=
$this
->
request
->
param
(
"address"
);
$params
[
'create_user_id'
]
=
$this
->
auth
->
id
;
$params
[
'create_user_id'
]
=
$this
->
auth
->
id
;
$params
[
'rw_user_id'
]
=
$this
->
auth
->
id
;
$params
[
'rw_user_id'
]
=
$this
->
auth
->
id
;
$params
[
'ro_user_id'
]
=
$this
->
auth
->
id
;
$params
[
'fastim_id'
]
=
$this
->
request
->
param
(
"fastim_id"
);
$params
[
'fastim_id'
]
=
$this
->
request
->
param
(
"fastim_id"
);
$params
[
'genealogy'
]
=
$this
->
request
->
param
(
"genealogy"
);
$params
[
'genealogy'
]
=
$this
->
request
->
param
(
"genealogy"
);
if
(
xss_clean
(
$this
->
request
->
param
(
"family_regulation"
))){
if
(
xss_clean
(
$this
->
request
->
param
(
"family_regulation"
))){
...
@@ -338,12 +339,13 @@ class Family extends Api
...
@@ -338,12 +339,13 @@ class Family extends Api
FamilyModel
::
where
([
'id'
=>
$family_id
])
->
setInc
(
'read_records'
,
1
);
FamilyModel
::
where
([
'id'
=>
$family_id
])
->
setInc
(
'read_records'
,
1
);
}
}
$info
[
'rw_user_id'
]
=
explode
(
","
,
$info
[
'rw_user_id'
]);
$info
[
'rw_user_id'
]
=
explode
(
","
,
$info
[
'rw_user_id'
]);
$info
[
'ro_user_id'
]
=
explode
(
","
,
$info
[
'ro_user_id'
]);
$info
[
'is_show'
]
=
false
;
$info
[
'is_show'
]
=
false
;
$familyTreePeople
=
FamilyTreeModel
::
myFamilyTreePeople
([
"ft.family_id"
=>
$family_id
,
'fp.user_id'
=>
$this
->
auth
->
id
]);
$familyTreePeople
=
FamilyTreeModel
::
myFamilyTreePeople
([
"ft.family_id"
=>
$family_id
,
'fp.user_id'
=>
$this
->
auth
->
id
]);
if
(
in_array
(
$this
->
auth
->
id
,
$info
[
'rw_user_id'
])
||
$familyTreePeople
){
if
(
in_array
(
$this
->
auth
->
id
,
$info
[
'rw_user_id'
])
||
$familyTreePeople
||
in_array
(
$this
->
auth
->
id
,
$info
[
'ro_user_id'
])
){
$info
[
'is_show'
]
=
true
;
$info
[
'is_show'
]
=
true
;
}
}
...
...
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