From ad0a536bd7534a8eaf477d41294de21c7d7b25df Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 21 Dec 2023 11:50:54 +0800
Subject: [PATCH] 维修基金审核

---
 src/views/article/publicSignUp.vue |  116 ++++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 72 insertions(+), 44 deletions(-)

diff --git a/src/views/article/publicSignUp.vue b/src/views/article/publicSignUp.vue
index 1f6a467..6cc23ca 100644
--- a/src/views/article/publicSignUp.vue
+++ b/src/views/article/publicSignUp.vue
@@ -32,7 +32,7 @@
       <!-- <span slot="title" class="dialog-footer">
         {{discussForm.ontitle}}
       </span> -->
-      <avue-crud :data="data" :option="option1"></avue-crud>
+      <avue-crud :data="dataUser" :page="pageUser" :option="option1" @on-load="getUser"></avue-crud>
     </el-dialog>
 
 
@@ -45,8 +45,11 @@
     getDetailPd,
     addPd,
     updatePd,
-    removePd
+    removePd,
   } from "@/api/discuss/publicDiscuss";
+  import {
+    getPageUser,
+  } from "@/api/discuss/userPublicEnroll";
   import option from "@/option/discuss/publicDiscuss";
   import {
     mapGetters
@@ -65,17 +68,17 @@
             label: '姓名',
             prop: 'name'
           }, {
-            label: '昵称',
-            prop: 'sex'
+            label: '头像',
+            prop: 'avatar'
           }, {
             label: '手机',
-            prop: 'sex'
+            prop: 'phone'
           }, {
             label: '小区',
-            prop: 'sex'
+            prop: 'aoiName'
           }, {
             label: '地址',
-            prop: 'sex'
+            prop: 'addressName'
           }, {
             label: '时间',
             prop: 'createTime'
@@ -112,7 +115,7 @@
               }
             }, {
               labelWidth: 100,
-              label: '开启投票',
+              label: '开启',
               prop: 'openFlag',
               type: 'radio',
               button: true,
@@ -128,48 +131,18 @@
             },
             {
               labelWidth: 100,
-              label: '人数限制',
-              prop: 'numberRestrictions',
-              type: 'number',
-              button: true,
-              row: true,
-              min: 0,
-              max: 99999999,
-              controlsPosition: '',
-              step: 10,
-              offset: 6,
-            }, {
-              labelWidth: 100,
-              label: '投票限制',
-              prop: 'voteRestrictions',
+              label: '开启投票',
+              prop: 'openFlag',
               type: 'radio',
               button: true,
               row: true,
               offset: 6,
               dicData: [{
-                label: '一人一票',
+                label: '开启',
                 value: 0
               }, {
-                label: '一户一票',
+                label: '不开启',
                 value: 1
-              }]
-            }, {
-              labelWidth: 100,
-              label: '用户限制',
-              prop: 'userRestrictions',
-              type: 'radio',
-              button: true,
-              row: true,
-              offset: 6,
-              dicData: [{
-                label: '不限制',
-                value: 0
-              }, {
-                label: '必须绑定手机',
-                value: 1
-              }, {
-                label: '必须绑定房屋',
-                value: 2
               }]
             },
             {
@@ -204,14 +177,59 @@
           currentPage: 1,
           total: 0
         },
+
+        // 分页信息
+        pageUser: {
+          pageSize: 10,
+          pageSizes: [10, 20, 30, 50, 100],
+          currentPage: 1,
+          total: 0
+        },
         // 表单数据
         form: {},
         // 选择行
         selectionList: [],
         // 表单配置
-        option: option,
+        option: {
+          selection: true,
+          height: "auto",
+          calcHeight: 54,
+          align: 'center',
+          menuAlign: 'center',
+          addBtn: false,
+          editBtn: false,
+          searchMenuSpan: 3,
+          searchBtn: true,
+          menuWidth: 500,
+          column: [{
+              label: 'ID',
+              prop: 'id',
+              searchSpan: 4,
+              // search: true,
+            },
+            {
+              label: '标题',
+              prop: 'title',
+              searchSpan: 4,
+              search: true,
+            },
+            {
+              label: '参与人数',
+              prop: 'enrollCount',
+              searchSpan: 4,
+              search: true,
+            },
+            {
+              label: '截止时间',
+              prop: 'endTime',
+              searchSpan: 4,
+              search: true,
+            }
+          ]
+        },
         // 表单列表
         data: [],
+        dataUser: [],
       }
     },
     mounted() {
@@ -229,11 +247,21 @@
       }
     },
     methods: {
+      getUser(page, params = {}) {
+        getPageUser(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+          const data = res.data.data;
+          this.pageUser.total = data.total;
+          this.dataUser = data.records;
+          this.loading = false;
+          this.selectionClear();
+        });
+      },
       userHandleClose() {
         this.dialogVisiblesUser = false
       },
       openUser(row) {
         this.dialogVisiblesUser = true
+        this.getUser(this.pageUser, params = {})
       },
       openDilog(row, type) {
         this.dialogVisibles = true
@@ -380,4 +408,4 @@
   .el-pagination {
     margin-top: 20px;
   }
-</style>
+</style>
\ No newline at end of file

--
Gitblit v1.9.3