mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 22:22:49 +00:00
Merge commit 'cbbd50a2e320ca0427474fb2921f2b93a5ad2c14' into pro
This commit is contained in:
commit
93578f93f4
@ -401,7 +401,6 @@ export default {
|
|||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this.tabsClick()
|
this.tabsClick()
|
||||||
this.getProcdefList()
|
this.getProcdefList()
|
||||||
@ -447,10 +446,9 @@ export default {
|
|||||||
if (!val && this.__tabsClick && time > 0) {
|
if (!val && this.__tabsClick && time > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.__tabsClick = setTimeout(() => { this.__tabsClick =null; },time)
|
this.__tabsClick = setTimeout(() => {
|
||||||
if(time == 0){
|
this.__tabsClick = null;
|
||||||
this.loadIng = true;
|
}, time)
|
||||||
}
|
|
||||||
this.tabsValue = val || this.tabsValue
|
this.tabsValue = val || this.tabsValue
|
||||||
if (val) {
|
if (val) {
|
||||||
this.approvalType = this.searchState = "all"
|
this.approvalType = this.searchState = "all"
|
||||||
@ -458,6 +456,7 @@ export default {
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
this.detailsShow = false;
|
this.detailsShow = false;
|
||||||
|
this.loadIng = true;
|
||||||
//
|
//
|
||||||
if (this.tabsValue == 'unread') {
|
if (this.tabsValue == 'unread') {
|
||||||
if (val === false) {
|
if (val === false) {
|
||||||
@ -487,15 +486,22 @@ export default {
|
|||||||
}
|
}
|
||||||
this.getInitiatedList();
|
this.getInitiatedList();
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 列表点击事件
|
// 列表点击事件
|
||||||
clickList(item) {
|
clickList(item) {
|
||||||
this.unreadList.map(h => { h._active = false; })
|
this.unreadList.map(h => {
|
||||||
this.doneList.map(h => { h._active = false; })
|
h._active = false;
|
||||||
this.notifyList.map(h => { h._active = false; })
|
})
|
||||||
this.initiatedList.map(h => { h._active = false; })
|
this.doneList.map(h => {
|
||||||
|
h._active = false;
|
||||||
|
})
|
||||||
|
this.notifyList.map(h => {
|
||||||
|
h._active = false;
|
||||||
|
})
|
||||||
|
this.initiatedList.map(h => {
|
||||||
|
h._active = false;
|
||||||
|
})
|
||||||
//
|
//
|
||||||
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}});
|
||||||
@ -652,7 +658,9 @@ export default {
|
|||||||
let listKey = key + 'List'
|
let listKey = key + 'List'
|
||||||
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)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -698,7 +706,9 @@ export default {
|
|||||||
this.addShow = false;
|
this.addShow = false;
|
||||||
this.$refs.initiateRef.resetFields();
|
this.$refs.initiateRef.resetFields();
|
||||||
this.tabsValue = 'initiated';
|
this.tabsValue = 'initiated';
|
||||||
this.initiatedList.map(h=>{ h._active = false; })
|
this.initiatedList.map(h => {
|
||||||
|
h._active = false;
|
||||||
|
})
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.tabsClick(false, 0);
|
this.tabsClick(false, 0);
|
||||||
})
|
})
|
||||||
@ -718,18 +728,21 @@ export default {
|
|||||||
.page-approve .approve-details {
|
.page-approve .approve-details {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-approve .ivu-tabs-nav {
|
.page-approve .ivu-tabs-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 350px;
|
width: 350px;
|
||||||
@media (max-width: 1010px) {
|
@media (max-width: 1010px) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ivu-tabs-tab {
|
.ivu-tabs-tab {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-approve-initiate .ivu-modal-body {
|
.page-approve-initiate .ivu-modal-body {
|
||||||
padding: 16px 22px 2px !important;
|
padding: 16px 22px 2px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user