@steedos-widgets/amis-object 6.10.1-beta.33 → 6.10.1-beta.34
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.
- package/dist/amis/AmisInstanceDetail.d.ts +23 -11
- package/dist/amis-object.cjs.css +13 -4
- package/dist/amis-object.cjs.js +89 -42
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +13 -4
- package/dist/amis-object.esm.js +89 -42
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +13 -4
- package/dist/amis-object.umd.js +35 -28
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +19 -19
- package/package.json +3 -3
|
@@ -4,6 +4,7 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
4
4
|
name: string;
|
|
5
5
|
className: string;
|
|
6
6
|
bodyClassName: string;
|
|
7
|
+
headerClassName: string;
|
|
7
8
|
title: {
|
|
8
9
|
type: string;
|
|
9
10
|
label: string;
|
|
@@ -26,6 +27,25 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
26
27
|
"font-size": string;
|
|
27
28
|
"font-weight": string;
|
|
28
29
|
};
|
|
30
|
+
".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
|
|
31
|
+
padding: string;
|
|
32
|
+
};
|
|
33
|
+
".steedos-amis-instance-view .antd-Page-body": {
|
|
34
|
+
width: string;
|
|
35
|
+
};
|
|
36
|
+
".antd-List-placeholder": {
|
|
37
|
+
display: string;
|
|
38
|
+
};
|
|
39
|
+
".steedos-amis-instance-view .antd-Table-fixedTop:after": {
|
|
40
|
+
"box-shadow": string;
|
|
41
|
+
};
|
|
42
|
+
".antd-List-items": {
|
|
43
|
+
border: string;
|
|
44
|
+
};
|
|
45
|
+
".antd-ListItem": {
|
|
46
|
+
"border-top": string;
|
|
47
|
+
background: string;
|
|
48
|
+
};
|
|
29
49
|
};
|
|
30
50
|
body: ({
|
|
31
51
|
type: string;
|
|
@@ -126,11 +146,7 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
126
146
|
inline: boolean;
|
|
127
147
|
tpl: string;
|
|
128
148
|
}[];
|
|
129
|
-
actions:
|
|
130
|
-
icon: string;
|
|
131
|
-
type: string;
|
|
132
|
-
id: string;
|
|
133
|
-
}[];
|
|
149
|
+
actions: any[];
|
|
134
150
|
id: string;
|
|
135
151
|
};
|
|
136
152
|
id: string;
|
|
@@ -150,11 +166,7 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
150
166
|
inline: boolean;
|
|
151
167
|
tpl: string;
|
|
152
168
|
}[];
|
|
153
|
-
actions:
|
|
154
|
-
icon: string;
|
|
155
|
-
type: string;
|
|
156
|
-
id: string;
|
|
157
|
-
}[];
|
|
169
|
+
actions: any[];
|
|
158
170
|
id: string;
|
|
159
171
|
};
|
|
160
172
|
id: string;
|
|
@@ -208,7 +220,7 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
208
220
|
headerClassName: string;
|
|
209
221
|
bodyClassName: string;
|
|
210
222
|
footerClassName: string;
|
|
211
|
-
drawerContainer: () =>
|
|
223
|
+
drawerContainer: () => HTMLElement;
|
|
212
224
|
body: {
|
|
213
225
|
type: string;
|
|
214
226
|
debug: boolean;
|
package/dist/amis-object.cjs.css
CHANGED
|
@@ -271,12 +271,12 @@ fieldset.antd-Collapse > legend{
|
|
|
271
271
|
border: var(--Form-input-borderWidth) solid transparent;
|
|
272
272
|
border-radius: var(--Form-input-borderRadius);
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
/*
|
|
275
275
|
.antd-Picker .antd-Picker-input .antd-Picker-values .antd-Picker-value{
|
|
276
|
-
|
|
276
|
+
// lookup字段值选中项值字符很多超长时换行,包括单选和多选
|
|
277
277
|
white-space: break-spaces;
|
|
278
278
|
word-break: break-all;
|
|
279
|
-
}
|
|
279
|
+
} */
|
|
280
280
|
|
|
281
281
|
.steedos-crud-mode-cards .antd-Card-actions a[disabled]{
|
|
282
282
|
box-shadow: none;
|
|
@@ -1841,8 +1841,17 @@ fieldset.antd-Collapse > legend{
|
|
|
1841
1841
|
.steedos-object-button.antd-Button {
|
|
1842
1842
|
margin-right: 0px;
|
|
1843
1843
|
}
|
|
1844
|
+
.steedos-object-record-detail-header button[class~="steedos-object-button"] {
|
|
1845
|
+
margin-left: 4px;
|
|
1846
|
+
}
|
|
1847
|
+
.steedos-object-listview-content-wrapper button[class~="steedos-object-button"] {
|
|
1848
|
+
margin-left: 4px;
|
|
1849
|
+
}
|
|
1850
|
+
.steedos-record-related-header button[class~="steedos-object-button"] {
|
|
1851
|
+
margin-left: 4px;
|
|
1852
|
+
}
|
|
1844
1853
|
/* 魔方定义的按钮,连续的按钮左侧加间隔分开,第一个按钮不会识别此样式 */
|
|
1845
|
-
.steedos-object-button + .steedos-object-button {
|
|
1854
|
+
.steedos-object-button + .steedos-object-button button {
|
|
1846
1855
|
margin-left: 4px;
|
|
1847
1856
|
}
|
|
1848
1857
|
/* 魔方定义的按钮,如果是显示在下拉菜单作为菜单按钮则不能加间隔 */
|
package/dist/amis-object.cjs.js
CHANGED
|
@@ -13564,7 +13564,10 @@ async function getRecordDetailRelatedListSchema(objectName, recordId, relatedObj
|
|
|
13564
13564
|
data: {
|
|
13565
13565
|
relatedKey: relatedKey,
|
|
13566
13566
|
listViewId: `amis-\${appId}-${relatedObjectName}-listview`,
|
|
13567
|
-
_isRelated: true
|
|
13567
|
+
_isRelated: true,
|
|
13568
|
+
record: {
|
|
13569
|
+
recordPermissions: relatedObjectUiSchema.permissions
|
|
13570
|
+
}
|
|
13568
13571
|
},
|
|
13569
13572
|
body:[
|
|
13570
13573
|
amisSchema
|
|
@@ -19998,6 +20001,7 @@ const getJudgeOptions = async (instance) => {
|
|
|
19998
20001
|
|
|
19999
20002
|
const getJudgeInput = async (instance) => {
|
|
20000
20003
|
const judgeOptions = await getJudgeOptions(instance);
|
|
20004
|
+
// console.log('getJudgeInput', judgeOptions);
|
|
20001
20005
|
if (judgeOptions.length > 0 && instance.approve.type != 'cc') {
|
|
20002
20006
|
return {
|
|
20003
20007
|
type: "radios",
|
|
@@ -20038,6 +20042,7 @@ const getJudgeInput = async (instance) => {
|
|
|
20038
20042
|
|
|
20039
20043
|
//TODO 只有一个下一步时,默认选中,并且禁止修改.
|
|
20040
20044
|
const getNextStepInput = async (instance) => {
|
|
20045
|
+
// console.log('getNextStepInput', instance);
|
|
20041
20046
|
if(instance.approve?.type == 'cc'){
|
|
20042
20047
|
return ;
|
|
20043
20048
|
}
|
|
@@ -20073,14 +20078,30 @@ const getNextStepInput = async (instance) => {
|
|
|
20073
20078
|
"next_users": null
|
|
20074
20079
|
},
|
|
20075
20080
|
"source": {
|
|
20076
|
-
"url": "
|
|
20081
|
+
"url": "/api/workflow/v2/nextStep?judge=${new_judge}",
|
|
20077
20082
|
"headers": {
|
|
20078
20083
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
20079
20084
|
},
|
|
20080
20085
|
"method": "post",
|
|
20081
20086
|
"messages": {
|
|
20082
20087
|
},
|
|
20083
|
-
"requestAdaptor":
|
|
20088
|
+
"requestAdaptor": `
|
|
20089
|
+
let { judge } = api.data;
|
|
20090
|
+
const ctx = api.data.context;
|
|
20091
|
+
if(!judge){
|
|
20092
|
+
judge='approved'
|
|
20093
|
+
};
|
|
20094
|
+
const formValues = context._scoped.getComponentById("instance_form").getValues();
|
|
20095
|
+
api.data = {
|
|
20096
|
+
flowVersionId: ctx.flowVersion._id,
|
|
20097
|
+
instanceId: ctx._id,
|
|
20098
|
+
flowId: ctx.flow._id,
|
|
20099
|
+
step: ctx.step,
|
|
20100
|
+
judge: judge,
|
|
20101
|
+
values: formValues
|
|
20102
|
+
};
|
|
20103
|
+
return api;
|
|
20104
|
+
`,
|
|
20084
20105
|
"adaptor": `
|
|
20085
20106
|
payload.data = {
|
|
20086
20107
|
value: payload.nextSteps.length === 1 ? payload.nextSteps[0]._id : null,
|
|
@@ -20188,7 +20209,7 @@ const getNextStepUsersInput = async (instance) => {
|
|
|
20188
20209
|
"messages": {
|
|
20189
20210
|
},
|
|
20190
20211
|
"requestAdaptor": "\nconst { context, next_step, $scopeId } = api.data;\nconst formValues = SteedosUI.getRef($scopeId).getComponentById(\"instance_form\").getValues();\n\napi.data = {\n instanceId: context._id,\n nextStepId: next_step._id,\n values: formValues\n}\n\n\n return api;",
|
|
20191
|
-
"adaptor": "
|
|
20212
|
+
"adaptor": "debugger;\npayload.data = {value: payload.nextStepUsers.length === 1 ? payload.nextStepUsers[0].id : null, options: payload.nextStepUsers};\nreturn payload;",
|
|
20192
20213
|
"data": {
|
|
20193
20214
|
"&": "$$",
|
|
20194
20215
|
"$scopeId": "$scopeId",
|
|
@@ -20213,8 +20234,8 @@ const getNextStepUsersInput = async (instance) => {
|
|
|
20213
20234
|
|
|
20214
20235
|
const getCCSubmitRequestAdaptor = async (instance) => {
|
|
20215
20236
|
return `
|
|
20216
|
-
const instanceForm =
|
|
20217
|
-
const approveValues =
|
|
20237
|
+
const instanceForm = context._scoped.getComponentById("instance_form");
|
|
20238
|
+
const approveValues = context._scoped.getComponentById("instance_approval").getValues();
|
|
20218
20239
|
api.data = {
|
|
20219
20240
|
instanceId: "${instance._id}",
|
|
20220
20241
|
traceId: "${instance.trace._id}",
|
|
@@ -20226,9 +20247,9 @@ const getCCSubmitRequestAdaptor = async (instance) => {
|
|
|
20226
20247
|
};
|
|
20227
20248
|
|
|
20228
20249
|
const getPostSubmitRequestAdaptor = async (instance) => {
|
|
20229
|
-
return ` const instanceForm =
|
|
20250
|
+
return ` const instanceForm = context._scoped.getComponentById("instance_form");
|
|
20230
20251
|
const formValues = instanceForm.getValues();
|
|
20231
|
-
const approveValues =
|
|
20252
|
+
const approveValues = context._scoped.getComponentById("instance_approval").getValues();
|
|
20232
20253
|
let nextUsers = approveValues.next_users;
|
|
20233
20254
|
if(_.isString(nextUsers)){
|
|
20234
20255
|
nextUsers = [approveValues.next_users];
|
|
@@ -20244,7 +20265,7 @@ const getPostSubmitRequestAdaptor = async (instance) => {
|
|
|
20244
20265
|
approves: [{
|
|
20245
20266
|
_id: "${instance.approve._id}",
|
|
20246
20267
|
next_steps: [{
|
|
20247
|
-
step: approveValues.next_step
|
|
20268
|
+
step: approveValues.next_step,
|
|
20248
20269
|
users: nextUsers,
|
|
20249
20270
|
}],
|
|
20250
20271
|
description: approveValues.suggestion,
|
|
@@ -20252,6 +20273,7 @@ const getPostSubmitRequestAdaptor = async (instance) => {
|
|
|
20252
20273
|
}]
|
|
20253
20274
|
}]
|
|
20254
20275
|
}]};
|
|
20276
|
+
console.log('submit api', api);
|
|
20255
20277
|
api.data = body;
|
|
20256
20278
|
return api;
|
|
20257
20279
|
`;
|
|
@@ -20259,8 +20281,8 @@ const getPostSubmitRequestAdaptor = async (instance) => {
|
|
|
20259
20281
|
|
|
20260
20282
|
const getPostEngineRequestAdaptor = async (instance) => {
|
|
20261
20283
|
return `
|
|
20262
|
-
const formValues =
|
|
20263
|
-
const approveValues =
|
|
20284
|
+
const formValues = context._scoped.getComponentById("instance_form").getValues();
|
|
20285
|
+
const approveValues = context._scoped.getComponentById("instance_approval").getValues();
|
|
20264
20286
|
let nextUsers = approveValues.next_users;
|
|
20265
20287
|
if(_.isString(nextUsers)){
|
|
20266
20288
|
nextUsers = [approveValues.next_users];
|
|
@@ -20271,7 +20293,7 @@ const getPostEngineRequestAdaptor = async (instance) => {
|
|
|
20271
20293
|
trace: "${instance.approve.trace}",
|
|
20272
20294
|
_id: "${instance.approve._id}",
|
|
20273
20295
|
next_steps: [{
|
|
20274
|
-
step: approveValues.next_step
|
|
20296
|
+
step: approveValues.next_step,
|
|
20275
20297
|
users: nextUsers,
|
|
20276
20298
|
}],
|
|
20277
20299
|
description: approveValues.suggestion,
|
|
@@ -20290,7 +20312,7 @@ const getPostEngineRequestAdaptor = async (instance) => {
|
|
|
20290
20312
|
* @returns
|
|
20291
20313
|
*/
|
|
20292
20314
|
const getSubmitActions = async (instance) => {
|
|
20293
|
-
|
|
20315
|
+
console.log(`getSubmitActions instance====`, instance);
|
|
20294
20316
|
let api = "";
|
|
20295
20317
|
let requestAdaptor = "";
|
|
20296
20318
|
if(instance.approve?.type == "cc"){
|
|
@@ -20307,7 +20329,9 @@ const getSubmitActions = async (instance) => {
|
|
|
20307
20329
|
return null; //TODO 考虑异常情况?
|
|
20308
20330
|
}
|
|
20309
20331
|
}
|
|
20310
|
-
|
|
20332
|
+
console.log(`getSubmitActions api====`, api);
|
|
20333
|
+
console.log(`getSubmitActions requestAdaptor====`, requestAdaptor);
|
|
20334
|
+
console.log('getObjectListViewPath========>', Router$1.getObjectListViewPath({appId: "${appId}", objectName: "${objectName}", listViewName: "${side_listview_id}"}));
|
|
20311
20335
|
return [
|
|
20312
20336
|
// 校验表单
|
|
20313
20337
|
{
|
|
@@ -20315,7 +20339,7 @@ const getSubmitActions = async (instance) => {
|
|
|
20315
20339
|
"args": {},
|
|
20316
20340
|
"actionType": "custom",
|
|
20317
20341
|
"script": `
|
|
20318
|
-
|
|
20342
|
+
console.log("======getSubmitActions");
|
|
20319
20343
|
const form = event.context.scoped.getComponentById("instance_form");
|
|
20320
20344
|
return form.validate().then((instanceFormValidate)=>{
|
|
20321
20345
|
event.setData({...event.data, instanceFormValidate})
|
|
@@ -20339,7 +20363,7 @@ const getSubmitActions = async (instance) => {
|
|
|
20339
20363
|
componentId: "",
|
|
20340
20364
|
args: {
|
|
20341
20365
|
api: {
|
|
20342
|
-
url:
|
|
20366
|
+
url: `${api}`,
|
|
20343
20367
|
method: "post",
|
|
20344
20368
|
dataType: "json",
|
|
20345
20369
|
data: {
|
|
@@ -20375,7 +20399,7 @@ const getSubmitActions = async (instance) => {
|
|
|
20375
20399
|
};
|
|
20376
20400
|
|
|
20377
20401
|
const getApprovalDrawerSchema = async (instance) => {
|
|
20378
|
-
|
|
20402
|
+
console.log("=============getApprovalDrawerSchema=============", instance);
|
|
20379
20403
|
return {
|
|
20380
20404
|
type: "drawer",
|
|
20381
20405
|
overlay: true,
|
|
@@ -20389,7 +20413,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
20389
20413
|
bodyClassName: 'p-2',
|
|
20390
20414
|
footerClassName: 'p-2 pt-0',
|
|
20391
20415
|
drawerContainer: ()=>{
|
|
20392
|
-
return
|
|
20416
|
+
return document.body;
|
|
20393
20417
|
},
|
|
20394
20418
|
body: [
|
|
20395
20419
|
{
|
|
@@ -20538,15 +20562,11 @@ const getAttachments = async (instance)=>{
|
|
|
20538
20562
|
{
|
|
20539
20563
|
type: 'tpl',
|
|
20540
20564
|
inline: true,
|
|
20541
|
-
tpl: `<a href='
|
|
20565
|
+
tpl: `<a href='/api/v6/files/download/cfs.instances.filerecord/\${_id}/\${original.name}?download=true' target='_blank'>\${original.name}</a>`
|
|
20542
20566
|
}
|
|
20543
20567
|
],
|
|
20544
20568
|
"actions": [
|
|
20545
|
-
|
|
20546
|
-
"icon": "fa fa-eye",
|
|
20547
|
-
"type": "button",
|
|
20548
|
-
"id": "u:ef52fa8940a8"
|
|
20549
|
-
}
|
|
20569
|
+
|
|
20550
20570
|
],
|
|
20551
20571
|
"id": "u:550b3fdc8788"
|
|
20552
20572
|
},
|
|
@@ -20592,7 +20612,7 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
20592
20612
|
"extractValue": false,
|
|
20593
20613
|
"valueField": "version_id",
|
|
20594
20614
|
"receiver": {
|
|
20595
|
-
"url": "
|
|
20615
|
+
"url": "/api/instance/${context._id}/file",
|
|
20596
20616
|
headers: {
|
|
20597
20617
|
Authorization: "Bearer ${context.tenantId},${context.authToken}"
|
|
20598
20618
|
},
|
|
@@ -20604,7 +20624,7 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
20604
20624
|
api.data.append('instance', '${instance._id}');
|
|
20605
20625
|
api.data.append('approve', '${instance.approve?._id}');
|
|
20606
20626
|
api.data.append('owner', '${auth.userId}');
|
|
20607
|
-
api.data.append('owner_name', '${auth.name}');
|
|
20627
|
+
api.data.append('owner_name', '${auth.user.name}');
|
|
20608
20628
|
return api;
|
|
20609
20629
|
`
|
|
20610
20630
|
},
|
|
@@ -20683,11 +20703,6 @@ const getRelatedInstances = async (instance)=>{
|
|
|
20683
20703
|
}
|
|
20684
20704
|
],
|
|
20685
20705
|
"actions": [
|
|
20686
|
-
{
|
|
20687
|
-
"icon": "fa fa-eye",
|
|
20688
|
-
"type": "button",
|
|
20689
|
-
"id": "u:ef52fa8940a8"
|
|
20690
|
-
}
|
|
20691
20706
|
],
|
|
20692
20707
|
"id": "u:550b3fdc8788"
|
|
20693
20708
|
},
|
|
@@ -21458,6 +21473,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21458
21473
|
name: "instancePage",
|
|
21459
21474
|
className: "steedos-amis-instance-view",
|
|
21460
21475
|
bodyClassName: "overflow-y-auto h-full",
|
|
21476
|
+
headerClassName: "p-0",
|
|
21461
21477
|
"title": {
|
|
21462
21478
|
"type": "steedos-record-detail-header",
|
|
21463
21479
|
"label": "标题面板",
|
|
@@ -21479,6 +21495,25 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21479
21495
|
".antd-List-heading": {
|
|
21480
21496
|
"font-size": "14px",
|
|
21481
21497
|
"font-weight": "500"
|
|
21498
|
+
},
|
|
21499
|
+
".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
|
|
21500
|
+
"padding": "0px !important"
|
|
21501
|
+
},
|
|
21502
|
+
".steedos-amis-instance-view .antd-Page-body": {
|
|
21503
|
+
"width": "710px"
|
|
21504
|
+
},
|
|
21505
|
+
".antd-List-placeholder": {
|
|
21506
|
+
"display": "none"
|
|
21507
|
+
},
|
|
21508
|
+
".steedos-amis-instance-view .antd-Table-fixedTop:after":{
|
|
21509
|
+
"box-shadow": "none"
|
|
21510
|
+
},
|
|
21511
|
+
".antd-List-items": {
|
|
21512
|
+
"border": '0px'
|
|
21513
|
+
},
|
|
21514
|
+
".antd-ListItem": {
|
|
21515
|
+
"border-top": "0px !important",
|
|
21516
|
+
"background": "transparent !important"
|
|
21482
21517
|
}
|
|
21483
21518
|
},
|
|
21484
21519
|
body: [
|
|
@@ -21823,7 +21858,9 @@ const isCurrentStepOpinionField = (field, currentStep)=>{
|
|
|
21823
21858
|
return _$1__default["default"].includes(_$1__default["default"].map(getOpinionFieldStepsName(field), 'stepName'), currentStep?.name);
|
|
21824
21859
|
};
|
|
21825
21860
|
|
|
21826
|
-
const getInstanceInfo = async (
|
|
21861
|
+
const getInstanceInfo = async (props) => {
|
|
21862
|
+
console.log(`getInstanceInfo props`, props);
|
|
21863
|
+
const { instanceId, box } = props;
|
|
21827
21864
|
const userId = getSteedosAuth().userId;
|
|
21828
21865
|
const query = `{
|
|
21829
21866
|
instance: instances__findOne(id:"${instanceId}"){
|
|
@@ -22344,9 +22381,9 @@ var AmisObjectButton = function (props) {
|
|
|
22344
22381
|
if (button.type === "amis_button") {
|
|
22345
22382
|
var amisSchema = button.amis_schema;
|
|
22346
22383
|
var schema = _$1.isString(amisSchema) ? JSON.parse(amisSchema) : amisSchema;
|
|
22347
|
-
if
|
|
22348
|
-
|
|
22349
|
-
}
|
|
22384
|
+
// if(schema && schema.body.length > 0){
|
|
22385
|
+
// delete schema.body[0]['visibleOn']
|
|
22386
|
+
// }
|
|
22350
22387
|
if (schema && schema.body.length > 0 && button.visibleOn) {
|
|
22351
22388
|
schema.body[0]['visibleOn'] = button.visibleOn;
|
|
22352
22389
|
}
|
|
@@ -22372,6 +22409,14 @@ var AmisObjectButton = function (props) {
|
|
|
22372
22409
|
schema.data = createObject(data, _$1.defaultsDeep(renderData, schema.data, { context: data.context, global: data.global, }));
|
|
22373
22410
|
delete schema.data.event;
|
|
22374
22411
|
}
|
|
22412
|
+
// if(!has(JSON.parse(JSON.stringify(data)), 'record')){
|
|
22413
|
+
// if(schema && schema.data){
|
|
22414
|
+
// schema.data.record = null;
|
|
22415
|
+
// }
|
|
22416
|
+
// renderData.record = null;
|
|
22417
|
+
// }
|
|
22418
|
+
// console.log(`steedos-button button--->`, button);
|
|
22419
|
+
// console.log(`steedos-button schema--->`, schema);
|
|
22375
22420
|
return (React__default["default"].createElement(React__default["default"].Fragment, null, button && amisSchema ? (React__default["default"].createElement(React__default["default"].Fragment, null, render('body', schema, {
|
|
22376
22421
|
// 这里的信息会作为 props 传递给子组件,一般情况下都不需要这个,
|
|
22377
22422
|
data: renderData,
|
|
@@ -25107,6 +25152,7 @@ var AmisObjectForm = function (props) { return __awaiter(void 0, void 0, void 0,
|
|
|
25107
25152
|
return __generator(this, function (_f) {
|
|
25108
25153
|
switch (_f.label) {
|
|
25109
25154
|
case 0:
|
|
25155
|
+
console.log("===AmisObjectForm=props==", props);
|
|
25110
25156
|
$schema = props.$schema, recordId = props.recordId, mode = props.mode, _a = props.layout, layout = _a === void 0 ? "horizontal" : _a, labelAlign = props.labelAlign, appId = props.appId, fieldsExtend = props.fieldsExtend, _b = props.excludedFields, excludedFields = _b === void 0 ? null : _b, _c = props.fields, fields = _c === void 0 ? null : _c, _d = props.form, form = _d === void 0 ? {} : _d, _e = props.className, className = _e === void 0 ? "" : _e, enableInitApi = props.enableInitApi, initApiRequestAdaptor = props.initApiRequestAdaptor, initApiAdaptor = props.initApiAdaptor, apiRequestAdaptor = props.apiRequestAdaptor, apiAdaptor = props.apiAdaptor, enableTabs = props.enableTabs, tabsMode = props.tabsMode, submitSuccActions = props.submitSuccActions, data = props.data, formDataFilter = props.formDataFilter, onFormDataFilter = props.onFormDataFilter, env = props.env;
|
|
25111
25157
|
defaultData = props.defaultData;
|
|
25112
25158
|
objectApiName = props.objectApiName || "space_users";
|
|
@@ -25196,11 +25242,11 @@ var AmisObjectForm = function (props) { return __awaiter(void 0, void 0, void 0,
|
|
|
25196
25242
|
formData.recordId = props.recordId;
|
|
25197
25243
|
}
|
|
25198
25244
|
amisSchema.className = "steedos-object-form ".concat(className);
|
|
25199
|
-
// console.log('AmisObjectForm amisSchema======>', amisSchema)
|
|
25200
25245
|
amisSchema.data = Object.assign({}, amisSchema.data || {}, formData, { global: globalData, uiSchema: uiSchema });
|
|
25201
25246
|
if (_$1.has(props, 'objectApiName')) {
|
|
25202
25247
|
amisSchema.data.objectName = objectApiName;
|
|
25203
25248
|
}
|
|
25249
|
+
console.log('AmisObjectForm amisSchema======>', amisSchema);
|
|
25204
25250
|
return [2 /*return*/, amisSchema];
|
|
25205
25251
|
}
|
|
25206
25252
|
});
|
|
@@ -25602,9 +25648,9 @@ var AmisRecordDetailHeader = function (props) { return __awaiter(void 0, void 0,
|
|
|
25602
25648
|
e_1 = _d.sent();
|
|
25603
25649
|
console.warn(e_1);
|
|
25604
25650
|
return [3 /*break*/, 6];
|
|
25605
|
-
case 6:
|
|
25606
|
-
|
|
25607
|
-
|
|
25651
|
+
case 6:
|
|
25652
|
+
console.log("AmisRecordDetailHeader==>", config);
|
|
25653
|
+
return [2 /*return*/, config];
|
|
25608
25654
|
}
|
|
25609
25655
|
});
|
|
25610
25656
|
}); };
|
|
@@ -27532,7 +27578,7 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
|
|
|
27532
27578
|
label: false,
|
|
27533
27579
|
className: 'm-0',
|
|
27534
27580
|
tpl: "<a href=\"/app/-/${objectName}/view/${value}\" target=\"_blank\" ".concat(lookupATagClick, ">${label}</a>"),
|
|
27535
|
-
popOver: fieldRefObject.compactLayouts && window.innerWidth >= 768 ? {
|
|
27581
|
+
popOver: window.showLookupPopOver && fieldRefObject.compactLayouts && window.innerWidth >= 768 ? {
|
|
27536
27582
|
"trigger": "hover",
|
|
27537
27583
|
"className": "steedos-record-detail-popover",
|
|
27538
27584
|
"position": "left-bottom",
|
|
@@ -27634,7 +27680,7 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
|
|
|
27634
27680
|
type: 'static',
|
|
27635
27681
|
className: 'm-0',
|
|
27636
27682
|
tpl: "<a href=\"/app/-/${objectName}/view/${value}\" target=\"_blank\" ".concat(lookupATagClick, ">${label}</a>"),
|
|
27637
|
-
popOver: fieldRefObject.compactLayouts && window.innerWidth >= 768 ? {
|
|
27683
|
+
popOver: window.showLookupPopOver && fieldRefObject.compactLayouts && window.innerWidth >= 768 ? {
|
|
27638
27684
|
"trigger": "hover",
|
|
27639
27685
|
"className": "steedos-record-detail-popover",
|
|
27640
27686
|
"position": "left-bottom",
|
|
@@ -28238,6 +28284,7 @@ var AmisInstanceDetail = function (props) { return __awaiter(void 0, void 0, voi
|
|
|
28238
28284
|
return __generator(this, function (_a) {
|
|
28239
28285
|
switch (_a.label) {
|
|
28240
28286
|
case 0:
|
|
28287
|
+
console.log("AmisInstanceDetail", props);
|
|
28241
28288
|
instanceId = props.instanceId, boxName = props.boxName, data = props.data;
|
|
28242
28289
|
return [4 /*yield*/, getInstanceInfo({ instanceId: instanceId, box: boxName })];
|
|
28243
28290
|
case 1:
|
|
@@ -28247,7 +28294,7 @@ var AmisInstanceDetail = function (props) { return __awaiter(void 0, void 0, voi
|
|
|
28247
28294
|
schema = _a.sent();
|
|
28248
28295
|
// console.log(`AmisInstanceDetail schema`, schema);
|
|
28249
28296
|
schema.data = __assign$2(__assign$2({ "&": "$$", recordLoaded: true, submit_date: instanceInfo.submit_date, applicant_name: instanceInfo.applicant_name, related_instances: instanceInfo.related_instances, historyApproves: instanceInfo.historyApproves, boxName: boxName }, instanceInfo.approveValues), { context: Object.assign({}, data.context, instanceInfo), record: instanceInfo, applicant: instanceInfo.applicant._id });
|
|
28250
|
-
|
|
28297
|
+
console.log("AmisInstanceDetail schema", schema);
|
|
28251
28298
|
return [2 /*return*/, schema];
|
|
28252
28299
|
}
|
|
28253
28300
|
});
|