@steedos-labs/plugin-workflow 3.0.98 → 3.0.100
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/designer/dist/amis-renderer/amis-renderer.js +1 -1
- package/designer/dist/assets/{index-Cem3gaf9.js → index-C7za9VGq.js} +154 -153
- package/designer/dist/index.html +1 -1
- package/main/default/client/flow2_render.client.js +1 -1
- package/main/default/routes/buildFormDesignSystemPrompt.js +1 -0
- package/package.json +1 -1
- package/package.service.js +3 -0
- package/public/amis-renderer/amis-renderer.js +1 -1
package/designer/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="shortcut icon" type="image/svg+xml" href="/images/logo.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>designer</title>
|
|
8
|
-
<script type="module" crossorigin src="/api/workflow/designer-v2/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/api/workflow/designer-v2/assets/index-C7za9VGq.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/api/workflow/designer-v2/assets/index-CWhD6d5C.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
@@ -181,6 +181,7 @@ function buildFormDesignSystemPrompt({ chineseFieldNames = false, isUpgrade = fa
|
|
|
181
181
|
- reference_to: 字符串,关联对象的 API 名称,如 "contracts"、"accounts"
|
|
182
182
|
- lookupLabelField: 字符串,用于搜索和显示的名称字段,默认 "name"
|
|
183
183
|
- pickerMultiple: 布尔值,是否允许多选,默认 false
|
|
184
|
+
- 字段值格式:单选为记录 ID 字符串;pickerMultiple 为 true 时始终为记录 ID 字符串数组(包括空数组),不能使用逗号分隔字符串
|
|
184
185
|
- lookupFilters: 字符串,DevExpress JSON 格式的过滤表达式,支持 {fieldName} 占位符引用其他表单字段值(运行时自动替换为实际值)
|
|
185
186
|
- 静态过滤示例:'[["enablestate","=","2"],"and",["hidden","<>",true]]'
|
|
186
187
|
- 动态过滤示例(引用其他字段值):'[["company_id","=","{company_id}"],"and",["enablestate","=","2"]]' — 当表单中 company_id 字段值变化时,{company_id} 会被自动替换为该字段的实际值
|
package/package.json
CHANGED
package/package.service.js
CHANGED
|
@@ -7,6 +7,7 @@ const rests = require('./src/rests');
|
|
|
7
7
|
const InstanceRecordQueue = require('./src/instance_record_queue')
|
|
8
8
|
const WebhookQueue = require('./src/webhook_queue')
|
|
9
9
|
const TimeoutAutoSubmit = require('./src/timeout_auto_submit')
|
|
10
|
+
const { getCollection } = require('./main/default/utils/collection')
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @typedef {import('moleculer').Context} Context Moleculer's Context
|
|
@@ -140,6 +141,8 @@ module.exports = {
|
|
|
140
141
|
* Service started lifecycle event handler
|
|
141
142
|
*/
|
|
142
143
|
async started(ctx) {
|
|
144
|
+
WebhookQueue.collection = await getCollection('_webhook_queue');
|
|
145
|
+
|
|
143
146
|
// 注册 app_launcher widgets: 待审核、已审核
|
|
144
147
|
try {
|
|
145
148
|
const widgetsObj = this.getObject('widgets');
|