<template>
  <div
    ><div :class="[$style.wrapHeight, $style.maintainlist]">
      <div :class="$style.rowHeight">
        <div :class="$style.rightcard">
          <a-card>
            <sd-data-table-ex
              ref="SJMXDataTable"
              :projectlist="true"
              :filter-expressions="expressions"
              :columns="columns"
              :actions="actions"
              form-id="iamFinancialIndex"
              page-id="audit/iamfinancialindex/iamFinancialIndex"
              show-selection
            >
              <!-- 插槽放置表格内容 -->
              <template v-slot:form="{ model }" v-sd-watermark="waterMark" @saved="onSaved">
                <SdFormItem name="" />
              </template>
            </sd-data-table-ex>
          </a-card>
        </div>
      </div>
    </div>
  </div>
</template>

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

export default {
  name: 'AuditZbList',
  metaInfo: {
    title: 'AuditZbList',
  },
  components,
  data() {
    return {
      expressions: [],
      columns: [
        //       <NumberType field="id" caption="id"/>
        // <StringType field="firstClassify" caption="一级分类"  />
        // <StringType field="secondClassify" caption="二级分类"  />
        // <StringType field="indexName" caption="指标名称"  />
        // <StringType field="indexNameEn" caption="指标英文名"  />
        // <StringType field="indexMeasure" caption="指标单位"  />
        // <StringType field="price" caption="量价"  />
        // <StringType field="systemSource" caption="来源系统"  />
        // <StringType field="remark" caption="备注"  />
        {
          title: '序号',
          dataIndex: 'sortNumber',
          width: '80px',
          customRender: (text, record, index) => `${index + 1}`,
        },
        {
          title: '一级分类',
          dataIndex: 'firstClassify',
        },
        {
          title: '二级分类',
          dataIndex: 'secondClassify',
        },
        {
          title: '指标名称',
          dataIndex: 'indexName',
        },
        {
          title: '指标英文名',
          dataIndex: 'indexNameEn',
        },
        {
          title: '指标单位',
          dataIndex: 'indexMeasure',
        },
        {
          title: '量价',
          dataIndex: 'price',
        },
        {
          title: '来源系统',
          dataIndex: 'systemSource',
        },
        {
          title: '备注',
          dataIndex: 'remark',
        },
      ],
      actions: [
        // 新增，删除
        // {
        //   label: '新建',
        //   permission: 'create',
        //   id: 'new',
        //   type: TableActionTypes.primary,
        //   callback: this.createMatters,
        // },
        // //  删除
        // {
        //   label: '删除',
        //   id: 'delete',
        //   type: TableActionTypes.ex.delete, // 删除按钮，不需要回调，会自动处理（对sd-data-table无效）
        // },
      ],
    }
  },
  methods: {},
}
</script>

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