export const containers = [
  {
    type: "grid",
    category: "container",
    icon: "grid",
    commonFlag: !0,
    columnFlag: true,
    cols: [],
    options: {
      name: "",
      hidden: !1,
      // isFullscreen: false,
      gutter: 6,
      // colHeight: null,
      width: "",
      containerClass: "",
      customClass: "",
      ...defaultWfConfig,
    },
  },
  {
    type: "table",
    category: "container",
    icon: "table",
    commonFlag: !0,
    columnFlag: true,
    rows: [],
    options: {
      name: "",
      hidden: !1,
      customClass: "",
      styleTableClass: "",
      fullWidth: false,
      ...defaultWfConfig,
    },
  },
  {
    type: "tab",
    category: "container",
    icon: "tab",
    commonFlag: !0,
    columnFlag: true,
    tabs: [],
    options: {
      name: "",
      hidden: !1,
      height: "",
      // isFullscreen: false,
      tabClass: "tab-boxCard tabCard-sty1",
      customClass: "",
      ...defaultWfConfig,
    },
  },
  /* {
  type: "sub-form",
  category: "container",
  icon: "sub-form",
  widgetList: [],
  options: {
    name: "",
    showBlankRow: !0,
    showRowNumber: !0,
    labelAlign: "label-center-align",
    hidden: !1,
    actionColumnPosition: "left",
    customClass: "",
    onSubFormRowAdd: "",
    onSubFormRowInsert: "",
    onSubFormRowDelete: "",
    onSubFormRowChange: ""
  }
}, {
  type: "grid-sub-form",
  category: "container",
  icon: "grid-sub-form",
  widgetList: [],
  options: {
    name: "",
    showBlankRow: !0,
    showRowNumber: !0,
    hidden: !1,
    actionColumnPosition: "left",
    customClass: "",
    onSubFormRowAdd: "",
    onSubFormRowInsert: "",
    onSubFormRowDelete: "",
    onSubFormRowChange: ""
  }
}, */
  {
    type: "grid-col",
    category: "container",
    icon: "grid-col",
    internal: !0,
    widgetList: [],
    options: {
      name: "",
      hidden: !1,
      height: null,
      span: 12,
      offset: 0,
      push: 0,
      pull: 0,
      responsive: !1,
      md: 12,
      sm: 12,
      xs: 12,
      alignType: "",
      customClass: "",
    },
  },
  {
    type: "table-cell",
    category: "container",
    icon: "table-cell",
    internal: !0,
    widgetList: [],
    merged: !1,
    options: {
      name: "",
      cellWidth: "",
      cellHeight: "",
      colspan: 1,
      rowspan: 1,
      customClass: "",
    },
  },
  {
    type: "tab-pane",
    category: "container",
    icon: "tab-pane",
    internal: !0,
    widgetList: [],
    options: {
      name: "",
      label: "",
      hidden: !1,
      active: !1,
      disabled: !1,
      customClass: "",
    },
  },
  {
    type: "data-table",
    category: "container",
    icon: "data-table",
    commonFlag: !0,
    formItemFlag: !0,
    layoutType: "PC",
    widgetList: [],
    columns: [],
    buttons: [],
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !0,
      keyName: "",
      label: "data-table",
      submitFlag: true,
      formField: "",
      hidden: !1,
      rowSpacing: 8,
      tableHeight: "",
      tableWidth: "100%",
      tableRowHeight: null,
      customClass: "",
      stripe: !0,
      showIndex: !1,
      // showCheckBox: !0,
      showPagination: false,
      showExportBtn: false,
      smallPagination: !1,
      showSummary: !1,
      // border: !0,
      tableSize: "medium",
      showSearchArea: false,
      dataTable: true,
      tableColumns: [],
      showButtonsColumn: !1,
      buttonsColumnFixed: "right",
      buttonsColumnTitle: "操作",
      buttonsColumnWidth: 120,
      operationButtons: [
        {
          name: "detail",
          label: "详情",
          type: "text",
          size: "small",
          round: !1,
          hidden: !0,
          disabled: !1,
        },
        {
          name: "edit",
          label: "编辑",
          type: "text",
          size: "small",
          round: !1,
          hidden: !1,
          disabled: !1,
        },
        {
          name: "delete",
          label: "删除",
          type: "text",
          size: "small",
          round: !1,
          hidden: !1,
          disabled: !1,
        },
      ],
      pagination: {
        currentPage: 1,
        pageSizes: [10, 15, 20, 30, 50, 100, 200],
        pageSize: 20,
        total: 366,
      },
      gridPageSize: 100,
      gridPageSizeList: [
        { value: 50 },
        { value: 100 },
        { value: 200 },
        { value: 500 },
      ],

      dsEnabled: !1,
      dsName: "",
      tableData: [],
      tableCondition: "",
      onCreated: "",
      onMounted: "",
      onCheckboxChange: "",
      onCheckboxAll: "",
      onCellDblclick: "",
      onSearchTable: "",
      onResetTable: "",
      dynamicColumnsScript: null,
      dynamicColumnSourceType: "none",
      dynamicColumnMode: "append",
      dynamicColumnScriptCode: null,
      dynamicColumnScriptParam: null,
      onDynamicColumnsConvert: null,
      dynamicColumnLoadScript: null,
      accessType: "1",
      accessUrl: null,
      accessReturnType: "1",
      accessScript: null,
      scriptEnabled: false,
      accessParam: null,

      accessFormCode: null,

      ...httpConfig,

      /*isLoadDataByAccess: false,
      scriptEnabled: false,
      scriptName: null,
      scriptCode: null,
      accessParam: null,
      accessCallback: null,*/
      isQueryTable: false,
      searchOnSwitchTab: false,
      entityTableCode: null,
      entityTableDesc: null,

      tableConfig: null,
      isEditTable: false,
      isTreeTable: false,
      wbsEnabled: false,
      sortScriptCode: null,
      importTemplateFile: null,

      ...defaultWfConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
      hideGridCheckBox: false,
      isNotQueryAllPage: false,
      isNotShowQueryButton: false,

      exportItemColumns: [],
      exportItemScriptCode: null,
      exportItemParam: null,
    },
  },
  /*{
    type: "table-column",
    category: "container",
    icon: "text-field",
    commonFlag: !0,
    formItemFlag: !0,
    widgetList: [],
    options: {
      name: "",
      hidden: !1,
      label: "",
      customClass: "",
      columnWidth: "",
      onCreated: "",
      onMounted: "",
    }
  },*/
  {
    type: "vf-dialog",
    category: "container",
    icon: "vf-dialog",
    widgetList: [],
    options: {
      name: "",
      title: "",
      width: "50%",
      fullscreen: !1,
      showModal: !0,
      showClose: !0,
      closeOnClickModal: !1,
      closeOnPressEscape: !1,
      center: !1,
      readMode: !1,
      disabledMode: !1,
      okButtonLabel: "确定",
      okButtonHidden: !1,
      cancelButtonLabel: "取消",
      cancelButtonHidden: !1,
      onOkButtonClick: "",
      onCancelButtonClick: "",
      onDialogOpened: "",
      onDialogBeforeClose: "",
    },
  },
  /*{
  type: "vf-drawer",
  category: "container",
  icon: "vf-drawer",
  widgetList: [],
  options: {
    name: "",
    title: "",
    size: "50%",
    showModal: !0,
    showClose: !0,
    closeOnClickModal: !1,
    closeOnPressEscape: !1,
    direction: "rtl",
    readMode: !1,
    disabledMode: !1,
    okButtonLabel: "",
    okButtonHidden: !1,
    cancelButtonLabel: "",
    cancelButtonHidden: !1,
    onOkButtonClick: "",
    onCancelButtonClick: "",
    onDrawerOpened: "",
    onDrawerBeforeClose: ""
  }
}, */
  /*{
    type: "vf-box",
    category: "container",
    icon: "vf-box",
    widgetList: [],
    options: {
      name: "",
      label: '',
      hidden: !1,
      customClass: "",
      styleTitClass: 'title',
      isFullscreen: false,
      height: '200px',
    }
  },*/
  /* {
    type: "panel",
    category: "container",
    icon: "vf-box",
    widgetList: [],
    options: {
      name: "",
      label: 'panel',
      hidden: !1,
      customClass: "",
      height:"300",
    }
  }, */
  /*{
    type: "query",
    category: "container",
    icon: "vf-box",
    widgetList: [],
    options: {
      name: "",
      hidden: !1,
      customClass: ""
    }
  },*/
  {
    type: "detail",
    category: "container",
    icon: "grid",
    commonFlag: !0,
    layoutType: "PC",
    panes: [],
    widgetList: [],
    options: {
      name: "",
      hidden: !1,
      label: "单据详情",
      detailContainer: true,
      hideNav: false,
      // colHeight: null,
      customClass: "",
      wfEnabled: false,
      onCreated: "",
      onMounted: "",
    },
  },
  {
    type: "detail-pane",
    category: "container",
    icon: "grid-col",
    internal: !0,
    buttonWidgetList: [],
    widgetList: [],
    options: {
      name: "",
      hidden: !1,
      label: "",
      customClass: "",
      tableRef: "",
      detailPaneContainer: true,
      defaultCollapse: false,
      /*onCreated: "",
      onMounted: "",*/
    },
  },
  {
    type: "detail-h5",
    category: "container",
    icon: "grid",
    commonFlag: !0,
    layoutType: "H5",
    panes: [],
    widgetList: [],
    options: {
      name: "",
      hidden: !1,
      label: "单据详情",
      detailH5Container: true,
      // colHeight: null,
      customClass: "",
      wfEnabled: false,
      onCreated: "",
      onMounted: "",
    },
  },
  {
    type: "list-h5",
    category: "container",
    icon: "grid",
    commonFlag: !0,
    formItemFlag: !0,
    layoutType: "H5",
    lineButtons: [],
    buttons: [],
    widgetList: [],
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !0,
      keyName: "",
      hidden: !1,
      label: "",
      listH5: true,
      // colHeight: null,
      customClass: "",
      isQueryTable: false,

      accessUrl: null,
      ...httpConfig,
      formScriptEnabled: false,
      tableColumns: [
        {
          columnId: 1,
          prop: "nick_name",
          label: "姓名",
          width: "150",
          show: true,
          align: "left",
          fixed: "left",
          sortable: true,
          required: false,
          showForRow: true,
          formatS: "editInput",
          columnOption: {},
        },
        {
          columnId: 1662195943228,
          label: "登录账号",
          prop: "login_account",
          show: true,
          sortable: true,
          align: "left",
          width: "150",
          required: false,
          showForRow: true,
          formatS: "editInput",
          columnOption: {},
        },
        {
          columnId: 1662195943423,
          label: "是否启用",
          prop: "enabled",
          show: true,
          sortable: true,
          align: "left",
          width: "150",
          formatS: "render",
          render:
            "if(params.row.enabled){\n  return '启用';\n}else{\n  return '禁用';\n}",
          required: false,
          showForRow: true,
          columnOption: {},
        },
        {
          columnId: 1662196087046,
          label: "性别",
          prop: "gender",
          width: "150",
          show: true,
          sortable: true,
          align: "left",
          formatS: "render",
          render:
            "if(params.row.gender==1){\n  return '男';\n}else{\n  return '女';\n}",
          required: false,
          showForRow: true,
          columnOption: {},
        },
        {
          columnId: 1662196135287,
          label: "创建时间",
          prop: "create_time",
          width: "150",
          show: true,
          sortable: true,
          align: "left",
          required: false,
          showForRow: true,
          formatS: "editDate",
          columnOption: {},
        },
      ],
      tableData: [
        /*{
          "flag": 1,
          "gender": 1,
          "mobile": "18900000000",
          "modify_by": "admin",
          "login_account": "admin",
          "enabled": true,
          "create_by": "admin",
          "password": "$2a$10$pYkIeHldXBDIdKShgYjayuWM.NvmuYmewZ1D4qIFF3GL2g5bFzmdS",
          "user_type": 0,
          "nick_name": "admin",
          "company_code": "mk_group",
          "id": 1,
          "create_date": "2021-12-05 23:12:20",
          "modify_date": "2022-05-16 22:21:44",
        },
        {
          "flag": 1,
          "gender": 1,
          "mobile": "18900000000",
          "modify_by": "admin",
          "login_account": "admin2",
          "enabled": true,
          "create_by": "admin",
          "password": "$2a$10$pYkIeHldXBDIdKShgYjayuWM.NvmuYmewZ1D4qIFF3GL2g5bFzmdS",
          "user_type": 0,
          "nick_name": "admin2",
          "company_code": "mk_group",
          "id": 2,
          "create_date": "2021-12-05 23:12:20",
          "modify_date": "2022-05-16 22:21:44",
        }*/
      ],
      onCreated: "",
      onMounted: "",
    },
  },
  {
    type: "tree-pane",
    category: "container",
    icon: "tree-pane",
    commonFlag: !0,
    leftWidgetList: [],
    widgetList: [],
    options: {
      name: "",
      hidden: !1,
      treeLabel: "单据类型",
      customClass: "",
      treePane: true,
      onCreated: "",
      onMounted: "",
      onTreeLabelClick: "",
    },
  },
  {
    type: "h5-card",
    category: "container",
    icon: "tab",
    commonFlag: !0,
    layoutType: "H5",
    panes: [],
    options: {
      name: "",
      hidden: !1,
      height: "",
      customClass: "",
      h5Card: true,
    },
  },
  {
    type: "h5-card-pane",
    category: "container",
    icon: "tab-pane",
    internal: !0,
    buttonWidgetList: [],
    widgetList: [],
    options: {
      name: "",
      label: "",
      hidden: !1,
      active: !1,
      disabled: !1,
      customClass: "",
    },
  },
  {
    type: "h5-table",
    category: "container",
    icon: "table",
    commonFlag: !0,
    layoutType: "H5",
    rows: [],
    options: {
      name: "",
      hidden: !1,
      customClass: "",
      fullWidth: false,
    },
  },
  {
    type: "h5-table-cell",
    category: "container",
    icon: "table-cell",
    internal: !0,
    widgetList: [],
    merged: !1,
    options: {
      name: "",
      cellWidth: "",
      cellHeight: "",
      colspan: 1,
      rowspan: 1,
      customClass: "",
    },
  },
  {
    type: "tree",
    icon: "tree",
    category: "container",
    commonFlag: !0,
    widgetList: [],
    options: {
      name: "tree",
      label: "",
      filter: !0,
      draggable: !1,
      defaultExpandAllNode: !0,
      selectClearAllNode: !1,
      expandRetractAllNode: !1,
      showCheckBox: !1,
      expandOnClickNode: !1,
      lazy: !1,
      treeDataEdit: !0,
      checkStrictly: !1,
      nodeEdit: !1,
      size: "default",
      disabled: !1,
      hidden: !1,
      dsEnabled: !1,
      dsName: "",
      dataSetName: "",
      customClass: "",
      onCreated: "",
      onMounted: "",
      onNodeClick: "",
      onNodeCheck: "",
      onNodeContextmenu: "",
      onCheckChange: "",
      onLoadNode: "",
      treeData: [
        {
          id: 1,
          label: "一级 1",
          leaf: false,
          children: [
            {
              id: 2,
              label: "二级 1-1",
              leaf: false,
              children: [{ id: 3, label: "三级 1-1-1", leaf: true }],
            },
          ],
        },
        {
          id: 4,
          label: "一级 2",
          leaf: false,
          children: [
            {
              id: 5,
              label: "二级 2-1",
              leaf: false,
              children: [{ id: 6, label: "三级 2-1-1", leaf: true }],
            },
            {
              id: 7,
              label: "二级 2-2",
              leaf: false,
              children: [{ id: 8, label: "三级 2-2-1", leaf: true }],
            },
          ],
        },
        {
          id: 9,
          label: "一级 3",
          leaf: false,
          children: [
            {
              id: 10,
              label: "二级 3-1",
              leaf: false,
              children: [{ id: 11, label: "三级 3-1-1", leaf: true }],
            },
            {
              id: 12,
              label: "二级 3-2",
              leaf: false,
              children: [{ id: 13, label: "三级 3-2-1", leaf: true }],
            },
          ],
        },
      ],
      disLocalFilter: false,
      treeFilterType: 0,
      onFilterIconClick: null,
      onFilterTextChange: null,
    },
  },
];

export const defaultSearchDialogConfig = {
  formCode: null,
  tableEnabled: false,
  valueSourceField: null,
  labelSourceField: null,
  tableRef: null,
  tableUniqueKey: null,
  tableData: [],
  multipleChoices: true,
  confirmCallback: null,
  dialogQueryParam: null,
  dialogCustomParam: null,
};

export const defaultWfConfig = {
  wfFlag: 1,
  wfEdit: false,
  enabledByWf: false,
  hiddenByWf: false,
  wfConfigData: [],
  wfModifyDataEnabled: false,
  wfModifyDataConfig: [],
};

export const defaultTextFlagConfig = {
  widgetTextFlag: null,
  textFlag: 1,
  showTextEnabled: false,
  showEncryptTextEnabled: false,
  userTextRuleEnabled: false,
  userTextRuleConfig: [],
  textRule1: true,
  textRule2: false,
  textRule2Number: null,
  textRule3: false,
  textRule3Number: null,
  widgetTextLinkConfig: null,
};

export const defaultWidgetShowRuleConfig = {
  widgetShowRuleFlag: 1,
  widgetShowRuleEnabled: false,
  widgetShowRuleConfig: [],
};

export const defaultLabelIconConfig = {
  labelIconClass: null,
  labelIconPosition: "rear",
  labelTooltip: null,
};

const vabsearchConfig = {
  name: "",
  keyNameEnabled: !1,
  keyName: "",
  vabSearchName: "",
  userDefaultVabSearch: false,
  saleOrgDefaultVabSearch: false,
  label: "",
  labelColor: "",
  submitFlag: true,
  disabled: !1,
  hidden: !1,
  required: !1,
  labelWidth: null,
  labelHidden: !1,
  ...defaultLabelIconConfig,
  readonly: true,
  /*formCode: null,
  formName: null,
  formVersion: null,
  showFormField: null,*/
  /* gridConfig: {
     tableColumns: [],
     searchFields: [],
     searchParams: ""
   },*/
  // vabSearchField: null,
  vabsearchFlag: 1,
  onSearchClear: "",
  dialogModel: "1",
  systemDialogUrl: null,
  accessType: "1",
  onCreated: "",
  onMounted: "",
  onChange: "",
  onAppendButtonClick: "",
  clickBindEvent: "1",
  onBeforeClickButton: null,
  searchDialogConfig: {
    ...defaultSearchDialogConfig,
    multipleChoices: false,
  },
  ...defaultWfConfig,
  valueField: null,
  multipleChoices: false,

  showRuleFlag: 1,
  showRuleEnabled: 1,
  showRules: [],
};

const projectTagConfig = {
  name: "",
  keyNameEnabled: !1,
  keyName: "",
  // keyNameSuffix: "",
  label: "",
  labelColor: "",
  submitFlag: true,
  disabled: !1,
  readonly: false,
  hidden: !1,
  required: !1,
  labelWidth: null,
  labelHidden: !1,
  ...defaultLabelIconConfig,
  onCreated: "if(dataId)this.loadDataDefaultHandle();",
  onMounted: "",
  onClick: "",
  // vabUpload: 1,

  ...httpConfig,
  formScriptCode: "getList",

  ...defaultWfConfig,

  showRuleFlag: 1,
  showRuleEnabled: 1,
  showRules: [],

  tagFormCode: null,
  tagFormParam: null,
  tagLabelField: null,
  tagUniqueField: null,
  tagFormLabelField: null,
  tagFormUniqueField: null,
  tagFillConfig: [],
  tagConfirmCallback: null,
  tagDeleteCallback: null,
  tabDeleteEnabled: true,
  tagWidth: "",
};

const httpConfig = {
  httpFormCode: null,
  formScriptEnabled: true,
  commonAttributeEnabled: false,
  formScriptCode: null,
  formScriptParam: null,
  formScriptSuccess: null,
  formScriptCallback: null,
};

export const hiddenWidgetTypesOfWf = [
  "button",
  "search_button",
  "table-export-button",
  "add_button",
  "import-button",
  "import2-button",
  "print-button",
  "dropdown-item",
];
export const freeWidgetTypesOfWf = [
  "reset_button",
  "copy_button",
  "a-link",
  "a-text",
  "dropdown",
];

export const basicFields = [
  {
    type: "input",
    icon: "text-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      /**showText: false,*/
      formField: "",
      labelAlign: "",
      type: "text",
      defaultValue: "",
      placeholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      readonly: !1,
      disabled: !1,
      hidden: !1,
      clearable: !0,
      showPassword: !1,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      minLength: null,
      maxLength: null,
      showWordLimit: !1,
      prefixIcon: "",
      suffixIcon: "",
      /*appendButton: !1,
      appendButtonDisabled: !1,
      buttonIcon: "el-icon-search",*/
      onCreated: "",
      onMounted: "",
      onInput: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      onAppendButtonClick: "",
      widgetWidth: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "input-batch",
    icon: "input-batch",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      formField: "",
      labelAlign: "",
      type: "text",
      // defaultValue: "",
      placeholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      readonly: !1,
      disabled: !1,
      hidden: !1,
      clearable: !0,
      showPassword: !1,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      ...defaultLabelIconConfig,
      onCreated: "",
      onMounted: "",
      onInput: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      // onAppendButtonClick: "",
      widgetWidth: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "textarea",
    icon: "textarea-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      /**showText: false,*/
      labelAlign: "",
      rows: 3,
      defaultValue: "",
      placeholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      readonly: !1,
      disabled: !1,
      hidden: !1,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      minLength: null,
      maxLength: null,
      showWordLimit: !1,
      onCreated: "",
      onMounted: "",
      onInput: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "number",
    icon: "number-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      /**showText: false,*/
      formField: "",
      labelAlign: "",
      defaultValue: 0,
      placeholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      disabled: !1,
      hidden: !1,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      formulaEnabled: !1,
      formula: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      min: -1e11,
      max: 1e11,
      precision: 0,
      step: 1,
      controlsPosition: "right",
      onCreated: "",
      onMounted: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "radio",
    icon: "radio-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      /**showText: false,*/
      labelAlign: "",
      isNumericOptionItemValue: false,
      defaultValue: null,
      columnWidth: "200px",
      size: "",
      displayStyle: "inline",
      buttonStyle: !1,
      border: !1,
      labelWidth: null,
      labelHidden: !1,
      disabled: !1,
      hidden: !1,
      dsEnabled: !1,
      dsName: "",
      labelKey: "label",
      valueKey: "value",
      optionItems: [
        {
          label: "radio 1",
          value: "1",
          disabled: false,
        },
        {
          label: "radio 2",
          value: "2",
          disabled: false,
        },
      ],
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreatedEnter: "",
      onCreated: "",
      onMounted: "",
      onChange: "",
      onValidate: "",
      accessType: "1",

      ...httpConfig,
      formScriptEnabled: false,
      formScriptCode: "getList",

      ...defaultWfConfig,

      commonAttributeEnabled: false,
      commonAttributeCode: "",

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "checkbox",
    icon: "checkbox-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      /**showText: false,*/
      labelAlign: "",
      isNumericOptionItemValue: false,
      defaultValue: [],
      columnWidth: "200px",
      size: "",
      displayStyle: "inline",
      buttonStyle: !1,
      border: !1,
      labelWidth: null,
      labelHidden: !1,
      disabled: !1,
      hidden: !1,
      dsEnabled: !1,
      dsName: "",
      labelKey: "label",
      valueKey: "value",
      optionItems: [
        {
          label: "check 1",
          value: "1",
          disabled: false,
        },
        {
          label: "check 2",
          value: "2",
          disabled: false,
        },
      ],
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreatedEnter: "",
      onCreated: "",
      onMounted: "",
      onChange: "",
      onValidate: "",
      accessType: "1",

      ...httpConfig,
      formScriptEnabled: false,
      formScriptCode: "getList",

      ...defaultWfConfig,

      commonAttributeEnabled: false,
      commonAttributeCode: "",

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "select",
    icon: "select-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      /**showText: false,*/
      formField: "",
      labelAlign: "",
      isNumericOptionItemValue: false,
      optionItemValueType: 0,
      defaultValue: "",
      placeholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      disabled: !1,
      hidden: !1,
      clearable: !0,
      filterable: !1,
      allowCreate: !1,
      remote: !1,
      automaticDropdown: !1,
      multiple: !1,
      multipleLimit: 0,
      dsEnabled: !1,
      dsName: "",
      labelKey: "label",
      valueKey: "value",
      optionItems: [
        {
          label: "select 1",
          value: "1",
          disabled: false,
        },
        {
          label: "select 2",
          value: "2",
          disabled: false,
        },
        {
          label: "select 3",
          value: "3",
          disabled: false,
        },
      ],
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreatedEnter: "",
      onCreated: "",
      onMounted: "",
      onRemoteQuery: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      widgetWidth: "",
      accessType: "1",

      ...httpConfig,
      formScriptEnabled: false,
      formScriptCode: "getList",

      ...defaultWfConfig,

      commonAttributeEnabled: false,
      commonAttributeCode: "",

      showCollapseTags: false,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "area-select",
    icon: "select-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      formField: "",
      labelAlign: "",
      defaultValue: null,
      placeholder: "",
      columnWidth: "200px",
      widgetWidth: null,
      size: "",
      labelWidth: null,
      labelHidden: !1,
      readonly: !1,
      disabled: !1,
      hidden: !1,
      clearable: !0,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      areaName: "",
      areaDataType: 3,
      locale: null,
      onCreated: "",
      onMounted: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      accessType: "1",
      ...defaultWfConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
      ...defaultTextFlagConfig,
    },
  },
  {
    type: "time",
    icon: "time-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      /**showText: false,*/
      formField: "",
      labelAlign: "",
      defaultValue: null,
      placeholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      readonly: !1,
      disabled: !1,
      hidden: !1,
      clearable: !0,
      editable: !1,
      format: "HH:mm:ss",
      utcTransformEnabled: !1,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreated: "",
      onMounted: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "time-range",
    icon: "time-range-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      formField: "",
      labelAlign: "",
      defaultValue: null,
      startPlaceholder: "",
      endPlaceholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      readonly: !1,
      disabled: !1,
      hidden: !1,
      clearable: !0,
      editable: !1,
      format: "HH:mm:ss",
      utcTransformEnabled: !1,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreated: "",
      onMounted: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "date",
    icon: "date-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      /**showText: false,*/
      formField: "",
      labelAlign: "",
      type: "date",
      defaultValue: null,
      placeholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      readonly: !1,
      disabled: !1,
      hidden: !1,
      clearable: !0,
      editable: !1,
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      dateLimit: null,
      limitStartField: null,
      limitEndField: null,
      minDate: null,
      maxDate: null,
      utcTransformEnabled: !1,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreated: "",
      onMounted: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "date-range",
    icon: "date-range-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      formField: "",
      labelAlign: "",
      type: "daterange",
      defaultValue: null,
      startPlaceholder: "",
      endPlaceholder: "",
      columnWidth: "200px",
      size: "",
      labelWidth: null,
      labelHidden: !1,
      readonly: !1,
      disabled: !1,
      hidden: !1,
      clearable: !0,
      editable: !1,
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      defaultTime: ["00:00:00", "23:59:59"],
      utcTransformEnabled: !1,
      required: !1,
      requiredHint: "",
      validation: "",
      validationHint: "",
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreated: "",
      onMounted: "",
      onChange: "",
      onFocus: "",
      onBlur: "",
      onValidate: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  /* {
  type: "switch",
  icon: "switch-field",
  formItemFlag: !0,
  options: {
    name: "",
    label: "",
    labelAlign: "",
    defaultValue: null,
    columnWidth: "200px",
    labelWidth: null,
    labelHidden: !1,
    disabled: !1,
    hidden: !1,
    customClass: "",
    labelIconClass: null,
    labelIconPosition: "rear",
    labelTooltip: null,
    switchWidth: 40,
    activeText: "",
    inactiveText: "",
    activeColor: null,
    inactiveColor: null,
    onCreated: "",
    onMounted: "",
    onChange: "",
    onValidate: ""
  }
}, */
  /* {
  type: "rate",
  icon: "rate-field",
  formItemFlag: !0,
  options: {
    name: "",
    label: "",
    labelAlign: "",
    defaultValue: null,
    columnWidth: "200px",
    labelWidth: null,
    labelHidden: !1,
    disabled: !1,
    hidden: !1,
    required: !1,
    requiredHint: "",
    validation: "",
    validationHint: "",
    customClass: "",
    labelIconClass: null,
    labelIconPosition: "rear",
    labelTooltip: null,
    max: 5,
    lowThreshold: 2,
    highThreshold: 4,
    allowHalf: !1,
    showText: !1,
    showScore: !1,
    onCreated: "",
    onMounted: "",
    onChange: "",
    onValidate: ""
  }
}, {
  type: "color",
  icon: "color-field",
  formItemFlag: !0,
  options: {
    name: "",
    label: "",
    labelAlign: "",
    defaultValue: null,
    columnWidth: "200px",
    size: "",
    labelWidth: null,
    labelHidden: !1,
    disabled: !1,
    hidden: !1,
    required: !1,
    requiredHint: "",
    validation: "",
    validationHint: "",
    customClass: "",
    labelIconClass: null,
    labelIconPosition: "rear",
    labelTooltip: null,
    onCreated: "",
    onMounted: "",
    onChange: "",
    onValidate: ""
  }
}, {
  type: "slider",
  icon: "slider-field",
  formItemFlag: !0,
  options: {
    name: "",
    label: "",
    labelAlign: "",
    columnWidth: "200px",
    showStops: !0,
    size: "",
    labelWidth: null,
    labelHidden: !1,
    disabled: !1,
    hidden: !1,
    required: !1,
    requiredHint: "",
    validation: "",
    validationHint: "",
    customClass: "",
    labelIconClass: null,
    labelIconPosition: "rear",
    labelTooltip: null,
    min: 0,
    max: 100,
    step: 10,
    range: !1,
    height: null,
    onCreated: "",
    onMounted: "",
    onChange: "",
    onValidate: ""
  }
}, */
  {
    type: "static-text",
    icon: "static-text",
    commonFlag: !0,
    formItemFlag: !1,
    columnFlag: true,
    options: {
      name: "",
      columnWidth: "200px",
      hidden: !1,
      textContent: "static text",
      fontSize: "13px",
      preWrap: true, //是否自动换行
      colorClass: "", //字体颜色
      customClass: "",
      onCreated: "",
      onMounted: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "html-text",
    icon: "html-text",
    commonFlag: !0,
    formItemFlag: !1,
    columnFlag: false,
    options: {
      name: "",
      columnWidth: "200px",
      hidden: !1,
      htmlContent: "<b>html text</b>",
      customClass: "",
      onCreated: "",
      onMounted: "",
      accessType: "1",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  /* {
     type: 'title-head',
     icon: 'title-head',
     formItemFlag: false,
     options: {
       name: '',
       columnWidth: '200px',
       hidden: false,
       htmlContent: '基本信息',
       styleTitClass: '',
       //-------------------
       customClass: '', //自定义css类名
       //-------------------
       onCreated: '',
       onMounted: '',
     },
   }, */
  {
    type: "button",
    icon: "button",
    commonFlag: !0,
    formItemFlag: !1,
    columnFlag: true,
    options: {
      name: "",
      label: "",
      wfHideFlag: 1,
      columnWidth: "200px",
      size: "",
      displayStyle: "block",
      disabled: !1,
      hidden: !1,
      type: "",
      plain: !1,
      round: !1,
      circle: !1,
      icon: null,
      customClass: "",
      onCreated: "",
      onMounted: "",
      onClick: "",
      accessType: "1",
      clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      addTableDataConfig: {
        tableRef: null,
        tableData: {},
      },
      ...defaultWfConfig,
      hiddenByWf: true,
      ...defaultWidgetShowRuleConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "divider",
    icon: "divider",
    commonFlag: !0,
    formItemFlag: !1,
    columnFlag: true,
    options: {
      name: "",
      label: "",
      columnWidth: "200px",
      direction: "horizontal",
      contentPosition: "center",
      hidden: !1,
      customClass: "",
      ...defaultWfConfig,
      onCreated: "",
      onMounted: "",
    },
  },
  /*{
    type: "descriptions",
    icon: "descriptions",
    formItemFlag: !1,
    options: {
      name: "",
      label: "",
      title: "",
      extra: "",
      column: 3,
      border: true,
      direction: "horizontal",
      descriptionsSize: "small",
      colon: false,
      dsEnabled: !1,
      hidden: !1,
      customClass: "",
      onCreated: "",
      onMounted: "",
      tableData: {
        username: "kooriookami",
        mobile: "18100000000",
        area: "苏州市",
        memo: "学校",
        address: "江苏省苏州市吴中区吴中大道 1188 号",
      },
      descriptionsItems: [{
        span: 1,
        label: "用户名",
        prop: "username",
      },
        {
          span: 1,
          label: "手机号",
          prop: "mobile",
        },
        {
          span: 1,
          label: "居住地",
          prop: "area",
        },
        {
          span: 1,
          label: "备注",
          prop: "memo",
        },
        {
          span: 1,
          label: "联系地址",
          prop: "address",
        }
      ]
    }
  },*/
  {
    type: "text",
    icon: "text",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      formField: "",
      hidden: !1,
      required: !1,
      customClass: "",
      colorClass: "",
      defaultValue: "",
      labelAlign: "",
      labelWidth: null,
      labelHidden: !1,
      ...defaultLabelIconConfig,
      onCreated: "",
      onMounted: "",
      accessType: "1",
      ...defaultWfConfig,

      autoValueEnabled: false,
      autoValueHanlde: null,
      formatType: null,
      renderHandle: null,
      utcTransformEnabled: !1,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "a-text",
    icon: "text-field",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      displayStyle: "block",
      submitFlag: true,
      /**showText: false,*/
      formField: "",
      defaultValue: "",

      labelWidth: null,
      labelHidden: !1,
      disabled: !1,
      hidden: !1,

      customClass: "",
      ...defaultLabelIconConfig,

      prefixIcon: "",
      suffixIcon: "",

      aTextFlag: 1,
      underline: false,
      href: "",
      colorClass: "f-red",
      formatType: null,
      renderHandle: null,

      onCreated: "",
      onMounted: "",
      onInput: "",
      onChange: "",
      onClick: "",
      accessType: "1",
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "a-link",
    icon: "button",
    commonFlag: !0,
    formItemFlag: !1,
    columnFlag: true,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      displayStyle: "block",
      labelHidden: !1,
      disabled: !1,
      hidden: !1,
      prefixIcon: "",
      suffixIcon: "",
      customClass: "",
      wfHideFlag: 1,
      aLinkFlag: 1,
      underline: false,
      href: "",
      colorClass: "f-blue",
      isFormLabel: false,
      onCreated: "",
      onMounted: "",
      onClick: "",
      clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      addTableDataConfig: {
        tableRef: null,
        tableData: {},
      },
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "a-link2",
    icon: "button",
    commonFlag: !1,
    formItemFlag: !1,
    columnFlag: false,
    options: {
      prefixIcon: "",
      suffixIcon: "",
      customClass: "",
      aLinkFlag: 1,
      underline: false,
      href: "",
      colorClass: "f-blue",

      onClick: "",
      clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      addTableDataConfig: {
        tableRef: null,
        tableData: {},
      },
    },
  },
];

export const advancedFields = [
  {
    type: "echart-pie",
    icon: "echart-pie",
    commonFlag: !0,
    formItemFlag: false,
    options: {
      name: "",
      echartHeight: 350,
      hidden: !1,
      echarPieOption: {
        backgroundColor: "#fff",
        color: [
          "#5BC1D7",
          "#FF8A3D",
          "#56C271",
          "#694ED6",
          "#C033A1",
          "#FFCC10",
        ],
        title: {
          show: true,
          top: "5px",
          text: "这是饼图标题",
        },
        grid: {
          top: "80px",
          left: "3%",
          right: "6%",
          bottom: "3%",
          containLabel: true,
        },
        legend: {
          show: false,
          right: "12px",
          itemGap: 20,
          itemWidth: 10,
          itemHeight: 10,
          orient: "horizontal",
        },
        tooltip: {
          trigger: "axis",
          axisPointer: {
            type: "shadow",
            label: {
              backgroundColor: "#fff",
            },
          },
        },
        series: [
          {
            // name: 'Access From',
            type: "pie",
            radius: "60%",
            center: ["50%", "48%"],
            itemStyle: {
              borderRadius: 10,
              borderColor: "#FFF",
              borderWidth: 2,
            },
            label: {
              show: true,
              fontSize: 12,
              color: "",
              fontWeight: "normal",
            },
            data: [
              {
                value: 1048,
                name: "Search Engine",
              },
              {
                value: 735,
                name: "Direct",
              },
              {
                value: 580,
                name: "Email",
              },
              {
                value: 484,
                name: "Union Ads",
              },
              {
                value: 300,
                name: "Video Ads",
              },
            ],
          },
        ],
      },
      echartConfig: "",

      ...httpConfig,

      onClick: "",
      onCreated: "",
      onMounted: "this.loadDataDefaultHandle()",

      ...defaultWfConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "echart-bar",
    icon: "echart",
    commonFlag: !0,
    formItemFlag: false,
    options: {
      name: "",
      echartHeight: 350,
      hidden: !1,
      echarBarOption: {
        backgroundColor: "#fff",
        color: [
          "#5BC1D7",
          "#FF8A3D",
          "#56C271",
          "#694ED6",
          "#C033A1",
          "#FFCC10",
        ],
        colors: [],
        title: {
          show: true,
          top: "5px",
          text: "这是柱形图标题",
        },
        grid: {
          top: "80px",
          left: "3%",
          right: "80",
          bottom: "3%",
          containLabel: true,
        },
        legend: {
          right: "12px",
          top: "8px",
          icon: "circle",
          itemWidth: 12,

          itemGap: 24,
        },
        tooltip: {
          trigger: "axis",
          axisPointer: {
            type: "shadow",
            label: {
              backgroundColor: "#fff",
            },
          },
        },
        xAxis: {
          type: "category",
          data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
          show: true,
          name: "X轴",
          nameTextStyle: {
            color: "#606266",
            fontSize: 12,
          },
          axisLabel: {
            color: "#606266",
            fontSize: 12,
            rotate: 0,
          },
          inverse: false,
          axisLine: {
            lineStyle: {
              color: "#E6EBF5",
            },
          },
          splitLine: {
            show: false,
          },
        },
        yAxis: {
          type: "value",
          show: true,
          name: "Y轴",
          nameTextStyle: {
            color: "#606266",
            fontSize: 12,
          },
          axisLabel: {
            color: "#606266",
            fontSize: 12,
            rotate: 0,
          },
          inverse: false,
          axisLine: {
            show: false,
            lineStyle: {
              color: "",
            },
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: "#E6EBF5",
            },
          },
        },
        series: [
          {
            data: [120, 200, 150, 80, 70, 110, 130],
            type: "bar",
            name: "Video Ad",
            label: {
              show: false,
              fontSize: 12,
              color: "#FFF",
              fontWeight: "normal",
              position: "insideTop",
            },
            backgroundStyle: {
              color: "rgba(180, 180, 180, 0.2)",
            },
            barMaxWidth: 28,
            barMinHeight: 0,
            barGap: "15%",
            itemStyle: {
              color: {
                type: "linear",
                x: 0.5,
                y: 0.9,
                r: 0.2,
                colorStops: [
                  {
                    offset: 1,
                    color: "#08C084", // 0% 处的颜色
                  },
                  {
                    offset: 0,
                    color: "#97EACE", // 100% 处的颜色
                  },
                ],
              },
              borderRadius: [20, 20, 0, 0],
            },
          },
          {
            data: [140, 232, 101, 264, 90, 340, 250],
            type: "bar",
            name: "Video Ad1",

            label: {
              show: false,
              fontSize: 12,
              color: "#FFF",
              fontWeight: "normal",
              position: "insideTop",
            },
            backgroundStyle: {
              color: "rgba(180, 180, 180, 0.2)",
            },
            barMaxWidth: "28%",
            barMinHeight: 0,
            itemStyle: {
              color: {
                type: "linear",
                x: 0.5,
                y: 0.9,
                r: 0.2,
                colorStops: [
                  {
                    offset: 1,
                    color: "#29ABE3", // 0% 处的颜色
                  },
                  {
                    offset: 0,
                    color: "#AADEF4", // 100% 处的颜色
                  },
                ],
              },
              borderRadius: [20, 20, 0, 0],
            },
          },
        ],
      },
      echartConfig: "",

      ...httpConfig,

      onClick: "",
      onCreated: "",
      onMounted: "this.loadDataDefaultHandle()",
      ...defaultWfConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "echart-category",
    icon: "echart-category",
    commonFlag: !0,
    formItemFlag: false,
    options: {
      name: "",
      echartHeight: 350,
      hidden: !1,
      reqSources: [],
      echarCategoryOption: {
        backgroundColor: "#fff",
        color: [
          "#5BC1D7",
          "#FF8A3D",
          "#56C271",
          "#694ED6",
          "#C033A1",
          "#FFCC10",
        ],
        colors: [],
        title: {
          show: true,
          top: "5px",
          text: "这是折线图标题",
        },
        grid: {
          top: "80px",
          left: "3%",
          right: "80",
          bottom: "3%",
          containLabel: true,
        },
        legend: {
          right: "12px",
          top: "8px",
          itemGap: 24,
        },
        tooltip: {
          trigger: "axis",
          axisPointer: {
            type: "shadow",
            label: {
              backgroundColor: "#fff",
            },
          },
        },
        xAxis: {
          type: "category",
          data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
          show: true,
          name: "X轴",
          boundaryGap: false,
          nameTextStyle: {
            color: "#606266",
            fontSize: 12,
          },
          axisLabel: {
            color: "#606266",
            fontSize: 12,
            rotate: 0,
          },
          inverse: false,
          axisLine: {
            lineStyle: {
              color: "#E6EBF5",
            },
          },
          splitLine: {
            show: true,
            lineStyle: {
              type: "dashed",
              color: "#E6EBF595",
            },
          },
        },
        yAxis: {
          type: "value",
          show: true,
          name: "Y轴",
          nameTextStyle: {
            color: "#606266",
            fontSize: 12,
          },
          axisLabel: {
            color: "#606266",
            fontSize: 12,
            rotate: 0,
          },
          inverse: false,
          axisLine: {
            show: false,
            lineStyle: {
              color: "",
            },
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: "#E6EBF5",
            },
          },
        },
        series: [
          {
            name: "R1",
            data: [220, 282, 111, 234, 220, 340, 310],
            type: "line",
            stack: "Total",
            label: {
              show: true,
              fontSize: 12,
              color: "#212121",
              fontWeight: "normal",
            },
            lineStyle: {
              color: {
                type: "linear",
                x: 0.5,
                y: 0.5,
                r: 0.5,
                colorStops: [
                  {
                    offset: 0,
                    color: "#08C084", // 0% 处的颜色
                  },
                  {
                    offset: 1,
                    color: "#97EACE", // 100% 处的颜色
                  },
                ],
              },
              cap: "round",
              shadowColor: "#08C08450",
              shadowBlur: 4,
              shadowOffsetY: 6,
            },
            itemStyle: {
              color: {
                type: "linear",
                x: 0.5,
                y: 0.5,
                r: 0.5,
                colorStops: [
                  {
                    offset: 0,
                    color: "#08C084", // 0% 处的颜色
                  },
                  {
                    offset: 1,
                    color: "#97EACE", // 100% 处的颜色
                  },
                ],
              },
              cap: "round",
              shadowColor: "#08C08450",
              shadowBlur: 4,
              shadowOffsetY: 6,
            },
            emphasis: {
              scale: 1,
              focus: "series",
            },
            showSymbol: false,
            smooth: true,
          },
          {
            name: "R2",
            data: [140, 232, 101, 264, 90, 340, 250],
            type: "line",
            stack: "Total",
            label: {
              show: true,
              fontSize: 12,
              color: "#212121",
              fontWeight: "normal",
            },
            lineStyle: {
              color: {
                type: "linear",
                x: 0.5,
                y: 0.5,
                r: 0.5,
                colorStops: [
                  {
                    offset: 0,
                    color: "#FF6116", // 0% 处的颜色
                  },
                  {
                    offset: 1,
                    color: "#F9A980", // 100% 处的颜色
                  },
                ],
              },
              cap: "round",
              shadowColor: "#FF611650",
              shadowBlur: 4,
              shadowOffsetY: 6,
            },
            itemStyle: {
              color: {
                type: "linear",
                x: 0.5,
                y: 0.5,
                r: 0.5,
                colorStops: [
                  {
                    offset: 0,
                    color: "#FF6116", // 0% 处的颜色
                  },
                  {
                    offset: 1,
                    color: "#F9A980", // 100% 处的颜色
                  },
                ],
              },
              cap: "round",
              shadowColor: "#FF611650",
              shadowBlur: 4,
              shadowOffsetY: 6,
            },
            emphasis: {
              scale: 1,
              focus: "series",
            },
            showSymbol: false,
            smooth: true,
          },
        ],
      },
      echartConfig: "",

      ...httpConfig,

      onClick: "",
      onCreated: "",
      onMounted: "this.loadDataDefaultHandle()",
      ...defaultWfConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "echart",
    icon: "echart",
    formItemFlag: false,
    options: {
      name: "",
      echartHeight: "200",
      hidden: !1,
      echarPieOption: {},
    },
  },
  /*{
    type: 'news-list',
    icon: 'news-list',
    formItemFlag: false,
    options: {
      name: "",
      echartHeight: '200',
      listItems: [{
        t1: '这是标题啦啦啦啦',
        t2: '￥4899',
      }, {
        t1: '这是标题啦啦啦啦',
        t2: '￥4899',
      }],
      hidden: !1,

    }
  },*/
  /*{
    type: "picture-upload",
    icon: "picture-upload-field",
    formItemFlag: !0,
    options: {
      name: "",
      label: "",
      labelAlign: "",
      labelWidth: null,
      labelHidden: !1,
      columnWidth: "200px",
      disabled: !1,
      hidden: !1,
      required: !1,
      requiredHint: "",
      customRule: "",
      customRuleHint: "",
      uploadURL: "",
      uploadTip: "",
      withCredentials: !1,
      multipleSelect: !1,
      showFileList: !0,
      limit: 3,
      fileMaxSize: 5,
      fileTypes: ["jpg", "jpeg", "png"],
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreated: "",
      onMounted: "",
      onBeforeUpload: "",
      onUploadSuccess: "",
      onUploadError: "",
      onFileRemove: "",
      onValidate: ""
    }
  }, {
    type: "file-upload",
    icon: "file-upload-field",
    formItemFlag: !0,
    options: {
      name: "",
      label: "",
      labelAlign: "",
      labelWidth: null,
      labelHidden: !1,
      columnWidth: "200px",
      disabled: !1,
      hidden: !1,
      required: !1,
      requiredHint: "",
      customRule: "",
      customRuleHint: "",
      uploadURL: "",
      uploadTip: "",
      withCredentials: !1,
      multipleSelect: !1,
      showFileList: !0,
      limit: 3,
      fileMaxSize: 5,
      fileTypes: ["doc", "docx", "xls", "xlsx"],
      customClass: "",
      labelIconClass: null,
      labelIconPosition: "rear",
      labelTooltip: null,
      onCreated: "",
      onMounted: "",
      onBeforeUpload: "",
      onUploadSuccess: "",
      onUploadError: "",
      onFileRemove: "",
      onValidate: ""
    }
  },*/
  {
    type: "vabUpload",
    icon: "uploadbox",
    commonFlag: !0,
    formItemFlag: !0,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      keyNameSuffix: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      disabled: !1,
      hidden: !1,
      required: !1,
      labelWidth: null,
      labelHidden: !0,
      limit: null,
      hideRemoveButton: false,
      accessType: "1",
      entityTableCode: null,
      entityTableDesc: null,
      onCreated: "this.loadDataDefaultHandle();",
      onMounted: "",
      onAfterConfirmFile: "",
      vabUpload: 1,
      ...defaultLabelIconConfig,
      ...httpConfig,
      formScriptCode: "getList",

      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      hiddenFileInfo: false,
      hiddenFileName: false,
      showFileSize: false,
      showFileCreateBy: false,
      showFileCreateDate: false,
      widgetSize: 2,

      customUploadEnabled: false,
      uploadUrl: null,
      uploadHeaders: {},
      uploadRresponseAdapter: {},
    },
  },
  {
    type: "vabsearch",
    icon: "searchbox",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      ...vabsearchConfig,
    },
  },
  {
    type: "singerSearch",
    icon: "searchbox",
    // commonFlag: !0,
    // columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      ...vabsearchConfig,
    },
  },
  {
    type: "multiSearch",
    icon: "searchbox",
    // commonFlag: !0,
    // columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      ...vabsearchConfig,
    },
  },
  {
    type: "search_button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "",
      disabled: !1,
      hidden: !1,
      required: !1,
      labelWidth: null,
      labelHidden: !1,
      /*formCode: null,
      formName: null,
      formVersion: null,
      showFormField: null,*/
      /*gridConfig: {
        tableColumns: [],
        searchFields: [],
        searchParams: ""
      },*/
      // vabSearchField: null,
      // onSearchConfirm: "",
      dialogModel: "1",
      systemDialogUrl: null,
      accessType: "1",
      onClick: "",
      onCreated: "",
      onMounted: "",
      clickBindEvent: "1",
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
        tableEnabled: true,
      },
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "save_button",
    targetType: "button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "保存",
      columnWidth: "200px",
      size: "",
      displayStyle: "block",
      disabled: !1,
      hidden: !1,
      type: "primary",
      plain: !1,
      round: !1,
      circle: !1,
      icon: "el-icon-check",
      customClass: "",
      onCreated: "",
      onMounted: "",
      // onClick: "let formRef = this.getFormRef();\r\nformRef.validate(valid => {\r\n  if (valid) {\r\n    let formData = formRef.getRealFormData();    \r\n    let reqData = {\r\n      formCode:formCode,\r\n      data:formData\r\n    };\r\n    this.formHttp({\r\n      scriptCode: 'xx',\r\n      data: reqData,\r\n      successMsg:true,\r\n      isConfirm: true,\r\n      confirmText: \"您确定要保存吗？\",\r\n      success: res => {\r\n        formRef.reloadForm({\r\n          updateParam: {\r\n            _dataId: res.objx\r\n          }\r\n        });\r\n      }\r\n    });\r\n  }\r\n});",
      onClick: "this.saveDefaultHandle();",
      accessType: "1",
      saveButton: true,
      clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,
      hiddenByWf: true,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "reset_button",
    targetType: "button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "重置",
      columnWidth: "200px",
      size: "",
      displayStyle: "block",
      disabled: !1,
      hidden: !1,
      type: "primary",
      plain: true,
      round: !1,
      circle: !1,
      icon: "el-icon-refresh-right",
      customClass: "",
      onCreated: "",
      onMounted: "",
      onClick: "this.getFormRef().$baseReload()",
      accessType: "1",
      clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "table-export-button",
    icon: "list-export",
    formItemFlag: !1,
    commonFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      disabled: !1,
      hidden: !1,
      customClass: "",
      exportFileName: "导出",
      tableRef: "",
      tableExportParam: "",
      showImageAtTable: false,
      tableExportFlag: 1,

      onCreated: "",
      onMounted: "",
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "select-export-button",
    icon: "list-export",
    formItemFlag: !1,
    commonFlag: !0,
    columnFlag: true,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      disabled: !1,
      hidden: !1,
      label: "明细导出",
      customClass: "",
      buttonTypeFlag: 1,
      type: "",
      exportFileName: "明细导出",
      tableRef: "",
      tableExportParam: "",
      showImageAtTable: false,
      selectExportFlag: 1,

      onCreated: "",
      onMounted: "",
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "select-export-item-button",
    icon: "list-export",
    formItemFlag: !1,
    commonFlag: !0,
    columnFlag: true,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      disabled: !1,
      hidden: !1,
      label: "列表导出（明细）",
      customClass: "",
      buttonTypeFlag: 1,
      type: "primary",
      exportFileName: "明细导出",
      tableRef: "",
      tableExportParam: "",
      showImageAtTable: false,
      selectExportItemFlag: 1,

      onCreated: "",
      onMounted: "",
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "add_button",
    targetType: "button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "新增",
      columnWidth: "200px",
      size: "",
      displayStyle: "block",
      disabled: !1,
      hidden: !1,
      type: "primary",
      plain: !1,
      round: !1,
      circle: !1,
      icon: "el-icon-plus",
      customClass: "",
      onCreated: "",
      onMounted: "",
      onClick: "",
      clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      ...defaultWfConfig,
      hiddenByWf: true,
      ...defaultWidgetShowRuleConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "import-button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "导入",
      columnWidth: "200px",
      size: "",

      // displayStyle: "block",
      disabled: !1,
      hidden: !1,
      buttonTypeFlag: 1,
      type: "primary",
      /*plain: !1,
      round: !1,
      circle: !1,
      icon: "el-icon-download",*/
      customClass: "",
      onCreated: "",
      onMounted: "",
      // clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      ...defaultWfConfig,
      hiddenByWf: true,
      ...defaultWidgetShowRuleConfig,
      importMultiple: false,
      importMultiSize: 1,
      importFileLimitSize: 200,
      importEntity: "",
      importAttachCode: "",
      importAttachName: "",
      importScriptCode: "",
      onBeforeImport: "",
      enabledImportPreHandle: false,
      tableRef: "",
      onSuccessImport: "",
      hideCancelButton: false,
      multipleSheet: false,
      onBeforeClickButton: null,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "import2-button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "明细导入",
      columnWidth: "200px",
      size: "",

      // displayStyle: "block",
      disabled: !1,
      hidden: !1,
      buttonTypeFlag: 1,
      type: "",
      /*plain: !1,
      round: !1,
      circle: !1,
      icon: "el-icon-download",*/
      customClass: "",
      onCreated: "",
      onMounted: "",
      // clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      ...defaultWfConfig,
      hiddenByWf: true,
      ...defaultWidgetShowRuleConfig,
      frontImportFlag: 1,
      importFileLimitSize: 200,
      importAttachCode: "",
      importAttachName: "",
      tableRef: "",
      onConfirmImportEnabled: false,
      onConfirmImport: "",
      onSuccessImport: "",
      hideCancelButton: false,
      onBeforeClickButton: null,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "print-button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "导出/打印",
      columnWidth: "200px",
      size: "",
      // displayStyle: "block",
      disabled: !1,
      hidden: !1,
      type: "primary",
      /*plain: !1,
      round: !1,
      circle: !1,
      icon: "el-icon-download",*/
      customClass: "",
      onCreated: "",
      onMounted: "",
      // clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,

      // customLabelEnabled: false,
      printButtonFlag: 1,
      printTableRef: "",
      printItems: [],
      // printCustomCondition: "",

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "print-detail-button",
    icon: "button",
    commonFlag: !0,
    columnFlag: false,
    formItemFlag: !1,
    options: {
      name: "",
      label: "导出/打印",
      columnWidth: "200px",
      size: "",
      // displayStyle: "block",
      disabled: !1,
      hidden: !1,
      type: "primary",
      /*plain: !1,
      round: !1,
      circle: !1,
      icon: "el-icon-download",*/
      customClass: "",
      onCreated: "",
      onMounted: "",
      // clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,

      printDetailButtonFlag: 1,
      // customLabelEnabled: false,
      printItems: [],
      printCustomCondition: "return {\n  id:[dataId]\n}",

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "baseAttachment",
    icon: "file-upload-field",
    columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      keyNameSuffix: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      disabled: !1,
      hidden: !1,
      required: !1,
      labelWidth: null,
      labelHidden: !0,
      limit: null,
      accessType: "1",
      entityTableCode: null,
      entityTableDesc: null,
      onCreated: "",
      onMounted: "",
      onAfterConfirmFile: "",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "status",
    icon: "status",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      disabled: !1,
      hidden: !1,
      // defaultValue: 0,
      labelWidth: null,
      labelHidden: !1,
      optionItemValueType: 0,
      ...defaultLabelIconConfig,
      statusType: "common",
      statusParam: [],

      ...httpConfig,
      formScriptEnabled: false,

      onCreated: "",
      onMounted: "",
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "census",
    icon: "census",
    commonFlag: !0,
    formItemFlag: false,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      columnWidth: "200px",
      hidden: false,
      customClass: "", //自定义css类名
      space: "5",
      censusClass: "form-count",
      censusItems: [
        {
          number: "1002",
          txt: "总数量",
          detailItems: [
            {
              txt: "跟进商机",
              number: "26",
            },
            {
              txt: "累计商机",
              number: "26",
            },
          ],
        },
        {
          number: "603",
          txt: "总人数",
          detailItems: [],
        },
        {
          number: "5004",
          txt: "总订单",
          detailItems: [],
        },
      ],

      ...httpConfig,

      onCreated: "",
      onMounted: "",
      onClick: "",
      ...defaultWfConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },

  {
    type: "project-tag",
    icon: "uploadbox",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      ...projectTagConfig,
      formScriptEnabled: true,
    },
  },
  {
    type: "table2",
    category: "container",
    icon: "table",
    commonFlag: !0,
    formItemFlag: !0,
    rows: [],
    options: {
      name: "",
      keyNameEnabled: !0,
      keyName: "",
      hidden: !1,
      customClass: "",
      styleTableClass: "",
      // fullWidth: false,
      submitFlag: true,

      ...httpConfig,

      onCreated: "this.loadDataDefaultHandle()",
      onMounted: "",
      ...defaultWfConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "dropdown",
    icon: "tab",
    commonFlag: !0,
    // columnFlag: true,
    widgetList: [],
    options: {
      name: "",
      label: "",
      hidden: !1,
      disabled: !1,
      customClass: "",
      dropdownFlag: 1,
      dropdownType: "button",
      dropdownTrigger: "hover",
      // ...defaultWfConfig,
      onCreated: "",
      onMounted: "",
    },
  },
  {
    type: "dropdown-item",
    icon: "tab-pane",
    internal: !0,
    options: {
      name: "",
      label: "",
      hidden: !1,
      disabled: !1,
      customClass: "",
      dropdownItemFlag: 1,

      onClick: "",
      onCreated: "",
      onMounted: "",

      clickBindEvent: null,
      onBeforeClickButton: null,
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
      },
      addTableDataConfig: {
        tableRef: null,
        tableData: {},
      },

      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,
    },
  },
  {
    type: "gantt",
    icon: "uploadbox",
    commonFlag: !0,
    formItemFlag: !1,
    options: {
      name: "",
      // label: "操作日志",
      // disabled: !1,
      hidden: !1,

      ...httpConfig,
      formScriptEnabled: true,
      formScriptCode: null,
      ganttConfig: "",

      customClass: "",
      onCreated: "",
      onMounted: "",
    },
  },

  {
    type: "download-button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "附件下载",
      columnWidth: "200px",
      size: "",

      // displayStyle: "block",
      disabled: !1,
      hidden: !1,
      buttonTypeFlag: 1,
      type: "",
      /*plain: !1,
      round: !1,
      circle: !1,
      icon: "el-icon-download",*/
      customClass: "",
      ...httpConfig,

      downloadButtonFlag: 1,
      dataTableName: null,
      attachmentType: null,
      fileName: null,

      onCreated: "",
      onMounted: "",
      ...defaultWfConfig,
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },

  {
    type: "vue-page",
    icon: "html-text",
    commonFlag: !0,
    formItemFlag: !1,
    columnFlag: false,
    options: {
      name: "",
      hidden: !1,
      customClass: "",
      onCreated: "this.loadPage();",
      onMounted: "",
      vuePageFlag: 1,
      componentPath: "",
      componentHeight: "",
      componentConfig: "",
      accessType: "1",
      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
];

export const businessFields = [
  {
    type: "create_by-text",
    targetType: "text",
    icon: "text",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !0,
      keyName: "_createBy",
      label: "创建人",
      submitFlag: true,
      formField: "",
      hidden: !1,
      required: !1,
      customClass: "",
      defaultValue: "",
      labelAlign: "",
      labelWidth: null,
      labelHidden: !1,
      ...defaultLabelIconConfig,
      onCreated: "",
      onMounted: "",
      accessType: "1",
      labelColor: "",
      ...defaultWfConfig,

      autoValueEnabled: false,
      autoValueHanlde: null,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "modify_by-text",
    targetType: "text",
    icon: "text",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !0,
      keyName: "_modifyBy",
      label: "更新人",
      submitFlag: true,
      formField: "",
      hidden: !1,
      required: !1,
      customClass: "",
      defaultValue: "",
      labelAlign: "",
      labelWidth: null,
      labelHidden: !1,
      ...defaultLabelIconConfig,
      onCreated: "",
      onMounted: "",
      accessType: "1",
      labelColor: "",
      ...defaultWfConfig,

      autoValueEnabled: false,
      autoValueHanlde: null,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "create_date-text",
    targetType: "text",
    icon: "text",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !0,
      keyName: "create_date",
      label: "创建时间",
      submitFlag: true,
      formField: "",
      hidden: !1,
      required: !1,
      customClass: "",
      defaultValue: "",
      labelAlign: "",
      labelWidth: null,
      labelHidden: !1,
      ...defaultLabelIconConfig,
      onCreated: "",
      onMounted: "",
      accessType: "1",
      labelColor: "",
      ...defaultWfConfig,

      autoValueEnabled: false,
      autoValueHanlde: null,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },
  {
    type: "modify_date-text",
    targetType: "text",
    icon: "text",
    commonFlag: !0,
    formItemFlag: !0,
    columnFlag: true,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !0,
      keyName: "modify_date",
      label: "更新时间",
      submitFlag: true,
      formField: "",
      hidden: !1,
      required: !1,
      customClass: "",
      defaultValue: "",
      labelAlign: "",
      labelWidth: null,
      labelHidden: !1,
      ...defaultLabelIconConfig,
      onCreated: "",
      onMounted: "",
      accessType: "1",
      labelColor: "",
      ...defaultWfConfig,

      autoValueEnabled: false,
      autoValueHanlde: null,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      ...defaultTextFlagConfig,
    },
  },

  {
    type: "user-vabsearch",
    targetType: "singerSearch",
    icon: "searchbox",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      ...vabsearchConfig,
      vabSearchName: "nick_name",
      userDefaultVabSearch: true,
      label: "用户",
      labelColor: "",
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
        multipleChoices: false,
        formCode: "user_dialog",
        valueSourceField: "id",
        labelSourceField: "nick_name",
      },
    },
  },
  {
    type: "saleOrg-vabsearch",
    targetType: "singerSearch",
    icon: "searchbox",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      ...vabsearchConfig,
      vabSearchName: "sale_org_name",
      saleOrgDefaultVabSearch: true,
      label: "机构",
      labelColor: "",
      searchDialogConfig: {
        ...defaultSearchDialogConfig,
        multipleChoices: false,
        formCode: "sale_org_dialog",
        valueSourceField: "id",
        labelSourceField: "name",
      },
    },
  },

  {
    type: "user-project-tag",
    targetType: "project-tag",
    icon: "uploadbox",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      ...projectTagConfig,
      formScriptEnabled: true,
      label: "用户",
      labelColor: "",
      tagFormCode: "user_dialog",
      tagLabelField: "nick_name",
      tagUniqueField: "id",
      tagFormLabelField: "nick_name",
      tagFormUniqueField: "id",
      tabDeleteEnabled: true,
    },
  },
  {
    type: "saleOrg-project-tag",
    targetType: "project-tag",
    icon: "uploadbox",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !0,
    tableField: null,
    options: {
      ...projectTagConfig,
      formScriptEnabled: true,
      label: "机构",
      labelColor: "",
      tagFormCode: "sale_org_dialog",
      tagLabelField: "name",
      tagUniqueField: "id",
      tagFormLabelField: "name",
      tagFormUniqueField: "id",
      tabDeleteEnabled: true,
    },
  },
  {
    type: "copy_button",
    icon: "button",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      label: "复制",
      columnWidth: "200px",
      size: "",
      // displayStyle: "block",
      disabled: !1,
      hidden: !1,
      type: "primary",

      customClass: "",
      onCreated: "",
      onMounted: "",
      copyButton: true,
      copyDataHandle: "",
      ...defaultWfConfig,
      ...defaultWidgetShowRuleConfig,
      hiddenByWf: true,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],
    },
  },
  {
    type: "tempStorage",
    icon: "uploadbox",
    commonFlag: !0,
    columnFlag: true,
    formItemFlag: !1,
    options: {
      name: "",
      // label: "暂存",
      columnWidth: "200px",
      disabled: !1,
      hidden: !1,

      tempStorageFlag: 1,
      tempStorageCode: null,
      tempStorageConfirm: null,

      customClass: "",
      onCreated: "",
      onMounted: "",

      ...defaultWidgetShowRuleConfig,
    },
  },
  {
    type: "oplog",
    icon: "uploadbox",
    commonFlag: !0,
    formItemFlag: !1,
    options: {
      name: "",
      // label: "操作日志",
      // disabled: !1,
      hidden: !1,

      oplogFlag: 1,
      formScriptCode: "listUserLog",
      oplogTypeCode: null,
      oplogBusinessKey: null,

      customClass: "",
      onCreated: "",
      onMounted: "",
    },
  },
  {
    type: "vabUpload2",
    icon: "uploadbox",
    commonFlag: !0,
    formItemFlag: !0,
    tableField: null,
    options: {
      name: "",
      keyNameEnabled: !1,
      keyName: "",
      label: "",
      labelColor: "",
      submitFlag: true,
      disabled: !1,
      hidden: !1,
      required: !1,
      labelWidth: null,
      labelHidden: !0,
      limit: null,
      hideRemoveButton: false,
      accessType: "1",
      entityTableCode: null,
      entityTableDesc: null,
      onCreated: "",
      onMounted: "",
      onAfterConfirmFile: "",
      vabUpload2Flag: 1,

      vabupload2_scriptCode: "/intf/getHxFileUploadConfig",
      vabupload2_uploadParam:
        'return {\n  entityName: "msdyn_workorder",\n  entityId: dataId,\n  backendwriteback: "10",\n  fileCategory: "工单",\n}',
      vabupload2_deleteParam:
        'return {\r\n  entityName: "msdyn_workorder",\r\n  entityId: dataId,\r\n  backendwriteback: "10",\r\n}',
      // vabupload2_getFileParam:"",

      // ...httpConfig,
      // formScriptCode: "getList",
      ...defaultLabelIconConfig,
      ...defaultWfConfig,

      showRuleFlag: 1,
      showRuleEnabled: 1,
      showRules: [],

      hiddenFileInfo: false,
      hiddenFileName: false,
      showFileSize: false,
      showFileCreateBy: false,
      showFileCreateDate: false,
      widgetSize: 2,

      customUploadEnabled: false,
      uploadUrl: null,
      uploadHeaders: {},
      uploadRresponseAdapter: {},
    },
  },
];

export const keyNamePrefixMap = {
  vabUpload: "attachments_",
  baseAttachment: "attachments_",
};

export const customFields = [];

export function addContainerWidgetSchema(containerSchema) {
  containers.push(containerSchema);
}

export function addBasicFieldSchema(fieldSchema) {
  basicFields.push(fieldSchema);
}

export function addAdvancedFieldSchema(fieldSchema) {
  advancedFields.push(fieldSchema);
}

export function addCustomWidgetSchema(widgetSchema) {
  customFields.push(widgetSchema);
}
