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
7f7549fb
authored
2025-03-09 13:52:07 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
280929ea
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
31 deletions
src/views/legao/block/index.vue
src/views/legao/course/index.vue
src/views/legao/kit/index.vue
src/views/legao/problem/index.vue
src/views/legao/block/index.vue
View file @
7f7549f
...
...
@@ -69,19 +69,19 @@
</el-container>
<el-dialog
:title=
"showForm.title"
v-model=
"showForm.open"
width=
"500px"
append-to-body
@
close=
"closeDialog"
>
<el-form
ref=
"tableRefs"
:model=
"showForm.form"
:rules=
"rules"
>
<el-form-item
:label=
"$t('block.dialogName')"
label-width=
"80"
>
<el-input
v-model=
"showForm.form.name"
placeholder=
"请输入
参数键名
"
/>
<el-form-item
:label=
"$t('block.dialogName')"
prop=
"name"
label-width=
"80"
>
<el-input
v-model=
"showForm.form.name"
placeholder=
"请输入
系列名称
"
/>
</el-form-item>
<el-form-item
:label=
"$t('block.dialogGroup')"
label-width=
"80"
>
<el-form-item
:label=
"$t('block.dialogGroup')"
prop=
"entiretyId"
label-width=
"80"
>
<el-select-v2
v-model=
"showForm.form.entiretyId"
:options=
"kitLists"
:props=
"props"
placeholder=
""
placeholder=
"
请选择套件
"
style=
"width: 180px;"
/>
</el-form-item>
<el-form-item
:label=
"$t('block.dialogPhoto')"
label-width=
"80"
>
<el-form-item
:label=
"$t('block.dialogPhoto')"
prop=
"ossId"
label-width=
"80"
>
<imageUpload
v-model=
"showForm.form.ossId"
:fileType=
'["png", "jpg", "jpeg", "ico"]'
/>
</el-form-item>
</el-form>
...
...
@@ -133,9 +133,11 @@ const data = reactive({
}
},
rules
:
[
{}
]
rules
:
{
name
:
[{
required
:
true
,
message
:
"系列名称不能为空"
,
trigger
:
"blur"
}],
entiretyId
:
[{
required
:
true
,
message
:
"套件不能为空"
,
trigger
:
"blur"
}],
ossId
:
[{
required
:
true
,
message
:
"图片不能为空"
,
trigger
:
"blur"
}]
}
})
const
{
status
,
queryParams
,
total
,
list
,
showForm
,
rules
,
kitLists
}
=
toRefs
(
data
)
...
...
src/views/legao/course/index.vue
View file @
7f7549f
...
...
@@ -70,25 +70,25 @@
</el-container>
<el-dialog
:title=
"showForm.title"
v-model=
"showForm.open"
width=
"500px"
append-to-body
@
close=
"closeDialog"
>
<el-form
ref=
"tableRefs"
:model=
"showForm.form"
:rules=
"rules"
>
<el-form-item
:label=
"$t('course.dialogName')"
label-width=
"80"
>
<el-input
v-model=
"showForm.form.name"
placeholder=
"请输入
参数键名
"
/>
<el-form-item
:label=
"$t('course.dialogName')"
prop=
"name"
label-width=
"80"
>
<el-input
v-model=
"showForm.form.name"
placeholder=
"请输入
课程名称
"
/>
</el-form-item>
<el-form-item
:label=
"$t('course.dialogBlock')"
label-width=
"80"
>
<el-form-item
:label=
"$t('course.dialogBlock')"
prop=
"buildingBlockId"
label-width=
"80"
>
<el-select-v2
v-model=
"showForm.form.buildingBlockId"
:options=
"blockLists"
:props=
"props"
placeholder=
""
placeholder=
"
请选择系列
"
style=
"width: 180px;"
/>
</el-form-item>
<el-form-item
:label=
"$t('course.dialogTypes')"
label-width=
"80"
>
<el-form-item
:label=
"$t('course.dialogTypes')"
prop=
"type"
label-width=
"80"
>
<el-checkbox-group
v-model=
"showForm.form.type"
>
<div
style=
"display: flex;align-items: center;"
>
<el-checkbox
label=
"2D"
value=
"2D"
/>
<el-select
v-model=
"showForm.form.twoDimensionalType"
placeholder=
"
Select
"
placeholder=
"
请选择上传内容
"
size=
"small"
style=
"width: 240px;margin-left: 16px;"
>
...
...
@@ -104,7 +104,7 @@
<el-checkbox
label=
"3D"
value=
"3D"
/>
<el-select
v-model=
"showForm.form.threeDimensionalType"
placeholder=
"
Select
"
placeholder=
"
请选择上传内容
"
size=
"small"
style=
"width: 240px;margin-left: 16px;"
>
...
...
@@ -137,7 +137,7 @@
<el-form-item
:label=
"$t('course.dialogCase')"
label-width=
"80"
>
<fileUpload
v-model=
"showForm.form.caseOssId"
:limit=
"1"
:fileType=
'["mp4", "avi", "mov", "flv"]'
/>
</el-form-item>
<el-form-item
:label=
"$t('course.dialogTeaching')"
label-width=
"80"
>
<el-form-item
:label=
"$t('course.dialogTeaching')"
prop=
"teachingOssId"
label-width=
"80"
>
<fileUpload
v-model=
"showForm.form.teachingOssId"
:limit=
"1"
:fileType=
'["pdf"]'
/>
</el-form-item>
<el-form-item
:label=
"$t('course.dialogPpt')"
label-width=
"80"
>
...
...
@@ -195,9 +195,12 @@ const data = reactive({
}
},
rules
:
[
{}
]
rules
:
{
name
:
[{
required
:
true
,
message
:
"课程名称不能为空"
,
trigger
:
"blur"
}],
buildingBlockId
:
[{
required
:
true
,
message
:
"系列不能为空"
,
trigger
:
"blur"
}],
type
:
[{
required
:
true
,
message
:
"搭建类型不能为空"
,
trigger
:
"blur"
}],
teachingOssId
:
[{
required
:
true
,
message
:
"教案不能为空"
,
trigger
:
"blur"
}],
}
})
const
{
status
,
queryParams
,
total
,
list
,
showForm
,
rules
,
blockLists
}
=
toRefs
(
data
)
...
...
@@ -278,6 +281,7 @@ function handleDel(row) {
}
function
submitForm
(
type
)
{
const
data
=
{
...
showForm
.
value
.
form
,
type
:
showForm
.
value
.
form
?.
type
.
join
(
'、'
)
...
...
src/views/legao/kit/index.vue
View file @
7f7549f
...
...
@@ -62,11 +62,11 @@
</el-container>
<el-dialog
:title=
"showForm.title"
v-model=
"showForm.open"
width=
"500px"
append-to-body
@
close=
"closeDialog"
>
<el-form
ref=
"tableRefs"
:model=
"showForm.form"
:rules=
"rules"
>
<el-form-item
:label=
"$t('kit.dialogName')"
label-width=
"80"
>
<el-input
v-model=
"showForm.form.name"
placeholder=
""
/>
<el-form-item
:label=
"$t('kit.dialogName')"
prop=
"name"
label-width=
"80"
>
<el-input
v-model=
"showForm.form.name"
placeholder=
"
请输入套件名称
"
/>
</el-form-item>
<el-form-item
:label=
"$t('kit.dialogCate')"
label-width=
"80"
>
<el-select
v-model=
"showForm.form.type"
placeholder=
""
clearable
>
<el-form-item
:label=
"$t('kit.dialogCate')"
prop=
"type"
label-width=
"80"
>
<el-select
v-model=
"showForm.form.type"
placeholder=
"
请选择类别
"
clearable
>
<el-option
v-for=
"dict in entirety_type"
:key=
"dict.value"
...
...
@@ -121,9 +121,10 @@ const data = reactive({
}
},
rules
:
[
{}
]
rules
:
{
name
:
[{
required
:
true
,
message
:
"套件名称不能为空"
,
trigger
:
"blur"
}],
type
:
[{
required
:
true
,
message
:
"类别不能为空"
,
trigger
:
"blur"
}]
}
})
const
{
status
,
queryParams
,
total
,
list
,
showForm
,
rules
}
=
toRefs
(
data
)
...
...
src/views/legao/problem/index.vue
View file @
7f7549f
...
...
@@ -94,8 +94,8 @@
</el-container>
<el-dialog
:title=
"showForm.title"
v-model=
"showForm.open"
width=
"500px"
append-to-body
@
close=
"closeDialog"
>
<el-form
ref=
"tableRefs"
:model=
"showForm.form"
:rules=
"rules"
>
<el-form-item
:label=
"$t('problem.dialogName')"
label-width=
"80"
>
<el-input
v-model=
"showForm.form.title"
placeholder=
"请输入
参数键名
"
/>
<el-form-item
:label=
"$t('problem.dialogName')"
prop=
"title"
label-width=
"80"
>
<el-input
v-model=
"showForm.form.title"
placeholder=
"请输入
问题
"
/>
</el-form-item>
<el-form-item
:label=
"$t('problem.dialogPhote')"
label-width=
"80"
>
<imageUpload
v-model=
"showForm.form.coverOssId"
:limit=
"1"
:fileType=
'["png", "jpg", "jpeg", "ico"]'
/>
...
...
@@ -161,9 +161,9 @@ const data = reactive({
}
},
rules
:
[
{}
]
rules
:
{
title
:
[{
required
:
true
,
message
:
"问题不能为空"
,
trigger
:
"blur"
}]
}
})
const
tableRefs
=
ref
(
null
)
...
...
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