/*
 * Author: 黎永顺
 * Description: 表单渲染condition
 * Date: 2022-05-30 22:39:03
 * LastEditTime: 2022-06-09 14:00:30
 */
export const editConditions = [
  {
    items: [
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["name"],
        fieldcol: 14,
        rules: "required|string",
        label: "名称",
        labelcol: 6,
        value: "",
        viewAttr: 3,
      },
      {
        browserConditionParam: {
          completeParams: {},
          conditionDataParams: {},
          dataParams: {},
          destDataParams: {},
          hasAddBtn: false,
          hasAdvanceSerach: true,
          idSeparator: ",",
          isAutoComplete: 1,
          isDetail: 0,
          isMultCheckbox: false,
          isSingle: false,
          linkUrl: "/hrm/resource/HrmResource.jsp?id=",
          pageSize: 10,
          quickSearchName: "",
          replaceDatas: [],
          title: "人力资源",
          type: "1",
          viewAttr: 3,
          rules: "required",
        },
        colSpan: 1,
        conditionType: "BROWSER",
        rules: "required|string",
        domkey: ["adminUserIds"],
        fieldcol: 14,
        label: "管理员",
        labelcol: 6,
        viewAttr: 3,
      },
      {
        colSpan: 1,
        conditionType: "INPUTNUMBER",
        domkey: ["sortedIndex"],
        fieldcol: 14,
        label: "显示顺序",
        labelcol: 6,
        value: "",
        viewAttr: 2,
      },
      {
        colSpan: 1,
        conditionType: "TEXTAREA",
        domkey: ["description"],
        fieldcol: 14,
        label: "备注",
        labelcol: 6,
        value: "",
        viewAttr: 2,
      },
    ],
    defaultshow: true,
  },
];
export const decentralizationConditions = [
  {
    items: [
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["name"],
        fieldcol: 14,
        rules: "required|string",
        label: "名称",
        labelcol: 6,
        value: "",
        viewAttr: 3,
      },
      {
        colSpan: 1,
        conditionType: "INPUTNUMBER",
        domkey: ["sortedIndex"],
        fieldcol: 14,
        label: "显示顺序",
        labelcol: 6,
        value: "",
        viewAttr: 2,
      },
      {
        colSpan: 1,
        conditionType: "TEXTAREA",
        domkey: ["description"],
        fieldcol: 14,
        label: "备注",
        labelcol: 6,
        value: "",
        viewAttr: 2,
      },
    ],
    defaultshow: true,
  },
];
