From 8c3067dc58a8affe8317c357a2405ff33dc30cd4 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期三, 13 九月 2023 16:29:10 +0800
Subject: [PATCH] 修改参照样式

---
 Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue   |   12 +++++++-----
 Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue |   13 +++++++------
 Source/UBCS-WEB/src/App.vue                                 |    3 +++
 3 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/Source/UBCS-WEB/src/App.vue b/Source/UBCS-WEB/src/App.vue
index ea73e65..0c78402 100644
--- a/Source/UBCS-WEB/src/App.vue
+++ b/Source/UBCS-WEB/src/App.vue
@@ -31,6 +31,9 @@
 .avue-dialog .el-dialog__body {
   margin-bottom: 10px
 }
+.avue-dialog__footer{
+  z-index: 1000;
+}
 .avue-crud__pagination {
   padding: 10px 0 2px 20px;
 }
diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
index 66e133e..4427e05 100644
--- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
+++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
@@ -5,8 +5,8 @@
                :visible.sync="visible"
                top="0"
                class="avue-dialog avue-dialog--top"
-               :width="options.width|| '80%'">
-
+               :width="options.width|| '80%'"
+               :height="options.height|| 'auto'">
       <avue-crud :option="option"
                  :table-loading="loading"
                  :data="data"
@@ -247,7 +247,7 @@
       this.selectionList.forEach((item,_index) =>{
         if(isMutiValue){
           var valueFieldArray = _that.props.value.split(",");
-          valueFieldArray.forEach((_itemField,_indexFiel)=>{
+          valueFieldArray.forEach((_itemField,_indexField)=>{
             value.push( (item[_itemField] || item['data'][_itemField]) + (_that.referConfig.valueSep?_that.referConfig.valueSep:' '));
           })
         }else {
@@ -313,14 +313,15 @@
           }
         }
         getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url, this.method).then(res => {
+          let data=[]
           if(res.data.records){
-            this.data = res.data.records
+            data = res.data.records
             this.page.total=res.data.total ;
           }else{
-            this.data = res.data.data.records;
+            data = res.data.data.records;
             this.page.total=res.data.data.total;
           }
-          this.data=this.data.map(item => {
+          this.data=data.map(item => {
             item.data=item.data || {}
             return {
               ...item
diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue
index 70ccbae..7bc31f2 100644
--- a/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue
+++ b/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue
@@ -5,7 +5,8 @@
                :visible.sync="visible"
                top="0"
                class="avue-dialog avue-dialog--top"
-               :width="options.width|| '80%'">
+               :width="options.width|| '80%'"
+               :height="options.height|| 'auto'">
       <avue-crud :option="option"
                  :table-loading="loading"
                  :data="data"
@@ -305,7 +306,7 @@
       this.selectionList.forEach((item,_index) =>{
         if(isMutiValue){
           var valueFieldArray = _that.props.value.split(",");
-          valueFieldArray.forEach((_itemField,_indexFiel)=>{
+          valueFieldArray.forEach((_itemField,_indexField)=>{
             value.push( (item[_itemField] || item['data'][_itemField]) + (_that.referConfig.valueSep?_that.referConfig.valueSep:' '));
           })
         }else {
@@ -371,14 +372,15 @@
           }
         }
         getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url).then(res => {
+          let data=[]
           if(res.data.records){
-            this.data = res.data.records
+            data = res.data.records
             this.page.total=res.data.total ;
           }else{
-            this.data = res.data.data.records;
+            data = res.data.data.records;
             this.page.total=res.data.data.total;
           }
-          this.data=this.data.map(item => {
+          this.data=data.map(item => {
             item.data=item.data || {}
             return {
               ...item

--
Gitblit v1.9.3