egg-born-module-a-base-sync
Advanced tools
Comparing version 4.8.40 to 4.8.41
@@ -286,4 +286,21 @@ const require3 = require('require3'); | ||
async translateAreaScopeValue(/* { atomClass, areaScopeMeta, atomAreaKey, atomAreaValue }*/) { | ||
return { error: this.ctx.text('NotImplemented') }; | ||
async translateAreaScopeValue({ /* atomClass,*/ areaScopeMeta, atomAreaKey, atomAreaValue }) { | ||
const count = atomAreaKey.length; | ||
const title = []; | ||
const titleLocale = []; | ||
for (let i = 0; i < count; i++) { | ||
const key = atomAreaKey[i]; | ||
const code = atomAreaValue[i]; | ||
const schema = areaScopeMeta.schemas[key]; | ||
const dictItem = await this.ctx.bean.dict.findItem({ | ||
dictKey: schema.ebParams.dictKey, | ||
code, | ||
options: { separator: schema.ebParams.separator }, | ||
}); | ||
title.push(dictItem ? dictItem.titleFull : ''); | ||
titleLocale.push(dictItem ? dictItem.titleLocaleFull : ''); | ||
} | ||
// ok | ||
return { title, titleLocale }; | ||
// return { error: this.ctx.text('NotImplemented') }; | ||
} | ||
@@ -290,0 +307,0 @@ |
{ | ||
"name": "egg-born-module-a-base-sync", | ||
"version": "4.8.40", | ||
"version": "4.8.41", | ||
"title": "Base", | ||
@@ -5,0 +5,0 @@ "eggBornModule": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3641642
60050