Commit 9a30f414 by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

fix(@gms/gms-plugin-billexpand): 基础数据,分组列表结果错误

See merge request GFP/RBC/rbc-frontend!235
parents 833f935a 2359edbd
......@@ -258,7 +258,7 @@ export default {
getBaseData(postData, urlParam, isInit = false) {
let url = ''
let postParam = {}
if (this.isFilter && !isInit) {
if (this.isFilter && !isInit && this.structtype != 1) {
let newParam = {}
if (this.bill && this.bill.getBuillData) {
delete postData.expression
......
......@@ -393,9 +393,10 @@ export default {
}
getGroupNames([treeData])
postData = {...postData, ...{
groupObjectCode: groupname,
groupTableName: this.groupTableName.tableName,
showSubGroup: true,
groupFieldName: this.groupTableName.groupFieldName,
groupname: groupname,
groupNames: objectCodes,
}}
}
......
......@@ -211,8 +211,10 @@ export default {
getGroupNames([treeData])
postData = {
groupFieldName: this.groupFieldName,
groupname: this.treeNode.attributes.objectcode,
groupNames: objectCodes,
groupObjectCode: this.treeNode.attributes.objectcode,
groupTableName: this.groupTableName.tableName,
// groupNames: objectCodes,
showSubGroup: true,
tableName: this.tableName,
pagination: true,
offset: (this.pageNo - 1) * this.pageSize,
......
......@@ -104,23 +104,13 @@ export default {
}
const postData = {
tableName: this.tableName,
tableName: this.structtype == 1 ? this.groupTableName.tableName : this.tableName,
queryDataStructure: 'ALL',
authType: this.authType,
versionDate: this.versionDate,
expression: this.filterFormular,
'BI-SYNTAX': null
}
if (this.structtype === 1) {
if (this.groupTableName.define.showFields) {
const relevance = this.groupTableName.define.showFields.find(item => item.columnName === this.groupTableName.groupFieldName)
let relevanceField = ''
if (relevance) {
relevanceField = relevance.mapping? relevance.mapping.split('.')[0]: ''
postData.tableName = relevanceField
}
}
}
const { data } = await this.getBaseData(postData, '/baseData/data/tree')
getTreeDataMap(data.rows)
this.$emit('init-tree', this.treeDataMap, this.groupTableName.groupFieldName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment