@steedos-labs/content-compliance 0.0.8 → 0.0.10
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/main/default/objects/pepsico_material/fields/material.field.yml +3 -1
- package/main/default/objects/pepsico_material/fields/name.field.yml +3 -1
- package/main/default/objects/pepsico_material/fields/pepsico_material_approval.field.yml +1 -0
- package/main/default/pages/pepsico_material_detail.page.amis.json +69 -57
- package/main/default/restrictionRules/pepsico_material_approval.restrictionRule.yml +1 -1
- package/package.json +1 -1
|
@@ -168,76 +168,88 @@
|
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
"type": "
|
|
172
|
-
"
|
|
173
|
-
"tabs": [
|
|
174
|
-
{
|
|
175
|
-
"title": "详细",
|
|
176
|
-
"className": "px-0 py-4",
|
|
177
|
-
"body": [
|
|
178
|
-
{
|
|
179
|
-
"type": "steedos-object-form",
|
|
180
|
-
"label": "对象表单",
|
|
181
|
-
"objectApiName": "${objectName}",
|
|
182
|
-
"recordId": "${recordId}",
|
|
183
|
-
"mode": "read",
|
|
184
|
-
"enableInitApi": false,
|
|
185
|
-
"className": "",
|
|
186
|
-
"id": "u:cfa85becb26f",
|
|
187
|
-
"excludedFields": []
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
"id": "u:5d4e7e3f6ecc"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"title": "素材预览",
|
|
194
|
-
"disabledOn": "${extension_type === 'doc' || extension_type === 'docx'}",
|
|
195
|
-
"body": [
|
|
196
|
-
{
|
|
197
|
-
"type": "image",
|
|
198
|
-
"imageMode": "original",
|
|
199
|
-
"enlargeAble": false,
|
|
200
|
-
"src": "${_display.material.url}",
|
|
201
|
-
"visibleOn": "${extension_type === 'jpg' || extension_type === 'jpeg' || extension_type === 'png' || extension_type === 'gif' || extension_type === 'bmp' || extension_type === 'tiff' || extension_type === 'tif' || extension_type === 'svg' || extension_type === 'webp' || extension_type === 'ico' || extension_type === 'heif' || extension_type === 'heic'}"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"type": "video",
|
|
205
|
-
"src": "${_display.material.url}",
|
|
206
|
-
"poster": "",
|
|
207
|
-
"visibleOn": "${extension_type === 'mp4' || extension_type === 'avi' || extension_type === 'mov' || extension_type === 'wmv' || extension_type === 'flv' || extension_type === 'mkv' || extension_type === 'webm' || extension_type === 'mpeg' || extension_type === 'mpg' || extension_type === '3gp' || extension_type === 'm4v'}"
|
|
208
|
-
}
|
|
209
|
-
]
|
|
210
|
-
},
|
|
171
|
+
"type": "grid",
|
|
172
|
+
"columns": [
|
|
211
173
|
{
|
|
212
|
-
"title": "AI审核",
|
|
213
174
|
"body": [
|
|
214
175
|
{
|
|
215
|
-
"type": "
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
176
|
+
"type": "tabs",
|
|
177
|
+
"className": "steedos-record-tabs bg-white p-4 sm:m-2 sm:border sm:rounded",
|
|
178
|
+
"tabs": [
|
|
179
|
+
{
|
|
180
|
+
"title": "详细",
|
|
181
|
+
"className": "px-0 py-4",
|
|
182
|
+
"body": [
|
|
183
|
+
{
|
|
184
|
+
"type": "steedos-object-form",
|
|
185
|
+
"label": "对象表单",
|
|
186
|
+
"objectApiName": "${objectName}",
|
|
187
|
+
"recordId": "${recordId}",
|
|
188
|
+
"mode": "read",
|
|
189
|
+
"enableInitApi": false,
|
|
190
|
+
"className": "",
|
|
191
|
+
"id": "u:b9a1c315e058",
|
|
192
|
+
"excludedFields": []
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"id": "u:bc3ff316b6dc"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"title": "素材预览",
|
|
199
|
+
"disabledOn": "${extension_type === 'doc' || extension_type === 'docx'}",
|
|
200
|
+
"body": [
|
|
201
|
+
{
|
|
202
|
+
"type": "image",
|
|
203
|
+
"imageMode": "original",
|
|
204
|
+
"enlargeAble": false,
|
|
205
|
+
"src": "${_display.material.url}",
|
|
206
|
+
"visibleOn": "${extension_type === 'jpg' || extension_type === 'jpeg' || extension_type === 'png' || extension_type === 'gif' || extension_type === 'bmp' || extension_type === 'tiff' || extension_type === 'tif' || extension_type === 'svg' || extension_type === 'webp' || extension_type === 'ico' || extension_type === 'heif' || extension_type === 'heic'}"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"type": "video",
|
|
210
|
+
"src": "${_display.material.url}",
|
|
211
|
+
"poster": "",
|
|
212
|
+
"visibleOn": "${extension_type === 'mp4' || extension_type === 'avi' || extension_type === 'mov' || extension_type === 'wmv' || extension_type === 'flv' || extension_type === 'mkv' || extension_type === 'webm' || extension_type === 'mpeg' || extension_type === 'mpg' || extension_type === '3gp' || extension_type === 'm4v'}"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"title": "AI审核意见",
|
|
218
|
+
"body": [
|
|
219
|
+
{
|
|
220
|
+
"type": "steedos-object-related-listview",
|
|
221
|
+
"label": "相关表",
|
|
222
|
+
"objectApiName": "${objectName}",
|
|
223
|
+
"recordId": "${recordId}",
|
|
224
|
+
"id": "u:ef195a810e3c",
|
|
225
|
+
"relatedObjectApiName": "pepsico_ai_review"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"id": "u:20927ba6359d"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"id": "u:bb87ebd0f4da"
|
|
221
232
|
}
|
|
222
233
|
],
|
|
223
|
-
"id": "u:
|
|
234
|
+
"id": "u:7332b423f486",
|
|
235
|
+
"editorState": "default",
|
|
236
|
+
"md": 8
|
|
224
237
|
},
|
|
225
238
|
{
|
|
226
|
-
"title": "审计日志",
|
|
227
239
|
"body": [
|
|
228
240
|
{
|
|
229
|
-
"type": "
|
|
230
|
-
"
|
|
231
|
-
"
|
|
232
|
-
"
|
|
233
|
-
"id": "u:
|
|
234
|
-
"relatedObjectApiName": "audit_records"
|
|
241
|
+
"type": "rooms-comments",
|
|
242
|
+
"roomId": "objects:pepsico_material:${recordId}",
|
|
243
|
+
"className": "flex flex-col m-3 gap-3",
|
|
244
|
+
"baseUrl": "${context.rootUrl}",
|
|
245
|
+
"id": "u:474062388b6b"
|
|
235
246
|
}
|
|
236
247
|
],
|
|
237
|
-
"id": "u:
|
|
248
|
+
"id": "u:8e08e7a009dc"
|
|
238
249
|
}
|
|
239
250
|
],
|
|
240
|
-
"id": "u:
|
|
251
|
+
"id": "u:06f255e91a71",
|
|
252
|
+
"editorState": "default"
|
|
241
253
|
}
|
|
242
254
|
],
|
|
243
255
|
"regions": [
|
|
@@ -5,5 +5,5 @@ locked: false
|
|
|
5
5
|
object_name: pepsico_material_approval
|
|
6
6
|
record_filter: >-
|
|
7
7
|
{{[["person_pending_approve","=",$user.userId], 'or' ,
|
|
8
|
-
["person_view","=",$user.userId], 'or' , ["person_approved","=",$user.userId]]
|
|
8
|
+
["person_view","=",$user.userId], 'or' , ["person_approved","=",$user.userId] , 'or', ["owner","=",$user.userId]]
|
|
9
9
|
}}
|