小程序异常确认页面修改

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", path: "unqualifiedNotificationConfirm",
name: "品质异常确认", name: "品质异常确认",
auth: true, auth: true,
imgUrl: "/static/images/unqualifiedNotification.png", imgUrl: "",
defaultImgUrl: "/static/images/unqualifiedNotification-default.png", defaultImgUrl: "",
}, },
]); ]);
const loginStore = useLoginStore(); const loginStore = useLoginStore();

View File

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

View File

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

View File

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