We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
增删改查组件,刷新页面之后新增按钮和导出按钮消失 请用一段清晰简洁的文字描述问题是什么...
可以的话,尽可能提供截图或视频来补充描述你的问题...
sdk
npm
其他
amis schema
<template> <div class="app-container" ref="box"></div> </template> <script> /** * @file 网站管理 * @desc 页面 **/ export default { data() { return { dataJSON: { "type": "page", "id": "u:955d0a3dd086", "body": [ { "type": "flex", "id": "u:1829d2006972", "className": "p-1", "items": [ { "type": "container", "body": [ { "type": "crud", "syncLocation": false, "api": { "method": "post", "url": "https://microservice.xxx.xxx.com/api/gateway/v2/request", "messages": { }, "requestAdaptor": "api.body = { \"s\": \"\", \"o\": \"\" };\r\nconsole.log(api.data);\r\nconst s = security.encrypt(JSON.stringify(api.data), 'facd81g656fcd8p7das4d5a65sda7lkh6dfa81gf4ik');\r\nconst o = security.encrypt(\"{\\\"Os\\\":\\\"\\\",\\\"DeviceId\\\":\\\"Utility\\\",\\\"AppVer\\\":\\\"0\\\"}\", 'facd81g656fcd8p7a7lkh6dfdas1d3sa2a81gf4ik');\r\napi.body.s = s;\r\napi.body.o = o;\r\napi.data = api.body;\r\nreturn api;", "adaptor": "const resData = JSON.parse(security.decrypt(payload.r, 'facd81g656fcd8p7a7lkh6dfd64as5d4sada81gf4ik'));\r\nvar cTotal = 0;\r\nif (resData.IsOK == '0') {\r\n if (resData.List.length <= 0) {\r\n cTotal = 0;\r\n }\r\n else {\r\n cTotal = resData.List[0].Total;\r\n }\r\n}\r\nreturn {\r\n status: resData.IsOK,\r\n msg: resData.Msg,\r\n data: resData.IsOK == '0' ? {\r\n items: resData.List,\r\n total: cTotal\r\n } : {}\r\n}", "dataType": "json", "headers": { "apiID": "ffff-1702456929851-107611272443-0944", "userKey": "39459C2987FC76CFD2BC3169917C9E6C2D6" }, "data": { "UserNo": "${UserNo}", "Page": "${page}", "Size": "${size}", "Func": "员工关爱-GetWebSiteInfo", "WebSiteName": "${SelWebSiteName}", "WebSiteType": "${SelWebSiteType}", "HasSearchFunction": "${SelHasSearchFunction}", "GatherStatus": "${SelGatherStatus}", "WebsiteTerritory": "${WebsiteTerritory}", "SelWebSiteAddress": "${SelWebSiteAddress}" } }, "columns": [ { "type": "text", "label": "序号", "name": "Rn", "id": "u:799bf1a08e6a" }, { "type": "text", "label": "网站名称", "name": "WebSiteName", "id": "u:b8a6e5e830fd" }, { "type": "operation", "label": "网站地址", "name": "WebSiteAddress", "id": "u:ba6d942e69b0", "buttons": [ { "type": "link", "value": "${WebSiteAddress}", "id": "u:fb38b5fe5acb", "href": "${WebSiteAddress}", "body": "网站链接", "blank": true } ] }, { "type": "text", "label": "网站描述", "name": "WebSiteDescription", "id": "u:574ba41f9553" }, { "type": "text", "label": "网站类型", "name": "WebSiteType", "id": "u:574ba41f9d33" }, { "type": "text", "label": "网站属地", "id": "u:574ba41f9d33", "name": "WebsiteTerritory" }, { "type": "text", "label": "搜索功能", "name": "HasSearchFunction", "id": "u:d50b42077e5e" }, { "type": "text", "label": "采集状态", "name": "GatherStatus", "id": "u:3ace65e8bff4" }, { "type": "text", "label": "无法采集原因", "name": "GatherFailReason", "id": "u:3ace65485488" }, { "type": "text", "label": "编辑人", "id": "u:4643190fa2ea", "name": "EditBy" }, { "type": "date", "label": "编辑时间", "id": "u:fc1ee9085018", "name": "EditDate", "format": "YYYY-MM-DD HH:mm:ss" }, { "type": "operation", "label": "操作", "id": "u:f5c989bb6d34", "buttons": [ { "label": "编辑", "type": "button", "actionType": "dialog", "level": "link", "dialog": { "type": "dialog", "title": "编辑网站", "body": [ { "type": "form", "title": "表单", "body": [ { "label": "网站名称:", "type": "input-text", "name": "WebSiteName", "id": "u:bd8398e8f67a", "required": true }, { "type": "input-text", "label": "网站地址:", "name": "WebSiteAddress", "id": "u:ce66caeac863", "required": true }, { "type": "textarea", "label": "网站描述:", "name": "WebSiteDescription", "id": "u:bdaeea8c2ad4", "minRows": 3, "maxRows": 3, "showCounter": true, "maxLength": 250 }, { "type": "radios", "label": "网站类型:", "name": "WebSiteTypeId", "options": [ { "label": "文章", "value": "0" }, { "label": "视频", "value": "1" }, { "label": "论坛", "value": "2" } ], "id": "u:0975f0620405", "value": "0" }, { "type": "radios", "label": "网站属地:", "name": "WebsiteTerritoryId", "options": [ { "label": "大陆", "value": "0" }, { "label": "港澳台", "value": "1" }, { "label": "印度", "value": "2" }, { "label": "美国", "value": "3" } ], "id": "u:d05790ffeb23", "value": "4" }, { "type": "radios", "label": "搜索功能:", "name": "HasSearchFunctionId", "options": [ { "label": "包含", "value": "0" }, { "label": "不包含", "value": "1" } ], "id": "u:367b8344274c", "value": "0" } ], "api": { "url": "https://microservice.xxx.xxx.com/api/gateway/v2/request", "method": "post", "requestAdaptor": "api.body = { \"s\": \"\", \"o\": \"\" };\r\nconsole.log(\"编辑网站\");\r\nconsole.log(api.data);\r\nconst s = security.encrypt(JSON.stringify(api.data), 'facd81g656fcd8p7a7lkh6ddasds32135fa81gf4ik');\r\nconst o = security.encrypt(\"{\\\"Os\\\":\\\"\\\",\\\"DeviceId\\\":\\\"Utility\\\",\\\"AppVer\\\":\\\"0\\\"}\", 'facd81g656fcd8p7a7lkh6d354dsa35d1afa81gf4ik');\r\napi.body.s = s;\r\napi.body.o = o;\r\napi.data = api.body;\r\nreturn api;", "adaptor": "const resData = JSON.parse(security.decrypt(payload.r, 'facd81g656fcd8p7a7lkh6dfdasda3213a81gf4ik'));\r\nconsole.log(\"编辑网站返回结果\");\r\nconsole.log(resData);\r\nreturn {\r\n status: resData.IsOK,\r\n msg: resData.Msg,\r\n data: {\r\n }\r\n}", "messages": { }, "dataType": "json", "headers": { "apiID": "ffff-1702456641730-1077243514354143-0935", "userKey": "39459C2987FC76CFD2BC4313169C9E6C2D6" }, "data": { "WebSiteId": "${Id}", "WebSiteName": "${WebSiteName}", "WebSiteAddress": "${WebSiteAddress}", "WebSiteDescription": "${WebSiteDescription}", "WebSiteType": "${WebSiteTypeId}", "HasSearchFunction": "${HasSearchFunctionId}", "UserNo": "${UserNo}", "Func": "员工关爱-UpdateWebSiteInfo", "WebsiteTerritory": "${WebsiteTerritoryId}" } }, "id": "u:d6bdc703e0e5", "actions": [ { "type": "submit", "label": "提交", "primary": true } ] } ], "id": "u:bd93136ae0ec", "actions": [ { "type": "button", "actionType": "cancel", "label": "取消", "id": "u:73a9371c940b" }, { "type": "button", "actionType": "confirm", "label": "确定", "primary": true, "id": "u:81808478dfc2" } ], "showCloseButton": true, "closeOnEsc": false, "showErrorMsg": true, "showLoading": true, "size": "md" }, "id": "u:69550f3a226f" }, { "type": "button", "label": "删除", "level": "link", "className": "text-danger", "confirmText": "确定要删除?", "id": "u:bc475bca1324", "onEvent": { "click": { "weight": 0, "actions": [ { "ignoreError": false, "actionType": "ajax", "outputVar": "responseResult", "options": { }, "api": { "url": "https://microservice.xxx.xxx.com/api/gateway/v2/request", "method": "post", "requestAdaptor": "api.body = { \"s\": \"\", \"o\": \"\" };\r\nconsole.log(\"删除网站\");\r\nconsole.log(api.data);\r\nconst s = security.encrypt(JSON.stringify(api.data), 'facd81g656fcd8p7a7lkhdasd2316dfa81gf4ik');\r\nconst o = security.encrypt(\"{\\\"Os\\\":\\\"\\\",\\\"DeviceId\\\":\\\"Utility\\\",\\\"AppVer\\\":\\\"0\\\"}\", 'facd81g656fcd8p7a7lkh321ds35ad6dfa81gf4ik');\r\napi.body.s = s;\r\napi.body.o = o;\r\napi.data = api.body;\r\nreturn api;", "adaptor": "const resData = JSON.parse(security.decrypt(payload.r, 'facd81g656fcd8p7a7lkdasd2313h6dfa81gf4ik'));\r\nconsole.log(\"删除网站返回结果\");\r\nconsole.log(resData);\r\nreturn {\r\n status: resData.IsOK,\r\n msg: resData.Msg,\r\n data: {\r\n }\r\n}", "messages": { }, "dataType": "json", "headers": { "apiID": "ffff-1702456778702-10772432132143-0938", "userKey": "39459C2987FC76CFD2BC316213219C9E6C2D6" }, "data": { "WebSiteId": "${Id}", "UserNo": "${UserNo}", "Func": "员工关爱-DeleteWebSiteInfo" } } }, { "ignoreError": false, "actionType": "reload", "componentId": "u:353568352562", "args": { "resetPage": false } } ] } }, "feedback": "" } ] } ], "bulkActions": [ { "type": "button", "level": "danger", "label": "批量删除", "confirmText": "确定要删除?", "onEvent": { "click": { "weight": 0, "actions": [ { "ignoreError": false, "outputVar": "responseResult", "actionType": "ajax", "options": { }, "api": { "url": "https://microservice.xxx.xxx.com/api/gateway/v2/request", "method": "post", "requestAdaptor": "api.body = { \"s\": \"\", \"o\": \"\" };\r\nconsole.log(\"批量删除\");\r\nconsole.log(api.data);\r\nconst s = security.encrypt(JSON.stringify(api.data), 'facd81g656fcd8p7a7lkh6dfa81gf4ik');\r\nconst o = security.encrypt(\"{\\\"Os\\\":\\\"\\\",\\\"DeviceId\\\":\\\"Utility\\\",\\\"AppVer\\\":\\\"0\\\"}\", 'facd81g656fcd8p7a7lkh6dfa81gf4ik');\r\napi.body.s = s;\r\napi.body.o = o;\r\napi.data = api.body;\r\nreturn api;", "adaptor": "const resData = JSON.parse(security.decrypt(payload.r, 'facd81g656fcd8p7a7lkh6dfa81gf4ik'));\r\nconsole.log(\"批量删除结果\");\r\nconsole.log(resData);\r\nreturn {\r\n status: resData.IsOK,\r\n msg: resData.Msg,\r\n data: {\r\n }\r\n}", "messages": { }, "dataType": "json", "headers": { "apiID": "ffff-1702456778702-10772465415343-0938", "userKey": "39459C2987FC76CFD2BC3169C92113513E6C2D6" }, "data": { "UserNo": "${UserNo}", "Func": "员工关爱-DeleteWebSiteInfo", "WebSiteId": "${JOIN(ARRAYMAP(selectedItems,item=>item.Id),',')}" } } }, { "componentId": "u:353568352562", "ignoreError": false, "actionType": "reload", "args": { "resetPage": false } } ] } }, "id": "u:9e978f0ec17d", "hidden": true } ], "itemActions": [ ], "id": "u:353568352562", "perPageAvailable": [ 10 ], "messages": { }, "filter": { "title": "", "body": [ { "type": "input-text", "id": "u:d36314873216", "label": "网站名称:", "name": "SelWebSiteName", "multiple": false, "size": "md", "value": "", "source": { "url": "https://microservice.xxx.xxx.com/api/gateway/v2/request", "method": "post", "requestAdaptor": "api.body = { \"s\": \"\", \"o\": \"\" };\r\nconst s = security.encrypt(JSON.stringify(api.data), 'facd81g656fcd8p7a7lkh6ddad3213fa81gf4ik');\r\nconst o = security.encrypt(\"{\\\"Os\\\":\\\"\\\",\\\"DeviceId\\\":\\\"Utility\\\",\\\"AppVer\\\":\\\"0\\\"}\", 'facd81g656fcd8p7a7lkh6dfa2132dsa81gf4ik');\r\napi.body.s = s;\r\napi.body.o = o;\r\napi.data = api.body;\r\nreturn api;", "adaptor": "const resData = JSON.parse(security.decrypt(payload.r, 'facd81g656fcd8p7a7lk21da3s21dah6dfa81gf4ik'));\r\n//console.log(payload);\r\n// 创建一个新的JSON对象列表,更改参数名称\r\nvar newJsonList = resData.IsOK == '0' ? resData.List.map(function (jsonObj) {\r\n return {\r\n label: jsonObj.WebSiteName,\r\n value: jsonObj.WebSiteName\r\n };\r\n}) : {};\r\n\r\nreturn {\r\n status: resData.IsOK,\r\n msg: resData.Msg,\r\n data: {\r\n options: newJsonList\r\n }\r\n}", "messages": { }, "dataType": "json", "headers": { "apiID": "ffff-1702456929851-10772443-01321944", "userKey": "39459C2987FC76CFD2BC3169C9E31526C2D6" }, "data": { "WebSiteName": "ALL", "WebSiteType": "ALL", "HasSearchFunction": "ALL", "GatherStatus": "ALL", "UserNo": "${UserNo}", "Page": -1, "Size": 1000, "Func": "员工关爱-GetWebSiteInfo" } } }, { "type": "input-text", "label": "网站地址:", "name": "SelWebSiteAddress", "id": "u:4149f8b173fd", "size": "md" }, { "type": "select", "label": "网站类型:", "name": "SelWebSiteType", "options": [ { "label": "ALL", "value": "ALL" }, { "label": "文章", "value": "0" }, { "label": "视频", "value": "1" }, { "label": "论坛", "value": "2" } ], "id": "u:c213053d4b92", "multiple": false, "value": "ALL", "size": "xs" }, { "type": "select", "label": "是否包含搜索:", "name": "SelHasSearchFunction", "options": [ { "label": "ALL", "value": "ALL" }, { "label": "包含", "value": "0" }, { "label": "不包含", "value": "1" } ], "id": "u:28f1eb12860c", "multiple": false, "value": "ALL", "size": "xs" }, { "type": "select", "label": "采集状态:", "name": "SelGatherStatus", "options": [ { "label": "ALL", "value": "ALL" }, { "label": "未采集", "value": "0" }, { "label": "采集中", "value": "1" }, { "label": "已采集", "value": "2" }, { "label": "无法采集", "value": "3" } ], "id": "u:c97894456004", "multiple": false, "value": "ALL", "size": "sm" }, { "type": "select", "label": "网站属地:", "name": "WebsiteTerritory", "options": [ { "label": "ALL", "value": "ALL" }, { "label": "大陆", "value": "0" }, { "label": "港澳台", "value": "1" }, { "label": "印度", "value": "2" }, { "label": "美国", "value": "3" } ], "id": "u:0d421b39b630", "multiple": false, "value": "ALL", "size": "sm" } ], "id": "u:b77a213dece3", "actions": [ { "type": "submit", "label": "查询", "primary": true, "id": "u:98f868954753" } ] }, "footerToolbar": [ { "type": "statistics", "align": "right" }, { "type": "pagination", "align": "right" }, { "type": "switch-per-page", "tpl": "内容", "wrapperComponent": "", "align": "right" } ], "features": [ "delete", "filter", "bulkDelete", "create", "update" ], "filterColumnCount": 3, "headerToolbar": [ { "label": "新增", "type": "button", "actionType": "dialog", "level": "primary", "dialog": { "type": "dialog", "title": "新增网站", "body": [ { "type": "form", "api": { "method": "post", "url": "https://microservice.xxx.xxx.com/api/gateway/v2/request", "messages": { }, "requestAdaptor": "api.body = { \"s\": \"\", \"o\": \"\" };\r\nconst s = security.encrypt(JSON.stringify(api.data), 'facd81g656fcd8p7a7lkh6dfa321da32sd81gf4ik');\r\nconst o = security.encrypt(\"{\\\"Os\\\":\\\"\\\",\\\"DeviceId\\\":\\\"Utility\\\",\\\"AppVer\\\":\\\"0\\\"}\", 'facd81g656fcd8p7a7lkh6dfa835da35s1gf4ik');\r\napi.body.s = s;\r\napi.body.o = o;\r\napi.data = api.body;\r\nreturn api;", "adaptor": "const resData = JSON.parse(security.decrypt(payload.r, 'facd81g656fcd8p7a7l312d3as1kh6dfa81gf4ik'));\r\nreturn {\r\n status: resData.IsOK,\r\n msg: resData.Msg,\r\n data: {\r\n }\r\n}", "dataType": "json", "headers": { "apiID": "ffff-1702456182164-10772443-0921123131", "userKey": "39459C2987FC76CFD2BC3169C996113E6C2D6" }, "data": { "UserNo": "${UserNo}", "Func": "员工关爱-AddWebSiteInfo", "WebSiteName": "${WebSiteName}", "WebSiteType": "${WebSiteType}", "HasSearchFunction": "${HasSearchFunction}", "GatherStatus": "${GatherStatus}", "WebSiteAddress": "${WebSiteAddress}", "WebSiteDescription": "${WebSiteDescription}", "WebsiteTerritory": "${WebsiteTerritory}" } }, "body": [ { "type": "input-text", "id": "u:a4f108c7b2ef", "name": "WebSiteName", "label": "网站名称:", "required": true }, { "type": "input-text", "name": "WebSiteAddress", "label": "网站地址:", "id": "u:5f23cb33a412", "required": true }, { "type": "textarea", "name": "WebSiteDescription", "label": "网站描述:", "id": "u:a465a4be6927", "minRows": 3, "maxRows": 3, "maxLength": 250, "showCounter": true }, { "type": "radios", "name": "WebSiteType", "label": "网站类型:", "id": "u:7e7fe2f7700b", "options": [ { "label": "文章", "value": "0" }, { "label": "视频", "value": "1" }, { "label": "论坛", "value": "2" } ], "value": "0" }, { "type": "radios", "name": "WebsiteTerritory", "label": "网站属地:", "options": [ { "label": "大陆", "value": "0" }, { "label": "港澳台", "value": "1" }, { "label": "印度", "value": "2" }, { "label": "美国", "value": "3" } ], "value": "0", "id": "u:343bef60ade9" }, { "type": "radios", "name": "HasSearchFunction", "label": "搜索功能:", "id": "u:ce1a65a9579a", "options": [ { "label": "包含", "value": "0" }, { "label": "不包含", "value": "1" } ], "value": "0" }, { "type": "radios", "name": "GatherStatus", "label": "采集状态:", "id": "u:ff4aef520a17", "options": [ { "label": "未采集", "value": "0" } ], "value": "0" } ], "id": "u:3c3d69923730", "actions": [ { "type": "submit", "label": "提交", "primary": true } ], "title": "表单" } ], "id": "u:bd93136ae0ec", "actions": [ { "type": "button", "actionType": "cancel", "label": "取消", "id": "u:73a9371c940b" }, { "type": "button", "actionType": "confirm", "label": "确定", "primary": true, "id": "u:81808478dfc2" } ], "showCloseButton": true, "closeOnEsc": false, "showErrorMsg": true, "showLoading": true, "size": "md" }, "id": "u:d3b03d721103" }, { "type": "bulk-actions" }, { "type": "export-excel", "tpl": "内容", "wrapperComponent": "", "level": "primary", "id": "u:a5b4faf96d4e", "api": { "method": "post", "url": "https://microservice.xxx.xxx.com/api/gateway/v2/request", "messages": { }, "requestAdaptor": "api.body = { \"s\": \"\", \"o\": \"\" };console.log(api.data);\r\nconst s = security.encrypt(JSON.stringify(api.data), 'facd81g656fcd8p7a7lkh6dfa8241a35sd1gf4ik');\r\nconst o = security.encrypt(\"{\\\"Os\\\":\\\"\\\",\\\"DeviceId\\\":\\\"Utility\\\",\\\"AppVer\\\":\\\"0\\\"}\", 'facd81g656fcd8p7a7lkh6dfa231da32s1d81gf4ik');\r\napi.body.s = s;\r\napi.body.o = o;\r\napi.data = api.body;\r\nreturn api;", "adaptor": "const resData = JSON.parse(security.decrypt(payload.r, 'facd81g656fcd8p7a7dadsalkh6dfa81gf4ik'));\r\nvar cTotal = 0;\r\nif (resData.IsOK == '0') {\r\n if (resData.List.length <= 0) {\r\n cTotal = 0;\r\n }\r\n else {\r\n cTotal = resData.List[0].Total;\r\n }\r\n}\r\nreturn {\r\n status: resData.IsOK,\r\n msg: resData.Msg,\r\n data: resData.IsOK == '0' ? {\r\n items: resData.List,\r\n total: cTotal\r\n } : {}\r\n}", "dataType": "json", "headers": { "apiID": "ffff-1702456929851-1077243413543-0944", "userKey": "39459C2987FC76CFD2BC3169C9E32136C2D6" }, "data": { "UserNo": "${UserNo}", "Page": "0", "Size": "${size}", "Func": "员工关爱-GetWebSiteInfo", "WebSiteName": "${SelWebSiteName}", "WebSiteType": "${SelWebSiteType}", "HasSearchFunction": "${SelHasSearchFunction}", "GatherStatus": "${SelGatherStatus}" } } } ], "perPageField": "size", "columnsTogglable": false, "autoFillHeight": false, "dialog": { "body": [ { "type": "form", "api": { "method": "post", "url": "https://microservice.xxx.xxx.com/api/gateway/v2/request", "messages": { }, "requestAdaptor": "api.body = { \"s\": \"\", \"o\": \"\" };\r\nconst s = security.encrypt(JSON.stringify(api.data), 'facd81g656fcd8p7a7lkh23123da6dfa81gf4ik');\r\nconst o = security.encrypt(\"{\\\"Os\\\":\\\"\\\",\\\"DeviceId\\\":\\\"Utility\\\",\\\"AppVer\\\":\\\"0\\\"}\", 'facd81g656fcd8p7a7lkh6d231sd3a2fa81gf4ik');\r\napi.body.s = s;\r\napi.body.o = o;\r\napi.data = api.body;\r\nreturn api;", "adaptor": "const resData = JSON.parse(security.decrypt(payload.r, 'facd81g656fcd8p7a7lkh632132dsadfa81gf4ik'));\r\nvar cTotal = 0;\r\nif (resData.IsOK == '0') {\r\n if (resData.List.length <= 0) {\r\n cTotal = 0;\r\n }\r\n else {\r\n cTotal = resData.List[0].Total;\r\n }\r\n}\r\nreturn {\r\n status: resData.IsOK,\r\n msg: resData.Msg,\r\n data: resData.IsOK == '0' ? {\r\n items: resData.List,\r\n total: cTotal\r\n } : {}\r\n}", "dataType": "json", "headers": { "apiID": "ffff-1702456929851-107722121443-0944", "userKey": "39459C2987FC76CFD2BC31691154C9E6C2D6" }, "data": { "WebSiteName": "${WebSiteName}", "WebSiteType": "${WebSiteType}", "HasSearchFunction": "${HasSearchFunction}", "GatherStatus": "${GatherStatus}", "UserNo": "${UserNo}", "Page": "${page}", "Size": "${size}", "Func": "员工关爱-GetWebSiteInfo" } }, "body": [ { "type": "input-text", "name": "WebSiteName", "label": "网站名称", "id": "u:9f7e86661d74" }, { "type": "input-text", "label": "文本", "name": "text", "id": "u:61a6abafac76" }, { "type": "radios", "label": "单选框", "name": "radios", "options": [ { "label": "选项A", "value": "A" }, { "label": "选项B", "value": "B" } ], "id": "u:e3d93e23c437", "value": "0" }, { "type": "radios", "label": "单选框", "name": "radios", "options": [ { "label": "选项A", "value": "A" }, { "label": "选项B", "value": "B" } ], "id": "u:a5c508dbb53a", "value": "0" }, { "type": "radios", "label": "单选框", "name": "radios", "options": [ { "label": "选项A", "value": "A" }, { "label": "选项B", "value": "B" } ], "id": "u:0a859fcaa90a", "value": "0" } ], "id": "u:5ae5401e8690", "actions": [ { "type": "submit", "label": "提交", "primary": true } ] } ], "type": "dialog", "id": "u:365d0694be79", "actions": [ { "type": "button", "actionType": "cancel", "label": "取消", "id": "u:9e493c7dc8bc" }, { "type": "button", "actionType": "confirm", "label": "确定", "primary": true, "id": "u:991cd8c69cb1" } ] } } ], "size": "xs", "style": { "position": "static", "display": "block", "flex": "1 1 auto", "flexGrow": 1, "flexBasis": "auto" }, "wrapperBody": false, "isFixedHeight": false, "isFixedWidth": false, "id": "u:e499c4177e2d" } ], "style": { "position": "relative", "inset": "auto", "flexWrap": "nowrap", "flexDirection": "column" }, "isFixedHeight": false, "isFixedWidth": false } ], "regions": [ "body", "header" ], "cssVars": { "--Panel-btnToolbarTextAlign": "left", "--Form-item-fontWeight": "bold", "--Form-item-fontSize": "16px" }, "data": { "UserNo": "${UserNo}" }, "title": "网站管理", "data": { "UserNo": "${UserNo}" }, "cssVars": { "--Panel-btnToolbarTextAlign": "left", "--Form-item-fontWeight": "bold", "--Form-item-fontSize": "16px" } } } }, mounted() { const empNo = this.$store.getters.empNo; console.log(empNo); let amis = amisRequire('amis/embed'); let amisScoped = amis.embed(this.$refs.box, this.dataJSON,{data: {"UserNo": empNo}}); }, methods: { } } </script> <style scoped> .app-container {} </style>
The text was updated successfully, but these errors were encountered:
👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
Sorry, something went wrong.
不能复现,能否提供个可复现的最小集代码
No branches or pull requests
描述问题:
增删改查组件,刷新页面之后新增按钮和导出按钮消失
请用一段清晰简洁的文字描述问题是什么...
截图或视频:
可以的话,尽可能提供截图或视频来补充描述你的问题...
如何复现(请务必完整填写下面内容):
sdk
、npm
或其他
...sdk
3.2.0
amis schema
代码:请简单描述一下复现的操作步骤...
The text was updated successfully, but these errors were encountered: