<template>
    <el-table :data="tableData" border height="100%" style="width: 100%">
        <el-table-column type="index" label="序号" width="100" align="center"></el-table-column>
        <el-table-column label="数据字典定义" align="center">
            <el-table-column prop="ClassCode" label="*标准管道设备类型编码" align="center" show-overflow-tooltip> </el-table-column>
            <el-table-column prop="ClassName" label="标准管道设备类型名称" align="center" show-overflow-tooltip> </el-table-column>
            <el-table-column prop="UseCode" label="*用途编码" align="center" show-overflow-tooltip> </el-table-column>
            <el-table-column prop="UseName" label="用途名称" align="center" show-overflow-tooltip> </el-table-column>
        </el-table-column>
        <el-table-column label="建模中的定义" align="center">
            <el-table-column prop="PPdName" label="*对应的模型中管道名称" align="center" show-overflow-tooltip> </el-table-column>
        </el-table-column>
        <el-table-column v-if="!readonly" label="编辑" align="center" width="180">
            <template slot-scope="scope">
                <el-button size="mini" icon="el-icon-edit-outline" @click="handleEdit(scope.$index, scope.row)"></el-button>
                <el-button size="mini" icon="el-icon-delete" type="danger" @click="handleDelete(scope.$index, scope.row)"></el-button>
            </template>
        </el-table-column>
        <template slot="empty">
            <div style="height: 60%; transform: translateY(50%)">
                <i class="icon-wushuju iconfont"></i>
                暂无管道名称对应规则
            </div>
        </template>
    </el-table>
</template>

<script>
import { mapGetters } from "vuex";
export default {
    props: {
        readonly: Boolean,
        tableData: Array,
    },
    data() {
        return {};
    },
    mounted() {},
    computed: {
        ...mapGetters("layout", ["projectId"]),
    },
    methods: {},
    watch: {
        projectId() {},
    },
};
</script>

<style>
</style>