Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f76fb432
authored
2025-06-05 15:49:22 +0800
by
yzj
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
是否打包列显示等
1 parent
de84d1a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/views/legao/course/index.vue
src/views/legao/course/index.vue
View file @
f76fb43
...
...
@@ -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
()
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment