@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.
@@ -4,6 +4,8 @@ amis:
4
4
  group: 通用
5
5
  is_wide: false
6
6
  label: 素材
7
- required: true
7
+ readonly: true
8
+ required: false
8
9
  sort_no: 100
10
+ static: false
9
11
  type: file
@@ -7,7 +7,9 @@ group: 通用
7
7
  index: true
8
8
  is_wide: false
9
9
  label: 素材名称
10
- required: true
10
+ readonly: true
11
+ required: false
11
12
  searchable: true
12
13
  sort_no: 50
14
+ static: false
13
15
  type: text
@@ -9,4 +9,5 @@ label: 材料审批单主表
9
9
  reference_to: pepsico_material_approval
10
10
  required: true
11
11
  sort_no: 450
12
+ static: true
12
13
  type: master_detail
@@ -168,76 +168,88 @@
168
168
  }
169
169
  },
170
170
  {
171
- "type": "tabs",
172
- "className": "steedos-record-tabs bg-white p-4 sm:m-2 sm:border sm:rounded",
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": "steedos-object-related-listview",
216
- "label": "相关表",
217
- "objectApiName": "${objectName}",
218
- "recordId": "${recordId}",
219
- "id": "u:7a079034f1d3",
220
- "relatedObjectApiName": "pepsico_ai_review"
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:3188fc2f9897"
234
+ "id": "u:7332b423f486",
235
+ "editorState": "default",
236
+ "md": 8
224
237
  },
225
238
  {
226
- "title": "审计日志",
227
239
  "body": [
228
240
  {
229
- "type": "steedos-object-related-listview",
230
- "label": "相关表",
231
- "objectApiName": "${objectName}",
232
- "recordId": "${recordId}",
233
- "id": "u:51b2d6f66261",
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:ed99f143728c"
248
+ "id": "u:8e08e7a009dc"
238
249
  }
239
250
  ],
240
- "id": "u:dd582fd8c027"
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
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-labs/content-compliance",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "内容审核系统",
5
5
  "main": "package.service.js",
6
6
  "scripts": {