组件调用配置项目: {type:’dailog’Show:trueUrl:’’ methodType:"post", paramType:’post’ dateType:’date’query:{id:’’,pageSize:100,pageNo:1,startTime:’’,endTime:’’} }
配置项说明:
配置项 |
含义 |
默认值 |
是否必填 |
type |
预览方式;dialog:弹框预览,其他:页面嵌入预览 |
页面嵌入预览 |
|
show |
控制预览弹框的显隐,当type=dialog时,必填 |
|
type=dialog时,必填 |
url |
图片列表接口地址 |
|
必填 |
title |
预览数据标题 |
|
|
methodType |
接口请求类型,post,put,get等 |
get |
|
paramType |
接口参数类型,body,params |
params |
|
dateType |
时间组件类型 year/month/date/dates/months/years/week/datetime/datetimerange/daterange/monthrange |
不为空时,默认date, 未配置时,无时间选择,请求所有数据
|
|
dateTime |
时间组件初始时间 |
未设置初始时间,默认显示当前日期 |
|
responseTimeType |
返回列表中的时间格式 1:直接使用,不做转格式处理 2:返回实时时间戳,转格式处理 3:返回时间戳,需要*1000,在转格式处理 |
1 |
|
query |
请求参数 时间参数,根据dateType类型,进行配置, 其他参数根据接口进行配置 |
|
接口返回值:
返回值 | 含义 | ||
res.data.records | 返回图片列表 | ||
res.data.records[].ts | 时间 | ||
res.data.records[].imageURL | 图片地址 |