@steedos-labs/content-compliance 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/lib/methods/approval_engine.js +64 -20
- package/lib/methods/approval_engine.js.map +1 -1
- package/lib/methods/content_hub.d.ts +1 -0
- package/lib/methods/content_hub.js +126 -0
- package/lib/methods/content_hub.js.map +1 -0
- package/lib/methods/docx.d.ts +3 -0
- package/lib/methods/docx.js +12 -0
- package/lib/methods/docx.js.map +1 -0
- package/lib/methods/material.d.ts +4 -0
- package/lib/methods/material.js +144 -20
- package/lib/methods/material.js.map +1 -1
- package/main/default/client/pepsico_content.client.js +4 -0
- package/main/default/objects/pepsico_material/buttons/pepsico_edit_material.button.yml +14 -1
- package/main/default/objects/pepsico_material/buttons/pepsico_material_approve.button.yml +5 -0
- package/main/default/objects/pepsico_material/buttons/pepsico_material_reject.button.yml +5 -0
- package/main/default/objects/pepsico_material/buttons/pepsico_nullify_material.button.yml +44 -1
- package/main/default/objects/pepsico_material/buttons/pepsico_review_material.button.yml +14 -1
- package/main/default/objects/pepsico_material/buttons/pepsico_update_material.button.yml +145 -4
- package/main/default/objects/pepsico_material/buttons/pepsico_upload_supplement.button.yml +108 -1
- package/main/default/objects/pepsico_material/fields/onedrive_item.field.yml +4 -0
- package/main/default/objects/pepsico_material/fields/onedrive_shared_link_edit.field.yml +4 -0
- package/main/default/objects/pepsico_material/fields/onedrive_shared_link_view.field.yml +4 -0
- package/main/default/objects/pepsico_material/fields/supplement_materials.field.yml +1 -0
- package/main/default/objects/pepsico_material_approval/buttons/approve_ai.button.yml +1 -1
- package/main/default/objects/pepsico_material_approval/buttons/kids_approve.button.yml +1 -1
- package/main/default/objects/pepsico_material_approval/buttons/kids_reject.button.yml +1 -1
- package/main/default/objects/pepsico_material_approval/buttons/pepsico_approval.button.yml +2 -2
- package/main/default/objects/pepsico_material_approval/buttons/pepsico_submit.button.yml +1 -1
- package/main/default/objects/pepsico_material_approval/buttons/standard_delete.button.js +1 -1
- package/main/default/objects/pepsico_material_approval/buttons/standard_edit.button.js +2 -1
- package/main/default/pages/pepsico_content_review_detail.page.amis.json +6 -6
- package/main/default/pages/pepsico_material_detail.page.amis.json +0 -158
- package/package.json +6 -3
- package/public/content-review/liveblocks.css +3 -0
- package/public/content-review/topic.css +74 -0
|
@@ -11,7 +11,114 @@ amis_schema: |-
|
|
|
11
11
|
"label": "上传补充材料",
|
|
12
12
|
"id": "u:08e46b93d030",
|
|
13
13
|
"editorState": "default",
|
|
14
|
-
"visibleOn": "${current_step == 'submitter_revisions'}"
|
|
14
|
+
"visibleOn": "${current_step == 'submitter_revisions'}",
|
|
15
|
+
"onEvent": {
|
|
16
|
+
"click": {
|
|
17
|
+
"weight": 0,
|
|
18
|
+
"actions": [
|
|
19
|
+
{
|
|
20
|
+
"ignoreError": false,
|
|
21
|
+
"actionType": "dialog",
|
|
22
|
+
"dialog": {
|
|
23
|
+
"type": "dialog",
|
|
24
|
+
"title": "上传补充材料",
|
|
25
|
+
"body": [
|
|
26
|
+
{
|
|
27
|
+
"type": "input-file",
|
|
28
|
+
"label": "补充材料",
|
|
29
|
+
"autoUpload": true,
|
|
30
|
+
"proxy": true,
|
|
31
|
+
"uploadType": "fileReceptor",
|
|
32
|
+
"name": "files",
|
|
33
|
+
"id": "u:353a3c44dde9",
|
|
34
|
+
"btnLabel": "文件上传",
|
|
35
|
+
"multiple": true,
|
|
36
|
+
"useChunk": false,
|
|
37
|
+
"accept": "",
|
|
38
|
+
"drag": true,
|
|
39
|
+
"onEvent": {
|
|
40
|
+
"success": {
|
|
41
|
+
"weight": 0,
|
|
42
|
+
"actions": []
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"receiver": {
|
|
46
|
+
"url": "/s3/files",
|
|
47
|
+
"method": "post",
|
|
48
|
+
"requestAdaptor": "const superData = (typeof context != 'undefined') ? context : api.body;\nconst { _master, global } = superData;\nconst { spaceId, userId, user } = global;\n\napi.data.append('space', spaceId);\napi.data.append('owner', userId);\n\nreturn api;",
|
|
49
|
+
"adaptor": "const superData = (typeof context != 'undefined') ? context : api.body;\nconst { context: pageContext } = superData;\nvar rootUrl = pageContext.rootUrl + \"/api/files/files/\";\npayload = {\n status: response.status == 200 ? 0 : response.status,\n msg: response.statusText,\n data: {\n value: payload._id,\n name: payload.original.name,\n url: rootUrl + payload._id,\n }\n}\nreturn payload;",
|
|
50
|
+
"messages": {},
|
|
51
|
+
"dataType": "form-data"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"id": "u:02a10068242f",
|
|
56
|
+
"showCloseButton": true,
|
|
57
|
+
"closeOnOutside": false,
|
|
58
|
+
"closeOnEsc": false,
|
|
59
|
+
"showErrorMsg": true,
|
|
60
|
+
"showLoading": true,
|
|
61
|
+
"draggable": false,
|
|
62
|
+
"actions": [
|
|
63
|
+
{
|
|
64
|
+
"type": "button",
|
|
65
|
+
"actionType": "cancel",
|
|
66
|
+
"label": "取消",
|
|
67
|
+
"id": "u:bdd3126b5cb3"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "button",
|
|
71
|
+
"label": "确定",
|
|
72
|
+
"primary": true,
|
|
73
|
+
"id": "u:13e69f132b3c",
|
|
74
|
+
"actionType": "confirm",
|
|
75
|
+
"editorState": "default",
|
|
76
|
+
"onEvent": {
|
|
77
|
+
"click": {
|
|
78
|
+
"weight": 0,
|
|
79
|
+
"actions": [
|
|
80
|
+
{
|
|
81
|
+
"ignoreError": false,
|
|
82
|
+
"actionType": "ajax",
|
|
83
|
+
"outputVar": "responseResult",
|
|
84
|
+
"options": {},
|
|
85
|
+
"api": {
|
|
86
|
+
"url": "/api/v1/pepsico_material/${recordId}",
|
|
87
|
+
"method": "put",
|
|
88
|
+
"requestAdaptor": "api.data = {\n doc: {supplement_materials: _.isString(context.files) ? _.split(context.files, ',') : []}}\n\nreturn api;",
|
|
89
|
+
"adaptor": "",
|
|
90
|
+
"messages": {
|
|
91
|
+
"success": "补充材料已成功上传,请确认。",
|
|
92
|
+
"failed": "补充材料上传失败,请稍后再试。"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"actionType": "broadcast",
|
|
98
|
+
"args": {
|
|
99
|
+
"eventName": "@data.changed.pepsico_material_approval"
|
|
100
|
+
},
|
|
101
|
+
"data": {
|
|
102
|
+
"objectName": "pepsico_material_approval"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"componentId": "listview_pepsico_material",
|
|
107
|
+
"groupType": "component",
|
|
108
|
+
"actionType": "reload"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"actionType": "dialog",
|
|
116
|
+
"size": "md"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
15
122
|
}
|
|
16
123
|
],
|
|
17
124
|
"id": "u:01c0aa123619",
|
|
@@ -11,7 +11,7 @@ amis_schema: |-
|
|
|
11
11
|
"label": "核准",
|
|
12
12
|
"id": "u:a772862900fb",
|
|
13
13
|
"editorState": "default",
|
|
14
|
-
"visibleOn": "${kids_reviewer === context.user.user && ARRAYINCLUDES(person_pending_approve, context.user.user) && (current_step == 'departmental_review' || current_step == 'personnel_review')}",
|
|
14
|
+
"visibleOn": "${kids_reviewer === context.user.user && kids_approval_status != true && kids_approval_status != false && ARRAYINCLUDES(person_pending_approve, context.user.user) && (current_step == 'departmental_review' || current_step == 'personnel_review')}",
|
|
15
15
|
"actionType": "ajax",
|
|
16
16
|
"confirmText": "确定要核准这个材料审批单吗?",
|
|
17
17
|
"confirmTitle": "材料审批单审核",
|
|
@@ -12,7 +12,7 @@ amis_schema: |-
|
|
|
12
12
|
"type": "button",
|
|
13
13
|
"label": "驳回",
|
|
14
14
|
"id": "u:pepsico_material_reject",
|
|
15
|
-
"visibleOn": "${kids_reviewer === context.user.user && ARRAYINCLUDES(person_pending_approve, context.user.user) && (current_step == 'departmental_review' || current_step == 'personnel_review')}",
|
|
15
|
+
"visibleOn": "${kids_reviewer === context.user.user && kids_approval_status != true && kids_approval_status != false && ARRAYINCLUDES(person_pending_approve, context.user.user) && (current_step == 'departmental_review' || current_step == 'personnel_review')}",
|
|
16
16
|
"editorState": "default",
|
|
17
17
|
"actionType": "ajax",
|
|
18
18
|
"confirmText": "确定要驳回这个材料审批吗?",
|
|
@@ -8,10 +8,10 @@ amis_schema: |-
|
|
|
8
8
|
"label": "发起审批",
|
|
9
9
|
"id": "u:pepsico_approval",
|
|
10
10
|
"editorState": "default",
|
|
11
|
-
"visibleOn": "${current_step == 'draft' && \treview_status == 'draft'}",
|
|
11
|
+
"visibleOn": "${owner === context.userId && current_step == 'draft' && \treview_status == 'draft'}",
|
|
12
12
|
"themeCss": {
|
|
13
13
|
"className": {
|
|
14
|
-
"background:default": "
|
|
14
|
+
"background:default": "var(--private)",
|
|
15
15
|
"font:default": {
|
|
16
16
|
"color": "#ffffff"
|
|
17
17
|
},
|
|
@@ -8,7 +8,7 @@ amis_schema: |-
|
|
|
8
8
|
"label": "提交",
|
|
9
9
|
"id": "u:pepsico_submit",
|
|
10
10
|
"editorState": "default",
|
|
11
|
-
"visibleOn": "${current_step == 'submitter_revisions' }",
|
|
11
|
+
"visibleOn": "${owner === context.userId && current_step == 'submitter_revisions' }",
|
|
12
12
|
"actionType": "ajax",
|
|
13
13
|
"confirmText": "您已经修改完成,确认要提交吗?",
|
|
14
14
|
"confirmTitle": "提交人修改",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
standard_editVisible: function (object_name, record_id, record_permissions, record) {
|
|
3
|
-
|
|
3
|
+
console.log('record===>', record.owner)
|
|
4
|
+
return (record.current_step === 'draft' || record.current_step === 'submitter_revisions') && record.owner === Steedos.userId()
|
|
4
5
|
}
|
|
5
6
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"body": [
|
|
15
15
|
{
|
|
16
16
|
"type": "tpl",
|
|
17
|
-
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-
|
|
17
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-private text-base font-medium text-white\">NS</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.ns_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(ns_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, CONCATENATE(IF(ns_materials_quantity, ns_materials_quantity, 0), ' / ', materials_quantity))}</p>\n </div>\n </div>\n</li>",
|
|
18
18
|
"inline": true,
|
|
19
19
|
"wrapperComponent": "",
|
|
20
20
|
"id": "u:65eac8efca60",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"type": "tpl",
|
|
26
|
-
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-
|
|
26
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-private text-base font-medium text-white\">Legal</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.legal_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(legal_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', legal_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !legal_approval_status, CONCATENATE(IF(legal_materials_quantity, legal_materials_quantity, 0), ' / ', materials_quantity))}</p>\n </div>\n </div>\n</li>",
|
|
27
27
|
"inline": true,
|
|
28
28
|
"wrapperComponent": "",
|
|
29
29
|
"id": "u:1b743b2be88d",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"type": "tpl",
|
|
35
|
-
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-
|
|
35
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-private text-base font-medium text-white\">SRA</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-blue-900 hover:text-gray-600\">${_display.sra_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(sra_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', sra_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !sra_approval_status, CONCATENATE(IF(sra_materials_quantity, sra_materials_quantity, 0), ' / ', materials_quantity))}</p>\n </div>\n </div>\n</li>",
|
|
36
36
|
"inline": true,
|
|
37
37
|
"wrapperComponent": "",
|
|
38
38
|
"id": "u:912d54a43263",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"type": "tpl",
|
|
44
|
-
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-
|
|
44
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-private text-base font-medium text-white\">CA</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.ca_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(ca_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ca_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ca_approval_status, CONCATENATE(IF(ca_materials_quantity, ca_materials_quantity, 0), ' / ', materials_quantity))}</p>\n </div>\n </div>\n</li>",
|
|
45
45
|
"inline": true,
|
|
46
46
|
"wrapperComponent": "",
|
|
47
47
|
"id": "u:3dd4613d67ae",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"type": "tpl",
|
|
53
|
-
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-
|
|
53
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-private text-base font-medium text-white\">固定</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(approval_status === true, '<i class=\"fa-solid fa-check\"></i>', approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !approval_status, CONCATENATE(IF(approval_materials_quantity, approval_materials_quantity, 0), ' / ', materials_quantity))}</p>\n </div>\n </div>\n</li>",
|
|
54
54
|
"inline": true,
|
|
55
55
|
"wrapperComponent": "",
|
|
56
56
|
"id": "u:ec5fe1e3ac08",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"type": "tpl",
|
|
62
|
-
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-
|
|
62
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-private text-base font-medium text-white\">Kids</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.kids_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(kids_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', kids_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !kids_approval_status, CONCATENATE(IF(kids_materials_quantity, kids_materials_quantity, 0), ' / ', materials_quantity))}</p>\n </div>\n </div>\n</li>",
|
|
63
63
|
"inline": true,
|
|
64
64
|
"wrapperComponent": "",
|
|
65
65
|
"id": "u:41fda075cc8b",
|
|
@@ -9,164 +9,6 @@
|
|
|
9
9
|
"showBackButton": "${!_inDrawer}",
|
|
10
10
|
"id": "u:4127bbd2552f"
|
|
11
11
|
},
|
|
12
|
-
{
|
|
13
|
-
"type": "grid",
|
|
14
|
-
"columns": [
|
|
15
|
-
{
|
|
16
|
-
"body": [
|
|
17
|
-
{
|
|
18
|
-
"type": "steedos-object-form",
|
|
19
|
-
"label": "对象表单",
|
|
20
|
-
"objectApiName": "${objectName}",
|
|
21
|
-
"recordId": "${recordId}",
|
|
22
|
-
"mode": "read",
|
|
23
|
-
"enableInitApi": false,
|
|
24
|
-
"className": "",
|
|
25
|
-
"id": "u:5fd32a65487b",
|
|
26
|
-
"fields": [
|
|
27
|
-
"ns_reviewer"
|
|
28
|
-
],
|
|
29
|
-
"layout": "horizontal",
|
|
30
|
-
"fieldsExtend": "{\n \"ns_reviewer\": {\n \"is_wide\": true\n }\n}"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "steedos-object-form",
|
|
34
|
-
"label": "对象表单",
|
|
35
|
-
"objectApiName": "${objectName}",
|
|
36
|
-
"recordId": "${recordId}",
|
|
37
|
-
"mode": "read",
|
|
38
|
-
"enableInitApi": false,
|
|
39
|
-
"className": "",
|
|
40
|
-
"id": "u:dbdbadd751d3",
|
|
41
|
-
"fields": [
|
|
42
|
-
"ns_approval_status"
|
|
43
|
-
],
|
|
44
|
-
"layout": "horizontal",
|
|
45
|
-
"fieldsExtend": "{\n \"ns_approval_status\": {\n \"is_wide\": true\n }\n}"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"id": "u:43b052372d85"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"body": [
|
|
52
|
-
{
|
|
53
|
-
"type": "steedos-object-form",
|
|
54
|
-
"label": "对象表单",
|
|
55
|
-
"objectApiName": "${objectName}",
|
|
56
|
-
"recordId": "${recordId}",
|
|
57
|
-
"mode": "read",
|
|
58
|
-
"enableInitApi": false,
|
|
59
|
-
"className": "",
|
|
60
|
-
"id": "u:85cfa97bd96e",
|
|
61
|
-
"fields": [
|
|
62
|
-
"legal_reviewer"
|
|
63
|
-
],
|
|
64
|
-
"layout": "horizontal",
|
|
65
|
-
"fieldsExtend": "{\n \"legal_reviewer\": {\n \"is_wide\": true\n }\n}"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "steedos-object-form",
|
|
69
|
-
"label": "对象表单",
|
|
70
|
-
"objectApiName": "${objectName}",
|
|
71
|
-
"recordId": "${recordId}",
|
|
72
|
-
"mode": "read",
|
|
73
|
-
"enableInitApi": false,
|
|
74
|
-
"className": "",
|
|
75
|
-
"id": "u:b739b54264c1",
|
|
76
|
-
"fields": [
|
|
77
|
-
"legal_approval_status"
|
|
78
|
-
],
|
|
79
|
-
"layout": "horizontal",
|
|
80
|
-
"fieldsExtend": "{\n \"legal_approval_status\": {\n \"is_wide\": true\n }\n}"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"id": "u:6fe0cf588ed8"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"body": [
|
|
87
|
-
{
|
|
88
|
-
"type": "steedos-object-form",
|
|
89
|
-
"label": "对象表单",
|
|
90
|
-
"objectApiName": "${objectName}",
|
|
91
|
-
"recordId": "${recordId}",
|
|
92
|
-
"mode": "read",
|
|
93
|
-
"enableInitApi": false,
|
|
94
|
-
"className": "",
|
|
95
|
-
"id": "u:cb0484b2e9a2",
|
|
96
|
-
"fields": [
|
|
97
|
-
"sra_reviewer"
|
|
98
|
-
],
|
|
99
|
-
"layout": "horizontal",
|
|
100
|
-
"fieldsExtend": "{\n \"sra_reviewer\": {\n \"is_wide\": true\n }\n}"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"type": "steedos-object-form",
|
|
104
|
-
"label": "对象表单",
|
|
105
|
-
"objectApiName": "${objectName}",
|
|
106
|
-
"recordId": "${recordId}",
|
|
107
|
-
"mode": "read",
|
|
108
|
-
"enableInitApi": false,
|
|
109
|
-
"className": "",
|
|
110
|
-
"id": "u:59d845ea4a07",
|
|
111
|
-
"fields": [
|
|
112
|
-
"sra_approval_status"
|
|
113
|
-
],
|
|
114
|
-
"layout": "horizontal",
|
|
115
|
-
"fieldsExtend": "{\n \"sra_approval_status\": {\n \"is_wide\": true\n }\n}"
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"id": "u:4418e8925a67"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"body": [
|
|
122
|
-
{
|
|
123
|
-
"type": "steedos-object-form",
|
|
124
|
-
"label": "对象表单",
|
|
125
|
-
"objectApiName": "${objectName}",
|
|
126
|
-
"recordId": "${recordId}",
|
|
127
|
-
"mode": "read",
|
|
128
|
-
"enableInitApi": false,
|
|
129
|
-
"className": "",
|
|
130
|
-
"id": "u:6d4c6396137f",
|
|
131
|
-
"fields": [
|
|
132
|
-
"ca_reviewer"
|
|
133
|
-
],
|
|
134
|
-
"excludedFields": [
|
|
135
|
-
"ca_approval_status"
|
|
136
|
-
],
|
|
137
|
-
"layout": "horizontal",
|
|
138
|
-
"fieldsExtend": "{\n \"ca_reviewer\": {\n \"is_wide\": true\n }\n}"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"type": "steedos-object-form",
|
|
142
|
-
"label": "对象表单",
|
|
143
|
-
"objectApiName": "${objectName}",
|
|
144
|
-
"recordId": "${recordId}",
|
|
145
|
-
"mode": "read",
|
|
146
|
-
"enableInitApi": false,
|
|
147
|
-
"className": "",
|
|
148
|
-
"id": "u:7a2e4cee0366",
|
|
149
|
-
"fields": [
|
|
150
|
-
"ca_approval_status"
|
|
151
|
-
],
|
|
152
|
-
"layout": "horizontal",
|
|
153
|
-
"fieldsExtend": "{\n \"ca_approval_status\": {\n \"is_wide\": true\n }\n}"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"id": "u:19fc7bf975f3"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"id": "u:0ced89e163c3",
|
|
160
|
-
"editorState": "default",
|
|
161
|
-
"themeCss": {
|
|
162
|
-
"baseControlClassName": {
|
|
163
|
-
"padding-and-margin:default": {
|
|
164
|
-
"marginLeft": "0.5rem",
|
|
165
|
-
"marginRight": "0.5rem"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
12
|
{
|
|
171
13
|
"type": "tabs",
|
|
172
14
|
"className": "steedos-record-tabs bg-white p-4 sm:m-2 sm:border sm:rounded",
|
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-labs/content-compliance",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "内容审核系统",
|
|
5
5
|
"main": "package.service.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc && webpack --config webpack.config.js",
|
|
8
|
-
"build:watch": "webpack --config webpack.config.js --watch"
|
|
8
|
+
"build:watch": "webpack --config webpack.config.js --watch",
|
|
9
|
+
"release": "yarn build && npm publish --registry https://registry.npmjs.org && open https://npmmirror.com/sync/@steedos-labs/content-compliance && cnpm sync @steedos-labs/content-compliance"
|
|
9
10
|
},
|
|
10
11
|
"dependencies": {
|
|
11
12
|
"amis-formula": "~6.3.0",
|
|
12
|
-
"mime-types": "2.1.35"
|
|
13
|
+
"mime-types": "2.1.35",
|
|
14
|
+
"lodash": "4.17.21",
|
|
15
|
+
"dayjs": "1.11.13"
|
|
13
16
|
},
|
|
14
17
|
"devDependencies": {
|
|
15
18
|
"webpack": "^5.88.2",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--private: #155a9f;
|
|
3
|
+
--private-bg: rgb(33 81 161 / 15%);
|
|
4
|
+
--private-onHover-bg: rgb(33 81 161 / 20%);
|
|
5
|
+
--Tabs--line-onHover-borderColor: var(--private);
|
|
6
|
+
--Tabs--line-active-color: var(--private);
|
|
7
|
+
--SearchBox-hover-color: var(--private);
|
|
8
|
+
--Menu-light-selectedIndicator-color: var(--private);
|
|
9
|
+
--fieldSet-legend-border-color: var(--private);
|
|
10
|
+
--button-default-default-font-color: var(--private);
|
|
11
|
+
--colors-brand-5: var(--private);
|
|
12
|
+
--colors-other-7: var(--private);
|
|
13
|
+
--colors-other-5: var(--private);
|
|
14
|
+
--colors-brand-6: var(--private);
|
|
15
|
+
--colors-brand-7: var(--private);
|
|
16
|
+
--button-primary-hover-bg-color: var(--private);
|
|
17
|
+
--Spinner-color: var(--private);
|
|
18
|
+
--Table-onChecked-bg: var(--private-bg);
|
|
19
|
+
--Pick-base-value-bgColor: var(--private-bg);
|
|
20
|
+
--Form-selectValue-onHover-bg: var(--private-onHover-bg);
|
|
21
|
+
}
|
|
22
|
+
.antd-Table-table td.is-sticky{
|
|
23
|
+
background: unset !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.antd-Button{
|
|
27
|
+
--button-default-default-font-color: var(--private);
|
|
28
|
+
--button-link-default-font-color: var(--private);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.antd-Checkbox{
|
|
32
|
+
--button-primary-hover-bg-color: var(--private);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.bg-private{
|
|
36
|
+
background-color: var(--private) !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.steedos-header-container{
|
|
40
|
+
border-color: var(--private) !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.antd-Nav-Menu-inline .antd-Nav-Menu-item-selected{
|
|
44
|
+
color: var(--private) !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.slds-page-header__icon{
|
|
48
|
+
background-color: var(--private) !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.antd-Nav-Menu-inline .antd-Nav-Menu-item-selected::before{
|
|
52
|
+
border-right-color: var(--private) !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-selected {
|
|
57
|
+
background: rgb(33 81 161 / 10%) !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-active {
|
|
61
|
+
background: rgb(33 81 161 / 15%) !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.steedos-record-related-header .slds-icon {
|
|
65
|
+
background-color: var(--private) !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
body a {
|
|
69
|
+
color: var(--private);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
body a:hover {
|
|
73
|
+
color: var(--private);
|
|
74
|
+
}
|