fixed 修改代码块管理细节
This commit is contained in:
parent
ee17c4d7eb
commit
84e32c7f24
@ -60,9 +60,11 @@ class CodeModule extends BaseController
|
||||
'code_module_category_guid|类目' => 'require',
|
||||
'code_module_name|代码块名称' => 'require',
|
||||
'code_module_html|html内容' => 'require',
|
||||
'code_module_sort|排序' => 'require',
|
||||
'code_module_audit|审核状态' => 'require'
|
||||
]);
|
||||
|
||||
// 后台添加默认通过审核
|
||||
$params['code_module_audit'] = "2";
|
||||
|
||||
$model = ModelCodeModule::create($params, [
|
||||
'code_module_category_guid',
|
||||
'code_module_name',
|
||||
|
@ -59,13 +59,13 @@ class CodeModuleCategory extends BaseController
|
||||
'a.code_module_category_name' => 'name',
|
||||
'a.code_module_category_ps' => 'tips',
|
||||
'a.code_module_category_sort' => 'sort',
|
||||
'a.code_module_category_global_mode',
|
||||
'a.code_module_category_library_type',
|
||||
// 'a.code_module_category_global_mode',
|
||||
// 'a.code_module_category_library_type',
|
||||
'c.customer_guid' => 'customer_guid',
|
||||
'c.customer_name' => 'customer_name',
|
||||
])
|
||||
->append(['langHit', 'libraryType'])
|
||||
->hidden(['code_module_category_global_mode', 'code_module_category_library_type'])
|
||||
// ->append(['langHit', 'libraryType'])
|
||||
// ->hidden(['code_module_category_global_mode', 'code_module_category_library_type'])
|
||||
->leftjoin('customer c', 'a.customer_guid = c.customer_guid')
|
||||
->scope('audit_pass')
|
||||
->where('code_module_category_parent_guid', $params['code_module_category_guid'])
|
||||
|
Loading…
Reference in New Issue
Block a user