Skip to content

Commit

Permalink
Update base.object.js
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Sep 12, 2024
1 parent 0473a73 commit 3f1e650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/standard-objects/base.object.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ module.exports = {
"url": "${context.rootUrl}/graphql",
"method": "post",
"messages": {
"failed": ""
"failed": "打印功能需要企业许可证"
},
"requestAdaptor": "",
"adaptor": "const buttonOptions = [];\nfor (const row of payload.data.rows) {\n buttonOptions.push({\n \"type\": \"button\",\n \"label\": row.label,\n \"onEvent\": {\n \"click\": {\n \"actions\": [\n {\n \"actionType\": \"url\",\n \"args\": {\n \"url\": \"${context.rootUrl}/api/page/render\",\n \"blank\": true,\n \"params\": {\n \"schemaApi\": \"${context.rootUrl}/service/api/@steedos/print-template/getPrintSchema/\" + row._id,\n \"data\": {\n \"filters\": [\"_id\", \"=\", \"${recordId}\"]\n } \n }\n }\n }\n ]\n }\n }\n })\n}\n\npayload.data = {\n buttonOptions: buttonOptions \n}\nreturn payload",
Expand Down

0 comments on commit 3f1e650

Please sign in to comment.