mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
perf: okr和审批优化
This commit is contained in:
parent
ec7af94f71
commit
c1361fadda
@ -178,7 +178,7 @@ services:
|
|||||||
|
|
||||||
okr:
|
okr:
|
||||||
container_name: "dootask-okr-${APP_ID}"
|
container_name: "dootask-okr-${APP_ID}"
|
||||||
image: "kuaifan/doookr:0.0.35"
|
image: "kuaifan/doookr:0.0.36"
|
||||||
environment:
|
environment:
|
||||||
TZ: "${TIMEZONE:-PRC}"
|
TZ: "${TIMEZONE:-PRC}"
|
||||||
DOO_TASK_URL: "http://${APP_IPPR}.3"
|
DOO_TASK_URL: "http://${APP_IPPR}.3"
|
||||||
|
|||||||
@ -492,21 +492,22 @@ export default {
|
|||||||
|
|
||||||
// 列表点击事件
|
// 列表点击事件
|
||||||
clickList(item){
|
clickList(item){
|
||||||
this.unreadList.map(h=>{ h._active = false; })
|
this.unreadList.map(h => { h._active = false; })
|
||||||
this.doneList.map(h=>{ h._active = false; })
|
this.doneList.map(h => { h._active = false; })
|
||||||
this.notifyList.map(h=>{ h._active = false; })
|
this.notifyList.map(h => { h._active = false; })
|
||||||
this.initiatedList.map(h=>{ h._active = false; })
|
this.initiatedList.map(h => { h._active = false; })
|
||||||
item._active = true;
|
|
||||||
//
|
//
|
||||||
if( window.innerWidth < 426 ){
|
if (window.innerWidth < 426) {
|
||||||
this.goForward({name: 'manage-approve-details', query: { id: item.id } });
|
this.goForward({ name: 'manage-approve-details', query: { id: item.id } });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( window.innerWidth < 1010 ){
|
if (window.innerWidth < 1010) {
|
||||||
this.detailsShow = true;
|
this.detailsShow = true;
|
||||||
|
} else {
|
||||||
|
item._active = true;
|
||||||
}
|
}
|
||||||
this.details = {}
|
this.details = {}
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(() => {
|
||||||
this.details = item
|
this.details = item
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -649,14 +650,15 @@ export default {
|
|||||||
// 更新数据
|
// 更新数据
|
||||||
updateData(key,data,type) {
|
updateData(key,data,type) {
|
||||||
let listKey = key + 'List'
|
let listKey = key + 'List'
|
||||||
let activeIndex = this[listKey].map((h, index) => h._active ? index : -1).filter(h => h > -1)[0] || 0
|
|
||||||
this[key + 'Total'] = data.total;
|
this[key + 'Total'] = data.total;
|
||||||
type != 'scroll' ? (this[listKey] = data.rows) : data.rows.map(h => {
|
type != 'scroll' ? (this[listKey] = data.rows) : data.rows.map(h => {
|
||||||
if (this[listKey].map(item => { return item.id }).indexOf(h.id) == -1) {
|
if (this[listKey].map(item => { return item.id }).indexOf(h.id) == -1) {
|
||||||
this[listKey].push(h)
|
this[listKey].push(h)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(this[listKey].length > 0){
|
if (window.innerWidth > 1010){
|
||||||
|
let activeIndex = this[listKey].map((h, index) => h._active ? index : -1).filter(h => h > -1)[0] || 0
|
||||||
|
if (this[listKey].length > 0){
|
||||||
this[listKey][activeIndex]._active = true;
|
this[listKey][activeIndex]._active = true;
|
||||||
if (this.tabsValue == key) {
|
if (this.tabsValue == key) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@ -664,6 +666,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 提交发起
|
// 提交发起
|
||||||
|
|||||||
@ -166,6 +166,9 @@
|
|||||||
|
|
||||||
.approve-list-active {
|
.approve-list-active {
|
||||||
border: 1px solid #8bcf70;
|
border: 1px solid #8bcf70;
|
||||||
|
@media (max-width: 1010px) {
|
||||||
|
border: 1px solid #eeeeee;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -405,9 +408,7 @@
|
|||||||
bottom: 1px;
|
bottom: 1px;
|
||||||
display: flex;
|
display: flex;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
// background: #ffffff;
|
|
||||||
background: #00000005;
|
background: #00000005;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user