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
1b26ab9e
Commit
1b26ab9e
authored
Nov 22, 2023
by
wuxiaoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代理管理
parent
a3ec608c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
439 additions
and
1 deletion
+439
-1
application/admin/controller/user/Agent.php
application/admin/controller/user/Agent.php
+36
-0
application/admin/lang/zh-cn/user/agent.php
application/admin/lang/zh-cn/user/agent.php
+23
-0
application/admin/model/user/Agent.php
application/admin/model/user/Agent.php
+71
-0
application/admin/view/user/agent/add.html
application/admin/view/user/agent/add.html
+100
-0
application/admin/view/user/agent/edit.html
application/admin/view/user/agent/edit.html
+100
-0
application/admin/view/user/agent/index.html
application/admin/view/user/agent/index.html
+45
-0
application/lib/model/FamilyPeopleModel.php
application/lib/model/FamilyPeopleModel.php
+1
-1
public/assets/js/backend/user/agent.js
public/assets/js/backend/user/agent.js
+63
-0
No files found.
application/admin/controller/user/Agent.php
0 → 100644
View file @
1b26ab9e
<?php
namespace
app\admin\controller\user
;
use
app\common\controller\Backend
;
/**
*
*
* @icon fa fa-circle-o
*/
class
Agent
extends
Backend
{
/**
* Agent模型对象
* @var \app\admin\model\user\Agent
*/
protected
$model
=
null
;
public
function
_initialize
()
{
parent
::
_initialize
();
$this
->
model
=
new
\app\admin\model\user\Agent
;
$this
->
view
->
assign
(
"typeList"
,
$this
->
model
->
getTypeList
());
$this
->
view
->
assign
(
"statusList"
,
$this
->
model
->
getStatusList
());
}
/**
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
*/
}
application/admin/lang/zh-cn/user/agent.php
0 → 100644
View file @
1b26ab9e
<?php
return
[
'User_id'
=>
'用户id'
,
'Realname'
=>
'真实姓名'
,
'Mobile'
=>
'手机号'
,
'Identity_number'
=>
'身份证号码'
,
'Parent_user_id'
=>
'推荐代理id'
,
'Province_id'
=>
'省级id'
,
'City_id'
=>
'城市id'
,
'Area_id'
=>
'县/区级id'
,
'Createtime'
=>
'创建时间'
,
'Type'
=>
'类型'
,
'Type 3'
=>
'县区代理'
,
'Type 4'
=>
'市级代理'
,
'Type 5'
=>
'省级代理'
,
'Rate'
=>
'返佣百分比例'
,
'Family_id'
=>
'关联族谱id'
,
'Level'
=>
'传承人代系'
,
'Status'
=>
'状态'
,
'Status 1'
=>
'显示'
,
'Status 2'
=>
'隐藏'
];
application/admin/model/user/Agent.php
0 → 100644
View file @
1b26ab9e
<?php
namespace
app\admin\model\user
;
use
think\Model
;
class
Agent
extends
Model
{
// 表名
protected
$name
=
'agent'
;
// 自动写入时间戳字段
protected
$autoWriteTimestamp
=
'int'
;
// 定义时间戳字段名
protected
$createTime
=
'createtime'
;
protected
$updateTime
=
false
;
protected
$deleteTime
=
false
;
// 追加属性
protected
$append
=
[
'type_text'
,
'status_text'
];
protected
static
function
init
()
{
self
::
afterInsert
(
function
(
$row
)
{
$pk
=
$row
->
getPk
();
$row
->
getQuery
()
->
where
(
$pk
,
$row
[
$pk
])
->
update
([
'level'
=>
$row
[
$pk
]]);
});
}
public
function
getTypeList
()
{
return
[
'3'
=>
__
(
'Type 3'
),
'4'
=>
__
(
'Type 4'
),
'5'
=>
__
(
'Type 5'
)];
}
public
function
getStatusList
()
{
return
[
'1'
=>
__
(
'Status 1'
),
'2'
=>
__
(
'Status 2'
)];
}
public
function
getTypeTextAttr
(
$value
,
$data
)
{
$value
=
$value
?
$value
:
(
isset
(
$data
[
'type'
])
?
$data
[
'type'
]
:
''
);
$list
=
$this
->
getTypeList
();
return
isset
(
$list
[
$value
])
?
$list
[
$value
]
:
''
;
}
public
function
getStatusTextAttr
(
$value
,
$data
)
{
$value
=
$value
?
$value
:
(
isset
(
$data
[
'status'
])
?
$data
[
'status'
]
:
''
);
$list
=
$this
->
getStatusList
();
return
isset
(
$list
[
$value
])
?
$list
[
$value
]
:
''
;
}
}
application/admin/view/user/agent/add.html
0 → 100644
View file @
1b26ab9e
<form
id=
"add-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('User_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-user_id"
data-rule=
"required"
data-source=
"user/user/index"
data-field=
"nickname"
class=
"form-control selectpage"
name=
"row[user_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Realname')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-realname"
class=
"form-control"
name=
"row[realname]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Mobile')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-mobile"
class=
"form-control"
name=
"row[mobile]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Identity_number')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-identity_number"
class=
"form-control"
name=
"row[identity_number]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Parent_user_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-parent_user_id"
data-rule=
"required"
data-source=
"parent/user/index"
class=
"form-control selectpage"
name=
"row[parent_user_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Province_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-province_id"
data-rule=
"required"
data-source=
"province/index"
class=
"form-control selectpage"
name=
"row[province_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('City_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-city_id"
data-rule=
"required"
data-source=
"city/index"
class=
"form-control selectpage"
name=
"row[city_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Area_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-area_id"
data-rule=
"required"
data-source=
"area/index"
class=
"form-control selectpage"
name=
"row[area_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Type')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"radio"
>
{foreach name="typeList" item="vo"}
<label
for=
"row[type]-{$key}"
><input
id=
"row[type]-{$key}"
name=
"row[type]"
type=
"radio"
value=
"{$key}"
{
in
name=
"key"
value=
"2"
}
checked
{/
in
}
/>
{$vo}
</label>
{/foreach}
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Rate')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-rate"
class=
"form-control"
name=
"row[rate]"
type=
"number"
value=
"0"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Family_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-family_id"
data-rule=
"required"
data-source=
"family/index"
class=
"form-control selectpage"
name=
"row[family_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Level')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-level"
class=
"form-control"
name=
"row[level]"
type=
"number"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Status')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<select
id=
"c-status"
class=
"form-control selectpicker"
name=
"row[status]"
>
{foreach name="statusList" item="vo"}
<option
value=
"{$key}"
{
in
name=
"key"
value=
"1"
}
selected
{/
in
}
>
{$vo}
</option>
{/foreach}
</select>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-success btn-embossed disabled"
>
{:__('OK')}
</button>
<button
type=
"reset"
class=
"btn btn-default btn-embossed"
>
{:__('Reset')}
</button>
</div>
</div>
</form>
application/admin/view/user/agent/edit.html
0 → 100644
View file @
1b26ab9e
<form
id=
"edit-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('User_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-user_id"
data-rule=
"required"
data-source=
"user/user/index"
data-field=
"nickname"
class=
"form-control selectpage"
name=
"row[user_id]"
type=
"text"
value=
"{$row.user_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Realname')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-realname"
class=
"form-control"
name=
"row[realname]"
type=
"text"
value=
"{$row.realname|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Mobile')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-mobile"
class=
"form-control"
name=
"row[mobile]"
type=
"text"
value=
"{$row.mobile|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Identity_number')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-identity_number"
class=
"form-control"
name=
"row[identity_number]"
type=
"text"
value=
"{$row.identity_number|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Parent_user_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-parent_user_id"
data-rule=
"required"
data-source=
"parent/user/index"
class=
"form-control selectpage"
name=
"row[parent_user_id]"
type=
"text"
value=
"{$row.parent_user_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Province_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-province_id"
data-rule=
"required"
data-source=
"province/index"
class=
"form-control selectpage"
name=
"row[province_id]"
type=
"text"
value=
"{$row.province_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('City_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-city_id"
data-rule=
"required"
data-source=
"city/index"
class=
"form-control selectpage"
name=
"row[city_id]"
type=
"text"
value=
"{$row.city_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Area_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-area_id"
data-rule=
"required"
data-source=
"area/index"
class=
"form-control selectpage"
name=
"row[area_id]"
type=
"text"
value=
"{$row.area_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Type')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"radio"
>
{foreach name="typeList" item="vo"}
<label
for=
"row[type]-{$key}"
><input
id=
"row[type]-{$key}"
name=
"row[type]"
type=
"radio"
value=
"{$key}"
{
in
name=
"key"
value=
"$row.type"
}
checked
{/
in
}
/>
{$vo}
</label>
{/foreach}
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Rate')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-rate"
class=
"form-control"
name=
"row[rate]"
type=
"number"
value=
"{$row.rate|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Family_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-family_id"
data-rule=
"required"
data-source=
"family/index"
class=
"form-control selectpage"
name=
"row[family_id]"
type=
"text"
value=
"{$row.family_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Level')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-level"
class=
"form-control"
name=
"row[level]"
type=
"number"
value=
"{$row.level|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Status')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<select
id=
"c-status"
class=
"form-control selectpicker"
name=
"row[status]"
>
{foreach name="statusList" item="vo"}
<option
value=
"{$key}"
{
in
name=
"key"
value=
"$row.status"
}
selected
{/
in
}
>
{$vo}
</option>
{/foreach}
</select>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-success btn-embossed disabled"
>
{:__('OK')}
</button>
<button
type=
"reset"
class=
"btn btn-default btn-embossed"
>
{:__('Reset')}
</button>
</div>
</div>
</form>
application/admin/view/user/agent/index.html
0 → 100644
View file @
1b26ab9e
<div
class=
"panel panel-default panel-intro"
>
<div
class=
"panel-heading"
>
{:build_heading(null,FALSE)}
<ul
class=
"nav nav-tabs"
data-field=
"status"
>
<li
class=
"active"
><a
href=
"#t-all"
data-value=
""
data-toggle=
"tab"
>
{:__('All')}
</a></li>
{foreach name="statusList" item="vo"}
<li><a
href=
"#t-{$key}"
data-value=
"{$key}"
data-toggle=
"tab"
>
{$vo}
</a></li>
{/foreach}
</ul>
</div>
<div
class=
"panel-body"
>
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
class=
"tab-pane fade active in"
id=
"one"
>
<div
class=
"widget-body no-padding"
>
<div
id=
"toolbar"
class=
"toolbar"
>
<a
href=
"javascript:;"
class=
"btn btn-primary btn-refresh"
title=
"{:__('Refresh')}"
><i
class=
"fa fa-refresh"
></i>
</a>
<a
href=
"javascript:;"
class=
"btn btn-success btn-add {:$auth->check('user/add')?'':'hide'}"
title=
"{:__('Add')}"
><i
class=
"fa fa-plus"
></i>
{:__('Add')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-success btn-edit btn-disabled disabled {:$auth->check('user/edit')?'':'hide'}"
title=
"{:__('Edit')}"
><i
class=
"fa fa-pencil"
></i>
{:__('Edit')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-danger btn-del btn-disabled disabled {:$auth->check('user/del')?'':'hide'}"
title=
"{:__('Delete')}"
><i
class=
"fa fa-trash"
></i>
{:__('Delete')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-danger btn-import {:$auth->check('user/import')?'':'hide'}"
title=
"{:__('Import')}"
id=
"btn-import-file"
data-url=
"ajax/upload"
data-mimetype=
"csv,xls,xlsx"
data-multiple=
"false"
><i
class=
"fa fa-upload"
></i>
{:__('Import')}
</a>
<div
class=
"dropdown btn-group {:$auth->check('user/multi')?'':'hide'}"
>
<a
class=
"btn btn-primary btn-more dropdown-toggle btn-disabled disabled"
data-toggle=
"dropdown"
><i
class=
"fa fa-cog"
></i>
{:__('More')}
</a>
<ul
class=
"dropdown-menu text-left"
role=
"menu"
>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=normal"
><i
class=
"fa fa-eye"
></i>
{:__('Set to normal')}
</a></li>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=hidden"
><i
class=
"fa fa-eye-slash"
></i>
{:__('Set to hidden')}
</a></li>
</ul>
</div>
</div>
<table
id=
"table"
class=
"table table-striped table-bordered table-hover table-nowrap"
data-operate-edit=
"{:$auth->check('user/edit')}"
data-operate-del=
"{:$auth->check('user/del')}"
width=
"100%"
>
</table>
</div>
</div>
</div>
</div>
</div>
application/lib/model/FamilyPeopleModel.php
View file @
1b26ab9e
...
@@ -90,7 +90,7 @@ class FamilyPeopleModel extends Model
...
@@ -90,7 +90,7 @@ class FamilyPeopleModel extends Model
$data
=
self
::
alias
(
"fp"
)
$data
=
self
::
alias
(
"fp"
)
->
join
(
"family_tree ft"
,
"ft.people_id=fp.id"
,
"LEFT"
)
->
join
(
"family_tree ft"
,
"ft.people_id=fp.id"
,
"LEFT"
)
->
join
(
"family_tree_mate ftm"
,
"ftm.people_id=fp.id"
,
"LEFT"
)
->
join
(
"family_tree_mate ftm"
,
"ftm.people_id=fp.id"
,
"LEFT"
)
->
field
(
"fp.id,fp.name,fp.photo,fp.sex,fp.activation_code"
)
->
field
(
"fp.id,fp.
user_id,fp.
name,fp.photo,fp.sex,fp.activation_code"
)
->
where
(
$where
)
->
where
(
$where
)
->
page
(
$page
)
->
page
(
$page
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
...
...
public/assets/js/backend/user/agent.js
0 → 100644
View file @
1b26ab9e
define
([
'
jquery
'
,
'
bootstrap
'
,
'
backend
'
,
'
table
'
,
'
form
'
],
function
(
$
,
undefined
,
Backend
,
Table
,
Form
)
{
var
Controller
=
{
index
:
function
()
{
// 初始化表格参数配置
Table
.
api
.
init
({
extend
:
{
index_url
:
'
user/agent/index
'
+
location
.
search
,
add_url
:
'
user/agent/add
'
,
edit_url
:
'
user/agent/edit
'
,
del_url
:
'
user/agent/del
'
,
multi_url
:
'
user/agent/multi
'
,
table
:
'
agent
'
,
}
});
var
table
=
$
(
"
#table
"
);
// 初始化表格
table
.
bootstrapTable
({
url
:
$
.
fn
.
bootstrapTable
.
defaults
.
extend
.
index_url
,
pk
:
'
id
'
,
sortName
:
'
level
'
,
columns
:
[
[
{
checkbox
:
true
},
{
field
:
'
id
'
,
title
:
__
(
'
Id
'
)},
{
field
:
'
user_id
'
,
title
:
__
(
'
User_id
'
)},
{
field
:
'
realname
'
,
title
:
__
(
'
Realname
'
)},
{
field
:
'
mobile
'
,
title
:
__
(
'
Mobile
'
)},
{
field
:
'
identity_number
'
,
title
:
__
(
'
Identity_number
'
)},
{
field
:
'
parent_user_id
'
,
title
:
__
(
'
Parent_user_id
'
)},
{
field
:
'
province_id
'
,
title
:
__
(
'
Province_id
'
)},
{
field
:
'
city_id
'
,
title
:
__
(
'
City_id
'
)},
{
field
:
'
area_id
'
,
title
:
__
(
'
Area_id
'
)},
{
field
:
'
createtime
'
,
title
:
__
(
'
Createtime
'
),
operate
:
'
RANGE
'
,
addclass
:
'
datetimerange
'
,
formatter
:
Table
.
api
.
formatter
.
datetime
},
{
field
:
'
type
'
,
title
:
__
(
'
Type
'
),
searchList
:
{
"
3
"
:
__
(
'
Type 3
'
),
"
4
"
:
__
(
'
Type 4
'
),
"
5
"
:
__
(
'
Type 5
'
)},
formatter
:
Table
.
api
.
formatter
.
normal
},
{
field
:
'
rate
'
,
title
:
__
(
'
Rate
'
)},
{
field
:
'
family_id
'
,
title
:
__
(
'
Family_id
'
)},
{
field
:
'
level
'
,
title
:
__
(
'
Level
'
)},
{
field
:
'
status
'
,
title
:
__
(
'
Status
'
),
searchList
:
{
"
1
"
:
__
(
'
Status 1
'
),
"
2
"
:
__
(
'
Status 2
'
)},
formatter
:
Table
.
api
.
formatter
.
status
},
{
field
:
'
operate
'
,
title
:
__
(
'
Operate
'
),
table
:
table
,
events
:
Table
.
api
.
events
.
operate
,
formatter
:
Table
.
api
.
formatter
.
operate
}
]
]
});
// 为表格绑定事件
Table
.
api
.
bindevent
(
table
);
},
add
:
function
()
{
Controller
.
api
.
bindevent
();
},
edit
:
function
()
{
Controller
.
api
.
bindevent
();
},
api
:
{
bindevent
:
function
()
{
Form
.
api
.
bindevent
(
$
(
"
form[role=form]
"
));
}
}
};
return
Controller
;
});
\ No newline at end of file
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