From 4522ab3fe8bd45ee753ef187448c1e884bbc601f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 18 Apr 2024 11:09:27 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_web

---
 src/views/article/components/publicSignUpChild.vue |   48 +++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 41 insertions(+), 7 deletions(-)

diff --git a/src/views/article/components/publicSignUpChild.vue b/src/views/article/components/publicSignUpChild.vue
index 3c68b2b..68dfb45 100644
--- a/src/views/article/components/publicSignUpChild.vue
+++ b/src/views/article/components/publicSignUpChild.vue
@@ -1,8 +1,8 @@
 <template>
-
   <div>
-    <el-dialog title="" append-to-body :visible.sync="dialogVisiblesUser" width="50%" :before-close="userHandleClose">
-      <avue-crud ref="DataUser" :option="userOption" :data="dataUser" v-model="dataUser" :page="pageUser"></avue-crud>
+    <el-dialog title="" append-to-body :visible.sync="dialogVisiblesUser" width="80%" :before-close="userHandleClose">
+      <avue-crud ref="DataUser" :option="userOption" :data="dataUser" v-model="dataUser" :page="pageUser"
+        @search-change="searchChange" @search-reset="searchReset"></avue-crud>
     </el-dialog>
   </div>
 
@@ -112,11 +112,32 @@
         // 选择行
         selectionList: [],
         userOption: {
-          addBtn: false,
+          labelWidth: 96,
+          searchLabelWidth: 96,
+          searchShow: true,
+          searchMenuSpan: 3,
+          // menuWidth: 500,
           menu: false,
+
+          height: "auto",
+          calcHeight: 54,
+          dialogWidth: 950,
+          tip: false,
+          border: true,
+          //stripe:true,
+          index: true,
+          editBtn: false,
+          addBtn: false,
+          viewBtn: false,
+          selection: true,
+          delBtn: false,
+          excelBtn: true,
+          dialogClickModal: false,
+          header: false,
           column: [{
               label: '姓名',
-              prop: 'name'
+              prop: 'name',
+              search: true,
             }, {
               label: '头像',
               type: 'upload',
@@ -131,7 +152,8 @@
             },
             {
               label: '手机',
-              prop: 'phone'
+              prop: 'phone',
+              search: true,
             }, {
               label: '小区',
               prop: 'aoiName'
@@ -164,6 +186,17 @@
       }
     },
     methods: {
+      searchReset() {
+        this.query = {}
+        this.getUser(this.userPage)
+      },
+
+      searchChange(params, done) {
+        this.query = params
+        this.userPage.currentPage = 1
+        this.getUser(this.userPage, params)
+        done()
+      },
       init(data) {
         this.houseCode = data.houseCode
         this.onLoad(this.page)
@@ -174,8 +207,9 @@
           this.pageUser.total = data.total
           this.dataUser = data.records
           this.dataUser.forEach(item => {
-            if (item.avatar.length > 0) {
+            if (item.avatar) {
               item.avatar = website.minioUrl + item.avatar
+              console.log("=avatar====>", item.avatar)
             }
             if (item.signaturePath && item.signaturePath.length > 0) {
               item.signaturePath = website.minioUrl + item.signaturePath

--
Gitblit v1.9.3