From 3201d90a534327383f26061cb770e2f91035764e Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 21 Jan 2022 14:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Report.php | 16 +- .../js/pages/manage/components/Report.vue | 145 +++++++++--------- .../js/pages/manage/components/ReportEdit.vue | 12 +- 3 files changed, 87 insertions(+), 86 deletions(-) diff --git a/app/Models/Report.php b/app/Models/Report.php index 5b04efe8..100ba10a 100644 --- a/app/Models/Report.php +++ b/app/Models/Report.php @@ -21,24 +21,26 @@ use JetBrains\PhpStorm\Pure; * @property string $title 标题 * @property string $type 汇报类型 * @property int $userid - * @property string|null $content + * @property string $content + * @property string $sign 汇报唯一标识 + * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\ReportReceive[] $Receives + * @property-read int|null $receives_count + * @property-read mixed $receives + * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\User[] $receivesUser + * @property-read int|null $receives_user_count + * @property-read \App\Models\User|null $sendUser * @method static Builder|Report newModelQuery() * @method static Builder|Report newQuery() * @method static Builder|Report query() * @method static Builder|Report whereContent($value) * @method static Builder|Report whereCreatedAt($value) * @method static Builder|Report whereId($value) + * @method static Builder|Report whereSign($value) * @method static Builder|Report whereTitle($value) * @method static Builder|Report whereType($value) * @method static Builder|Report whereUpdatedAt($value) * @method static Builder|Report whereUserid($value) * @mixin \Eloquent - * @property string $sign 汇报唯一标识 - * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\ReportReceive[] $Receives - * @property-read int|null $receives_count - * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\User[] $receivesUser - * @property-read int|null $receives_user_count - * @method static Builder|Report whereSign($value) */ class Report extends AbstractModel { diff --git a/resources/assets/js/pages/manage/components/Report.vue b/resources/assets/js/pages/manage/components/Report.vue index 31433c9d..611eac71 100644 --- a/resources/assets/js/pages/manage/components/Report.vue +++ b/resources/assets/js/pages/manage/components/Report.vue @@ -1,24 +1,24 @@ diff --git a/resources/assets/js/pages/manage/components/ReportEdit.vue b/resources/assets/js/pages/manage/components/ReportEdit.vue index 11204402..cae039e4 100644 --- a/resources/assets/js/pages/manage/components/ReportEdit.vue +++ b/resources/assets/js/pages/manage/components/ReportEdit.vue @@ -78,12 +78,12 @@ export default { data() { return { reportData: { - title: "" - , content: "" - , type: "weekly" - , receive: [] - , id: 0 - , offset: 0 // 以当前日期为基础的周期偏移量。例如选择了上一周那么就是 -1,上一天同理。 + title: "", + content: "", + type: "weekly", + receive: [], + id: 0, + offset: 0 // 以当前日期为基础的周期偏移量。例如选择了上一周那么就是 -1,上一天同理。 }, disabledType: false, userInputShow: true,