<template>
  <el-dialog
    title="工艺列表"
    v-model="visible"
    width="600px"
    append-to-body
    draggable
    v-loading="loading"
  >
    <!-- 渲染数据区 -->
    <!-- <div class="el-table-container"> -->
    <div class="el-table-inner-container">
      <el-table
        v-loading="loading"
        :data="processList"
        size="small"
        border
        height="500px"
        @selection-change="handleSelectionChange"
      >
        <el-table-column label="工序简称" align="center" prop="processKey">
        </el-table-column>
        <el-table-column label="工序编码" align="center" prop="processCode">
        </el-table-column>
        <el-table-column label="工序名称" align="center" prop="processAlias">
        </el-table-column>
      </el-table>
    </div>
    <!-- </div> -->
  </el-dialog>
</template>
<script setup>
import { ref } from "vue";
const { proxy } = getCurrentInstance();

/** 字典数组区 */
const processList = ref([]);

const loading = ref(false);
const visible = ref(false);
/***********************  方法区  ****************************/
/** 打开抽屉 */
const open = (data) => {
  reset();
  visible.value = true;
  processList.value = data;
};

/** 取消按钮 */
function handleCancel() {
  visible.value = false;
  reset();
}

/** 表单重置 */
function reset() {
  processList.value = [];
}

/** 暴露给父组件的方法 */
defineExpose({
  open,
});
</script>
<style scoped>
.leftInfo {
  color: #000;
  font-size: 15px;
  width: 120px;
  /* display: inline-block; */
}

.middleInfo {
  color: #000;
  font-size: 15px;
  width: 65px;
  display: inline-block;
}

.switch-container {
  font-size: 15px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: left;
}
.ml-15 {
  margin-left: 15px;
  margin-right: 15px;
}

.table-container {
  max-width: 600px; /* 或者你希望的最大宽度 */
}
.rightInfo {
  font-size: 16px;
  padding-left: 0px;
}
</style>
