<template>
  <sd-oa-table
    form-id="iamEditPermission"
    page-id="core/chooseconfig/iamEditPermission"
    :columns="columns"
    :actions="actions"
    show-selection
    :search-fields="[]"
  >
    <template v-slot:form="{ model }">
      <!-- 表单ID -->
      <sd-form-item name="formId" />
      <!-- 模块名称 -->
      <sd-form-item name="moduleName" />
      <!-- 选择机构ID -->
      <sd-form-item name="selectOrgId" />
      <!-- 选择部门名称 -->
      <sd-form-item name="selectOrgName" />
      <!-- 管理员账号 -->
      <sd-form-item name="managerAccount" />
      <!-- 管理员姓名 -->
      <sd-form-item name="managerName" />
      <!-- 维护范围 -->
      <sd-form-item name="editScope" />
      <!-- 审计分级机构ID
          <sd-form-item name="auditOrgId" />
           -->
      <!-- 扩展文本字段
          <sd-form-item name="reservestring1" />

          <sd-form-item name="reservestring2" />

          <sd-form-item name="reservestring3" />

          <sd-form-item name="reservestring4" />

          <sd-form-item name="reservestring5" />
           -->
      <!-- 扩展数字字段
          <sd-form-item name="reservelong1" />

          <sd-form-item name="reservelong2" />

          <sd-form-item name="reservelong3" />

          <sd-form-item name="reservelong4" />

          <sd-form-item name="reservelong5" />
           -->
    </template>
    <span slot="AppointmentTime" slot-scope="appointmentTime">
      {{ appointmentTime | sdDateFormat('YYYY-MM-DD HH:mm') }}
    </span>
  </sd-oa-table>
</template>

<script>
import TableActionTypes from '@/common/services/table-action-types'
import components from './_import-components/iam-audit-editpermission-import'

export default {
  name: 'IamAuditEditpermission',
  metaInfo: {
    title: '维护权限',
  },
  components,
  data() {
    return {
      columns: [],
      actions: [
        {
          label: '新建',
          id: 'new',
          type: TableActionTypes.oa.create, // 新建按钮，不需要回调，自动处理
        },
        {
          label: '删除',
          id: 'delete',
          type: TableActionTypes.oa.delete, // 删除按钮，不需要回调，会自动处理
        },
      ],
    }
  },
  created() {},
  methods: {},
}
</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
