Commit 2891477eadc63874ed5dc5409e398ee9832dbfa9
Merge branch 'dev-fix-ww' into 'main_dev'
fix(public request): 修复公共接口查询设备属性无法多选 See merge request yunteng/thingskit-view!51
Showing
2 changed files
with
6 additions
and
1 deletions
| @@ -104,7 +104,11 @@ export const customRequest = async (request: RequestConfigType) => { | @@ -104,7 +104,11 @@ export const customRequest = async (request: RequestConfigType) => { | ||
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | const body = transformBodyValue(Body, requestParamsBodyType) | 106 | const body = transformBodyValue(Body, requestParamsBodyType) |
| 107 | - | 107 | + |
| 108 | + if (Params.keys && Params?.keys?.length) { | ||
| 109 | + Params.keys = (Params.keys || [] as any).join(',') | ||
| 110 | + } | ||
| 111 | + | ||
| 108 | return customHttp.request<any>({ | 112 | return customHttp.request<any>({ |
| 109 | url: requestUrl, | 113 | url: requestUrl, |
| 110 | baseURL: getOriginUrl(requestOriginUrl!), | 114 | baseURL: getOriginUrl(requestOriginUrl!), |
| @@ -197,6 +197,7 @@ export const useDynamicPublicForm = (paramsItemList: Ref<ParamsItemType[]>) => { | @@ -197,6 +197,7 @@ export const useDynamicPublicForm = (paramsItemList: Ref<ParamsItemType[]>) => { | ||
| 197 | options: unref(optionsSet[BuiltInVariable.KEYS]), | 197 | options: unref(optionsSet[BuiltInVariable.KEYS]), |
| 198 | labelField: 'name', | 198 | labelField: 'name', |
| 199 | valueField: 'identifier', | 199 | valueField: 'identifier', |
| 200 | + multiple: true, | ||
| 200 | onUpdateValue(value) { | 201 | onUpdateValue(value) { |
| 201 | params[BuiltInVariable.KEYS] = value | 202 | params[BuiltInVariable.KEYS] = value |
| 202 | } | 203 | } |