<template>
  <div class="page">
    <LayoutTable :data="tableData" :config="tableConfig" />
  </div>
</template>

<script>
import table from "@/assets/mixins/table";

export default {
  mixins: [table],
  data() {
    return {
      config: {
        search: [
          {
            name: "systemCode",
            type: "text",
            label: "系统编码",
          },
        ],
        columns: [
          { type: "selection", width: 60 },
          { label: "实施清单名称", prop: "eventname" },
          { label: "实施清单编码", prop: "eventcode" },
          { label: "是否推送", prop: "is_report" ,formatter:this.formatter },
          { label: "是否成功", prop: "is_success" ,formatter:this.formatter},
          // { label: "推送失败原因", prop: "failReason" },
          { label: "失败次数", prop: "fail_times" },
          { label: "系统编码", prop: "systemCode" },
          // { label: "办件编码", prop: "officeCode" },
          // { label: "办件业务流水号", prop: "seriesNumber" },
          { label: "流程状态名称", prop: "processStatusName" },
          { label: "流程状态编码", prop: "processStatusCode" },
          {
            label: "操作",
            width: 180,
            formatter: (row) => {
              // return (
              //   <div>
              //     <el-button
              //       type="primary"
              //       icon="el-icon-edit"
              //       round
              //       size="mini"
              //       onClick={() => {
              //         this.toEdit(row);
              //       }}
              //     >
              //       编辑
              //     </el-button>
              //   </div>
              // );
            },
          },
        ],
      },
    };
  },
};
</script>