@steedos/standard-object-database 2.5.0-beta.17 → 2.5.0-beta.19
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.
|
@@ -73,17 +73,18 @@ fields:
|
|
|
73
73
|
icon: "lead_list"
|
|
74
74
|
}];
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
76
|
+
type:
|
|
77
|
+
type: select
|
|
78
|
+
sort_no: 170
|
|
79
|
+
hidden: true
|
|
80
|
+
options:
|
|
81
|
+
- label: Custom JavaScript
|
|
82
|
+
value: script
|
|
83
|
+
- label: Amis Button
|
|
84
|
+
value: amis_button
|
|
85
|
+
# - label: 打印模板(word)
|
|
86
|
+
# value: word-print
|
|
87
|
+
defaultValue: amis_button
|
|
87
88
|
# word_template:
|
|
88
89
|
# type: lookup
|
|
89
90
|
# reference_to: word_templates
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2022-06-02 17:45:15
|
|
4
4
|
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2023-04-28 10:35:46
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
8
8
|
<html>
|
|
@@ -77,8 +77,7 @@
|
|
|
77
77
|
]});
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
let objectName =
|
|
81
|
-
let pageType = result.data.type;
|
|
80
|
+
let objectName = button.object;
|
|
82
81
|
if (typeof schema === "string") {
|
|
83
82
|
schema = JSON.parse(schema);
|
|
84
83
|
}
|
|
@@ -90,10 +89,9 @@
|
|
|
90
89
|
if (!schema.data.context) {
|
|
91
90
|
schema.data.context = {};
|
|
92
91
|
}
|
|
93
|
-
|
|
94
92
|
schema.data.app_id = '';
|
|
95
93
|
schema.data.tab_id = '';
|
|
96
|
-
schema.data.
|
|
94
|
+
schema.data.objectName = objectName;
|
|
97
95
|
schema.data.dataComponentId = '';
|
|
98
96
|
schema.data.record_id = '';
|
|
99
97
|
schema.data.record = {};
|
|
@@ -128,6 +126,9 @@
|
|
|
128
126
|
delete schema.data.context.authToken;
|
|
129
127
|
delete schema.data.context.user;
|
|
130
128
|
delete schema.data.context.rootUrl;
|
|
129
|
+
delete schema.data.objectName;
|
|
130
|
+
delete schema.data.app_id;
|
|
131
|
+
delete schema.data.tab_id;
|
|
131
132
|
}
|
|
132
133
|
return await axios.post(
|
|
133
134
|
`${rootUrl}/graphql`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.5.0-beta.
|
|
3
|
+
"version": "2.5.0-beta.19",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
},
|
|
16
16
|
"repository": {},
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "99f85803376a6096f0262ff47689572818bf655b"
|
|
19
19
|
}
|