Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
64c6fa21
提交
64c6fa21
authored
6月 08, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改上级分类显示问题
上级
6f31f0c1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
7 行删除
+8
-7
AddDialog.vue
src/modules/admin/category/component/AddDialog.vue
+3
-2
List.vue
src/modules/admin/category/views/List.vue
+2
-2
Detail.vue
src/modules/admin/teacher/views/Detail.vue
+3
-3
没有找到文件。
src/modules/admin/category/component/AddDialog.vue
浏览文件 @
64c6fa21
...
@@ -65,12 +65,13 @@ const getCheckedLabel = (val: any) => {
...
@@ -65,12 +65,13 @@ const getCheckedLabel = (val: any) => {
console
.
log
(
val
,
'99991111'
)
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
=
val
.
checkedCategory
.
checkedLevel
categoryForm
.
depth
=
parseInt
(
val
.
checkedCategory
.
checkedLevel
)
+
1
}
}
// 关闭弹框
// 关闭弹框
const
handleCancel
=
()
=>
{
const
handleCancel
=
()
=>
{
emit
(
'update:dialogVisible'
,
false
)
emit
(
'update:dialogVisible'
,
false
)
console
.
log
(
formRef
.
value
,
'formRef.value'
)
console
.
log
(
formRef
.
value
,
'formRef.value'
)
categoryName
.
value
=
''
formRef
.
value
.
resetFields
()
formRef
.
value
.
resetFields
()
}
}
// 确认提交表单
// 确认提交表单
...
@@ -86,7 +87,7 @@ const handleConfirm = () => {
...
@@ -86,7 +87,7 @@ const handleConfirm = () => {
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
c
ategoryName
.
value
=
props
.
editData
.
category_name
c
onsole
.
log
(
props
.
prevCategoryName
,
'props.prevCategoryName'
)
categoryForm
.
depth
=
parseInt
(
props
.
editData
.
depth
)
+
1
categoryForm
.
depth
=
parseInt
(
props
.
editData
.
depth
)
+
1
categoryForm
.
parent_id
=
props
.
editData
.
id
categoryForm
.
parent_id
=
props
.
editData
.
id
categoryName
.
value
=
props
.
prevCategoryName
categoryName
.
value
=
props
.
prevCategoryName
...
...
src/modules/admin/category/views/List.vue
浏览文件 @
64c6fa21
...
@@ -64,6 +64,7 @@ const handleAddCategory = () => {
...
@@ -64,6 +64,7 @@ const handleAddCategory = () => {
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
title
.
value
=
'新增类别'
title
.
value
=
'新增类别'
editData
.
value
=
tableData
[
0
]
editData
.
value
=
tableData
[
0
]
prevCategoryName
.
value
=
''
}
}
// 获取上级类别
// 获取上级类别
const
getParent
=
(
node
:
string
,
tree
:
any
)
=>
{
const
getParent
=
(
node
:
string
,
tree
:
any
)
=>
{
...
@@ -96,8 +97,7 @@ const getParent = (node: string, tree: any) => {
...
@@ -96,8 +97,7 @@ const getParent = (node: string, tree: any) => {
// console.log(data, 'data')
// console.log(data, 'data')
// if (newIndex === oldIndex) return
// if (newIndex === oldIndex) return
// // targetName.splice(newIndex, 0, targetName.splice(oldIndex, 1))
// targetName.splice(newIndex, 0, targetName.splice(oldIndex, 1))
// console.log(targetName, 'pppp')
// }
// }
// })
// })
// }
// }
...
...
src/modules/admin/teacher/views/Detail.vue
浏览文件 @
64c6fa21
...
@@ -100,14 +100,14 @@ onMounted(() => {
...
@@ -100,14 +100,14 @@ onMounted(() => {
<el-input
v-model=
"ruleForm.office"
:disabled=
"isEdit === '1'"
/>
<el-input
v-model=
"ruleForm.office"
:disabled=
"isEdit === '1'"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-form-item>
<el-button
type=
"primary"
v-if=
"isEdit !== '1'"
@
click=
"handleUpdate(ruleFormRef)"
>
保存
</el-button>
</el-form-item>
</el-row>
</el-row>
<el-form-item
label=
"讲师简介:"
prop=
"summarize"
>
<el-form-item
label=
"讲师简介:"
prop=
"summarize"
>
<v-editor
v-model=
"ruleForm.summarize"
style=
"width: 70%"
:disabled=
"isEdit === '1'"
></v-editor>
<v-editor
v-model=
"ruleForm.summarize"
style=
"width: 70%"
:disabled=
"isEdit === '1'"
></v-editor>
</el-form-item>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
v-if=
"isEdit !== '1'"
@
click=
"handleUpdate(ruleFormRef)"
>
保存
</el-button>
</el-form-item>
</el-form>
</el-form>
<el-card>
<el-card>
<div
class=
"form_title"
>
讲授课程:
</div>
<div
class=
"form_title"
>
讲授课程:
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论