Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
39f73449
提交
39f73449
authored
7月 11, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除多余console.log
上级
19d93265
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
13 行增加
和
31 行删除
+13
-31
CardListItem.vue
src/components/base/CardListItem.vue
+1
-1
List.vue
src/modules/admin/audit/views/List.vue
+0
-1
AddDialog.vue
src/modules/admin/category/components/AddDialog.vue
+0
-4
Add.vue
src/modules/admin/teacher/views/Add.vue
+0
-1
Detail.vue
src/modules/admin/teacher/views/Detail.vue
+0
-4
List.vue
src/modules/admin/teacher/views/List.vue
+0
-1
AddExam.vue
...es/course/create/components/stepOneComponents/AddExam.vue
+0
-2
AddExamDialog.vue
...rse/create/components/stepTwoComponents/AddExamDialog.vue
+9
-4
AddVideoDialog.vue
...se/create/components/stepTwoComponents/AddVideoDialog.vue
+0
-2
StepTwo.vue
src/modules/course/create/views/StepTwo.vue
+1
-4
Update.vue
src/modules/resource/courseware/views/Update.vue
+2
-1
Update.vue
src/modules/resource/video/views/Update.vue
+0
-2
AddDialog.vue
src/modules/system/dictionary/components/AddDialog.vue
+0
-1
List.vue
src/modules/system/dictionary/views/List.vue
+0
-1
rowList.vue
src/modules/system/dictionary/views/rowList.vue
+0
-2
没有找到文件。
src/components/base/CardListItem.vue
浏览文件 @
39f73449
...
@@ -8,7 +8,7 @@ const props: any = defineProps<{
...
@@ -8,7 +8,7 @@ const props: any = defineProps<{
tabIndex
:
string
tabIndex
:
string
}
>
()
}
>
()
const
fileType
=
[
'doc'
,
'docx'
,
'xls'
,
'xlsx'
,
'pdf'
,
'ppt'
,
'pptx'
,
'mp3'
,
'mp4'
,
'png'
,
'jpeg'
,
'jpg'
]
const
fileType
=
[
'doc'
,
'docx'
,
'xls'
,
'xlsx'
,
'pdf'
,
'ppt'
,
'pptx'
,
'mp3'
,
'mp4'
,
'png'
,
'jpeg'
,
'jpg'
,
'rar'
]
const
bytesToSize
=
(
bytes
:
number
)
=>
{
const
bytesToSize
=
(
bytes
:
number
)
=>
{
if
(
bytes
===
0
)
return
'0 B'
if
(
bytes
===
0
)
return
'0 B'
...
...
src/modules/admin/audit/views/List.vue
浏览文件 @
39f73449
...
@@ -15,7 +15,6 @@ const options = [
...
@@ -15,7 +15,6 @@ const options = [
]
]
const
handleSave
=
()
=>
{
const
handleSave
=
()
=>
{
console
.
log
(
form
)
console
.
log
(
form
)
console
.
log
(
'000'
)
}
}
</
script
>
</
script
>
<
template
>
<
template
>
...
...
src/modules/admin/category/components/AddDialog.vue
浏览文件 @
39f73449
...
@@ -64,7 +64,6 @@ const handleOpenTree = () => {
...
@@ -64,7 +64,6 @@ const handleOpenTree = () => {
}
}
// 获取子组件确定之后节点回显
// 获取子组件确定之后节点回显
const
getCheckedLabel
=
(
val
:
any
)
=>
{
const
getCheckedLabel
=
(
val
:
any
)
=>
{
console
.
log
(
val
,
'99991111'
)
categoryName
.
value
=
val
.
checkedCategory
.
checkedLabel
categoryName
.
value
=
val
.
checkedCategory
.
checkedLabel
categoryForm
.
parent_id
=
val
.
checkedCategory
.
checkedId
categoryForm
.
parent_id
=
val
.
checkedCategory
.
checkedId
categoryForm
.
depth
=
parseInt
(
val
.
checkedCategory
.
checkedLevel
)
+
1
categoryForm
.
depth
=
parseInt
(
val
.
checkedCategory
.
checkedLevel
)
+
1
...
@@ -72,13 +71,11 @@ const getCheckedLabel = (val: any) => {
...
@@ -72,13 +71,11 @@ const getCheckedLabel = (val: any) => {
// 关闭弹框
// 关闭弹框
const
handleCancel
=
()
=>
{
const
handleCancel
=
()
=>
{
emit
(
'update:dialogVisible'
,
false
)
emit
(
'update:dialogVisible'
,
false
)
console
.
log
(
formRef
.
value
,
'formRef.value'
)
categoryName
.
value
=
''
categoryName
.
value
=
''
formRef
.
value
.
resetFields
()
formRef
.
value
.
resetFields
()
}
}
// 确认提交表单
// 确认提交表单
const
handleConfirm
=
()
=>
{
const
handleConfirm
=
()
=>
{
console
.
log
(
props
.
isEdit
,
'00000'
,
categoryForm
)
if
(
props
.
isEdit
)
{
if
(
props
.
isEdit
)
{
const
params
=
Object
.
assign
({
id
:
props
.
editData
.
id
},
categoryForm
)
const
params
=
Object
.
assign
({
id
:
props
.
editData
.
id
},
categoryForm
)
updateCategory
(
params
).
then
(()
=>
{
updateCategory
(
params
).
then
(()
=>
{
...
@@ -104,7 +101,6 @@ const handleConfirm = () => {
...
@@ -104,7 +101,6 @@ const handleConfirm = () => {
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
console
.
log
(
props
.
editData
.
id
,
'0000'
)
categoryForm
.
depth
=
parseInt
(
props
.
editData
?.
depth
)
+
1
||
0
categoryForm
.
depth
=
parseInt
(
props
.
editData
?.
depth
)
+
1
||
0
categoryForm
.
parent_id
=
props
.
editData
?.
id
categoryForm
.
parent_id
=
props
.
editData
?.
id
categoryName
.
value
=
props
.
editData
.
category_name
categoryName
.
value
=
props
.
editData
.
category_name
...
...
src/modules/admin/teacher/views/Add.vue
浏览文件 @
39f73449
...
@@ -42,7 +42,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
...
@@ -42,7 +42,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
if
(
!
formEl
)
return
if
(
!
formEl
)
return
await
formEl
.
validate
(
valid
=>
{
await
formEl
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
store
.
getMapValuesByKey
(
'teacher_level'
),
ruleForm
.
education
,
'add'
)
if
(
ruleForm
.
education
!==
''
)
{
if
(
ruleForm
.
education
!==
''
)
{
ruleForm
.
education
=
store
ruleForm
.
education
=
store
.
getMapValuesByKey
(
'teacher_level'
)
.
getMapValuesByKey
(
'teacher_level'
)
...
...
src/modules/admin/teacher/views/Detail.vue
浏览文件 @
39f73449
...
@@ -71,11 +71,9 @@ const getTeacherInfo = () => {
...
@@ -71,11 +71,9 @@ const getTeacherInfo = () => {
}
}
// 更新讲师
// 更新讲师
const
handleUpdate
=
async
(
formEl
:
FormInstance
|
undefined
)
=>
{
const
handleUpdate
=
async
(
formEl
:
FormInstance
|
undefined
)
=>
{
console
.
log
(
'0000'
)
if
(
!
formEl
)
return
if
(
!
formEl
)
return
await
formEl
.
validate
(
valid
=>
{
await
formEl
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
store
.
getMapValuesByKey
(
'teacher_level'
),
ruleForm
.
education
,
ruleForm
.
education
,
'edit'
)
if
(
ruleForm
.
education
!==
''
)
{
if
(
ruleForm
.
education
!==
''
)
{
ruleForm
.
education
=
store
ruleForm
.
education
=
store
.
getMapValuesByKey
(
'teacher_level'
)
.
getMapValuesByKey
(
'teacher_level'
)
...
@@ -87,9 +85,7 @@ const handleUpdate = async (formEl: FormInstance | undefined) => {
...
@@ -87,9 +85,7 @@ const handleUpdate = async (formEl: FormInstance | undefined) => {
ruleForm
.
avatar
=
imgDefault
ruleForm
.
avatar
=
imgDefault
}
}
const
params
=
Object
.
assign
({},
ruleForm
)
const
params
=
Object
.
assign
({},
ruleForm
)
console
.
log
(
params
,
'params.education'
)
console
.
log
(
params
,
'params'
)
updateTeacher
(
params
).
then
(()
=>
{
updateTeacher
(
params
).
then
(()
=>
{
ElMessage
.
success
(
'更新讲师成功'
)
ElMessage
.
success
(
'更新讲师成功'
)
router
.
push
(
'/admin/teacher'
)
router
.
push
(
'/admin/teacher'
)
...
...
src/modules/admin/teacher/views/List.vue
浏览文件 @
39f73449
...
@@ -65,7 +65,6 @@ const handleUpdate = (row: any) => {
...
@@ -65,7 +65,6 @@ const handleUpdate = (row: any) => {
}
}
//讲师详情
//讲师详情
const
handleDetail
=
(
row
:
any
)
=>
{
const
handleDetail
=
(
row
:
any
)
=>
{
console
.
log
(
row
.
id
)
router
.
push
({
router
.
push
({
path
:
'/admin/teacher/detail'
,
path
:
'/admin/teacher/detail'
,
query
:
{
query
:
{
...
...
src/modules/course/create/components/stepOneComponents/AddExam.vue
浏览文件 @
39f73449
...
@@ -13,7 +13,6 @@ const props = defineProps({
...
@@ -13,7 +13,6 @@ const props = defineProps({
}
}
})
})
const
examList
:
any
=
ref
([])
const
examList
:
any
=
ref
([])
console
.
log
(
props
.
data
.
length
,
'length'
)
watch
(
watch
(
()
=>
props
.
data
,
()
=>
props
.
data
,
value
=>
{
value
=>
{
...
@@ -68,7 +67,6 @@ const removeLectuter = (id: string) => {
...
@@ -68,7 +67,6 @@ const removeLectuter = (id: string) => {
emit
(
'change'
,
examList
.
value
)
emit
(
'change'
,
examList
.
value
)
}
}
const
handleAddExam
=
(
val
:
any
)
=>
{
const
handleAddExam
=
(
val
:
any
)
=>
{
console
.
log
(
props
.
data
,
'pppp'
)
let
flag
=
false
let
flag
=
false
examList
.
value
.
forEach
((
item
:
any
)
=>
{
examList
.
value
.
forEach
((
item
:
any
)
=>
{
val
.
value
.
forEach
((
it
:
any
)
=>
{
val
.
value
.
forEach
((
it
:
any
)
=>
{
...
...
src/modules/course/create/components/stepTwoComponents/AddExamDialog.vue
浏览文件 @
39f73449
...
@@ -8,6 +8,11 @@ const selectionRow: any = ref([])
...
@@ -8,6 +8,11 @@ const selectionRow: any = ref([])
const
tableData
=
ref
([])
const
tableData
=
ref
([])
const
emit
=
defineEmits
<
Emits
>
()
const
emit
=
defineEmits
<
Emits
>
()
const
props
=
defineProps
({
const
props
=
defineProps
({
// 是否多选
isMultiple
:
{
type
:
Boolean
,
required
:
true
},
isShowExamDialog
:
{
isShowExamDialog
:
{
type
:
Boolean
,
type
:
Boolean
,
required
:
true
required
:
true
...
@@ -90,20 +95,20 @@ const tabChange = () => {
...
@@ -90,20 +95,20 @@ const tabChange = () => {
const
handleCancel
=
()
=>
{
const
handleCancel
=
()
=>
{
emit
(
'update:isShowExamDialog'
,
false
)
emit
(
'update:isShowExamDialog'
,
false
)
}
}
// 单选
const
handleSelection
=
(
selection
:
any
)
=>
{
const
handleSelection
=
(
selection
:
any
)
=>
{
// table组件选中事件
// table组件选中事件
if
(
selection
.
length
>
1
)
{
if
(
selection
.
length
>
1
&&
props
.
isMultiple
===
false
)
{
let
del_row
=
selection
.
shift
()
let
del_row
=
selection
.
shift
()
appList
.
value
?.
tableRef
.
toggleRowSelection
(
del_row
,
false
)
appList
.
value
?.
tableRef
.
toggleRowSelection
(
del_row
,
false
)
console
.
log
(
selection
,
'selection'
)
selectionRow
.
value
=
selection
selectionRow
.
value
=
selection
}
else
{
}
else
if
(
props
.
isMultiple
===
true
||
(
selection
.
length
<=
1
&&
props
.
isMultiple
===
false
))
{
selectionRow
.
value
=
selection
selectionRow
.
value
=
selection
}
}
}
}
// 保存
// 保存
const
handleSave
=
()
=>
{
const
handleSave
=
()
=>
{
console
.
log
(
selectionRow
.
value
)
const
name
=
selectionRow
.
value
[
0
]?.
paper_title
const
name
=
selectionRow
.
value
[
0
]?.
paper_title
const
resource_id
=
selectionRow
.
value
[
0
]?.
id
const
resource_id
=
selectionRow
.
value
[
0
]?.
id
const
params
:
any
=
{
const
params
:
any
=
{
...
...
src/modules/course/create/components/stepTwoComponents/AddVideoDialog.vue
浏览文件 @
39f73449
...
@@ -52,7 +52,6 @@ const typeFilter = () => {
...
@@ -52,7 +52,6 @@ const typeFilter = () => {
}
}
const
listOptions
=
computed
(()
=>
{
const
listOptions
=
computed
(()
=>
{
console
.
log
(
props
.
btnInfo
.
resource_type
)
let
getHttpRequest
=
null
let
getHttpRequest
=
null
if
(
props
.
btnInfo
.
resource_type
===
'2'
)
{
if
(
props
.
btnInfo
.
resource_type
===
'2'
)
{
getHttpRequest
=
getVideoList
getHttpRequest
=
getVideoList
...
@@ -143,7 +142,6 @@ if (props.btnInfo.resource_type === '2') {
...
@@ -143,7 +142,6 @@ if (props.btnInfo.resource_type === '2') {
<
template
#
body=
"{ data }"
>
<
template
#
body=
"{ data }"
>
<div
class=
"card-list"
v-if=
"data.length"
>
<div
class=
"card-list"
v-if=
"data.length"
>
<div
class=
"card-list-con"
>
<div
class=
"card-list-con"
>
{{
currentResource
}}
<el-radio-group
v-model=
"currentResource"
>
<el-radio-group
v-model=
"currentResource"
>
<div
style=
"position: relative"
v-for=
"(item, index) in data"
:key=
"index"
>
<div
style=
"position: relative"
v-for=
"(item, index) in data"
:key=
"index"
>
<el-radio
<el-radio
...
...
src/modules/course/create/views/StepTwo.vue
浏览文件 @
39f73449
...
@@ -103,7 +103,6 @@ const handleEdit = (node: any) => {
...
@@ -103,7 +103,6 @@ const handleEdit = (node: any) => {
isShowDialog
.
value
=
true
isShowDialog
.
value
=
true
chapterName
.
value
=
node
.
label
chapterName
.
value
=
node
.
label
}
else
{
}
else
{
console
.
log
(
node
.
data
.
label
)
chapterName
.
value
=
node
.
data
.
parent_name
chapterName
.
value
=
node
.
data
.
parent_name
sectionName
.
value
=
node
.
label
sectionName
.
value
=
node
.
label
isShowSectionDialog
.
value
=
true
isShowSectionDialog
.
value
=
true
...
@@ -111,7 +110,6 @@ const handleEdit = (node: any) => {
...
@@ -111,7 +110,6 @@ const handleEdit = (node: any) => {
}
}
// 删除章节
// 删除章节
const
handleDel
=
(
node
:
any
)
=>
{
const
handleDel
=
(
node
:
any
)
=>
{
console
.
log
(
node
,
'node1222'
)
ElMessageBox
.
confirm
(
'确定要删除吗?'
,
'提示'
).
then
(()
=>
{
ElMessageBox
.
confirm
(
'确定要删除吗?'
,
'提示'
).
then
(()
=>
{
const
params
=
{
id
:
node
.
key
,
course_id
:
id
}
const
params
=
{
id
:
node
.
key
,
course_id
:
id
}
delCharacter
(
params
).
then
(()
=>
{
delCharacter
(
params
).
then
(()
=>
{
...
@@ -141,7 +139,6 @@ const handleAddDialog = (node: any, item: any) => {
...
@@ -141,7 +139,6 @@ const handleAddDialog = (node: any, item: any) => {
}
}
//查阅
//查阅
const
handleConsult
=
(
node
:
any
)
=>
{
const
handleConsult
=
(
node
:
any
)
=>
{
console
.
log
(
node
.
data
.
resource_type
,
'000'
)
// 视频
// 视频
if
(
node
.
data
.
resource_type
===
'2'
)
{
if
(
node
.
data
.
resource_type
===
'2'
)
{
getVideoDetails
({
id
:
node
.
data
.
resource_id
}).
then
(
res
=>
{
getVideoDetails
({
id
:
node
.
data
.
resource_id
}).
then
(
res
=>
{
...
@@ -152,7 +149,6 @@ const handleConsult = (node: any) => {
...
@@ -152,7 +149,6 @@ const handleConsult = (node: any) => {
}
}
// 下载
// 下载
const
handleDownload
=
(
node
:
any
)
=>
{
const
handleDownload
=
(
node
:
any
)
=>
{
console
.
log
(
node
.
data
.
resource
.
can_view
)
window
.
open
(
node
.
data
.
resource
.
url
)
window
.
open
(
node
.
data
.
resource
.
url
)
}
}
//拖拽
//拖拽
...
@@ -388,6 +384,7 @@ const handleNodeCollapse = () => {
...
@@ -388,6 +384,7 @@ const handleNodeCollapse = () => {
:chapterID=
"chapterID"
:chapterID=
"chapterID"
:course_id=
"id"
:course_id=
"id"
:btnInfo=
"btnInfo"
:btnInfo=
"btnInfo"
:isMultiple=
"false"
/>
/>
<!-- 视频查阅弹框 -->
<!-- 视频查阅弹框 -->
<VideoPlayDialog
<VideoPlayDialog
...
...
src/modules/resource/courseware/views/Update.vue
浏览文件 @
39f73449
...
@@ -54,6 +54,7 @@ let form: any = $ref({
...
@@ -54,6 +54,7 @@ let form: any = $ref({
watch
(
watch
(
()
=>
form
.
file
,
()
=>
form
.
file
,
value
=>
{
value
=>
{
console
.
log
(
form
.
file
)
const
name
=
value
[
0
]?.
name
const
name
=
value
[
0
]?.
name
form
.
name
=
name
.
slice
(
0
,
name
.
lastIndexOf
(
'.'
))
||
''
form
.
name
=
name
.
slice
(
0
,
name
.
lastIndexOf
(
'.'
))
||
''
}
}
...
@@ -143,7 +144,7 @@ const createResources = (params: any) => {
...
@@ -143,7 +144,7 @@ const createResources = (params: any) => {
// 协议
// 协议
const
protocol
=
ref
(
false
)
const
protocol
=
ref
(
false
)
const
changeProtocol
=
(
data
:
any
)
=>
{
const
changeProtocol
=
(
data
:
any
)
=>
{
protocol
.
value
=
data
.
value
protocol
.
value
=
data
.
value
}
}
</
script
>
</
script
>
...
...
src/modules/resource/video/views/Update.vue
浏览文件 @
39f73449
...
@@ -48,12 +48,10 @@ getCoverList().then(res => {
...
@@ -48,12 +48,10 @@ getCoverList().then(res => {
swiperCovers
.
splice
(
index
,
1
)
swiperCovers
.
splice
(
index
,
1
)
}
}
})
})
console
.
log
(
swiperCovers
,
'123'
)
})
})
// 获取swiper 自定义左右切换按钮
// 获取swiper 自定义左右切换按钮
let
swiper
=
ref
()
let
swiper
=
ref
()
const
swiperChange
=
(
type
?:
string
)
=>
{
const
swiperChange
=
(
type
?:
string
)
=>
{
console
.
log
(
swiperChange
,
'index'
)
type
===
'prev'
?
swiper
.
value
.
prev
()
:
swiper
.
value
.
next
()
type
===
'prev'
?
swiper
.
value
.
prev
()
:
swiper
.
value
.
next
()
}
}
const
swiperItemHandle
=
(
url
:
string
)
=>
{
const
swiperItemHandle
=
(
url
:
string
)
=>
{
...
...
src/modules/system/dictionary/components/AddDialog.vue
浏览文件 @
39f73449
...
@@ -70,7 +70,6 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
...
@@ -70,7 +70,6 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
console
.
log
(
props
.
rowInfo
,
'props.rowInfo'
)
if
(
props
.
isEdit
)
{
if
(
props
.
isEdit
)
{
form
.
name
=
props
.
rowInfo
.
name
form
.
name
=
props
.
rowInfo
.
name
form
.
key
=
props
.
rowInfo
.
key
form
.
key
=
props
.
rowInfo
.
key
...
...
src/modules/system/dictionary/views/List.vue
浏览文件 @
39f73449
...
@@ -80,7 +80,6 @@ const handleDelete = (row: any) => {
...
@@ -80,7 +80,6 @@ const handleDelete = (row: any) => {
}
}
// 跳转列表
// 跳转列表
const
handleList
=
(
row
:
any
)
=>
{
const
handleList
=
(
row
:
any
)
=>
{
console
.
log
(
'列表'
,
row
.
rowList
)
router
.
push
({
router
.
push
({
path
:
'/system/dictionary/rowList'
,
path
:
'/system/dictionary/rowList'
,
query
:
{
query
:
{
...
...
src/modules/system/dictionary/views/rowList.vue
浏览文件 @
39f73449
...
@@ -35,14 +35,12 @@ const handleAdd = () => {
...
@@ -35,14 +35,12 @@ const handleAdd = () => {
isEdit
.
value
=
false
isEdit
.
value
=
false
editData
.
value
=
{}
editData
.
value
=
{}
title
.
value
=
'新增数据'
title
.
value
=
'新增数据'
console
.
log
(
'新增字典'
)
}
}
const
handleEdit
=
(
row
:
any
)
=>
{
const
handleEdit
=
(
row
:
any
)
=>
{
isEdit
.
value
=
true
isEdit
.
value
=
true
editData
.
value
=
row
editData
.
value
=
row
isListAddDialog
.
value
=
true
isListAddDialog
.
value
=
true
title
.
value
=
'修改数据'
title
.
value
=
'修改数据'
console
.
log
(
'编辑字典'
,
row
)
}
}
const
handleDelete
=
(
row
:
any
)
=>
{
const
handleDelete
=
(
row
:
any
)
=>
{
ElMessageBox
.
confirm
(
'确定要删除吗?'
,
'提示'
).
then
(()
=>
{
ElMessageBox
.
confirm
(
'确定要删除吗?'
,
'提示'
).
then
(()
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论