Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
78b52194
提交
78b52194
authored
3月 27, 2023
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
808f9a9f
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
7 行删除
+10
-7
api.ts
src/modules/connect/api.ts
+1
-1
ListItem.vue
src/modules/connect/components/ListItem.vue
+8
-6
Index.vue
src/modules/connect/views/Index.vue
+1
-0
没有找到文件。
src/modules/connect/api.ts
浏览文件 @
78b52194
import
httpRequest
from
'@/utils/axios'
import
httpRequest
from
'@/utils/axios'
// 链接列表
// 链接列表
export
function
getConnectionList
(
params
:
{
created_operator
?:
string
;
type
?:
string
;
page
?:
number
;
page_size
?:
number
})
{
export
function
getConnectionList
(
params
:
{
created_operator
?:
string
;
type
?:
string
;
page
?:
number
;
'per-page'
?:
number
})
{
return
httpRequest
.
get
(
'/api/lab/v1/experiment/connection/list'
,
{
params
})
return
httpRequest
.
get
(
'/api/lab/v1/experiment/connection/list'
,
{
params
})
}
}
...
...
src/modules/connect/components/ListItem.vue
浏览文件 @
78b52194
...
@@ -4,7 +4,7 @@ import { ElMessageBox, ElMessage } from 'element-plus'
...
@@ -4,7 +4,7 @@ import { ElMessageBox, ElMessage } from 'element-plus'
import
Icon
from
'@/components/ConnectionIcon.vue'
import
Icon
from
'@/components/ConnectionIcon.vue'
import
{
deleteConnection
}
from
'../api'
import
{
deleteConnection
}
from
'../api'
const
props
=
defineProps
<
{
data
:
{
id
:
string
;
type_name
:
string
;
type
:
string
}
}
>
()
const
props
=
defineProps
<
{
data
:
{
id
:
string
;
type_name
:
string
;
type
:
string
;
config_attributes
:
any
}
}
>
()
const
router
=
useRouter
()
const
router
=
useRouter
()
...
@@ -32,18 +32,20 @@ const edit = function () {
...
@@ -32,18 +32,20 @@ const edit = function () {
<
template
>
<
template
>
<div
class=
"connect-item"
>
<div
class=
"connect-item"
>
<div
class=
"connect-item__edit"
>
<div
class=
"connect-item__edit"
>
<
img
@
click=
"edit"
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/pages/assa/dml_edit.png"
alt=
""
/
>
<
!--
<img
@
click=
"edit"
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/pages/assa/dml_edit.png"
alt=
""
/>
--
>
<
!--
<el-icon
@
click=
"edit"
><Edit
/></el-icon>
--
>
<
el-icon
size=
"20"
color=
"#333"
@
click=
"edit"
><Edit
/></el-icon
>
</div>
</div>
<div
class=
"connect-item__remove"
@
click=
"handleRemove"
>
<div
class=
"connect-item__remove"
@
click=
"handleRemove"
>
<
img
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/pages/assa/dml_delete.png"
alt=
""
/
>
<
!--
<img
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/pages/assa/dml_delete.png"
alt=
""
/>
--
>
<
!--
<el-icon><Delete
/></el-icon>
--
>
<
el-icon
size=
"20"
color=
"#333"
><Delete
/></el-icon
>
</div>
</div>
<div
@
click=
"routerView"
style=
"display: flex; width: 100%; flex-direction: column; align-items: center"
>
<div
@
click=
"routerView"
style=
"display: flex; width: 100%; flex-direction: column; align-items: center"
>
<div
class=
"connect-item__icon"
>
<div
class=
"connect-item__icon"
>
<Icon
w=
"40"
h=
"40"
:multicolour=
"true"
class=
"svg"
:name=
"data?.type"
></Icon>
<Icon
w=
"40"
h=
"40"
:multicolour=
"true"
class=
"svg"
:name=
"data?.type"
></Icon>
</div>
</div>
<p
style=
"font-size: 18px; margin-top: 8px"
>
{{
data
?.
type_name
}}
</p>
<p
style=
"font-size: 18px; margin-top: 8px"
>
{{
data
?.
type
===
'12'
?
data
?.
config_attributes
[
0
].
value
:
data
?.
type_name
}}
</p>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
src/modules/connect/views/Index.vue
浏览文件 @
78b52194
...
@@ -18,6 +18,7 @@ const listOptions = computed(() => {
...
@@ -18,6 +18,7 @@ const listOptions = computed(() => {
httpRequest
:
getConnectionList
,
httpRequest
:
getConnectionList
,
params
:
{
created_operator
:
''
,
type
:
''
}
params
:
{
created_operator
:
''
,
type
:
''
}
},
},
limit
:
20
,
filters
:
[
filters
:
[
{
type
:
'input'
,
prop
:
'created_operator'
,
placeholder
:
'请输入创建人姓名'
},
{
type
:
'input'
,
prop
:
'created_operator'
,
placeholder
:
'请输入创建人姓名'
},
{
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论