From 413ef95ca08807adb5d01de11ecc3ab8d11bb9a9 Mon Sep 17 00:00:00 2001
From: wang1 <844966816@qq.com>
Date: 星期三, 14 六月 2023 14:58:56 +0800
Subject: [PATCH] 模板流程定义、模板阶段定义代码提交

---
 Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
index 594e1ac..9558693 100644
--- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
+++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
@@ -56,16 +56,10 @@
       page: {
         pageSize: 10,
         currentPage: 1,
-        total: 0
+        total: this.referConfig.options.data?this.referConfig.options.data.length :0
       },
       data:this.referConfig.options.data || [],
       selectionList: [],
-      objTree: {//鐢ㄤ簬琛ㄦ牸鏍戯紝鐩墠杩樻病鍔犱笂浣跨敤
-        keyId: 'oid',//鏍戝舰id瀛楁鍚嶇О
-        keyPid: 'parentSaleProduct',//鏍戝舰鐖秈d瀛楁鍚嶇О
-        title: 'id',//浠ユ爲褰㈠紡鏄剧ず鐨勫瓧娈�
-        defaultShow: false//榛樿鎶樺彔
-      },
       option: {
         addBtn: false,
         height: this.referConfig.options.height ? this.referConfig.options.height : 475,
@@ -90,6 +84,10 @@
     console.log(this.referConfig)
   },
   mounted() {
+    if(this.referConfig.options.page){
+      this.page.pageSize=this.referConfig.options.page.limit || this.referConfig.options.page.pageSize;
+      this.page.currentPage=this.referConfig.options.page.page || this.referConfig.options.page.currentPage;
+    }
   },
   computed:{
     valueInfo:function (){
@@ -200,10 +198,10 @@
     },
     setValue(){
       if(this.selectionList.length==0){
-        this.$message.error( '娌℃湁閫夋嫨鏁版嵁');
+        this.$message.warning( '娌℃湁閫夋嫨鏁版嵁');
         return false;
       }else if(this.selectionList.length>1 && !this.isMuti){
-        this.$message.error( '姣忔鍙兘閫夋嫨涓�鏉℃暟鎹�');
+        this.$message.warning( '姣忔鍙兘閫夋嫨涓�鏉℃暟鎹�');
         return false;
       }
 
@@ -261,7 +259,7 @@
     },
     selectionClear() {
       this.selectionList = [];
-      this.$refs.referCrud.toggleSelection();
+      this.$refs.referCrud.clearSelection();
     },
     refreshChange() {
       this.onLoad(this.page, this.query);

--
Gitblit v1.9.3