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
25c30d22
authored
2025-06-05 16:21:24 +0800
by
yzj
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
f76fb432
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
src/views/legao/course/index.vue
src/views/legao/course/index.vue
View file @
25c30d2
...
...
@@ -44,11 +44,11 @@
<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=
"
canPack
"
>
<template
#
default=
"
{ row }">
<dict-tag
:options=
"constrain_status"
:value=
"row.
packId
"
:value=
"row.
canPack
"
></dict-tag>
</
template
>
</el-table-column>
...
...
@@ -90,9 +90,9 @@
style=
"width: 180px;"
/>
</el-form-item>
<el-form-item
:label=
"$t('course.dialogPack')"
prop=
"
packId
"
label-width=
"80"
>
<el-form-item
:label=
"$t('course.dialogPack')"
prop=
"
canPack
"
label-width=
"80"
>
<el-select
v-model=
"showForm.form.
packId
"
v-model=
"showForm.form.
canPack
"
placeholder=
"请选择是否打包"
closeabled
style=
"width: 180px;"
...
...
@@ -256,7 +256,7 @@ function handleEdit (row) {
form
:
{
...
row
,
type
:
row
.
type
.
split
(
'、'
),
packId
:
row
.
packId
||
'0'
// 确保packId
有值,如果为null或undefined则默认为'0'
canPack
:
row
.
canPack
||
0
// 确保canPack
有值,如果为null或undefined则默认为'0'
}
}
console
.
log
(
'编辑表单数据:'
,
showForm
.
value
.
form
)
// 添加日志查看数据
...
...
@@ -269,7 +269,7 @@ function btn_add () {
...
showForm
.
value
,
open
:
true
,
form
:
{
packId
:
'0'
// 设置默认值
canPack
:
0
// 设置默认值
}
}
}
...
...
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