Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
2f783113
提交
2f783113
authored
8月 17, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
9ae70d4f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
29 行增加
和
22 行删除
+29
-22
StepTwo.vue
src/modules/course/create/views/StepTwo.vue
+0
-1
Operation.vue
src/modules/course/my/components/Operation.vue
+29
-21
没有找到文件。
src/modules/course/create/views/StepTwo.vue
浏览文件 @
2f783113
...
@@ -271,7 +271,6 @@ const handleNodeCollapse = () => {
...
@@ -271,7 +271,6 @@ const handleNodeCollapse = () => {
}
}
// 设置开放规则
// 设置开放规则
const
handleOpenRules
=
(
node
:
any
,
data
:
any
)
=>
{
const
handleOpenRules
=
(
node
:
any
,
data
:
any
)
=>
{
console
.
log
(
node
,
'000000000000'
)
if
(
node
.
level
===
1
)
{
if
(
node
.
level
===
1
)
{
chapterName
.
value
=
node
.
label
chapterName
.
value
=
node
.
label
sectionName
.
value
=
'无'
sectionName
.
value
=
'无'
...
...
src/modules/course/my/components/Operation.vue
浏览文件 @
2f783113
...
@@ -13,6 +13,14 @@ const emit = defineEmits<{
...
@@ -13,6 +13,14 @@ const emit = defineEmits<{
// 详情id
// 详情id
const
id
=
route
.
query
.
id
as
string
const
id
=
route
.
query
.
id
as
string
// 数据回显
watch
(
()
=>
props
.
data
,
value
=>
{
authorizeCheck
.
value
=
value
.
auth_departments
.
reduce
((
a
:
any
,
b
:
any
)
=>
a
.
push
(
b
.
department_id
)
&&
a
,
[])
}
)
// 设置部门共享
// 设置部门共享
const
handleDepartment
=
()
=>
{
const
handleDepartment
=
()
=>
{
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
...
@@ -151,27 +159,6 @@ const courseAuthorizeConfirm = () => {
...
@@ -151,27 +159,6 @@ const courseAuthorizeConfirm = () => {
}
}
})
})
}
}
// 数据回显
watch
(
()
=>
props
.
data
,
value
=>
{
authorizeCheck
.
value
=
value
.
auth_departments
.
reduce
((
a
:
any
,
b
:
any
)
=>
a
.
push
(
b
.
department_id
)
&&
a
,
[])
departmentList
.
value
.
map
((
i
:
any
)
=>
{
value
.
auth_departments
.
map
((
item
:
any
)
=>
{
if
(
item
.
organ_id
===
i
.
id
)
{
i
.
auth_type
=
item
.
auth_type
if
(
item
.
auth_semester_id
===
'0'
)
{
i
.
auth_semester_id
=
''
}
else
{
i
.
auth_semester_id
=
item
.
auth_semester_id
}
i
.
auth_start_time
=
item
.
auth_start_time
i
.
auth_end_time
=
item
.
auth_start_time
}
})
})
}
)
const
changeDepartment
=
()
=>
{
const
changeDepartment
=
()
=>
{
departmentList
.
value
.
map
((
i
:
any
)
=>
{
departmentList
.
value
.
map
((
i
:
any
)
=>
{
...
@@ -195,6 +182,27 @@ const copyCourse = () => {
...
@@ -195,6 +182,27 @@ const copyCourse = () => {
}
}
})
})
}
}
watch
(
()
=>
dialogVisibleAuthorize
.
value
,
value
=>
{
if
(
value
===
true
)
{
departmentList
.
value
.
map
((
i
:
any
)
=>
{
props
.
data
.
auth_departments
.
map
((
item
:
any
)
=>
{
if
(
item
.
organ_id
===
i
.
id
)
{
i
.
auth_type
=
item
.
auth_type
if
(
item
.
auth_semester_id
===
'0'
)
{
i
.
auth_semester_id
=
''
}
else
{
i
.
auth_semester_id
=
item
.
auth_semester_id
}
i
.
auth_start_time
=
item
.
auth_start_time
i
.
auth_end_time
=
item
.
auth_start_time
}
})
})
}
}
)
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"tool-btn-box"
v-if=
"route.query.id"
style=
"margin-bottom: 20px"
>
<div
class=
"tool-btn-box"
v-if=
"route.query.id"
style=
"margin-bottom: 20px"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论