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
b1ecb021
authored
2025-05-05 23:16:05 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
3176fdd4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
7 deletions
src/views/legao/course/index.vue
src/views/legao/course/index.vue
View file @
b1ecb02
...
...
@@ -86,22 +86,52 @@
<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=
"请选择上传方式"
size=
"small"
style=
"width: 240px;margin-left: 16px;"
>
<el-option
v-for=
"item in dimensional_type"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</div>
<div
style=
"display: flex;align-items: center;"
>
<el-checkbox
label=
"3D"
value=
"3D"
/>
<el-select
v-model=
"showForm.form.threeDimensionalType"
placeholder=
"请选择上传方式"
size=
"small"
style=
"width: 240px;margin-left: 16px;"
>
<el-option
v-for=
"item in dimensional_type"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</div>
</el-checkbox-group>
</el-form-item>
<el-form-item
v-if=
"determineStatus('2D')"
:label=
"$t('course.dialogTwoD')"
label-width=
"80"
>
<
template
>
<
template
v-if=
"showForm.form.twoDimensionalType == 0"
>
<imageUpload
v-model=
"showForm.form.twoDimensionalOssId"
:limit=
'10'
:fileType=
'["png", "jpg", "jpeg", "ico"]'
/>
<fileUpload
v-model=
"showForm.form.twoDimensionalUrl"
:fileType=
'["ldr"]'
/>
<fileUpload
v-model=
"showForm.form.twoDimensionalType"
:fileType=
'["json"]'
/>
</
template
>
<
template
v-else
>
<el-input
v-model=
"showForm.form.twoDimensionalUrl"
placeholder=
"请输入链接URL"
/>
</
template
>
</el-form-item>
<el-form-item
v-if=
"determineStatus('3D')"
:label=
"$t('course.dialogThreeD')"
label-width=
"80"
>
<
template
>
<
template
v-if=
"showForm.form.threeDimensionalType == 0"
>
<imageUpload
v-model=
"showForm.form.threeDimensionalOssId"
:limit=
'10'
:fileType=
'["png", "jpg", "jpeg", "ico"]'
/>
<fileUpload
v-model=
"showForm.form.threeDimensionalUrl"
:fileType=
'["ldr"]'
/>
<fileUpload
v-model=
"showForm.form.threeDimensionalType"
:fileType=
'["json"]'
/>
</
template
>
<
template
v-else
>
<el-input
v-model=
"showForm.form.threeDimensionalUrl"
placeholder=
"请输入链接URL"
/>
</
template
>
</el-form-item>
<el-form-item
:label=
"$t('course.dialogCase')"
prop=
"caseOssId"
label-width=
"80"
>
...
...
@@ -186,7 +216,7 @@ function determineStatus(val) {
const
findIndex
=
(
showForm
.
value
?.
form
?.
type
||
[]).
findIndex
(
i
=>
i
==
val
)
console
.
log
(
findIndex
);
return
true
;
return
findIndex
>
-
1
}
...
...
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