@steedos/standard-process-approval 2.5.0-beta.1 → 2.5.0-beta.3
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.
|
@@ -226,6 +226,7 @@ module.exports = {
|
|
|
226
226
|
if (objectConfig) {
|
|
227
227
|
steedosI18n.translationObject(lng, objectConfig.name, objectConfig);
|
|
228
228
|
const field = objectConfig.fields[fieldName];
|
|
229
|
+
delete field.visible_on; // visible_on属性为false时始终不显示
|
|
229
230
|
literal_value_schema = Object.assign({}, field, {
|
|
230
231
|
name: "literal_value",
|
|
231
232
|
label: "指定新字段值",
|
|
@@ -12,6 +12,21 @@ const getEmptyNodeTitle = async function(userId){
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
module.exports = {
|
|
15
|
+
|
|
16
|
+
beforeFind: async function(){
|
|
17
|
+
const { query } = this;
|
|
18
|
+
if(query.fields && _.isArray(query.fields) && !_.include(query.fields, 'step_node')){
|
|
19
|
+
query.fields.push('step_node')
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
beforeFindOne: async function(){
|
|
24
|
+
const { query } = this;
|
|
25
|
+
if(query.fields && _.isArray(query.fields) && !_.include(query.fields, 'step_node')){
|
|
26
|
+
query.fields.push('step_node')
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
|
|
15
30
|
afterFindOne: async function () {
|
|
16
31
|
let userId = this.userId;
|
|
17
32
|
if(this.data.values && !this.data.values.step_node){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-process-approval",
|
|
3
|
-
"version": "2.5.0-beta.
|
|
3
|
+
"version": "2.5.0-beta.3",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"steedos"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@steedos/process": "2.5.0-beta.
|
|
13
|
+
"@steedos/process": "2.5.0-beta.3"
|
|
14
14
|
},
|
|
15
15
|
"description": "steedos package",
|
|
16
16
|
"repository": {},
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "48546b91b2a44dd6f6673af7f5ab707faff6e07c"
|
|
19
19
|
}
|