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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
44 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
...
...
@@ -18,10 +18,10 @@
<el-button
type=
"primary"
icon=
"Search"
@
click=
"btn_search"
>
查询
</el-button>
</el-form-item>
</el-form>
<!-- 列表操作 -->
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"primary"
plain
icon=
"Plus"
...
...
@@ -32,7 +32,7 @@
</el-header>
<el-main
id=
"max-height"
>
<!-- 列表内容 -->
<el-table
<el-table
v-loading=
"status.loading"
:data=
"list"
:max-height=
"windowSize.height - 70"
...
...
@@ -45,12 +45,12 @@
<el-table-column
:label=
"$t('block.groupName')"
prop=
"entiretyName"
/>
<el-table-column
:label=
"$t('block.tableControlsName')"
class-name=
"small-padding fixed-width"
>
<template
#
default=
"
{ row }">
<el-button
<el-button
link
type=
"info"
@
click=
"handleEdit(row)"
>
{{
$t
(
'course.controlsEditName'
)
}}
</el-button>
<el-button
<el-button
link
type=
"info"
@
click=
"handleDel(row)"
...
...
@@ -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
)
...
...
@@ -199,7 +201,7 @@ function handleDel(row) {
getList
();
proxy
.
$modal
.
msgSuccess
(
res
.
msg
);
}).
finally
(()
=>
{
});
}
...
...
@@ -222,4 +224,4 @@ function closeDialog() {
form
:
{}
}
}
</
script
>
\ No newline at end of file
</
script
>
...
...
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
...
...
@@ -6,7 +6,7 @@
<!-- 列表操作 -->
<el-row
:gutter=
"10"
class=
"mb8"
justify=
"end"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"primary"
plain
icon=
"Plus"
...
...
@@ -17,7 +17,7 @@
</el-header>
<el-main
id=
"max-height"
>
<!-- 列表内容 -->
<el-table
<el-table
v-loading=
"status.loading"
:data=
"list"
:max-height=
"windowSize.height - 70"
...
...
@@ -38,12 +38,12 @@
</el-table-column>
<el-table-column
:label=
"$t('kit.tableControlsName')"
class-name=
"small-padding fixed-width"
>
<
template
#
default=
"{ row }"
>
<el-button
<el-button
link
type=
"text"
@
click=
"handleDel(row)"
>
{{
$t
(
'kit.controlsDelName'
)
}}
</el-button>
<el-button
<el-button
link
type=
"text"
@
click=
"handleEdit(row)"
...
...
@@ -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
)
...
...
@@ -179,7 +180,7 @@ function handleDel(row) {
getList
();
proxy
.
$modal
.
msgSuccess
(
res
.
msg
);
}).
finally
(()
=>
{
});
}
...
...
@@ -202,4 +203,4 @@ function closeDialog() {
form
:
{}
}
}
</
script
>
\ No newline at end of file
</
script
>
...
...
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