@steedos/service-plugin-amis 2.7.0-beta.8 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -353,6 +353,7 @@ module.exports = {
|
|
|
353
353
|
getSelectFieldOptions: {
|
|
354
354
|
async handler(ctx) {
|
|
355
355
|
const userSession = ctx.meta.user;
|
|
356
|
+
console.log("user===",userSession,userSession.spaceId);
|
|
356
357
|
const { objectName, fieldName } = ctx.params;
|
|
357
358
|
const lng = userSession.language || "zh-CN";
|
|
358
359
|
const objectConfig = await objectql.getObjectConfig(objectName);
|
|
@@ -369,7 +370,7 @@ module.exports = {
|
|
|
369
370
|
referenceTo = 'space_users';
|
|
370
371
|
reference_to_field = 'user'
|
|
371
372
|
}
|
|
372
|
-
const records = await objectql.getObject(referenceTo).find({filters: [[]]})
|
|
373
|
+
const records = await objectql.getObject(referenceTo).find({filters: [["space","=",userSession.spaceId]]})
|
|
373
374
|
return _.map(records, (record)=>{
|
|
374
375
|
return {
|
|
375
376
|
label: record[objectConfig._NAME_FIELD_KEY || 'name'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.7.0
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:tailwind-base && yarn build:tailwind",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "2f1586ea4f8af5b93753878e96f1f48adbef31a7",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|