是否打包列显示等
Showing
1 changed file
with
10 additions
and
2 deletions
| ... | @@ -44,7 +44,14 @@ | ... | @@ -44,7 +44,14 @@ |
| 44 | <el-table-column :label="$t('course.blockName')" prop="buildingBlockName" /> | 44 | <el-table-column :label="$t('course.blockName')" prop="buildingBlockName" /> |
| 45 | <el-table-column :label="$t('course.buildName')" prop="type" /> | 45 | <el-table-column :label="$t('course.buildName')" prop="type" /> |
| 46 | <el-table-column :label="$t('course.caseName')" prop="caseName" /> | 46 | <el-table-column :label="$t('course.caseName')" prop="caseName" /> |
| 47 | <el-table-column :label="$t('course.packName')" prop="packId" /> | 47 | <el-table-column :label="$t('course.packName')" prop="packId"> |
| 48 | <template #default="{ row }"> | ||
| 49 | <dict-tag | ||
| 50 | :options="constrain_status" | ||
| 51 | :value="row.packId" | ||
| 52 | ></dict-tag> | ||
| 53 | </template> | ||
| 54 | </el-table-column> | ||
| 48 | <el-table-column :label="$t('course.tableControlsName')" class-name="small-padding fixed-width"> | 55 | <el-table-column :label="$t('course.tableControlsName')" class-name="small-padding fixed-width"> |
| 49 | <template #default="{ row }"> | 56 | <template #default="{ row }"> |
| 50 | <el-button | 57 | <el-button |
| ... | @@ -249,9 +256,10 @@ function handleEdit (row) { | ... | @@ -249,9 +256,10 @@ function handleEdit (row) { |
| 249 | form: { | 256 | form: { |
| 250 | ...row, | 257 | ...row, |
| 251 | type: row.type.split('、'), | 258 | type: row.type.split('、'), |
| 252 | packId: row.packId ? row.packId : '0' // 确保packId有值 | 259 | packId: row.packId || '0' // 确保packId有值,如果为null或undefined则默认为'0' |
| 253 | } | 260 | } |
| 254 | } | 261 | } |
| 262 | console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据 | ||
| 255 | } | 263 | } |
| 256 | 264 | ||
| 257 | function btn_add () { | 265 | function btn_add () { | ... | ... |
-
Please register or sign in to post a comment