@steedos-labs/plugin-workflow 3.0.1-beta.3 → 3.0.1-beta.4
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.
|
@@ -19,7 +19,7 @@ amis_schema: |-
|
|
|
19
19
|
"body": [
|
|
20
20
|
{
|
|
21
21
|
"type": "tpl",
|
|
22
|
-
"tpl": "
|
|
22
|
+
"tpl": "确认退回至上一步?",
|
|
23
23
|
"inline": true,
|
|
24
24
|
"wrapperComponent": "h2",
|
|
25
25
|
"id": "u:4d2fdd40be81",
|
|
@@ -101,8 +101,7 @@ amis_schema: |-
|
|
|
101
101
|
"weight": 0
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
-
"hiddenOn": "!(record.step && (record.step.step_type === 'submit' || record.step.step_type == 'sign' || record.step.step_type === 'counterSign') )"
|
|
105
|
-
"hidden": "typeof this.hiddenOn === \"string\" ? 2 : 1"
|
|
104
|
+
"hiddenOn": "!(record.step && (record.step.step_type === 'submit' || record.step.step_type == 'sign' || record.step.step_type === 'counterSign') && record.box == 'inbox' && record.approve && record.approve.type != 'cc')"
|
|
106
105
|
}
|
|
107
106
|
],
|
|
108
107
|
"regions": [
|
|
@@ -440,11 +440,11 @@
|
|
|
440
440
|
return payload;
|
|
441
441
|
`,
|
|
442
442
|
requestAdaptor: `
|
|
443
|
-
const filters =
|
|
444
|
-
const url =
|
|
443
|
+
const filters = \`${_.replace(field.filters, /_.pluck/g, '_.map')}\`;
|
|
444
|
+
const url = \`${field.url}\`;
|
|
445
445
|
if(filters){
|
|
446
446
|
console.log('filters', filters);
|
|
447
|
-
const joinKey =
|
|
447
|
+
const joinKey = url.indexOf('?') > 0 ? '&' : '?';
|
|
448
448
|
if(filters.startsWith('function(') || filters.startsWith('function (')){
|
|
449
449
|
const argsName = ${JSON.stringify(argsName)};
|
|
450
450
|
const fun = eval('_fun='+filters);
|