|
@@ -3589,6 +3589,9 @@ class Database
|
|
|
if (isset($param['control'])) {
|
|
|
$class .= ' ' . $key . '_input';
|
|
|
}
|
|
|
+ if (isset($param['control_url'])) {
|
|
|
+ $class .= ' control_url';
|
|
|
+ }
|
|
|
|
|
|
return $class;
|
|
|
}
|
|
@@ -3750,7 +3753,7 @@ class Database
|
|
|
if ($this->id && $hk === 'id') {
|
|
|
$hv['update'] = 'hidden';
|
|
|
}
|
|
|
- if (isset($hv['update']) && $hv['update'] && !isset($hv['tab'])) {
|
|
|
+ if (isset($hv['update']) && $hv['update'] && (!isset($hv['tab']) || (isset($hv['tab']) && $hv['tab'] <= 0))) {
|
|
|
$n = $hv['name'];
|
|
|
unset($hv['name']);
|
|
|
$s = '';
|
|
@@ -3785,7 +3788,7 @@ class Database
|
|
|
if ($this->id && $hk === 'id') {
|
|
|
$hv['update'] = 'hidden';
|
|
|
}
|
|
|
- if (isset($hv['update']) && $hv['update'] && !isset($hv['tab'])) {
|
|
|
+ if (isset($hv['update']) && $hv['update'] && (!isset($hv['tab']) || (isset($hv['tab']) && $hv['tab'] <= 0))) {
|
|
|
unset($hv['name']);
|
|
|
$s = '';
|
|
|
$hv['ext'] = $param['name'] . '_c_' . $bk . '_i_' . $hk;
|
|
@@ -3965,7 +3968,14 @@ class Database
|
|
|
} else {
|
|
|
$style = '';
|
|
|
}
|
|
|
- $result .= '<div class="layui-tab layui-tab-brief dever_' . $key . '_child dever_form_add_child" lay-filter="component-tabs-brief" style="'.$style.'" id="' . $key . '-child-' . ($index + 1) . '"><ul class="layui-tab-title">';
|
|
|
+
|
|
|
+ $result .= '<div class="layui-tab layui-tab-brief dever_' . $key . '_child dever_form_add_child" lay-filter="component-tabs-brief" style="'.$style.'" id="' . $key . '-child-' . ($index + 1) . '">';
|
|
|
+ if ($delete) {
|
|
|
+ $result .= '<div class="dever_form_delete" style="cursor:pointer">[删除]</div><ul class="layui-tab-title" style="width:50%">';
|
|
|
+ } else {
|
|
|
+ $result .= '<ul class="layui-tab-title">';
|
|
|
+ }
|
|
|
+
|
|
|
$tab = '<div class="layui-tab-content">';
|
|
|
$i = 0;
|
|
|
foreach ($config['tab_config'] as $k => $v) {
|
|
@@ -4069,7 +4079,12 @@ class Database
|
|
|
*/
|
|
|
public function update_action_api()
|
|
|
{
|
|
|
- Dever::submit_check(false, true);
|
|
|
+ $col = Dever::input('col');
|
|
|
+ $value = Dever::input('value');
|
|
|
+ if (!$col && !$value) {
|
|
|
+ Dever::submit_check(false, true);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
$method = false;
|
|
|
|
|
@@ -4097,9 +4112,6 @@ class Database
|
|
|
|
|
|
$method = 'update';
|
|
|
|
|
|
- $col = Dever::input('col');
|
|
|
- $value = Dever::input('value');
|
|
|
-
|
|
|
if ($col && $value) {
|
|
|
$method = 'update_' . $col;
|
|
|
//Dever::setInput('set_' . $col, $value);
|