* Add drag review point deadline and gantt color.

This commit is contained in:
Yagami
2023-05-10 14:59:32 +08:00
parent 14aadd80e4
commit 922cda007b
7 changed files with 71 additions and 17 deletions
+9 -1
View File
@@ -345,7 +345,15 @@ class programplan extends control
if(!isset($_POST['id']) or empty($_POST['id'])) return $this->send(array('result' => 'fail', 'message' => ''));
$objectID = $_POST['id'];
$this->loadModel('task')->updateEsDateByGantt($objectID, $_POST['type']);
if($_POST['type'] == 'point')
{
$this->loadModel('review')->updateReviewDate($objectID, $_POST['type']);
}
else
{
$this->loadModel('task')->updateEsDateByGantt($objectID, $_POST['type']);
}
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
return $this->send(array('result' => 'success'));