待办处理后跳转到待办列表

This commit is contained in:
2025-10-31 15:27:08 +08:00
parent 8f79eeaae6
commit 64cfd5ef95
8 changed files with 150 additions and 147 deletions

View File

@@ -357,18 +357,18 @@
uni.showToast({
title: res.msg
})
uni.navigateBack({
success: () => {
const pages = getCurrentPages();
if (pages.length > 0) {
const prevPage = pages[pages.length - 2]
if (prevPage && typeof prevPage.getList === 'function') {
prevPage.handleChange(2);
uni.navigateBack({
success: () => {
const pages = getCurrentPages();
if (pages && pages.length > 0) {
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
if (prevPage && typeof prevPage.handleChange === 'function') {
prevPage.handleChange(this.tag || 1);
}
}
}
}
})
}
})
})
this.$refs.returnDialog.close();
},
@@ -419,18 +419,18 @@
});
}
uni.hideLoading();
uni.navigateBack({
success: () => {
const pages = getCurrentPages();
if (pages.length > 0) {
const prevPage = pages[pages.length - 2]
if (prevPage && typeof prevPage.getList === 'function') {
prevPage.handleChange(2);
uni.navigateBack({
success: () => {
const pages = getCurrentPages();
if (pages && pages.length > 0) {
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
if (prevPage && typeof prevPage.handleChange === 'function') {
prevPage.handleChange(this.tag || 1);
}
}
}
}
})
}
})
})
},
rejectDialogConfirm() {
@@ -455,18 +455,18 @@
title: "已驳回"
})
uni.hideLoading();
uni.navigateBack({
success: () => {
const pages = getCurrentPages();
if (pages.length > 0) {
const prevPage = pages[pages.length - 2]
if (prevPage && typeof prevPage.getList === 'function') {
prevPage.handleChange(2);
console.log('刷新已办任务数据');
uni.navigateBack({
success: () => {
const pages = getCurrentPages();
if (pages && pages.length > 0) {
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
if (prevPage && typeof prevPage.handleChange === 'function') {
prevPage.handleChange(this.tag || 1);
console.log('刷新任务数据');
}
}
}
}
})
})
}
})
},