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

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

export default {
  components: {},
  mixins: [table],
  created() {},
  methods: {
       toFlow(row) {
      this.$router.push({
        path: "/platform/modelinfo/list",
        query: { platformSn: row.platformSn,id: row.id },
      });
    },
  },
  data() {
    return {
      config: {
        search: [],
        columns: [
          { type: "selection", width: 60 },

          { label: "名称", prop: "name" },
          { label: "业务系统标识", prop: "platformSn" },
          { label: "接入秘钥", prop: "secretKey" },
          { label: "系统备注", prop: "remark" },
          { label: "状态", prop: "status" ,formatter:this.formatter },
          { label: "创建用户名称", prop: "createUserName" },
          {
            label: "操作",
            width: 240,
            formatter: (row) => {
              return (
                <div>
                  <el-button
                    icon="el-icon-edit"
               
                    size="mini"
                    onClick={() => {
                      this.toEdit(row);
                    }}
                  >
                    编辑
                  </el-button>
                  <span> </span>
                  <el-button
                    icon="el-icon-edit"
                 
                    size="mini"
                    onClick={() => {
                      this.toFlow(row);
                    }}
                  >
                    模型流程
                  </el-button>

                </div>
              );
            },
          },
        ],
      },
    };
  },
};
</script>