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
994cf4c1
authored
2024-11-05 14:05:09 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增课程的ppt和教案属性
1 parent
7c6d0a15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
src/lang/package/zh-cn.js
src/views/legao/course/index.vue
src/lang/package/zh-cn.js
View file @
994cf4c
...
...
@@ -94,6 +94,8 @@ export default {
dialogTwoD
:
'2D'
,
dialogThreeD
:
'3D'
,
dialogCase
:
'案例'
,
dialogTeaching
:
'教案'
,
dialogPpt
:
'PPT'
,
dialogPhoto
:
'课程图片'
,
dialogConfim
:
'确认'
,
dialogExit
:
'退出'
,
...
...
src/views/legao/course/index.vue
View file @
994cf4c
...
...
@@ -20,7 +20,7 @@
</el-form>
<!-- 列表操作 -->
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"primary"
plain
icon=
"Plus"
...
...
@@ -31,7 +31,7 @@
</el-header>
<el-main
id=
"max-height"
>
<!-- 列表内容 -->
<el-table
<el-table
v-loading=
"status.loading"
:data=
"list"
:max-height=
"windowSize.height - 70"
...
...
@@ -46,12 +46,12 @@
<el-table-column
:label=
"$t('course.caseName')"
prop=
"caseName"
/>
<el-table-column
:label=
"$t('course.tableControlsName')"
class-name=
"small-padding fixed-width"
>
<template
#
default=
"
{ row }">
<el-button
<el-button
link
type=
"text"
@
click=
"handleDel(row)"
>
{{
$t
(
'course.controlsDelName'
)
}}
</el-button>
<el-button
<el-button
link
type=
"text"
@
click=
"handleEdit(row)"
...
...
@@ -137,6 +137,12 @@
<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"
>
<fileUpload
v-model=
"showForm.form.teachingOssId"
:limit=
"1"
:fileType=
'["pdf"]'
/>
</el-form-item>
<el-form-item
:label=
"$t('course.dialogPpt')"
label-width=
"80"
>
<fileUpload
v-model=
"showForm.form.pptOssId"
:limit=
"1"
:fileType=
'["ppt", "pptx"]'
/>
</el-form-item>
<el-form-item
:label=
"$t('course.dialogPhoto')"
label-width=
"80"
>
<imageUpload
v-model=
"showForm.form.ossId"
:limit=
'1'
:fileType=
'["png", "jpg", "jpeg", "ico"]'
/>
</el-form-item>
...
...
@@ -203,7 +209,7 @@ btn_search()
function
determineStatus
(
val
)
{
// console.log((showForm.value?.form?.type || []).findIndex(i => i == val));
const
findIndex
=
(
showForm
.
value
?.
form
?.
type
||
[]).
findIndex
(
i
=>
i
==
val
)
console
.
log
(
findIndex
);
return
findIndex
>
-
1
...
...
@@ -267,7 +273,7 @@ function handleDel(row) {
getList
();
proxy
.
$modal
.
msgSuccess
(
res
.
msg
);
}).
finally
(()
=>
{
});
}
...
...
@@ -291,4 +297,4 @@ function closeDialog() {
form
:
{}
}
}
</
script
>
\ No newline at end of file
</
script
>
...
...
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