添加页面

This commit is contained in:
zhengw
2026-01-29 17:46:14 +08:00
parent df67413bf8
commit 85483c7ca2
44 changed files with 1606 additions and 94 deletions

View File

@@ -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();
}
},
/**
* 生命周期函数--监听页面隐藏