From 7dd937782b288d14c6214742760273e5f62ec520 Mon Sep 17 00:00:00 2001 From: Phoenix <64720302+Concur-max@users.noreply.github.com> Date: Tue, 6 May 2025 11:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=B7=AF=E7=94=B1=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=89=8D=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=8D=8F=E8=AE=AE=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81=E6=96=B0=E7=9A=84PDF=20URL=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=8F=E8=AE=AE=E5=88=97=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD=E4=BB=A5=E8=A7=A6=E5=8F=91?= =?UTF-8?q?PDF=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/goods/index.js | 2 +- app/app.vue | 2 ++ app/pages/signature/protocol/index.vue | 10 +++++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/api/goods/index.js b/app/api/goods/index.js index 1369891..32d7a64 100644 --- a/app/api/goods/index.js +++ b/app/api/goods/index.js @@ -93,7 +93,7 @@ export async function orderQuery(data) { method: 'POST', data }) -} +} export async function contractView(data) { return await request( { diff --git a/app/app.vue b/app/app.vue index 8c2c324..6d1f661 100644 --- a/app/app.vue +++ b/app/app.vue @@ -24,6 +24,8 @@ router.beforeEach((to, from) => { if (to.path==='/'){ hideMinWindow1() } +console.log('路由跳转前', to.path) + // 如果是返回操作(在历史记录中找到目标路由) if (routeHistory.value.includes(to.path)) { slideDirection.value = 'slide-right' diff --git a/app/pages/signature/protocol/index.vue b/app/pages/signature/protocol/index.vue index 0404cec..402c076 100644 --- a/app/pages/signature/protocol/index.vue +++ b/app/pages/signature/protocol/index.vue @@ -20,11 +20,13 @@ const router = useRouter() const pmblUrl = ref('') // 存储拍卖笔录的URL const jmxyUrl=ref('')//竞买协议 const pmyjqrsUrl=ref('')//拍卖移交确认书 +const jmxzUrl=ref('') +const pmggUrl=ref('') // 协议列表数据 const protocolList = computed(() => [ - { id: '1', title: $t('signature.agreement.notice'), pdfName: 'pmgg', type: 'local' }, + { id: '1', title: $t('signature.agreement.notice'), pdfName: pmggUrl.value, type: 'remote' }, { id: '2', title: $t('signature.agreement.rules'), pdfName: 'pmgz', type: 'local' }, - { id: '3', title: $t('signature.agreement.buyerGuide'), pdfName: 'jmxz', type: 'local' }, + { id: '3', title: $t('signature.agreement.buyerGuide'), pdfName: jmxzUrl.value, type: 'remote' }, { id: '4', title: $t('signature.agreement.buyerAgreement'), pdfName: jmxyUrl.value, type: 'remote' }, { id: '5', title: $t('signature.agreement.record'), pdfName: pmblUrl.value, type: 'remote' }, { id: '6', title: $t('signature.agreement.transfer'), pdfName: pmyjqrsUrl.value, type: 'remote' } @@ -43,6 +45,8 @@ const fetchPmblPdf = async () => { jmxyUrl.value=res.data.ViewUrls?.jmxy1 pmblUrl.value=res.data.ViewUrls?.ppbl6 pmyjqrsUrl.value=res.data.ViewUrls?.ppqr5 + jmxzUrl.value=res.data.ViewUrls?.jmxz2 + pmggUrl.value=res.data.ViewUrls?.pmgg3 } } catch (error) { } @@ -51,7 +55,7 @@ const fetchPmblPdf = async () => { // 监听折叠面板变化 const handleCollapseChange = (name) => { activeNames.value = name - if (['4','5','6'].includes(name) && !protocolList.value.find(x=>x.id===name)?.pdfName) { + if (['1','3','4','5','6'].includes(name) && !protocolList.value.find(x=>x.id===name)?.pdfName) { fetchPmblPdf() } }