From e80437e16e1a0360f8571b49c0b7cdcebb59d7a3 Mon Sep 17 00:00:00 2001 From: KeXuCong <13266269839@163.com> Date: Mon, 10 Mar 2025 14:53:07 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=94=BF=E7=AD=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/policyDoc/components/docWrap.vue | 17 +++++++- jwtech-pc-page/src/views/policyDoc/index.vue | 41 +++++++++++++------ 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/jwtech-pc-page/src/views/policyDoc/components/docWrap.vue b/jwtech-pc-page/src/views/policyDoc/components/docWrap.vue index 6f2d8631..9e6c6c8d 100644 --- a/jwtech-pc-page/src/views/policyDoc/components/docWrap.vue +++ b/jwtech-pc-page/src/views/policyDoc/components/docWrap.vue @@ -32,6 +32,10 @@ import { zhxxList } from "@/api/zhxx"; export default { name: "docWrap", props: { + isSearch: { + type: Boolean, + default: false + }, title: { type: String, default: "政策文件" @@ -40,6 +44,10 @@ export default { type: String, default: "1" }, + proTotal: { + type: Number, + default: 0 + }, docData: { type: Array, default: () => [] @@ -47,7 +55,7 @@ export default { }, data() { return { - total: 10, + total: 0, pageSizes: [10, 20, 30, 50], docDataList: [], queryForm: { @@ -65,7 +73,12 @@ export default { }; }, mounted() { - this.getResult(); + if (!this.isSearch) { + this.getResult(); + } else { + this.docDataList = this.docData; + this.total = this.proTotal; + } }, methods: { getResult() { diff --git a/jwtech-pc-page/src/views/policyDoc/index.vue b/jwtech-pc-page/src/views/policyDoc/index.vue index 00e190fb..5f3d70c2 100644 --- a/jwtech-pc-page/src/views/policyDoc/index.vue +++ b/jwtech-pc-page/src/views/policyDoc/index.vue @@ -20,22 +20,30 @@