@steedos-widgets/amis-object 6.10.21 → 6.10.22
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-object.umd.js
CHANGED
|
@@ -1705,10 +1705,7 @@ var getAttachments=/*#__PURE__*/function(){var _ref35=_asyncToGenerator(/*#__PUR
|
|
|
1705
1705
|
* @LastEditTime: 2025-08-31 09:46:58
|
|
1706
1706
|
* @Description:
|
|
1707
1707
|
*/var getRelatedRecords=/*#__PURE__*/function(){var _ref37=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee34(instance$1){return _regenerator().w(function(_context34){while(1)switch(_context34.n){case 0:if(!(!instance$1.record_ids||_$1.isEmpty(instance$1.record_ids))){_context34.n=1;break;}return _context34.a(2);case 1:return _context34.a(2,_$1.map(instance$1.record_ids,function(item){return{type:'tpl',tpl:"<a href='/app/-/".concat(item.o,"/view/").concat(item.ids[0],"' target='_blank'>").concat(instance.t('frontend_workflow_related_records_link_title'),"</a>")};}));}},_callee34);}));return function getRelatedRecords(_x272){return _ref37.apply(this,arguments);};}();// TODO delete button
|
|
1708
|
-
var getRelatedInstances=/*#__PURE__*/function(){var _ref38=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(instance$1){
|
|
1709
|
-
// return ;
|
|
1710
|
-
// }
|
|
1711
|
-
spaceId=getSteedosAuth().tenantId;return _context35.a(2,{"type":"list","name":"relatedInstances","source":"${related_instances}",title:instance.t('frontend_workflow_related_file'),"listItem":{"body":[{type:'tpl',inline:true,tpl:"<a href='${context.rootUrl}/workflow/space/".concat(spaceId,"/view/readonly/${_id}' target='_blank'>${name}</a>")}],"actions":[],"id":"u:550b3fdc8788"},"id":"related_instances"});}},_callee35);}));return function getRelatedInstances(_x273){return _ref38.apply(this,arguments);};}();/*
|
|
1708
|
+
var getRelatedInstances=/*#__PURE__*/function(){var _ref38=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(instance$1){return _regenerator().w(function(_context35){while(1)switch(_context35.n){case 0:return _context35.a(2,{"type":"list","name":"relatedInstances","source":"${related_instances}",title:instance.t('frontend_workflow_related_file'),"listItem":{"body":[{type:'tpl',inline:true,tpl:"<a href='/app/approve_workflow/page/page_instance_view?recordId=${_id}' target='_blank'>${name}</a>"}],"actions":[],"id":"u:550b3fdc8788"},"id":"related_instances"});}},_callee35);}));return function getRelatedInstances(_x273){return _ref38.apply(this,arguments);};}();/*
|
|
1712
1709
|
* @Author: baozhoutao@steedos.com
|
|
1713
1710
|
* @Date: 2022-09-24 16:48:28
|
|
1714
1711
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
@@ -1757,7 +1754,7 @@ trsSchema=[];trs=[];tdFields=[];fields=[];_$1.each(instance.fields,function(fiel
|
|
|
1757
1754
|
stepsSchema=[];stepFields=[];fields=[];unGroupFields=[];_$1.each(instance.fields,function(field){if(field.type==="section"){fields.push(field);}else{unGroupFields.push(field);}});if(unGroupFields.length>0){fields=[{type:"section",name:"General",code:"General",fields:unGroupFields}].concat(fields);}_iterator5=_createForOfIteratorHelper(fields);_context44.p=1;_iterator5.s();case 2:if((_step5=_iterator5.n()).done){_context44.n=12;break;}field=_step5.value;if(!(field.type==="section"&&field.fields)){_context44.n=11;break;}stepFields=[];fieldSchema=void 0;_iterator6=_createForOfIteratorHelper(field.fields);_context44.p=3;_iterator6.s();case 4:if((_step6=_iterator6.n()).done){_context44.n=7;break;}childField=_step6.value;_context44.n=5;return getTdInputTpl(childField,true);case 5:fieldSchema=_context44.v;if(fieldSchema.type==="steedos-field"&&fieldSchema.config){if(fieldSchema.config.amis){fieldSchema.config.amis.mode=formMode;}else{fieldSchema.config.amis={mode:formMode};}}else{fieldSchema.mode=formMode;}stepFields.push(fieldSchema);case 6:_context44.n=4;break;case 7:_context44.n=9;break;case 8:_context44.p=8;_t79=_context44.v;_iterator6.e(_t79);case 9:_context44.p=9;_iterator6.f();return _context44.f(9);case 10:stepsSchema.push({"title":field.name,"body":stepFields});case 11:_context44.n=2;break;case 12:_context44.n=14;break;case 13:_context44.p=13;_t80=_context44.v;_iterator5.e(_t80);case 14:_context44.p=14;_iterator5.f();return _context44.f(14);case 15:isReadonlyBox=instance.box!=='inbox'&&instance.box!=='draft';if(isReadonlyBox){// 只读的审批箱中最后一步的保存按钮要隐藏
|
|
1758
1755
|
if(stepsSchema.length==1){stepsSchema[stepsSchema.length-1].actions=[];}else if(stepsSchema.length>1){stepsSchema[stepsSchema.length-1].actions=[{"label":"Prev","type":"button","actionType":"prev"}];}}return _context44.a(2,stepsSchema);}},_callee44,null,[[3,8,9,10],[1,13,14,15]]);}));return function getFormSteps(_x285){return _ref47.apply(this,arguments);};}();var getFormWizardView=/*#__PURE__*/function(){var _ref48=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee45(instance){var wizardMode,formSchema,_t81,_t82,_t83,_t84;return _regenerator().w(function(_context45){while(1)switch(_context45.n){case 0:wizardMode=instance.formVersion.wizard_mode||"vertical";//vertical,horizontal
|
|
1759
1756
|
_t81="instance-form-view-wizard ".concat(wizardMode==="horizontal"?"pt-4":"pt-1"," mt-3");_t82=wizardMode;_context45.n=1;return getFormSteps(instance);case 1:_t83=_context45.v;_t84={"change":{"actions":[{"actionType":"setValue","componentId":"instance_form","args":{"value":"${event.data}"}}]},"finished":{//点最后一步完成按钮触发暂存按钮事件保存数据
|
|
1760
|
-
"actions":[{"actionType":"click","componentId":"u:instance_save"}]}};formSchema={type:"wizard",className:_t81,mode:_t82,steps:_t83,actionFinishLabel:"${'CustomAction.instances.instance_save' | t}",id:"instance_wizard",target:"instance_form","onEvent":_t84};return _context45.a(2,formSchema);}},_callee45);}));return function getFormWizardView(_x286){return _ref48.apply(this,arguments);};}();var getApplicantTableView=/*#__PURE__*/function(){var _ref49=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee46(instance$1){var applicantInput,_t85,_t86;return _regenerator().w(function(_context46){while(1)switch(_context46.n){case 0:applicantInput=null;if(!(instance$1.state==='draft')){_context46.n=2;break;}_t85=Object;_t86={name:"__applicant",value:instance$1.applicant||getSteedosAuth().userId,disabled:instance$1.box!=='draft'};_context46.n=1;return lookupToAmis({name:"__applicant",label:false,reference_to:"space_users",reference_to_field:'user',multiple:false},false,{});case 1:applicantInput=_t85.assign.call(_t85,_t86,_context46.v,{"onEvent":{"change":{"actions":[{"actionType":"ajax","api":{"url":"/api/formula/user/${__applicant}","method":"get","messages":{"success":"","failed":""},"silent":true,"adaptor":"return {applicantInfo: payload}"}},{"actionType":"custom","script":"doAction({'componentId': 'u:instancePage', 'actionType': 'setValue', 'args': { 'value': { 'applicant': event.data.applicantInfo } }}) "}]}}});_context46.n=3;break;case 2:applicantInput={label:false,mode:"horizontal",className:"m-none p-none",disabled:true,type:"tpl",tpl:'<div>${applicant_name}</div>',id:"u:2016b04355f4"};case 3:if(applicantInput){if(applicantInput.className){applicantInput.className="".concat(applicantInput.className," inline-left");}else{applicantInput.className="inline-left";}}return _context46.a(2,{type:"table-view",className:"instance-applicant-view",trs:[{background:"#FFFFFF",tds:[{className:"td-title",background:"#FFFFFF",align:"left",width:"50%",colspan:"",body:[{type:"tpl",tpl:"<div class='inline-left'>"+instance.t('frontend_workflow_instances_applicant_name_prefix')+"</div>",id:"u:ee62634201bf"},applicantInput],id:"u:6c24c1bb99c9",style:{padding:"none"}},{className:"td-title",background:"#FFFFFF",align:"left",width:"50%",colspan:"",body:[{type:"tpl",tpl:"<div class='inline-left'>"+instance.t('frontend_workflow_instance_submit_date_prefix')+"</div>",id:"u:6d0a7763d527"},{label:false,mode:"horizontal",className:"m-none p-none inline-left",disabled:true,type:"tpl",inputFormat:"YYYY-MM-DD",valueFormat:"YYYY-MM-DDT00:00:00.000[Z]",tpl:'<div>${submit_date}</div>',id:"u:2016b04355f4"}],id:"u:c8b8214ac931",style:{padding:"none"}}]}],id:"u:047f3669468b",style:{borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none"}});}},_callee46);}));return function getApplicantTableView(_x287){return _ref49.apply(this,arguments);};}();var getApproveButton=/*#__PURE__*/function(){var _ref50=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee47(instance$1,events){var _t87,_t88,_t89,_t90,_t91,_t92,_t93,_t94;return _regenerator().w(function(_context47){while(1)switch(_context47.n){case 0:if(!(!instance$1.approve||instance$1.box!='inbox'&&instance$1.box!='draft')){_context47.n=1;break;}return _context47.a(2,null);case 1:_t87=instance.t('frontend_workflow_instance_button_sign');_t88={};_context47.n=2;return getApprovalDrawerSchema(instance$1,events);case 2:_t89=_context47.v;_t90={componentId:"",args:_t88,actionType:"drawer",drawer:_t89};_t91=[_t90];_t92={actions:_t91};_t93={click:_t92};_t94={"approve-button w-14 h-14 rounded-full fixed bottom-4 right-4 shadow-lg text-white text-base text-center font-semibold bg-blue-500 p-0":true,"hidden":instance$1.box==='draft'};return _context47.a(2,{type:"button",label:_t87,onEvent:_t93,id:"steedos-approve-button",level:"primary",className:_t94});}},_callee47);}));return function getApproveButton(_x288,_x289){return _ref50.apply(this,arguments);};}();var getScrollToBottomAutoOpenApproveDrawerScript=function getScrollToBottomAutoOpenApproveDrawerScript(){return"\n (function () {\n setTimeout(function () {\n var bodyEl = document.querySelector('.steedos-instance-detail-wrapper .steedos-amis-instance-view .steedos-amis-instance-view-body');\n if (!bodyEl) return;\n var btn = document.querySelector('.steedos-instance-detail-wrapper .steedos-amis-instance-view .approve-button');\n if (!btn) return;\n\n function isDrawerOpen() {\n var dr = document.querySelector('.amis-dialog-widget.approval-drawer');\n return dr && dr.offsetParent !== null;\n }\n\n var lastAtBottom = false; // \u4E0A\u4E00\u4E2Ascroll\u4E8B\u4EF6\u662F\u5426\u5230\u5E95\n\n function isAtBottom() {\n var scrollTop = bodyEl.scrollTop,\n scrollHeight = bodyEl.scrollHeight,\n clientHeight = bodyEl.clientHeight;\n return (scrollHeight <= clientHeight) || (scrollTop + clientHeight >= scrollHeight - 2);\n }\n\n // wheel: \u53EA\u8981\u73B0\u5728\u5230\u5E95\u3001\u4E14\u662F\u5411\u4E0B\u6EDA\uFF0C\u5373\u53EF\u5F39\u51FA\n bodyEl.addEventListener('wheel', function (e) {\n var atBottom = isAtBottom();\n if (atBottom && e.deltaY > 0 && !isDrawerOpen()) {\n // [wheel] \u62D6\u52A8\u6761\u5728\u5E95\u90E8\u4E14\u5411\u4E0B\u6EDA\uFF0C\u5F39drawer\n btn.click();\n }\n });\n\n // scroll: \u62D6\u52A8\u65F6\u4EC5\u201C\u4ECE\u975E\u5E95\u90E8->\u5E95\u90E8\u201D\u77AC\u95F4\u5F39\n bodyEl.addEventListener('scroll', function () {\n var atBottom = isAtBottom();\n if (!lastAtBottom && atBottom && !isDrawerOpen()) {\n // [scroll] \u62D6\u52A8\u6761\u5230\u5E95\uFF0C\u5F39drawer\n btn.click();\n }\n lastAtBottom = atBottom;\n });\n }, 1000);\n })();\n ";};var getFlowFormSchema=/*#__PURE__*/function(){var _ref51=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48(instance,box){var _instance$formVersion;var formStyle,formContentSchema,amisSchemaStr,initedEvents,changeEvents,submitEvents,nextStepInitedEvents,nextStepChangeEvents,nextStepUserChangeEvents,_onEvent$inited,_onEvent$change,_onEvent$submit,_onEvent$nextStepInit,_onEvent$nextStepChan,onEvent,_t95,_t96,_t97,_t98,_t99,_t100,_t101,_t102,_t103,_t104,_t105,_t106,_t107,_t108,_t109,_t110,_t111,_t112,_t113,_t114;return _regenerator().w(function(_context48){while(1)switch(_context48.n){case 0:formStyle=instance.formVersion.style||"table";if(!(formStyle==="wizard")){_context48.n=2;break;}_context48.n=1;return getFormWizardView(instance);case 1:formContentSchema=_context48.v;_context48.n=4;break;case 2:_context48.n=3;return getFormTableView(instance);case 3:formContentSchema=_context48.v;case 4:amisSchemaStr=(_instance$formVersion=instance.formVersion)===null||_instance$formVersion===void 0?void 0:_instance$formVersion.amis_schema;initedEvents=[];changeEvents=[];submitEvents=[];nextStepInitedEvents=[];nextStepChangeEvents=[];nextStepUserChangeEvents=[];if(amisSchemaStr){onEvent=JSON.parse(instance.formVersion.amis_schema).onEvent;initedEvents=(onEvent===null||onEvent===void 0||(_onEvent$inited=onEvent.inited)===null||_onEvent$inited===void 0?void 0:_onEvent$inited.actions)||[];changeEvents=(onEvent===null||onEvent===void 0||(_onEvent$change=onEvent.change)===null||_onEvent$change===void 0?void 0:_onEvent$change.actions)||[];submitEvents=(onEvent===null||onEvent===void 0||(_onEvent$submit=onEvent.submit)===null||_onEvent$submit===void 0?void 0:_onEvent$submit.actions)||[];nextStepInitedEvents=(onEvent===null||onEvent===void 0||(_onEvent$nextStepInit=onEvent.nextStepInited)===null||_onEvent$nextStepInit===void 0?void 0:_onEvent$nextStepInit.actions)||[];nextStepChangeEvents=(onEvent===null||onEvent===void 0||(_onEvent$nextStepChan=onEvent.nextStepChange)===null||_onEvent$nextStepChan===void 0?void 0:_onEvent$nextStepChan.actions)||[];nextStepUserChangeEvents=(onEvent===null||onEvent===void 0?void 0:
|
|
1757
|
+
"actions":[{"actionType":"click","componentId":"u:instance_save"}]}};formSchema={type:"wizard",className:_t81,mode:_t82,steps:_t83,actionFinishLabel:"${'CustomAction.instances.instance_save' | t}",id:"instance_wizard",target:"instance_form","onEvent":_t84};return _context45.a(2,formSchema);}},_callee45);}));return function getFormWizardView(_x286){return _ref48.apply(this,arguments);};}();var getApplicantTableView=/*#__PURE__*/function(){var _ref49=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee46(instance$1){var applicantInput,_t85,_t86;return _regenerator().w(function(_context46){while(1)switch(_context46.n){case 0:applicantInput=null;if(!(instance$1.state==='draft')){_context46.n=2;break;}_t85=Object;_t86={name:"__applicant",value:instance$1.applicant||getSteedosAuth().userId,disabled:instance$1.box!=='draft'};_context46.n=1;return lookupToAmis({name:"__applicant",label:false,reference_to:"space_users",reference_to_field:'user',multiple:false},false,{});case 1:applicantInput=_t85.assign.call(_t85,_t86,_context46.v,{"onEvent":{"change":{"actions":[{"actionType":"ajax","api":{"url":"/api/formula/user/${__applicant}","method":"get","messages":{"success":"","failed":""},"silent":true,"adaptor":"return {applicantInfo: payload}"}},{"actionType":"custom","script":"doAction({'componentId': 'u:instancePage', 'actionType': 'setValue', 'args': { 'value': { 'applicant': event.data.applicantInfo } }}) "}]}}});_context46.n=3;break;case 2:applicantInput={label:false,mode:"horizontal",className:"m-none p-none",disabled:true,type:"tpl",tpl:'<div>${applicant_name}</div>',id:"u:2016b04355f4"};case 3:if(applicantInput){if(applicantInput.className){applicantInput.className="".concat(applicantInput.className," inline-left");}else{applicantInput.className="inline-left";}}return _context46.a(2,{type:"table-view",className:"instance-applicant-view",trs:[{background:"#FFFFFF",tds:[{className:"td-title",background:"#FFFFFF",align:"left",width:"50%",colspan:"",body:[{type:"tpl",tpl:"<div class='inline-left'>"+instance.t('frontend_workflow_instances_applicant_name_prefix')+"</div>",id:"u:ee62634201bf"},applicantInput],id:"u:6c24c1bb99c9",style:{padding:"none"}},{className:"td-title",background:"#FFFFFF",align:"left",width:"50%",colspan:"",body:[{type:"tpl",tpl:"<div class='inline-left'>"+instance.t('frontend_workflow_instance_submit_date_prefix')+"</div>",id:"u:6d0a7763d527"},{label:false,mode:"horizontal",className:"m-none p-none inline-left",disabled:true,type:"tpl",inputFormat:"YYYY-MM-DD",valueFormat:"YYYY-MM-DDT00:00:00.000[Z]",tpl:'<div>${submit_date}</div>',id:"u:2016b04355f4"}],id:"u:c8b8214ac931",style:{padding:"none"}}]}],id:"u:047f3669468b",style:{borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none"}});}},_callee46);}));return function getApplicantTableView(_x287){return _ref49.apply(this,arguments);};}();var getApproveButton=/*#__PURE__*/function(){var _ref50=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee47(instance$1,events){var _t87,_t88,_t89,_t90,_t91,_t92,_t93,_t94;return _regenerator().w(function(_context47){while(1)switch(_context47.n){case 0:if(!(!instance$1.approve||instance$1.box!='inbox'&&instance$1.box!='draft')){_context47.n=1;break;}return _context47.a(2,null);case 1:_t87=instance.t('frontend_workflow_instance_button_sign');_t88={};_context47.n=2;return getApprovalDrawerSchema(instance$1,events);case 2:_t89=_context47.v;_t90={componentId:"",args:_t88,actionType:"drawer",drawer:_t89};_t91=[_t90];_t92={actions:_t91};_t93={click:_t92};_t94={"approve-button w-14 h-14 rounded-full fixed bottom-4 right-4 shadow-lg text-white text-base text-center font-semibold bg-blue-500 p-0":true,"hidden":instance$1.box==='draft'};return _context47.a(2,{type:"button",label:_t87,onEvent:_t93,id:"steedos-approve-button",level:"primary",className:_t94});}},_callee47);}));return function getApproveButton(_x288,_x289){return _ref50.apply(this,arguments);};}();var getScrollToBottomAutoOpenApproveDrawerScript=function getScrollToBottomAutoOpenApproveDrawerScript(){return"\n (function () {\n setTimeout(function () {\n var bodyEl = document.querySelector('.steedos-instance-detail-wrapper .steedos-amis-instance-view .steedos-amis-instance-view-body');\n if (!bodyEl) return;\n var btn = document.querySelector('.steedos-instance-detail-wrapper .steedos-amis-instance-view .approve-button');\n if (!btn) return;\n\n function isDrawerOpen() {\n var dr = document.querySelector('.amis-dialog-widget.approval-drawer');\n return dr && dr.offsetParent !== null;\n }\n\n var lastAtBottom = false; // \u4E0A\u4E00\u4E2Ascroll\u4E8B\u4EF6\u662F\u5426\u5230\u5E95\n\n function isAtBottom() {\n var scrollTop = bodyEl.scrollTop,\n scrollHeight = bodyEl.scrollHeight,\n clientHeight = bodyEl.clientHeight;\n return (scrollHeight <= clientHeight) || (scrollTop + clientHeight >= scrollHeight - 2);\n }\n\n // wheel: \u53EA\u8981\u73B0\u5728\u5230\u5E95\u3001\u4E14\u662F\u5411\u4E0B\u6EDA\uFF0C\u5373\u53EF\u5F39\u51FA\n bodyEl.addEventListener('wheel', function (e) {\n var atBottom = isAtBottom();\n if (atBottom && e.deltaY > 0 && !isDrawerOpen()) {\n // [wheel] \u62D6\u52A8\u6761\u5728\u5E95\u90E8\u4E14\u5411\u4E0B\u6EDA\uFF0C\u5F39drawer\n btn.click();\n }\n });\n\n // scroll: \u62D6\u52A8\u65F6\u4EC5\u201C\u4ECE\u975E\u5E95\u90E8->\u5E95\u90E8\u201D\u77AC\u95F4\u5F39\n bodyEl.addEventListener('scroll', function () {\n var atBottom = isAtBottom();\n if (!lastAtBottom && atBottom && !isDrawerOpen()) {\n // [scroll] \u62D6\u52A8\u6761\u5230\u5E95\uFF0C\u5F39drawer\n btn.click();\n }\n lastAtBottom = atBottom;\n });\n }, 1000);\n })();\n ";};var getFlowFormSchema=/*#__PURE__*/function(){var _ref51=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48(instance,box){var _instance$formVersion;var formStyle,formContentSchema,amisSchemaStr,initedEvents,changeEvents,submitEvents,nextStepInitedEvents,nextStepChangeEvents,nextStepUserChangeEvents,_onEvent$inited,_onEvent$change,_onEvent$submit,_onEvent$nextStepInit,_onEvent$nextStepChan,_onEvent$nextStepUser,onEvent,_t95,_t96,_t97,_t98,_t99,_t100,_t101,_t102,_t103,_t104,_t105,_t106,_t107,_t108,_t109,_t110,_t111,_t112,_t113,_t114;return _regenerator().w(function(_context48){while(1)switch(_context48.n){case 0:formStyle=instance.formVersion.style||"table";if(!(formStyle==="wizard")){_context48.n=2;break;}_context48.n=1;return getFormWizardView(instance);case 1:formContentSchema=_context48.v;_context48.n=4;break;case 2:_context48.n=3;return getFormTableView(instance);case 3:formContentSchema=_context48.v;case 4:amisSchemaStr=(_instance$formVersion=instance.formVersion)===null||_instance$formVersion===void 0?void 0:_instance$formVersion.amis_schema;initedEvents=[];changeEvents=[];submitEvents=[];nextStepInitedEvents=[];nextStepChangeEvents=[];nextStepUserChangeEvents=[];if(amisSchemaStr){onEvent=JSON.parse(instance.formVersion.amis_schema).onEvent;initedEvents=(onEvent===null||onEvent===void 0||(_onEvent$inited=onEvent.inited)===null||_onEvent$inited===void 0?void 0:_onEvent$inited.actions)||[];changeEvents=(onEvent===null||onEvent===void 0||(_onEvent$change=onEvent.change)===null||_onEvent$change===void 0?void 0:_onEvent$change.actions)||[];submitEvents=(onEvent===null||onEvent===void 0||(_onEvent$submit=onEvent.submit)===null||_onEvent$submit===void 0?void 0:_onEvent$submit.actions)||[];nextStepInitedEvents=(onEvent===null||onEvent===void 0||(_onEvent$nextStepInit=onEvent.nextStepInited)===null||_onEvent$nextStepInit===void 0?void 0:_onEvent$nextStepInit.actions)||[];nextStepChangeEvents=(onEvent===null||onEvent===void 0||(_onEvent$nextStepChan=onEvent.nextStepChange)===null||_onEvent$nextStepChan===void 0?void 0:_onEvent$nextStepChan.actions)||[];nextStepUserChangeEvents=(onEvent===null||onEvent===void 0||(_onEvent$nextStepUser=onEvent.nextStepUserChange)===null||_onEvent$nextStepUser===void 0?void 0:_onEvent$nextStepUser.actions)||[];}// if (box == 'inbox' || box == 'draft') {
|
|
1761
1758
|
// TODO: 临时去掉 AutoOpenApproveDrawer 功能因为测试到性能问题
|
|
1762
1759
|
if((box=='inbox'||box=='draft')&&window.enableAutoOpenApproveDrawer){// 滚动条滚动到底部弹出底部签批drawer窗口
|
|
1763
1760
|
initedEvents.push({"actionType":"custom","script":getScrollToBottomAutoOpenApproveDrawerScript(),"args":{}});}// console.log('formContentSchema....', formContentSchema)
|