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 @@
- + +