Skip to content

Commit

Permalink
[Bug]: 累计汇总日期、日期时间字段显示异常 #5717
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Dec 29, 2023
1 parent 5573004 commit 649a779
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/service-object-graphql/src/getGraphqlActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ export async function translateToUI(objConfig, doc, userSession: any, selectorFi
try {
if (_.has(doc, name)) {
const fType = field.type;
const dataType = field.data_type;
if (fType == "select") {
let label = "";
let map = {};
Expand Down Expand Up @@ -717,7 +718,7 @@ export async function translateToUI(objConfig, doc, userSession: any, selectorFi
} else if (fType == "formula") {
displayObj[name] = formatBasicFieldValue(field.data_type, field, doc[name], objConfig, userSession);
} else if (fType == "summary") {
displayObj[name] = formatBasicFieldValue('number', field, doc[name], objConfig, userSession);
displayObj[name] = formatBasicFieldValue(dataType, field, doc[name], objConfig, userSession);
} else if (fType == "image" || fType == "file" || fType === 'avatar') {
const optionsStr = fType == "file" ? '?download=1' : ''
let fileValue: any = null;
Expand Down

0 comments on commit 649a779

Please sign in to comment.