@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.
@@ -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-Cem3gaf9.js"></script>
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>
@@ -1,5 +1,5 @@
1
1
  waitForThing(window, 'antd').then(function(){
2
- var v = '3.0.98';
2
+ var v = '3.0.100';
3
3
  loadJs('/amis-renderer/amis-renderer.js?v=' + v);
4
4
  loadCss('/amis-renderer/amis-renderer.css?v=' + v)
5
5
  })
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-labs/plugin-workflow",
3
- "version": "3.0.98",
3
+ "version": "3.0.100",
4
4
  "main": "package.service.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -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');