* Refactor updateOrderByGantt method.

This commit is contained in:
tianshujie
2023-08-22 13:55:45 +08:00
parent c3ccc82be0
commit ec48fc8465
5 changed files with 57 additions and 6 deletions
+2 -1
View File
@@ -227,7 +227,8 @@ class programplan extends control
$taskID = !empty($idList[1]) ? $idList[1] : 0;
if(empty($taskID)) return $this->send(array('result' => 'fail', 'message' => ''));
$this->loadModel('task')->updateOrderByGantt();
$postData = form::data($this->config->programplan->form->updateTaskOrderByGantt)->get();
$this->loadModel('task')->updateOrderByGantt($postData);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
$this->loadModel('action')->create('task', $taskID, 'ganttMove');