Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-admin-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-admin-new
Commits
1f41cc81
提交
1f41cc81
authored
11月 18, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 优化样式
上级
40f043fc
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
24 行增加
和
11 行删除
+24
-11
Aside.vue
src/components/layout/Aside.vue
+2
-2
BaseInfo.vue
src/modules/case/components/BaseInfo.vue
+16
-4
ProductAnalysis.vue
src/modules/case/components/ProductAnalysis.vue
+1
-1
QuesAnswer.vue
src/modules/case/components/QuesAnswer.vue
+3
-3
List.vue
src/modules/case/views/List.vue
+1
-0
List.vue
src/modules/category/views/List.vue
+1
-1
没有找到文件。
src/components/layout/Aside.vue
浏览文件 @
1f41cc81
...
@@ -24,8 +24,8 @@ export default {
...
@@ -24,8 +24,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
menuList
:
[
menuList
:
[
{
name
:
'
案例管理'
,
path
:
'/case'
,
icon
:
'el-icon-files
'
},
{
name
:
'
类型管理'
,
path
:
'/category'
,
icon
:
'el-icon-coin
'
},
{
name
:
'
类型管理'
,
path
:
'/category'
,
icon
:
'el-icon-coin
'
}
{
name
:
'
案例管理'
,
path
:
'/case'
,
icon
:
'el-icon-files
'
}
]
]
}
}
},
},
...
...
src/modules/case/components/BaseInfo.vue
浏览文件 @
1f41cc81
...
@@ -12,6 +12,10 @@
...
@@ -12,6 +12,10 @@
<el-descriptions-item>
<el-descriptions-item>
<
template
slot=
"label"
>
创建时间
</
template
>
{{ form.created_at }}
<
template
slot=
"label"
>
创建时间
</
template
>
{{ form.created_at }}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item>
<
template
slot=
"label"
>
案例文档
</
template
>
<p
class=
"pdf-item"
v-for=
"item in form.pdf_uris"
:key=
"item"
>
{{item}}
<el-button
type=
"primary"
size=
"mini"
plain
style=
"margin-left:20px;"
@
click=
"handlePreview(item)"
>
预览
</el-button></p>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</template>
</template>
<
script
>
<
script
>
...
@@ -25,10 +29,11 @@ export default {
...
@@ -25,10 +29,11 @@ export default {
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
id
:
'11111111111111'
,
id
:
''
,
name
:
'22222'
,
name
:
''
,
tag
:
'3111111111111111111'
,
tag
:
''
,
created_at
:
'2021-11-16 09:30:00'
created_at
:
''
,
pdf_uris
:
[]
}
}
}
}
},
},
...
@@ -40,6 +45,9 @@ export default {
...
@@ -40,6 +45,9 @@ export default {
this
.
getBaseInfo
()
this
.
getBaseInfo
()
},
},
methods
:
{
methods
:
{
handlePreview
(
url
)
{
window
.
open
(
url
)
},
getBaseInfo
()
{
getBaseInfo
()
{
getCaseDetails
(
this
.
id
).
then
(
res
=>
{
getCaseDetails
(
this
.
id
).
then
(
res
=>
{
this
.
form
=
res
.
data
this
.
form
=
res
.
data
...
@@ -57,4 +65,7 @@ export default {
...
@@ -57,4 +65,7 @@ export default {
line-height
:
48px
;
line-height
:
48px
;
color
:
#494949
;
color
:
#494949
;
}
}
.pdf-item
{
line-height
:
26px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/modules/case/components/ProductAnalysis.vue
浏览文件 @
1f41cc81
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-table-column
label=
"序号"
type=
"index"
width=
"50"
/>
<el-table-column
label=
"序号"
type=
"index"
width=
"50"
/>
<el-table-column
label=
"名称"
prop=
"subject"
min-width=
"120"
/>
<el-table-column
label=
"名称"
prop=
"subject"
min-width=
"120"
/>
<el-table-column
label=
"标识"
prop=
"tag"
min-width=
"110"
/>
<el-table-column
label=
"标识"
prop=
"tag"
min-width=
"110"
/>
<
el-table-column
label=
"分数"
prop=
"score"
min-width=
"110"
/
>
<
!--
<el-table-column
label=
"分数"
prop=
"score"
min-width=
"110"
/>
--
>
<el-table-column
label=
"操作"
min-width=
"100"
>
<el-table-column
label=
"操作"
min-width=
"100"
>
<template
slot-scope=
"subScope"
>
<template
slot-scope=
"subScope"
>
<el-button
type=
"text"
@
click=
"handleEditQues(scope.row, subScope.row)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleEditQues(scope.row, subScope.row)"
>
编辑
</el-button>
...
...
src/modules/case/components/QuesAnswer.vue
浏览文件 @
1f41cc81
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
<el-button
type=
"danger"
plain
@
click=
"handleDelete(row)"
>
删除
</el-button>
<el-button
type=
"danger"
plain
@
click=
"handleDelete(row)"
>
删除
</el-button>
</
template
>
</
template
>
</app-list>
</app-list>
<el-dialog
:title=
"isCreate ? '创建答案':'编辑答案'"
:visible
.
sync=
"dialogVisible"
width=
"
4
60px"
append-to-body
:destroy-on-close=
"true"
>
<el-dialog
:title=
"isCreate ? '创建答案':'编辑答案'"
:visible
.
sync=
"dialogVisible"
width=
"
6
60px"
append-to-body
:destroy-on-close=
"true"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
>
<el-form-item
label=
"答案"
prop=
"answer"
>
<el-form-item
label=
"答案"
prop=
"answer"
>
<el-input
v-model=
"form.answer"
size=
"small"
placeholder=
"请输入答案"
/>
<el-input
v-model=
"form.answer"
size=
"small"
placeholder=
"请输入答案"
type=
"textarea"
:rows=
"3"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"唯一标识"
prop=
"tag"
>
<el-form-item
label=
"唯一标识"
prop=
"tag"
>
<el-input
v-model=
"form.tag"
size=
"small"
placeholder=
"请输入唯一标识"
:disabled=
"!isCreate"
/>
<el-input
v-model=
"form.tag"
size=
"small"
placeholder=
"请输入唯一标识"
:disabled=
"!isCreate"
/>
...
@@ -37,7 +37,7 @@ const defaultForm = {
...
@@ -37,7 +37,7 @@ const defaultForm = {
answer
:
''
,
answer
:
''
,
tag
:
''
,
tag
:
''
,
score
:
0
,
score
:
0
,
matching_degree
:
0
matching_degree
:
10
0
}
}
export
default
{
export
default
{
props
:
{
props
:
{
...
...
src/modules/case/views/List.vue
浏览文件 @
1f41cc81
...
@@ -49,6 +49,7 @@ export default {
...
@@ -49,6 +49,7 @@ export default {
{
label
:
'ID'
,
prop
:
'id'
},
{
label
:
'ID'
,
prop
:
'id'
},
{
label
:
'名称'
,
prop
:
'name'
},
{
label
:
'名称'
,
prop
:
'name'
},
{
label
:
'唯一标识'
,
prop
:
'tag'
},
{
label
:
'唯一标识'
,
prop
:
'tag'
},
{
label
:
'分类'
,
prop
:
'category.name'
},
{
label
:
'创建时间'
,
prop
:
'created_at'
},
{
label
:
'创建时间'
,
prop
:
'created_at'
},
{
label
:
'操作'
,
slots
:
'table-x'
,
align
:
'right'
,
width
:
220
}
{
label
:
'操作'
,
slots
:
'table-x'
,
align
:
'right'
,
width
:
220
}
]
]
...
...
src/modules/category/views/List.vue
浏览文件 @
1f41cc81
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<el-button
type=
"primary"
@
click=
"handleCreate"
>
新增
</el-button>
<el-button
type=
"primary"
@
click=
"handleCreate"
>
新增
</el-button>
</
template
>
</
template
>
<
template
v-slot:table-x=
"{ row }"
>
<
template
v-slot:table-x=
"{ row }"
>
<
el-button
plain
>
查看
</el-button
>
<
!--
<el-button
plain
>
查看
</el-button>
--
>
<el-button
type=
"primary"
plain
@
click=
"handleEdit(row)"
>
编辑
</el-button>
<el-button
type=
"primary"
plain
@
click=
"handleEdit(row)"
>
编辑
</el-button>
<el-button
type=
"danger"
plain
@
click=
"handleRemove(row)"
>
删除
</el-button>
<el-button
type=
"danger"
plain
@
click=
"handleRemove(row)"
>
删除
</el-button>
</
template
>
</
template
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论