f76fb432 by yzj

是否打包列显示等

1 parent de84d1a5
......@@ -44,7 +44,14 @@
<el-table-column :label="$t('course.blockName')" prop="buildingBlockName" />
<el-table-column :label="$t('course.buildName')" prop="type" />
<el-table-column :label="$t('course.caseName')" prop="caseName" />
<el-table-column :label="$t('course.packName')" prop="packId" />
<el-table-column :label="$t('course.packName')" prop="packId">
<template #default="{ row }">
<dict-tag
:options="constrain_status"
:value="row.packId"
></dict-tag>
</template>
</el-table-column>
<el-table-column :label="$t('course.tableControlsName')" class-name="small-padding fixed-width">
<template #default="{ row }">
<el-button
......@@ -249,9 +256,10 @@ function handleEdit (row) {
form: {
...row,
type: row.type.split('、'),
packId: row.packId ? row.packId : '0' // 确保packId有值
packId: row.packId || '0' // 确保packId有值,如果为null或undefined则默认为'0'
}
}
console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据
}
function btn_add () {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!