fix: 修复通知模板-钉钉机器人参数
This commit is contained in:
parent
fdf8bf055d
commit
0bb5991231
|
@ -47,3 +47,7 @@ export const getClusters = () =>
|
|||
export const getPluginList = (data: any) => server.post('/plugin/driver/_query/no-paging', data)
|
||||
|
||||
export const getPluginConfig = (id: string) => server.get(`/plugin/driver/${id}/description`)
|
||||
|
||||
export const getCommandsByAccess = (id: string) => server.get(`/gateway/device/${id}/commands`)
|
||||
|
||||
export const getCommandsDevicesByAccessId = (id: string, data: any) => server.post(`/gateway/device/${id}/command/QueryDevicePage`, data)
|
||||
|
|
|
@ -7,6 +7,8 @@ export const uploadFile = `${BASE_API_PATH}/plugin/driver/upload`
|
|||
|
||||
export const add = (data: any) => post('/plugin/driver', data)
|
||||
|
||||
export const update = (data: any) => patch('/plugin/driver', data)
|
||||
|
||||
export const removeFn = (id: string) => remove(`/plugin/driver/${id}`)
|
||||
|
||||
export const detail = (id: string) => get(`/plugin/driver/${id}`)
|
||||
|
@ -19,7 +21,7 @@ export const detail = (id: string) => get(`/plugin/driver/${id}`)
|
|||
*/
|
||||
export const getProductsById = (id: string) => get(`/plugin/driver/${id}/products`)
|
||||
|
||||
export const savePluginData = (type: string, pluginId: string, internalId: string, externalId: string ) => patch(`/plugin/mapping/${type}/${pluginId}/${internalId}`, externalId)
|
||||
export const savePluginData = (type: string, pluginId: string, internalId: string, externalId: string ) => patch(`/plugin/mapping/${type}/${pluginId}/${internalId}`, externalId, { headers: {'Content-Type': "text/plain"}})
|
||||
|
||||
export const getPluginData = (type: string, pluginId: string, internalId: string ) => get(`/plugin/mapping/${type}/${pluginId}/${internalId}`)
|
||||
|
||||
|
@ -27,4 +29,6 @@ export const getPublic = (id: string, path: string) => get(`/plugin/driver/${id}
|
|||
|
||||
export const getTypes = () => get(`/dictionary/internal-plugin-type/items`)
|
||||
|
||||
export const vailIdFn = (id: string ) => get(`/plugin/driver/id/_validate`, { id })
|
||||
export const vailIdFn = (id: string ) => get(`/plugin/driver/id/_validate`, { id })
|
||||
|
||||
export const getProductByPluginId = (id: string) => get(`/plugin/driver/${id}/products`)
|
|
@ -143,7 +143,7 @@ const handleTypeChange = (record: IVariable) => {
|
|||
record.format = 'timestamp';
|
||||
break;
|
||||
case 'double':
|
||||
record.format = '%.xf';
|
||||
record.format = '%.2f';
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1219,6 +1219,10 @@ const handleSubmit = () => {
|
|||
delete formData.value.template.ttsmessage;
|
||||
}
|
||||
|
||||
if (formData.value.provider === 'dingTalkRobotWebHook' && formData.value.template?.messageType === 'text') {
|
||||
formData.value.template.text!.content = formData.value.template.message as string
|
||||
}
|
||||
|
||||
formRef.value?.validate()
|
||||
.then(async () => {
|
||||
btnLoading.value = true;
|
||||
|
|
Loading…
Reference in New Issue