From f8d4f3017991aba4186fc06c06bd3b68693f89d1 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期四, 15 六月 2023 18:22:21 +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.10.0