|
@@ -514,6 +514,8 @@ class Database
|
|
'parent' => '',
|
|
'parent' => '',
|
|
'parent_value' => Dever::input('parent'),
|
|
'parent_value' => Dever::input('parent'),
|
|
'alias' => Dever::input('alias'),
|
|
'alias' => Dever::input('alias'),
|
|
|
|
+ 'mul_ids' => Dever::input('mul_ids'),
|
|
|
|
+ 'mul_load' => Dever::input('mul_load'),
|
|
);
|
|
);
|
|
|
|
|
|
if ($this->parent) {
|
|
if ($this->parent) {
|
|
@@ -1457,12 +1459,15 @@ class Database
|
|
$url .= '&manage_log=update.' . $this->project . '.' . $this->table . '&manage_oper=' . $k;
|
|
$url .= '&manage_log=update.' . $this->project . '.' . $this->table . '&manage_oper=' . $k;
|
|
$result .= ' <a class="btn btn-default layui-btn layuiadmin-btn-list layui-btn-danger" href="javascript:;" onclick="load(\'' . $url . '\', \'' . $content . '\', \'' . $title . '\')">' . $k . '</a>';
|
|
$result .= ' <a class="btn btn-default layui-btn layuiadmin-btn-list layui-btn-danger" href="javascript:;" onclick="load(\'' . $url . '\', \'' . $content . '\', \'' . $title . '\')">' . $k . '</a>';
|
|
} elseif ($v[0] == 'oper_mul') {
|
|
} elseif ($v[0] == 'oper_mul') {
|
|
- $url = Dever::url($v[1]);
|
|
|
|
- if (!isset($v[2])) {
|
|
|
|
- $v[2] = 1;
|
|
|
|
|
|
+ if (isset($v[2])) {
|
|
|
|
+ $url = $this->url($v[1], false, false, $suffix);
|
|
|
|
+ $result .= ' <a class="btn btn-default layui-btn layuiadmin-btn-list" href="javascript:;" onclick="fastEdit($(this),\''.$url.'\',\''.$k.'\', \''.$v[2].'\', false, false, 1, \''.$v[3].'\')">' . $k . '</a>';
|
|
|
|
+ //$result .= ' <a class="btn btn-default layui-btn layuiadmin-btn-list layui-btn-danger" href="javascript:;" onclick="$(\'#form1\').attr(\'action\', \'' . $this->url('list', false, false, $suffix) . '\');list_mul($(this), 1, \''.$url.'\')">' . $k . '</a>';
|
|
|
|
+ } else {
|
|
|
|
+ $url = Dever::url($v[1]);
|
|
|
|
+ $result .= ' <a class="btn btn-default layui-btn layuiadmin-btn-list layui-btn-danger" href="javascript:;" onclick="$(\'#form1\').attr(\'action\', \'' . $this->url('list', false, false, $suffix) . '\');list_mul($(this), 1, \''.$url.'\')">' . $k . '</a>';
|
|
}
|
|
}
|
|
- //$url .= '&manage_log=update.' . $this->project . '.' . $this->table . '&manage_oper=' . $k;
|
|
|
|
- $result .= ' <a class="btn btn-default layui-btn layuiadmin-btn-list layui-btn-danger" href="javascript:;" onclick="$(\'#form1\').attr(\'action\', \'' . $this->url('list', false, false, $suffix) . '\');list_mul($(this), 1, \''.$url.'\')">' . $k . '</a>';
|
|
|
|
|
|
+
|
|
} elseif ($v[0] == 'show') {
|
|
} elseif ($v[0] == 'show') {
|
|
$url = Dever::url($v[1]);
|
|
$url = Dever::url($v[1]);
|
|
$submit = '';
|
|
$submit = '';
|
|
@@ -3293,6 +3298,7 @@ class Database
|
|
|
|
|
|
$this->list_search_select($result, $mul, $prefix . 'type' . '" id="' . $prefix . 'type', '请选择要批量操作的数据', $option, $default);
|
|
$this->list_search_select($result, $mul, $prefix . 'type' . '" id="' . $prefix . 'type', '请选择要批量操作的数据', $option, $default);
|
|
|
|
|
|
|
|
+ $state = false;
|
|
foreach ($config['struct'] as $k => $v) {
|
|
foreach ($config['struct'] as $k => $v) {
|
|
if ($k == 'state' && (!isset($config['manage']['delete']) || (isset($config['manage']['delete']) && $config['manage']['delete']))) {
|
|
if ($k == 'state' && (!isset($config['manage']['delete']) || (isset($config['manage']['delete']) && $config['manage']['delete']))) {
|
|
$v['option'] = Dever::config('base')->state;
|
|
$v['option'] = Dever::config('base')->state;
|
|
@@ -3307,6 +3313,7 @@ class Database
|
|
$select = false;
|
|
$select = false;
|
|
if (isset($v['mul'])) {
|
|
if (isset($v['mul'])) {
|
|
$select = $v['mul'];
|
|
$select = $v['mul'];
|
|
|
|
+ $state = true;
|
|
} elseif (isset($v['edit'])) {
|
|
} elseif (isset($v['edit'])) {
|
|
$select = $v['edit'];
|
|
$select = $v['edit'];
|
|
}
|
|
}
|
|
@@ -3322,7 +3329,11 @@ class Database
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- $result .= $btn . $node[1];
|
|
|
|
|
|
+ if ($state) {
|
|
|
|
+ $result .= $btn . $node[1];
|
|
|
|
+ } else {
|
|
|
|
+ $result = '';
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
//print_r($result);die;
|
|
//print_r($result);die;
|
|
@@ -4435,6 +4446,7 @@ class Database
|
|
*/
|
|
*/
|
|
public function update_action_commit_api()
|
|
public function update_action_commit_api()
|
|
{
|
|
{
|
|
|
|
+ $mul_ids = Dever::input('mul_ids');
|
|
$key = Dever::input('dever_submit_key');
|
|
$key = Dever::input('dever_submit_key');
|
|
$col = Dever::input('col');
|
|
$col = Dever::input('col');
|
|
$value = Dever::input('value');
|
|
$value = Dever::input('value');
|
|
@@ -4778,6 +4790,15 @@ class Database
|
|
//print_r($update_other);die;
|
|
//print_r($update_other);die;
|
|
//print_r($config['struct']);die;
|
|
//print_r($config['struct']);die;
|
|
|
|
|
|
|
|
+ if ($mul_ids) {
|
|
|
|
+ $mul_load = Dever::input('mul_load');
|
|
|
|
+ if ($mul_load) {
|
|
|
|
+ Dever::load($mul_load, $mul_ids, '', $update[0]);
|
|
|
|
+ }
|
|
|
|
+ Dever::out('yes');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
$this->checkSpec($config);
|
|
$this->checkSpec($config);
|
|
# 增加复制的数量
|
|
# 增加复制的数量
|
|
$copy_num = Dever::input('copy_num');
|
|
$copy_num = Dever::input('copy_num');
|