添加页面
This commit is contained in:
@@ -7,6 +7,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
process: [] as any[],
|
||||
isFirstEnter: true,
|
||||
},
|
||||
navDetail(e: any) {
|
||||
const index = getDataSet(e).index.split(',');
|
||||
@@ -14,7 +15,7 @@ Page({
|
||||
const cProcess = pProcess.child[index[1]];
|
||||
const { p_process_name, process_name, process_id } = cProcess;
|
||||
const title = encodeURIComponent(`${p_process_name} - ${process_name}`);
|
||||
|
||||
this.data.isFirstEnter = false;
|
||||
wx.navigateTo({
|
||||
url: `/pages/produce/processManageDetail/processManageDetail?process_id=${process_id}&title=${title}`,
|
||||
});
|
||||
@@ -58,7 +59,11 @@ Page({
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {},
|
||||
onShow() {
|
||||
if (!this.data.isFirstEnter) {
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
|
||||
Reference in New Issue
Block a user