1
lzhe
2024-10-10 26b56d135ef0be0c3a3df782f54a68b8e1ee310c
src/views/console/workstation/CollTable.vue
@@ -1,13 +1,13 @@
<!--
 * @Date: 2024-10-05 09:51:45
 * @LastEditors: gaoshp
 * @LastEditTime: 2024-10-09 20:11:01
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-10-10 10:45:03
 * @FilePath: /cps-web/src/views/console/workstation/CollTable.vue
-->
<template>
    <div>
        <el-table :data="tabledata" height="200px">
            <el-table-column v-for="item in cols" :key="item.prop" :prop="item.prop" :label="item.label" width="120">
        <el-table :data="tabledata">
            <el-table-column width="200" v-for="item in cols" :key="item.prop" :prop="item.prop" :label="item.label">
                <template #header="scope">
                    <span v-show="item.isRequired" style="color: red;">*</span>
                    <span>{{ scope.column.label }}</span>