待办处理后跳转到待办列表
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: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
|
|||||||
@@ -352,10 +352,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -418,10 +418,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -360,10 +360,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -422,10 +422,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -458,11 +458,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);
|
||||||
console.log('刷新已办任务数据');
|
console.log('刷新任务数据');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -420,10 +420,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -498,10 +498,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -526,11 +526,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);
|
||||||
console.log('刷新已办任务数据');
|
console.log('刷新任务数据');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -483,10 +483,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -560,10 +560,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -596,11 +596,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);
|
||||||
console.log('刷新已办任务数据');
|
console.log('刷新任务数据');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -417,11 +417,12 @@
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -629,10 +629,10 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -731,10 +731,10 @@
|
|||||||
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,11 +788,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);
|
||||||
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