实现场景:
我想地址栏改变的时候刷新form表单值
存在的问题:
当前方案:
请粘贴你当前方案的完整 amis schema 代码...
{
"type": "fieldset",
"collapsable": true,
"id": "u:374db707e72d",
"body": [
{
"static": true,
"dsType": "api",
"initApi": {
"data": {
"companyCode": "${companyCode}",
"reportNumber": "${reportNumber}"
},
"method": "post",
"adaptor": "",
"messages": {},
"requestAdaptor": "",
"url": "/api/rpa/survey-info/getCompleteSurveyInfo"
},
"body": [
{
"columns": [
{
"id": "u:77d8b4bdd288",
"body": [
{
"keyboard": true,
"name": "reportNumber",
"step": 1,
"id": "u:cf03ca72aeff",
"label": "报案号",
"type": "input-text"
}
]
},
{
"id": "u:8fa7d359feef",
"body": [
{
"name": "entrustEntity",
"multiple": false,
"id": "u:00273cd2712b",
"label": "委托主体",
"source": {
"method": "get",
"adaptor": "",
"messages": {},
"requestAdaptor": "",
"url": "/api/system/ins-agency/tree"
},
"type": "select",
"valueField": "id",
"labelField": "name"
}
]
},
{
"id": "u:ff3b91bc63d6",
"body": [
{
"name": "carNumber",
"id": "u:d165b94b31de",
"label": "标的车牌号",
"type": "input-text"
}
]
},
{
"id": "u:119128636c6b",
"body": [
{
"name": "reportInfo.reporter",
"id": "u:bc4dd25961b5",
"label": "联系人",
"type": "input-text"
}
]
}
],
"wrapperCustomStyle": {
"margin-bottom": "10px"
},
"id": "u:624d2e730b4f",
"type": "grid"
},
{
"columns": [
{
"id": "u:954ade5aee95",
"body": [
{
"name": "reportInfo.reporter_phone",
"id": "u:7cd50424a1c7",
"label": "联系人电话",
"type": "input-text"
}
]
},
{
"id": "u:efab65328b0c",
"body": [
{
"name": "reportInfo.accident_location",
"id": "u:6efabc1f00d2",
"label": "案发地址",
"type": "input-text"
}
]
}
],
"wrapperCustomStyle": {
"margin-bottom": "10px"
},
"id": "u:5c651e6129a4",
"type": "grid"
},
{
"columns": [
{
"id": "u:b4db8f164373",
"body": [
{
"name": "exhibitionEntity",
"multiple": false,
"id": "u:eca8de1958df",
"label": "展业机构",
"source": {
"method": "get",
"url": "/api/system/organization/list"
},
"type": "select",
"valueField": "id",
"labelField": "name"
}
]
},
{
"id": "u:e3f07240d26f",
"body": [
{
"name": "wordOrgan",
"multiple": false,
"id": "u:4fb49fb8861b",
"label": "作业机构",
"source": {
"method": "get",
"url": "/api/system/organization/list"
},
"type": "select",
"valueField": "id",
"labelField": "name"
}
]
},
{
"id": "u:7660a0aba7da",
"body": [
{
"name": "wordStaff.name",
"id": "u:ab793500df97",
"label": "作业人员",
"type": "input-text"
}
]
},
{
"id": "u:295c20b2109e",
"body": [
{
"name": "taskState",
"multiple": false,
"id": "u:6f578872dce6",
"label": "查勘状态",
"source": {
"method": "get",
"url": "/api/system/dict/dictItem?dictCode=task_state"
},
"type": "select",
"valueField": "value",
"labelField": "name"
}
]
}
],
"wrapperCustomStyle": {
"margin-bottom": "10px"
},
"id": "u:d6bc5ea0ecc0",
"type": "grid"
},
{
"columns": [
{
"id": "u:1559ce284dc4",
"body": [
{
"name": "caseStatus",
"multiple": false,
"id": "u:79bdf1169ae8",
"label": "整案状态",
"source": {
"method": "get",
"url": "/api/system/dict/dictItem?dictCode=case_status"
},
"type": "select",
"valueField": "value",
"labelField": "name"
}
]
},
{
"id": "u:e12b6e6e60b3",
"body": [
{
"maxScale": 200,
"name": "flowImage",
"style": {
"display": "inline-block"
},
"id": "u:57c277eda2f7",
"label": "流程图",
"minScale": 50,
"type": "static-image",
"enlargeAble": true
}
]
}
],
"wrapperCustomStyle": {
"margin-bottom": "10px"
},
"id": "u:8aa54264df5b",
"type": "grid"
},
{
"columns": [
{
"wrapperCustomStyle": {},
"id": "u:b03b69ec6c53",
"body": [
{
"level": "danger",
"wrapperCustomStyle": {
"float": "right"
},
"onEvent": {
"click": {
"actions": [
{
"actionType": "drawer",
"ignoreError": false,
"drawer": {
"size": "xl",
"resizable": false,
"className": "app-popover :AMISCSSWrapper",
"id": "u:490b5f55e5fd",
"position": "left",
"body": [
{
"mode": "horizontal",
"debug": false,
"static": true,
"dsType": "api",
"resetAfterSubmit": true,
"initApi": {
"method": "get",
"adaptor": "",
"messages": {},
"requestAdaptor": "",
"url": "/api/rpa/survey-info/${specificId}"
},
"id": "u:f598f3a600f2",
"body": [
{
"name": "readOnly",
"id": "u:815b7c9e3fda",
"type": "hidden",
"value": true
},
{
"name": "isCreate",
"id": "u:2ebd26a56375",
"type": "hidden",
"value": true
},
{
"initFetchSchema": true,
"dsType": "api",
"schemaApi": {
"method": "get",
"adaptor": "",
"messages": {},
"requestAdaptor": "",
"url": "/api/page/pageBlock?pageId=111100"
},
"id": "u:a0ccbfbb043a",
"body": [],
"type": "service"
}
],
"type": "form",
"title": "表单",
"feat": "View",
"actions": [
{
"level": "primary",
"onEvent": {
"click": {
"actions": [
{
"actionType": "submit",
"componentId": "u:f598f3a600f2"
}
]
}
},
"label": "提交",
"type": "button"
}
]
},
{
"filterSettingSource": [
"createBy",
"createTime",
"deleted",
"handleInfo",
"id",
"remarks",
"reportNumber",
"status",
"taskTableId",
"updateBy",
"updateTime"
],
"syncLocation": false,
"columns": [
{
"name": "reportNumber",
"id": "u:fbda764df7e7",
"label": "报案号",
"type": "text"
},
{
"name": "status",
"id": "u:80727376bb0c",
"label": "状态",
"source": {
"method": "get",
"adaptor": "",
"messages": {},
"requestAdaptor": "",
"url": "/api/system/dict/dictItem?dictCode=task_state"
},
"type": "mapping",
"valueField": "value",
"labelField": "name"
},
{
"name": "remarks",
"id": "u:99dd9e593650",
"label": "备注",
"type": "text"
},
{
"name": "handleInfo.name",
"id": "u:e41098c80fe6",
"label": "处理人",
"type": "text"
},
{
"name": "handleInfo.deptName",
"id": "u:33683816ca0f",
"label": "处理人机构",
"type": "text"
},
{
"name": "createTime",
"format": "YYYY-MM-DD HH:MM",
"id": "u:475171d5e2a3",
"label": "时间",
"type": "date"
}
],
"itemActions": [],
"bulkActions": [],
"id": "u:b9dd3e76f6dd",
"api": {
"data": {
"taskTableId": "${id}"
},
"method": "get",
"adaptor": "",
"messages": {},
"requestAdaptor": "",
"url": "/api/system/task-log/page"
},
"type": "crud",
"title": "查勘流水日志"
}
],
"type": "drawer",
"title": "查勘详细",
"actions": []
}
}
]
}
},
"id": "u:18b315b2610c",
"label": "点击查看详情",
"type": "button"
}
]
}
],
"wrapperCustomStyle": {
"margin-bottom": "10px"
},
"id": "u:1fa85328464d",
"type": "grid",
"align": "right"
}
],
"type": "form",
"title": "",
"mode": "horizontal",
"id": "u:d1c02e831a5e",
"feat": "View",
"actions": [],
"wrapWithPanel": false
}
],
"title": "查勘信息"
}
1条答案
按热度按时间wn9m85ua1#
👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.