mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
no message
This commit is contained in:
parent
5982424864
commit
f403014ef6
@ -87,7 +87,7 @@ class ReportController extends AbstractController
|
|||||||
$username = trim(Request::input('username', ''));
|
$username = trim(Request::input('username', ''));
|
||||||
$builder->whereHas('sendUser', function ($query) use ($username) {
|
$builder->whereHas('sendUser', function ($query) use ($username) {
|
||||||
if (!empty($username)) {
|
if (!empty($username)) {
|
||||||
$query->where('users.email', 'LIKE', '%' . $username . '%');
|
$query->where("users.email", "LIKE", "%{$username}%");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
in_array($type, [Report::WEEKLY, Report::DAILY]) && $builder->whereType($type);
|
in_array($type, [Report::WEEKLY, Report::DAILY]) && $builder->whereType($type);
|
||||||
|
|||||||
@ -15,7 +15,7 @@ class CreateFileLinksTable extends Migration
|
|||||||
{
|
{
|
||||||
Schema::create('file_links', function (Blueprint $table) {
|
Schema::create('file_links', function (Blueprint $table) {
|
||||||
$table->bigIncrements('id');
|
$table->bigIncrements('id');
|
||||||
$table->bigInteger('file_id')->nullable()->default(0)->comment('项目ID');
|
$table->bigInteger('file_id')->nullable()->default(0)->comment('文件ID');
|
||||||
$table->integer('num')->nullable()->default(0)->comment('累计访问');
|
$table->integer('num')->nullable()->default(0)->comment('累计访问');
|
||||||
$table->string('code')->nullable()->default('')->comment('链接码');
|
$table->string('code')->nullable()->default('')->comment('链接码');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
//
|
//
|
||||||
this.subscribe = Store.subscribe('cacheUserActive', (data) => {
|
this.subscribe = Store.subscribe('cacheUserActive', (data) => {
|
||||||
if (data.userid == this.userid) {
|
if (data.userid == this.userid) {
|
||||||
this.user = data;
|
this.setUser(data)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -174,7 +174,7 @@
|
|||||||
|
|
||||||
userInfo(info) {
|
userInfo(info) {
|
||||||
if (info.userid == this.userid) {
|
if (info.userid == this.userid) {
|
||||||
this.user = info;
|
this.setUser(info);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -190,12 +190,23 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.userid == this.userInfo.userid) {
|
if (this.userid == this.userInfo.userid) {
|
||||||
this.user = this.userInfo;
|
this.setUser(this.userInfo);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$store.dispatch("getUserBasic", {userid: this.userid});
|
this.$store.dispatch("getUserBasic", {userid: this.userid});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setUser(info) {
|
||||||
|
if (this.user && this.user.userimg != info.usering) {
|
||||||
|
this.user = null
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.user = info
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.user = info
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
onError() {
|
onError() {
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="setting-item submit">
|
<div class="setting-item submit">
|
||||||
<Alert v-if="userInfo.changepass" type="warning" showIcon style="margin-bottom:32px">{{$L('请先修改登录密码!')}}</Alert>
|
|
||||||
<Form ref="formDatum" :model="formDatum" :rules="ruleDatum" label-width="auto" @submit.native.prevent>
|
<Form ref="formDatum" :model="formDatum" :rules="ruleDatum" label-width="auto" @submit.native.prevent>
|
||||||
|
<Alert v-if="userInfo.changepass" type="warning" showIcon style="margin-bottom:32px">{{$L('请先修改登录密码!')}}</Alert>
|
||||||
<FormItem :label="$L('旧密码')" prop="oldpass">
|
<FormItem :label="$L('旧密码')" prop="oldpass">
|
||||||
<Input v-model="formDatum.oldpass" type="password"></Input>
|
<Input v-model="formDatum.oldpass" type="password"></Input>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
4
resources/assets/sass/pages/page-file.scss
vendored
4
resources/assets/sass/pages/page-file.scss
vendored
@ -311,10 +311,6 @@
|
|||||||
.avatar-char {
|
.avatar-char {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
.permission {
|
|
||||||
padding-left: 6px;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
.taskfont {
|
.taskfont {
|
||||||
color: #aaaaaa;
|
color: #aaaaaa;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user