Commit a073b20fe788c22000f4a8eec7c28437f6895cfc

Authored by ww
1 parent c909411a

fix(public request): 修复公共接口查询设备属性无法多选

@@ -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 }