From dd6942743fa3936a1bbcbe6f4102c028d8021d5c Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 05 六月 2023 16:56:35 +0800
Subject: [PATCH] 完善高级查询组件

---
 Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue |   49 ++++++++++++++++++++++++++++---------------------
 1 files changed, 28 insertions(+), 21 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue b/Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue
index afa7747..11869f4 100644
--- a/Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue
+++ b/Source/UBCS-WEB/src/components/code-dialog-page/referSelectBtmAttrDialog.vue
@@ -60,6 +60,7 @@
                     addBtn: false,
                     menu: false,
                     // refreshBtn: false,
+                    disablePage: false,
                     searchShowBtn: false,
                     columnBtn: false,
                     dialogClickModal: false,
@@ -84,11 +85,11 @@
                     },{
                         label: '灞炴�ч暱搴�',
                         search: false,
-                        prop: 'attrLength'
+                        prop: 'attributeLength'
                     },{
                         label: '灞炴�х被鍨�',
                         search: false,
-                        prop: 'attrType'
+                        prop: 'attrDataTypeText'
                     }],
                 },
                 crudData: [],
@@ -114,32 +115,38 @@
             this.options = params;
             this.crudParams.crudLoading = true;
             // 璋冪敤api璇锋眰
-            const data = {
-                total: 2,
-                data: [{
-                    id: 'test',
-                    name: '娴嬭瘯',
-                    attrLength: 11,
-                    attrType: '瀛楃涓�'
-                }, {
-                    id: 'test1',
-                    name: '娴嬭瘯1',
-                    attrLength: 12,
-                    attrType: '鏁板瓧'
-                }]
-            }
+            // const data = {
+            //     total: 2,
+            //     data: [{
+            //         id: 'test',
+            //         name: '娴嬭瘯',
+            //         attrLength: 11,
+            //         attrType: '瀛楃涓�'
+            //     }, {
+            //         id: 'test1',
+            //         name: '娴嬭瘯1',
+            //         attrLength: 12,
+            //         attrType: '鏁板瓧'
+            //     }]
+            // }
             let param = {};
             // 澶氫釜conditionMap杩欐牱浼犲弬
             if(this.crudParams.crudQuery){
-                Object.keys(crudParams.crudQuery).forEach(key=>{
-                    param['conditionMap['+key+']'] = crudParams.crudQuery[key];
+                Object.keys(this.crudParams.crudQuery).forEach(key=>{
+                    param['conditionMap['+key+']'] = this.crudParams.crudQuery[key];
                 });
             }
+            param['conditionMap[btmTypeId]'] = this.options.btmTypeId;
             gridAttributesByBtmId(1,-1,param).then(res=>{
-                console.log(res);
+                const data = res.data;
+                console.log(data.data.records);
+                this.crudParams.crudData = data.data.records;
+                this.crudParams.crudLoading = false;
+                this.$nextTick(()=>{
+                    this.$refs[this.crudParams.ref].doLayout();
+                })
             })
-            this.crudParams.crudData = data.data;
-            this.crudParams.crudLoading = false;
+            
         },
         selectedBtmTypeAttrSrchChange(params, done){
             this.crudParams.crudQuery = params;

--
Gitblit v1.9.3