|
@@ -6,8 +6,8 @@ use think\App;
|
|
|
use think\facade\Db;
|
|
|
|
|
|
|
|
|
-
|
|
|
-class Data
|
|
|
+class Data extends Base
|
|
|
+
|
|
|
{
|
|
|
|
|
|
public function index()
|
|
@@ -46,20 +46,20 @@ class Data
|
|
|
|
|
|
|
|
|
$data['month_completion_rate'] = [
|
|
|
- 'today'=>[
|
|
|
- ['company' => 'xxx部', 'completion rate' => '30%', 'type' => '2'],
|
|
|
- ['company' => 'xx部', 'completion rate' => '20%', 'type' => '1'],
|
|
|
- ['company' => 'x部', 'completion rate' => '10%', 'type' => '0'],
|
|
|
+ 'today' => [
|
|
|
+ ['company' => 'xxx部', 'completion' => 10, 'completion_rate' => '30%', 'type' => '2'],
|
|
|
+ ['company' => 'xx部', 'completion' => 10, 'completion_rate' => '20%', 'type' => '1'],
|
|
|
+ ['company' => 'x部', 'completion' => 10, 'completion_rate' => '10%', 'type' => '0'],
|
|
|
],
|
|
|
- 'week'=>[
|
|
|
- ['company' => 'xxx部', 'completion rate' => '30%', 'type' => '2'],
|
|
|
- ['company' => 'xx部', 'completion rate' => '20%', 'type' => '1'],
|
|
|
- ['company' => 'x部', 'completion rate' => '10%', 'type' => '0'],
|
|
|
+ 'week' => [
|
|
|
+ ['company' => 'xxx部', 'completion' => 10, 'completion_rate' => '30%', 'type' => '2'],
|
|
|
+ ['company' => 'xx部', 'completion' => 10, 'completion_rate' => '20%', 'type' => '1'],
|
|
|
+ ['company' => 'x部', 'completion' => 10, 'completion_rate' => '10%', 'type' => '0'],
|
|
|
],
|
|
|
- 'month'=>[
|
|
|
- ['company' => 'xxx部', 'completion rate' => '30%', 'type' => '2'],
|
|
|
- ['company' => 'xx部', 'completion rate' => '20%', 'type' => '1'],
|
|
|
- ['company' => 'x部', 'completion rate' => '10%', 'type' => '0'],
|
|
|
+ 'month' => [
|
|
|
+ ['company' => 'xxx部', 'completion' => 10, 'completion_rate' => '30%', 'type' => '2'],
|
|
|
+ ['company' => 'xx部', 'completion' => 10, 'completion_rate' => '20%', 'type' => '1'],
|
|
|
+ ['company' => 'x部', 'completion' => 10, 'completion_rate' => '10%', 'type' => '0'],
|
|
|
],
|
|
|
];
|
|
|
|