@steedos-widgets/sortable 3.6.2-beta.16 → 3.6.2-beta.17

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.
@@ -55467,7 +55467,7 @@ async function getTableColumns(fields, options){
55467
55467
  var data = event.data;
55468
55468
  var file_name = data.versions ? data.name : "${field.label}";
55469
55469
  var file_id = data._id;
55470
- SteedosUI.previewFile && SteedosUI.previewFile({file_name, file_id});
55470
+ window.previewFile && window.previewFile({file_name, file_id});
55471
55471
  `;
55472
55472
  columnItem = {
55473
55473
  "type": "button",
@@ -55496,7 +55496,7 @@ async function getTableColumns(fields, options){
55496
55496
  "actionType": "custom",
55497
55497
  "script": previewFileScript,
55498
55498
  // "expression": "!!window?.nw?.require" //PC客户端预览附件
55499
- "expression": "!!!(window && window.nw && window.nw.require)"//PC客户端预览附件
55499
+ "expression": "!!(window && window.nw && window.nw.require)"//PC客户端预览附件
55500
55500
  }
55501
55501
  ]
55502
55502
  }
@@ -60652,6 +60652,36 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60652
60652
  convertData = {
60653
60653
  type: 'static-text'
60654
60654
  };
60655
+ }else if(field.autonumber_enable_modify){
60656
+ convertData = {
60657
+ "type": "input-group",
60658
+ "body": [
60659
+ {
60660
+ "type": "input-text",
60661
+ "name": field.name
60662
+ },
60663
+ {
60664
+ "type": "button",
60665
+ "label": "自动获取",
60666
+ "actionType": "ajax",
60667
+ "api": {
60668
+ "url": `\${context.rootUrl}/api/autonumber/generator/\${objectName}/${field.name}`,
60669
+ "method": "post",
60670
+ "headers": {
60671
+ "Authorization": "Bearer ${context.tenantId},${context.authToken}"
60672
+ },
60673
+ "adaptor": `
60674
+ payload.data["${field.name}"] = payload.data && payload.data.autonumber;
60675
+ delete payload.data.autonumber;
60676
+ return payload;
60677
+ `
60678
+ },
60679
+ "messages": {
60680
+ "success": "获取成功"
60681
+ }
60682
+ }
60683
+ ]
60684
+ };
60655
60685
  }
60656
60686
  break;
60657
60687
  case 'url':