待办处理后跳转到待办列表
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
// 应用全局配置
|
// 应用全局配置
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// baseUrl: 'http://zhxg.gxsdxy.cn/prod_api',
|
// baseUrl: 'https://zhxg.gxsdxy.cn/prod_api',
|
||||||
// baseUrl: 'http://172.16.96.111:8085',
|
// baseUrl: 'http://172.16.96.111:8085',
|
||||||
// baseUrl: 'http://192.168.211.22:8085',
|
// baseUrl: 'http://192.168.211.22:8085',
|
||||||
baseUrl: 'http://localhost:8088',
|
baseUrl: 'http://localhost:8085',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
|
|||||||
@@ -349,18 +349,18 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg
|
title: res.msg
|
||||||
})
|
})
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.$refs.returnDialog.close();
|
this.$refs.returnDialog.close();
|
||||||
},
|
},
|
||||||
@@ -415,17 +415,17 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
rejectDialogConfirm() {
|
rejectDialogConfirm() {
|
||||||
@@ -453,9 +453,9 @@
|
|||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -357,18 +357,18 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg
|
title: res.msg
|
||||||
})
|
})
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.$refs.returnDialog.close();
|
this.$refs.returnDialog.close();
|
||||||
},
|
},
|
||||||
@@ -419,18 +419,18 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
rejectDialogConfirm() {
|
rejectDialogConfirm() {
|
||||||
@@ -455,18 +455,18 @@
|
|||||||
title: "已驳回"
|
title: "已驳回"
|
||||||
})
|
})
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
console.log('刷新已办任务数据');
|
console.log('刷新任务数据');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -417,18 +417,18 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg
|
title: res.msg
|
||||||
})
|
})
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.$refs.returnDialog.close();
|
this.$refs.returnDialog.close();
|
||||||
},
|
},
|
||||||
@@ -495,18 +495,18 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
rejectDialogConfirm() {
|
rejectDialogConfirm() {
|
||||||
@@ -523,18 +523,18 @@
|
|||||||
title: "已驳回"
|
title: "已驳回"
|
||||||
})
|
})
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
console.log('刷新已办任务数据');
|
console.log('刷新任务数据');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -480,18 +480,18 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg
|
title: res.msg
|
||||||
})
|
})
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.$refs.returnDialog.close();
|
this.$refs.returnDialog.close();
|
||||||
},
|
},
|
||||||
@@ -557,18 +557,18 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
rejectDialogConfirm() {
|
rejectDialogConfirm() {
|
||||||
@@ -593,18 +593,18 @@
|
|||||||
title: "已驳回"
|
title: "已驳回"
|
||||||
})
|
})
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
console.log('刷新已办任务数据');
|
console.log('刷新任务数据');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -417,12 +417,13 @@
|
|||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1]
|
||||||
if (prevPage && typeof prevPage.getList ===
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
'function') {
|
prevPage.handleChange(2);
|
||||||
prevPage.handleChange(2);
|
console.log('刷新已办任务数据');
|
||||||
console.log('刷新已办任务数据');
|
} else if (prevPage && typeof prevPage.getLeaveList === 'function') {
|
||||||
}
|
prevPage.getLeaveList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -447,7 +448,7 @@
|
|||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1]
|
||||||
if (prevPage && typeof prevPage.getLeaveList ===
|
if (prevPage && typeof prevPage.getLeaveList ===
|
||||||
'function') {
|
'function') {
|
||||||
prevPage.getLeaveList();
|
prevPage.getLeaveList();
|
||||||
@@ -621,8 +622,10 @@
|
|||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1]
|
||||||
if (prevPage && typeof prevPage.getLeaveList ===
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
|
prevPage.handleChange(2);
|
||||||
|
} else if (prevPage && typeof prevPage.getLeaveList ===
|
||||||
'function') {
|
'function') {
|
||||||
prevPage.getLeaveList();
|
prevPage.getLeaveList();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -626,18 +626,18 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg
|
title: res.msg
|
||||||
})
|
})
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.$refs.returnDialog.close();
|
this.$refs.returnDialog.close();
|
||||||
},
|
},
|
||||||
@@ -731,11 +731,11 @@
|
|||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -788,12 +788,12 @@
|
|||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
if (prevPage && typeof prevPage.getList === 'function') {
|
if (prevPage && typeof prevPage.handleChange === 'function') {
|
||||||
prevPage.handleChange(2);
|
prevPage.handleChange(this.tag || 1);
|
||||||
console.log('刷新已办任务数据');
|
console.log('刷新任务数据');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ export function toBackPage(delay = 1000, onSuccess = () => {}) {
|
|||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
if (pages.length > 1) {
|
if (pages && pages.length > 0) {
|
||||||
const prevPage = pages[pages.length - 2];
|
const prevPage = pages[pages.length - 2] || pages[pages.length - 1];
|
||||||
onSuccess(prevPage);
|
onSuccess(prevPage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user