Browse Source

(fixed) 9272 修改问题处理跳转逻辑

master
liujiangyong 2 years ago
parent
commit
9d4161a65a
  1. 25
      weapp/package/troubleshooting/index.js
  2. 3
      weapp/package/troubleshooting/shootingForm/index.js

25
weapp/package/troubleshooting/index.js

@ -184,17 +184,25 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad (options) { onLoad (options) {
Request.get(getStructuresUsers(), {}).then(res => {
this.setData({
structList: res
})
})
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady () { onReady () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow () {
Request.get(getStructuresUsers(), {}).then(res => {
this.setData({
structList: res
})
})
this.getData({ this.getData({
type: 'backlog' type: 'backlog'
}); });
@ -210,13 +218,6 @@ Page({
} }
}, },
/**
* 生命周期函数--监听页面显示
*/
onShow () {
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */

3
weapp/package/troubleshooting/shootingForm/index.js

@ -454,8 +454,7 @@ Page({
...confirmData, ...confirmData,
state: nextState, state: nextState,
}).then(res => { }).then(res => {
wx.redirectTo({ wx.navigateBack({
url: '/package/troubleshooting/index',
complete: () => { complete: () => {
wx.showToast({ wx.showToast({
title: successMsg, title: successMsg,

Loading…
Cancel
Save