From ca81c5afbabbdcebe03cedf1ed376c35a4b9508b Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 12 May 2022 09:09:41 +0800 Subject: [PATCH 01/13] * Fix bug #22370. --- module/tree/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/tree/model.php b/module/tree/model.php index e7da456a9d..e9f0eb6be8 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1573,7 +1573,7 @@ class treeModel extends model foreach($childs as $moduleID => $moduleName) { - if(preg_match('/(^\s+$)/', $moduleName)) return print(js::alert($this->lang->tree->shouldNotBlank)); + if(preg_match('/(^\s+$)/', $moduleName)) helper::end(js::alert($this->lang->tree->shouldNotBlank)); } $module = new stdClass(); @@ -1581,7 +1581,7 @@ class treeModel extends model $module->type = $type; $module->parent = $parentModuleID; $repeatName = $this->checkUnique($module, $childs); - if($repeatName) return print(js::alert(sprintf($this->lang->tree->repeatName, $repeatName))); + if($repeatName) helper::end(js::alert(sprintf($this->lang->tree->repeatName, $repeatName))); $parentModule = $this->getByID($parentModuleID); From c4b076c3d84d9907665387376295d98a66368685 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 12 May 2022 09:44:12 +0800 Subject: [PATCH 02/13] * Fix bug #22372. --- module/doc/css/objectlibs.css | 1 + module/doc/css/tablecontents.css | 3 +++ 2 files changed, 4 insertions(+) diff --git a/module/doc/css/objectlibs.css b/module/doc/css/objectlibs.css index 71a6036c15..01c2431ed2 100644 --- a/module/doc/css/objectlibs.css +++ b/module/doc/css/objectlibs.css @@ -48,3 +48,4 @@ .tree-group:hover > .module-name {width: calc(100% - 20px);} .tree-group:hover .tree-actions {display: block} .tree li.has-list.open:before {left: 6px;} +.sortable-sorting .tree-group:hover .tree-actions {display: none;} diff --git a/module/doc/css/tablecontents.css b/module/doc/css/tablecontents.css index 9cd6f9101e..c00c63eff2 100644 --- a/module/doc/css/tablecontents.css +++ b/module/doc/css/tablecontents.css @@ -23,10 +23,12 @@ span.dotted-line+a {display: block;} .sortable-sorting .module-name > a {cursor: move;} .sortable-sorting li >.tree-group {opacity: .5;} +.sortable-sorting li:before {opacity: .3;} .sortable-sorting .drop-here .tree-group {background-color: #fff3e0;} .sortable-sorting .drop-here .tree-group > * {opacity: .1;} .sortable-sorting .drag-shadow .tree-group {opacity: 1!important;} .sortable-sorting .drag-shadow .tree-actions {visibility: hidden;} +.is-sorting > li:before {opacity: 1;} .is-sorting > li > .tree-group {opacity: 1; border-radius: 4px;} .is-sorting > li ul {display: none!important;} @@ -36,5 +38,6 @@ span.dotted-line+a {display: block;} .tree-group:hover > .module-name {width: calc(100% - 20px);} .tree-group:hover .tree-actions {display: block} .tree li.has-list.open:before {left: 6px;} +.sortable-sorting .tree-group:hover .tree-actions {display: none;} .sortDoc>.tail-info{right: 20px;} .sortDoc>.tree-actions{position: absolute; right: 0px; background: #fff;} From 58c08b95a67ec0b06364c8d8715dde23618286e4 Mon Sep 17 00:00:00 2001 From: wangyuting2 <851424971@qq.com> Date: Thu, 12 May 2022 14:10:10 +0800 Subject: [PATCH 03/13] * Fix print extend fields bug. --- framework/control.class.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/framework/control.class.php b/framework/control.class.php index c153bb29f0..4b1d074eb7 100644 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -373,7 +373,7 @@ class control extends baseControl * @access public * @return void */ - public function printExtendFields($object, $type, $extras = '', $print = false) + public function printExtendFields($object, $type, $extras = '', $print = true) { if(!isset($this->config->bizVersion)) return false; @@ -382,12 +382,13 @@ class control extends baseControl $fields = $this->loadModel('flow')->printFields($moduleName, $methodName, $object, $type, $extras); if(!$print) return $fields; - $jsRoot = $this->config->webRoot . "js/"; - $picker = file_get_contents($this->app->getBasePath() . 'app/sys/common/view/picker.html.php'); - $picker = substr($picker, strpos($picker, '