125 lines
3.2 KiB
JavaScript
125 lines
3.2 KiB
JavaScript
import {useAmis} from "../../components/constants.js";
|
|
|
|
useAmis((information) => {
|
|
return {
|
|
"type": "wrapper",
|
|
"size": "none",
|
|
"body": [
|
|
{
|
|
"type": "wrapper",
|
|
"body": [
|
|
{
|
|
"items": [
|
|
{
|
|
"label": "资源名称",
|
|
"span": 3,
|
|
"content": "文件资源"
|
|
},
|
|
{
|
|
"content": "FIle",
|
|
"span": 3,
|
|
"label": "资源描述"
|
|
}
|
|
],
|
|
"type": "property"
|
|
},
|
|
{
|
|
"type": "divider"
|
|
},
|
|
{
|
|
"title": "资源类型定义",
|
|
"type": "property",
|
|
"items": [
|
|
{
|
|
"span": 3,
|
|
"label": "资源类型",
|
|
"content": "文件"
|
|
},
|
|
{
|
|
"span": 3,
|
|
"content": {
|
|
"type": "flex",
|
|
"alignItems": "start",
|
|
"items": [
|
|
{
|
|
"label": "arthas-bin.zip",
|
|
"api": {
|
|
"method": "get",
|
|
"url": "${base}/upload/download/3557040775256064",
|
|
"headers": {
|
|
"token": "${token|default:undefined}"
|
|
},
|
|
"responseType": "blob"
|
|
},
|
|
"actionType": "ajax",
|
|
"type": "action",
|
|
"level": "link"
|
|
}
|
|
],
|
|
"direction": "column"
|
|
},
|
|
"label": "文件"
|
|
},
|
|
{
|
|
label: '格式详情',
|
|
content: {
|
|
type: 'editor',
|
|
language: 'json',
|
|
value: {
|
|
"name": "arthas-bin.zip",
|
|
"size": 1024,
|
|
"type": "application/zip",
|
|
"lastModified": 1673920000000,
|
|
"lastModifiedDate": "2023-01-14T14:40:00.000Z",
|
|
"webkitRelativePath": ""
|
|
}
|
|
},
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "divider"
|
|
},
|
|
{
|
|
"items": [
|
|
{
|
|
"label": "格式类型",
|
|
"content": "Json"
|
|
}
|
|
],
|
|
"type": "property",
|
|
"title": "资源格式定义"
|
|
}
|
|
],
|
|
"size": "none"
|
|
},
|
|
{
|
|
"type": "divider"
|
|
},
|
|
{
|
|
"items": [
|
|
{
|
|
"label": "创建人",
|
|
"span": 2,
|
|
"content": "administrator@eshore.com"
|
|
},
|
|
{
|
|
"content": "2025-01-14 14:41:56",
|
|
"label": "创建时间"
|
|
},
|
|
{
|
|
"span": 2,
|
|
"content": "administrator@eshore.com",
|
|
"label": "修改人"
|
|
},
|
|
{
|
|
"content": "2025-01-14 14:41:56",
|
|
"label": "修改时间"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
]
|
|
}
|
|
})
|