|
@@ -1,7 +1,7 @@
|
|
|
<?php
|
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
-| admin.php 管理员表
|
|
|
+| admin.php 账户表
|
|
|
|--------------------------------------------------------------------------
|
|
|
*/
|
|
|
|
|
@@ -34,7 +34,7 @@ if($cur && $cur['role'] > 1)
|
|
|
'role_id' => implode(',', $child),
|
|
|
));
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Dever::$global['model']['manage/admin-list'] = array
|
|
|
(
|
|
|
'option' => array
|
|
@@ -102,7 +102,7 @@ return array
|
|
|
|
|
|
'name' => 'admin',
|
|
|
|
|
|
- 'lang' => '管理账户设置',
|
|
|
+ 'lang' => '账户管理',
|
|
|
'desc' => $desc,
|
|
|
|
|
|
'type' => 'innodb',
|
|
@@ -152,7 +152,7 @@ return array
|
|
|
|
|
|
'fast' => 1,
|
|
|
*/
|
|
|
- 'order' => 9,
|
|
|
+ 'order' => 100,
|
|
|
|
|
|
|
|
|
'check' => 'email',
|
|
@@ -169,6 +169,7 @@ return array
|
|
|
'type' => 'delete',
|
|
|
),
|
|
|
|
|
|
+
|
|
|
'manage/admin_group' => array
|
|
|
(
|
|
|
|
|
@@ -177,7 +178,7 @@ return array
|
|
|
'update' => array('group_id' => 'group'),
|
|
|
|
|
|
'type' => 'delete',
|
|
|
- )
|
|
|
+ )*/
|
|
|
),
|
|
|
|
|
|
|
|
@@ -229,7 +230,7 @@ return array
|
|
|
'id' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
|
- 'name' => '管理员ID',
|
|
|
+ 'name' => '账户ID',
|
|
|
'default' => '',
|
|
|
'desc' => '',
|
|
|
'match' => 'is_numeric',
|
|
@@ -250,9 +251,9 @@ return array
|
|
|
'username' => array
|
|
|
(
|
|
|
'type' => 'varchar-24',
|
|
|
- 'name' => '管理员名',
|
|
|
+ 'name' => '账户名',
|
|
|
'default' => '',
|
|
|
- 'desc' => '请输入管理员名',
|
|
|
+ 'desc' => '请输入账户名',
|
|
|
'match' => 'is_string',
|
|
|
'update' => 'text',
|
|
|
|
|
@@ -273,7 +274,7 @@ return array
|
|
|
'email' => array
|
|
|
(
|
|
|
'type' => 'varchar-150',
|
|
|
- 'name' => '邮箱-可用于登录,请准确填写,不允许重复',
|
|
|
+ 'name' => '登录邮箱',
|
|
|
'default' => '',
|
|
|
'desc' => '请输入邮箱',
|
|
|
'match' => Dever::rule('email'),
|
|
@@ -635,7 +636,7 @@ return array
|
|
|
'mobile' => array
|
|
|
(
|
|
|
'type' => 'varchar-32',
|
|
|
- 'name' => '手机号',
|
|
|
+ 'name' => '登录手机号',
|
|
|
'default' => '',
|
|
|
'desc' => '请输入手机号',
|
|
|
'match' => Dever::rule('mobile'),
|
|
@@ -650,9 +651,9 @@ return array
|
|
|
'password' => array
|
|
|
(
|
|
|
'type' => 'varchar-64',
|
|
|
- 'name' => '管理员密码',
|
|
|
+ 'name' => '账户密码',
|
|
|
'default' => '',
|
|
|
- 'desc' => '请输入管理员密码',
|
|
|
+ 'desc' => '请输入账户密码',
|
|
|
'match' => 'option',
|
|
|
'update' => 'password',
|
|
|
'callback' => 'hash.sha256',
|
|
@@ -661,9 +662,9 @@ return array
|
|
|
'config' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
|
- 'name' => '人性化配置',
|
|
|
+ 'name' => '后台配置',
|
|
|
'default' => '1',
|
|
|
- 'desc' => '个性化配置',
|
|
|
+ 'desc' => '后台配置',
|
|
|
'match' => 'is_numeric',
|
|
|
'option' => $config,
|
|
|
'update' => 'select',
|
|
@@ -699,7 +700,7 @@ return array
|
|
|
'desc' => '请选择所属部门',
|
|
|
'match' => 'option',
|
|
|
'option' => $company_group,
|
|
|
- 'update' => 'checkbox',
|
|
|
+
|
|
|
|
|
|
'option' => $company,
|
|
|
'update' => 'checkbox',
|
|
@@ -718,11 +719,23 @@ return array
|
|
|
'update_search' => 'scm_product/lib/manage.searchProduct?{id}{role,company}',
|
|
|
),
|
|
|
),*/
|
|
|
- 'list' => 'Dever::load("manage/company.getGroupName", "{company}", "{group}")',
|
|
|
+ 'list' => 'Dever::load("manage/company.getGroupName", {id})',
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
+ 'manage/admin_group'=> array
|
|
|
+ (
|
|
|
+ 'name' => '公司部门设置',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '公司部门设置',
|
|
|
+ 'match' => 'option',
|
|
|
+
|
|
|
+ 'sync' => array('admin_id' => 'id'),
|
|
|
+ 'update' => array(1),
|
|
|
+ 'update_type' => 2,
|
|
|
+ ),
|
|
|
+
|
|
|
'auth' => array
|
|
|
(
|
|
|
'type' => 'text-255',
|
|
@@ -802,6 +815,8 @@ return array
|
|
|
|
|
|
'manage' => array
|
|
|
(
|
|
|
+ 'insert_end' => 'manage/group.syncOne',
|
|
|
+ 'update_end' => 'manage/group.syncOne',
|
|
|
|
|
|
|
|
|
|
|
@@ -907,7 +922,7 @@ return array
|
|
|
(
|
|
|
|
|
|
'公司设置' => array('list', 'company&oper_parent=admin'),
|
|
|
- '部门设置' => array('list', 'group&oper_parent=admin'),
|
|
|
+
|
|
|
),
|
|
|
),
|
|
|
|