@steedos/standard-object-database 2.2.55 → 2.3.0-beta.5
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.
|
@@ -94,6 +94,8 @@ fields:
|
|
|
94
94
|
options:
|
|
95
95
|
- label: Custom JavaScript
|
|
96
96
|
value: script
|
|
97
|
+
- label: Amis Action
|
|
98
|
+
value: amis_action
|
|
97
99
|
# - label: 打印模板(word)
|
|
98
100
|
# value: word-print
|
|
99
101
|
defaultValue: script
|
|
@@ -107,11 +109,19 @@ fields:
|
|
|
107
109
|
sort_no: 180
|
|
108
110
|
type: code
|
|
109
111
|
language: javascript
|
|
110
|
-
required: true
|
|
112
|
+
required: "{{formData.type != 'amis_action' ? true: false}}"
|
|
111
113
|
# omit: true
|
|
112
114
|
# hidden: true
|
|
113
115
|
is_wide: true
|
|
114
|
-
visible_on: "{{formData.type != '
|
|
116
|
+
visible_on: "{{formData.type != 'amis_action' ? true: false}}"
|
|
117
|
+
amis_actions:
|
|
118
|
+
label: Amis Actions
|
|
119
|
+
sort_no: 180
|
|
120
|
+
type: code
|
|
121
|
+
language: json
|
|
122
|
+
required: "{{formData.type == 'amis_action' ? true: false}}"
|
|
123
|
+
is_wide: true
|
|
124
|
+
visible_on: "{{formData.type == 'amis_action' ? true: false}}"
|
|
115
125
|
paging:
|
|
116
126
|
enabled: false
|
|
117
127
|
list_views:
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: baozhoutao@steedos.com
|
|
3
|
+
* @Date: 2022-08-05 14:20:24
|
|
4
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
+
* @LastEditTime: 2022-08-05 15:41:30
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
8
|
+
const express = require("express");
|
|
9
|
+
const router = express.Router();
|
|
10
|
+
const core = require('@steedos/core');
|
|
11
|
+
const objectql = require('@steedos/objectql');
|
|
12
|
+
|
|
13
|
+
router.post('/api/listview/filters', core.requireAuthentication, async function (req, res) {
|
|
14
|
+
const {id, filters} = req.body;
|
|
15
|
+
const record = await objectql.getObject('object_listviews').directUpdate(id, {filters: filters})
|
|
16
|
+
res.status(200).send(record);
|
|
17
|
+
});
|
|
18
|
+
exports.default = router;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-beta.5",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "36b9f5a9327378379ed8f1ca3d790f08c35625a9"
|
|
16
16
|
}
|