From 27933810f2cbffaedabe10ff811ac2994dab8b21 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 25 八月 2023 10:31:54 +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..bdce396 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