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
71cb8612d8
commit
95a3aa7290
@ -6,7 +6,7 @@
|
|||||||
<div class="project-title">
|
<div class="project-title">
|
||||||
<h1>{{projectData.name}}</h1>
|
<h1>{{projectData.name}}</h1>
|
||||||
<label v-if="projectData.top_at" class="top-text">{{$L('置顶')}}</label>
|
<label v-if="projectData.top_at" class="top-text">{{$L('置顶')}}</label>
|
||||||
<div v-if="projectLoad > 0" class="project-load"><Loading/></div>
|
<div v-if="loading" class="project-load"><Loading/></div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="project-icons">
|
<ul class="project-icons">
|
||||||
<li class="project-avatar" @click="projectDropdown('user')">
|
<li class="project-avatar" @click="projectDropdown('user')">
|
||||||
@ -464,6 +464,8 @@ export default {
|
|||||||
ProjectLog, TaskArchived, TaskRow, Draggable, TaskAddSimple, UserInput, TaskAdd, TaskPriority},
|
ProjectLog, TaskArchived, TaskRow, Draggable, TaskAddSimple, UserInput, TaskAdd, TaskPriority},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
|
|
||||||
nowTime: $A.Time(),
|
nowTime: $A.Time(),
|
||||||
nowInterval: null,
|
nowInterval: null,
|
||||||
|
|
||||||
@ -791,6 +793,16 @@ export default {
|
|||||||
projectData() {
|
projectData() {
|
||||||
this.sortData = this.getSort();
|
this.sortData = this.getSort();
|
||||||
},
|
},
|
||||||
|
projectLoad(n) {
|
||||||
|
this._loadTimeout && clearTimeout(this._loadTimeout)
|
||||||
|
if (n > 0) {
|
||||||
|
this._loadTimeout = setTimeout(() => {
|
||||||
|
this.loading = true;
|
||||||
|
}, 1000)
|
||||||
|
} else {
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
projectId: {
|
projectId: {
|
||||||
handler(val) {
|
handler(val) {
|
||||||
if (val > 0) {
|
if (val > 0) {
|
||||||
|
|||||||
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -671,7 +671,9 @@ export default {
|
|||||||
project_id,
|
project_id,
|
||||||
},
|
},
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
|
setTimeout(() => {
|
||||||
state.projectLoad--;
|
state.projectLoad--;
|
||||||
|
}, 10)
|
||||||
dispatch("saveProject", result.data);
|
dispatch("saveProject", result.data);
|
||||||
resolve(result)
|
resolve(result)
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
animation: rotate 2s linear infinite;
|
animation: rotate 2s linear infinite;
|
||||||
|
|
||||||
.common-path {
|
.common-path {
|
||||||
|
fill: none;
|
||||||
stroke-dasharray: 1, 200;
|
stroke-dasharray: 1, 200;
|
||||||
stroke-dashoffset: 0;
|
stroke-dashoffset: 0;
|
||||||
stroke-linecap: round;
|
stroke-linecap: round;
|
||||||
@ -17,7 +18,6 @@
|
|||||||
}
|
}
|
||||||
@keyframes rotate {
|
@keyframes rotate {
|
||||||
to {
|
to {
|
||||||
-webkit-transform: rotate(1turn);
|
|
||||||
transform: rotate(1turn)
|
transform: rotate(1turn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user