切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
a3ba4db9dd772269a73cb3390c5fef084c163abf
1 个父辈
a1ad397d
1 个管道 的构建
通过
耗费 1 秒
后台用户入职工厂
变更
4
构建
2
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
17 行增加
和
1 行删除
application/admin/controller/user/User.php
application/admin/lang/zh-cn/user/user.php
application/admin/view/user/user/edit.html
public/assets/js/backend/user/user.js
application/admin/controller/user/User.php
查看文件 @
a3ba4db
...
...
@@ -64,6 +64,7 @@ class User extends Backend
$mobile
=
true
;
$is_work
=
true
;
$is_complete
=
true
;
$factory_shortname
=
true
;
if
(
isset
(
$filter
[
'nickname'
])
&&
$filter
[
'nickname'
]){
$nickname
=
stripos
(
$v
[
'nickname'
],
$filter
[
'nickname'
])
!==
false
?
true
:
false
;
}
...
...
application/admin/lang/zh-cn/user/user.php
查看文件 @
a3ba4db
...
...
@@ -34,7 +34,9 @@ return [
'Is_work'
=>
'是否在职'
,
'Is_complete'
=>
'补贴是否完成'
,
'Work_subsidy'
=>
'工时补贴价格(元/时)'
,
'Recruit_subsidy'
=>
'招聘补贴上级价格(元/时)'
,
'Work_subsidy_month'
=>
'工时月工资(元/月)'
,
'Recruit_subsidy_month'
=>
'招聘月工资(元/月)'
,
'Lower_num'
=>
'可以看到几级下级'
'Lower_num'
=>
'可以看到几级下级'
,
'Factory_id'
=>
'入职工厂'
,
];
...
...
application/admin/view/user/user/edit.html
查看文件 @
a3ba4db
...
...
@@ -40,6 +40,12 @@
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Factory_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-factory_id"
data-rule=
"required"
data-source=
"factory/index"
data-field=
"factory_name"
class=
"form-control selectpage"
name=
"row[factory_id]"
type=
"text"
value=
"{$row.factory_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"content"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Is_complete')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
{:build_radios('row[is_complete]', ['0'=>__('未完成'), '1'=>__('已完成')], $row['is_complete'])}
...
...
@@ -58,6 +64,12 @@
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-recruit_subsidy"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Recruit_subsidy')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-recruit_subsidy"
data-rule=
"requird"
class=
"form-control"
name=
"row[recruit_subsidy]"
type=
"number"
value=
"{$row.recruit_subsidy|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"c-work_subsidy_month"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Work_subsidy_month')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-work_subsidy_month"
data-rule=
"required"
class=
"form-control"
name=
"row[work_subsidy_month]"
type=
"number"
value=
"{$row.work_subsidy_month|htmlentities}"
>
...
...
public/assets/js/backend/user/user.js
查看文件 @
a3ba4db
...
...
@@ -52,6 +52,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{
field
:
'work_hours_month'
,
title
:
__
(
'本月打卡工时'
),
operate
:
false
},
{
field
:
'is_complete'
,
title
:
__
(
'Is_complete'
),
formatter
:
Table
.
api
.
formatter
.
status
,
searchList
:
{
0
:
__
(
'否'
),
1
:
__
(
'是'
)}},
{
field
:
'work_subsidy'
,
title
:
__
(
'Work_subsidy'
),
operate
:
false
},
{
field
:
'recruit_subsidy'
,
title
:
__
(
'Recruit_subsidy'
),
operate
:
false
},
{
field
:
'work_subsidy_month'
,
title
:
__
(
'Work_subsidy_month'
),
operate
:
false
},
{
field
:
'recruit_subsidy_month'
,
title
:
__
(
'Recruit_subsidy_month'
),
operate
:
false
},
{
field
:
'lower_num'
,
title
:
__
(
'Lower_num'
),
operate
:
false
},
...
...
请
注册
或
登录
后发表评论