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 { ...@@ -258,7 +258,7 @@ export default {
getBaseData(postData, urlParam, isInit = false) { getBaseData(postData, urlParam, isInit = false) {
let url = '' let url = ''
let postParam = {} let postParam = {}
if (this.isFilter && !isInit) { if (this.isFilter && !isInit && this.structtype != 1) {
let newParam = {} let newParam = {}
if (this.bill && this.bill.getBuillData) { if (this.bill && this.bill.getBuillData) {
delete postData.expression delete postData.expression
......
...@@ -393,9 +393,10 @@ export default { ...@@ -393,9 +393,10 @@ export default {
} }
getGroupNames([treeData]) getGroupNames([treeData])
postData = {...postData, ...{ postData = {...postData, ...{
groupObjectCode: groupname,
groupTableName: this.groupTableName.tableName,
showSubGroup: true,
groupFieldName: this.groupTableName.groupFieldName, groupFieldName: this.groupTableName.groupFieldName,
groupname: groupname,
groupNames: objectCodes,
}} }}
} }
......
...@@ -211,8 +211,10 @@ export default { ...@@ -211,8 +211,10 @@ export default {
getGroupNames([treeData]) getGroupNames([treeData])
postData = { postData = {
groupFieldName: this.groupFieldName, groupFieldName: this.groupFieldName,
groupname: this.treeNode.attributes.objectcode, groupObjectCode: this.treeNode.attributes.objectcode,
groupNames: objectCodes, groupTableName: this.groupTableName.tableName,
// groupNames: objectCodes,
showSubGroup: true,
tableName: this.tableName, tableName: this.tableName,
pagination: true, pagination: true,
offset: (this.pageNo - 1) * this.pageSize, offset: (this.pageNo - 1) * this.pageSize,
......
...@@ -104,23 +104,13 @@ export default { ...@@ -104,23 +104,13 @@ export default {
} }
const postData = { const postData = {
tableName: this.tableName, tableName: this.structtype == 1 ? this.groupTableName.tableName : this.tableName,
queryDataStructure: 'ALL', queryDataStructure: 'ALL',
authType: this.authType, authType: this.authType,
versionDate: this.versionDate, versionDate: this.versionDate,
expression: this.filterFormular, expression: this.filterFormular,
'BI-SYNTAX': null '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') const { data } = await this.getBaseData(postData, '/baseData/data/tree')
getTreeDataMap(data.rows) getTreeDataMap(data.rows)
this.$emit('init-tree', this.treeDataMap, this.groupTableName.groupFieldName) 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