@steedos/standard-object-database 2.4.0-beta.36 → 2.4.0-beta.38
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.
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2022-09-21 18:19:06
|
|
4
4
|
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2023-03-01 10:15:14
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
module.exports = {
|
|
9
9
|
showDesign: function (object_name, record_id) {
|
|
10
|
-
document.location = Steedos.absoluteUrl(`/api/amisButtonDesign?id=${record_id}&object=${this.record.object}&assetUrls=${Builder.settings.assetUrls}`);
|
|
10
|
+
document.location = Steedos.absoluteUrl(`/api/amisButtonDesign?id=${record_id}&object=${this.record.record.object}&assetUrls=${Builder.settings.assetUrls}`);
|
|
11
11
|
},
|
|
12
12
|
showDesignVisible: function (object_name, record_id, record_permissions) {
|
|
13
13
|
var perms;
|
|
@@ -31,6 +31,7 @@ fields:
|
|
|
31
31
|
type: boolean
|
|
32
32
|
label: Enable
|
|
33
33
|
sort_no: 140
|
|
34
|
+
defaultValue: true
|
|
34
35
|
visible:
|
|
35
36
|
type: boolean
|
|
36
37
|
omit: true
|
|
@@ -82,7 +83,7 @@ fields:
|
|
|
82
83
|
value: amis_button
|
|
83
84
|
# - label: 打印模板(word)
|
|
84
85
|
# value: word-print
|
|
85
|
-
defaultValue:
|
|
86
|
+
defaultValue: amis_button
|
|
86
87
|
# word_template:
|
|
87
88
|
# type: lookup
|
|
88
89
|
# reference_to: word_templates
|
|
@@ -105,6 +106,7 @@ fields:
|
|
|
105
106
|
language: json
|
|
106
107
|
required: false
|
|
107
108
|
is_wide: true
|
|
109
|
+
hidden: true
|
|
108
110
|
visible_on: "{{formData.type == 'amis_button' ? true: false}}"
|
|
109
111
|
paging:
|
|
110
112
|
enabled: false
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2022-03-28 09:35:34
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime:
|
|
4
|
+
* @LastEditors: sunhaolin@hotoa.com
|
|
5
|
+
* @LastEditTime: 2023-03-05 16:47:05
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
module.exports = {
|
|
9
9
|
listenTo: 'objects',
|
|
10
10
|
|
|
11
11
|
createDefaultRecordView: function (object_name, record_id, item_element) {
|
|
12
|
-
if(object_name === 'objects' && this.record){
|
|
13
|
-
const objectApiName = this.record.name;
|
|
12
|
+
if(object_name === 'objects' && this.record && this.record.record){
|
|
13
|
+
const objectApiName = this.record.record.name;
|
|
14
14
|
$("body").addClass("loading");
|
|
15
15
|
const res = Steedos.authRequest(`/service/api/@${objectApiName}/defUiSchema`, { type: 'post', async: false});
|
|
16
16
|
$("body").removeClass("loading");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.38",
|
|
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": "5f12dbff1ba92abe7fa9e4b050412cd8fa461b0b"
|
|
19
19
|
}
|