update
This commit is contained in:
parent
07dfbb4a66
commit
a30b68adc1
@ -15,10 +15,10 @@
|
|||||||
namespace app\adminapi\lists;
|
namespace app\adminapi\lists;
|
||||||
|
|
||||||
|
|
||||||
use app\adminapi\lists\BaseAdminDataLists;
|
|
||||||
use app\common\lists\ListsExcelInterface;
|
use app\common\lists\ListsExcelInterface;
|
||||||
use app\common\model\ApprovalIssuanceAchievementDocuments;
|
|
||||||
use app\common\lists\ListsSearchInterface;
|
use app\common\lists\ListsSearchInterface;
|
||||||
|
use app\common\model\ApprovalIssuanceAchievementDocuments;
|
||||||
|
use app\common\model\auth\Admin;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,7 +60,10 @@ class ApprovalIssuanceAchievementDocumentsLists extends BaseAdminDataLists imple
|
|||||||
->with(['projectInfo'])
|
->with(['projectInfo'])
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()
|
->select()->each(function ($data) {
|
||||||
|
$head = Admin::field('name')->where('id', $data['person'])->findOrEmpty();
|
||||||
|
$data['person_name'] = $head?->name;
|
||||||
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
namespace app\adminapi\lists;
|
namespace app\adminapi\lists;
|
||||||
|
|
||||||
|
|
||||||
use app\adminapi\lists\BaseAdminDataLists;
|
|
||||||
use app\common\lists\ListsExcelInterface;
|
use app\common\lists\ListsExcelInterface;
|
||||||
use app\common\model\TaskHandlingThreeLevelReview;
|
|
||||||
use app\common\lists\ListsSearchInterface;
|
use app\common\lists\ListsSearchInterface;
|
||||||
|
use app\common\model\auth\Admin;
|
||||||
|
use app\common\model\TaskHandlingThreeLevelReview;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,7 +68,10 @@ class TaskHandlingThreeLevelReviewLists extends BaseAdminDataLists implements Li
|
|||||||
->with(['projectInfo'])
|
->with(['projectInfo'])
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()
|
->select()->each(function ($data) {
|
||||||
|
$head = Admin::field('name')->where('id', $data['head'])->findOrEmpty();
|
||||||
|
$data['head_name'] = $head?->name;
|
||||||
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,8 +15,9 @@
|
|||||||
namespace app\adminapi\logic;
|
namespace app\adminapi\logic;
|
||||||
|
|
||||||
|
|
||||||
use app\common\model\ApprovalIssuanceAchievementDocuments;
|
|
||||||
use app\common\logic\BaseLogic;
|
use app\common\logic\BaseLogic;
|
||||||
|
use app\common\model\ApprovalIssuanceAchievementDocuments;
|
||||||
|
use app\common\model\auth\Admin;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
|
|
||||||
|
|
||||||
@ -121,6 +122,9 @@ class ApprovalIssuanceAchievementDocumentsLogic extends BaseLogic
|
|||||||
*/
|
*/
|
||||||
public static function detail($params): array
|
public static function detail($params): array
|
||||||
{
|
{
|
||||||
return ApprovalIssuanceAchievementDocuments::findOrEmpty($params['id'])->toArray();
|
$data = ApprovalIssuanceAchievementDocuments::findOrEmpty($params['id']);
|
||||||
|
$head = Admin::field('name')->where('id', $data['person'])->findOrEmpty();
|
||||||
|
$data['person_name'] = $head?->name;
|
||||||
|
return $data->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,8 +15,9 @@
|
|||||||
namespace app\adminapi\logic;
|
namespace app\adminapi\logic;
|
||||||
|
|
||||||
|
|
||||||
use app\common\model\TaskHandlingThreeLevelReview;
|
|
||||||
use app\common\logic\BaseLogic;
|
use app\common\logic\BaseLogic;
|
||||||
|
use app\common\model\auth\Admin;
|
||||||
|
use app\common\model\TaskHandlingThreeLevelReview;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
|
|
||||||
|
|
||||||
@ -171,6 +172,8 @@ class TaskHandlingThreeLevelReviewLogic extends BaseLogic
|
|||||||
public static function detail($params): array
|
public static function detail($params): array
|
||||||
{
|
{
|
||||||
$data = TaskHandlingThreeLevelReview::with(['projectInfo'])->findOrEmpty($params['id']);
|
$data = TaskHandlingThreeLevelReview::with(['projectInfo'])->findOrEmpty($params['id']);
|
||||||
|
$head = Admin::field('name')->where('id', $data['head'])->findOrEmpty();
|
||||||
|
$data['head_name'] = $head?->name;
|
||||||
$data['result_file'] = !empty($data['result_file']) ? json_decode($data['result_file'], true) : '';
|
$data['result_file'] = !empty($data['result_file']) ? json_decode($data['result_file'], true) : '';
|
||||||
$data['master_annex'] = !empty($data['master_annex']) ? json_decode($data['master_annex'], true) : '';
|
$data['master_annex'] = !empty($data['master_annex']) ? json_decode($data['master_annex'], true) : '';
|
||||||
$data['bm_annex'] = !empty($data['bm_annex']) ? json_decode($data['bm_annex'], true) : '';
|
$data['bm_annex'] = !empty($data['bm_annex']) ? json_decode($data['bm_annex'], true) : '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user