小程序异常确认页面修改

This commit is contained in:
z 2025-07-13 15:18:16 +08:00
parent 76ac334774
commit 666f8402a2
4 changed files with 29 additions and 27 deletions

View File

@ -83,8 +83,8 @@ const categoryList = ref([
path: "unqualifiedNotificationConfirm",
name: "品质异常确认",
auth: true,
imgUrl: "/static/images/unqualifiedNotification.png",
defaultImgUrl: "/static/images/unqualifiedNotification-default.png",
imgUrl: "",
defaultImgUrl: "",
},
]);
const loginStore = useLoginStore();

View File

@ -105,7 +105,7 @@ const onRefresherrefresh = async () => {
isTriggered.value = false
}
onShow(async () => {
await getListData()
await updateData()
})
defineExpose({ updateData })
const showpicture= (pictureArray:[])=>{

View File

@ -183,15 +183,16 @@
})
} finally {
isLoading.value = false;
// const url = `/pages/unqualifiedNotification/unqualifiedNotification`
// uni.redirectTo({
// url,
// })
const pages = getCurrentPages(); //
await initPage();
const currentPage = pages[pages.length - 1]; //
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
uni.reLaunch({ url }); //
console.log(1111)
const url = `/pages/unqualifiedNotificationConfirm/unqualifiedNotificationConfirm`
uni.redirectTo({
url,
})
// const pages = getCurrentPages(); //
// await initPage();
// const currentPage = pages[pages.length - 1]; //
// const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
// uni.reLaunch({ url }); //
}
@ -210,6 +211,7 @@
}
const cancel = () => {
console.log(1111)
uni.navigateBack({
delta: 1 // 1
});

View File

@ -132,15 +132,14 @@ const handleComplate = async () => {
})
} finally {
isLoading.value = false;
// const url = `/pages/pgMaster/pgMaster-detail?id=${detailInfo.value.id}`
// uni.redirectTo({
// url,
// })
await initPage();
const pages = getCurrentPages(); //
const currentPage = pages[pages.length - 1]; //
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
uni.reLaunch({ url }); //
// await initPage();
// const pages = getCurrentPages(); //
// const currentPage = pages[pages.length - 1]; //
// const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
// uni.reLaunch({ url }); //
}
}
const range = [
@ -183,15 +182,16 @@ const submitForm = async () => {
})
} finally {
isLoading.value = false;
// const url = `/pages/unqualifiedNotificationConfirm/dataltem`
// uni.redirectTo({
// url,
// })
const pages = getCurrentPages(); //
await initPage();
const currentPage = pages[pages.length - 1]; //
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
uni.reLaunch({ url }); //
const url = `/pages/unqualifiedNotificationConfirm/unqualifiedNotificationConfirm`
uni.redirectTo({
url,
})
// const pages = getCurrentPages(); //
// await initPage();
// const currentPage = pages[pages.length - 1]; //
// const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
// uni.reLaunch({ url }); //
}