Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
7afc9c57
提交
7afc9c57
authored
2月 21, 2023
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
287f44d7
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
84 行增加
和
62 行删除
+84
-62
ConnectionIcon.vue
src/components/ConnectionIcon.vue
+0
-0
AppList.vue
src/components/base/AppList.vue
+10
-6
UpdateMaterialDialog.vue
src/components/base/UpdateMaterialDialog.vue
+1
-1
Icon.vue
src/modules/connect/components/Icon.vue
+0
-0
ListItem.vue
src/modules/connect/components/ListItem.vue
+3
-3
StepOne.vue
src/modules/connect/components/StepOne.vue
+4
-8
View.vue
src/modules/connect/views/View.vue
+4
-3
ViewDialog.vue
src/modules/metadata/event/components/ViewDialog.vue
+25
-17
types.ts
src/modules/metadata/event/types.ts
+2
-0
ViewDialog.vue
src/modules/metadata/user/components/ViewDialog.vue
+28
-20
types.ts
src/modules/metadata/user/types.ts
+2
-0
Index.vue
src/modules/metadata/user/views/Index.vue
+2
-2
UpdateDialog.vue
src/modules/user/components/UpdateDialog.vue
+3
-2
没有找到文件。
src/components/ConnectionIcon.vue
浏览文件 @
7afc9c57
差异被折叠。
点击展开。
src/components/base/AppList.vue
浏览文件 @
7afc9c57
...
...
@@ -138,7 +138,8 @@ defineExpose({ refetch, tableRef })
clearable
@
change=
"search"
style=
"width: 200px"
v-if=
"item.type === 'input'"
/>
v-if=
"item.type === 'input'"
/>
<!-- select -->
<el-select
v-model=
"params[item.prop]"
...
...
@@ -146,12 +147,14 @@ defineExpose({ refetch, tableRef })
filterable
clearable
@
change=
"search"
v-if=
"item.type === 'select'"
>
v-if=
"item.type === 'select'"
>
<el-option
v-for=
"(option, index) in item.options"
:label=
"option[item.labelKey] || option.label || option"
:value=
"option[item.valueKey] || option.value || option"
:key=
"index"
/>
:key=
"index"
/>
</el-select>
</
template
>
</el-form-item>
...
...
@@ -170,12 +173,12 @@ defineExpose({ refetch, tableRef })
<div
class=
"table-list-bd"
>
<slot
name=
"body"
v-bind=
"{ data: dataList }"
>
<el-table
stripe
:header-cell-style=
"{ background: '#ededed' }"
:data=
"dataList"
v-loading=
"loading"
v-bind=
"$attrs"
ref=
"tableRef"
>
ref=
"tableRef"
>
<el-table-column
align=
"center"
v-bind=
"item || {}"
v-for=
"item in columns"
:key=
"item.prop"
>
<
template
#
default=
"scope"
v-if=
"item.slots || item.computed"
>
<slot
:name=
"item.slots"
v-bind=
"scope"
v-if=
"item.slots"
></slot>
...
...
@@ -201,7 +204,8 @@ defineExpose({ refetch, tableRef })
@
size-change=
"pageSizeChange"
@
current-change=
"fetchList()"
:hide-on-single-page=
"true"
v-if=
"hasPagination"
>
v-if=
"hasPagination"
>
</el-pagination>
</div>
</div>
...
...
src/components/base/UpdateMaterialDialog.vue
浏览文件 @
7afc9c57
...
...
@@ -22,7 +22,7 @@ const form = $ref(
props
.
data
||
{
name
:
''
,
content
:
''
,
status
:
''
status
:
'
1
'
}
)
...
...
src/modules/connect/components/Icon.vue
浏览文件 @
7afc9c57
差异被折叠。
点击展开。
src/modules/connect/components/ListItem.vue
浏览文件 @
7afc9c57
<
script
setup
lang=
"ts"
>
import
{
Delete
,
Edit
}
from
'@element-plus/icons-vue'
import
{
ElMessageBox
,
ElMessage
}
from
'element-plus'
import
Icon
from
'
../components/
Icon.vue'
import
Icon
from
'
@/components/Connection
Icon.vue'
import
{
deleteConnection
}
from
'../api'
const
props
=
defineProps
<
{
data
:
{
id
:
string
;
type_name
:
string
;
type
:
string
}
}
>
()
...
...
@@ -39,9 +39,9 @@ const edit = function () {
</div>
<div
@
click=
"routerView"
style=
"display: flex; width: 100%; flex-direction: column; align-items: center"
>
<div
class=
"connect-item__icon"
>
<Icon
class=
"svg"
:name=
"data?.type"
></Icon>
<Icon
w=
"40"
h=
"40"
:multicolour=
"true"
class=
"svg"
:name=
"data?.type"
></Icon>
</div>
<p>
{{
data
?.
type_name
}}
</p>
<p
style=
"font-size: 18px;margin-top: 8px;"
>
{{
data
?.
type_name
}}
</p>
</div>
</div>
</
template
>
...
...
src/modules/connect/components/StepOne.vue
浏览文件 @
7afc9c57
<
script
setup
lang=
"ts"
>
import
type
{
IconProp
}
from
'../types'
import
Icon
from
'
../components/
Icon.vue'
import
Icon
from
'
@/components/Connection
Icon.vue'
// icon
const
iconItems
=
$ref
<
IconProp
[]
>
([
...
...
@@ -37,7 +37,7 @@ defineExpose({ getData })
<div
class=
"connect-from_icon__box"
>
<div
v-for=
"item in iconItems"
:key=
"item.name"
:class=
"item.checkbox ? 'mr20-mt20 active' : 'mr20-mt20'"
>
<div
@
click=
"handleIcon(item)"
class=
"connect-form_icon"
>
<Icon
class=
"svg"
:name=
"item.name"
></Icon>
<Icon
:multicolour=
"item.checkbox"
class=
"svg"
:name=
"item.name"
></Icon>
</div>
<div
class=
"name"
>
{{
item
.
label
}}
</div>
</div>
...
...
@@ -57,8 +57,7 @@ defineExpose({ getData })
color
:
#ba143e
;
}
.connect-form_icon
{
box-shadow
:
0
0
10px
rgb
(
186
,
20
,
62
,
0
.5
);
border
:
1px
solid
#ba143e
;
box-shadow
:
2px
2px
10px
0px
rgba
(
0
,
0
,
0
,
0
.2
);
}
}
}
...
...
@@ -70,14 +69,11 @@ defineExpose({ getData })
width
:
70px
;
height
:
70px
;
border-radius
:
50%
;
border
:
1px
solid
#000
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
cursor
:
pointer
;
&
:hover
{
box-shadow
:
0
0
10px
rgb
(
0
0
0
/
50%
);
}
box-shadow
:
2px
2px
10px
0px
rgba
(
0
,
0
,
0
,
0
.2
);
}
}
</
style
>
src/modules/connect/views/View.vue
浏览文件 @
7afc9c57
<
script
setup
lang=
"ts"
>
import
Icon
from
'
../components/
Icon.vue'
import
Icon
from
'
@/components/Connection
Icon.vue'
import
{
ElMessageBox
}
from
'element-plus'
import
{
getConnectionDetails
}
from
'../api'
...
...
@@ -452,7 +452,7 @@ const abilityItem = computed(() => {
<AppCard
title=
"查看链接"
>
<div
class=
"view-info"
>
<div
class=
"view-info_icon"
>
<Icon
:name=
"dataDetail?.type || '0'"
w=
"50"
h=
"50"
></Icon>
<Icon
:
multicolour=
"true"
:
name=
"dataDetail?.type || '0'"
w=
"50"
h=
"50"
></Icon>
</div>
<div
class=
"view-info_content"
>
<p>
链接名称:
{{
dataDetail
?.
type_name
}}
</p>
...
...
@@ -479,10 +479,11 @@ const abilityItem = computed(() => {
width
:
100px
;
height
:
100px
;
border-radius
:
50%
;
border
:
1px
solid
#000
;
//
border: 1px solid #000;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
box-shadow
:
2px
2px
10px
0px
rgba
(
0
,
0
,
0
,
0
.2
);
}
.view-info_content
{
margin-left
:
20px
;
...
...
src/modules/metadata/event/components/ViewDialog.vue
浏览文件 @
7afc9c57
...
...
@@ -8,23 +8,31 @@ defineProps<Props>()
<
template
>
<el-dialog
title=
"查看事件属性"
:close-on-click-modal=
"false"
width=
"600px"
>
<el-form
label-suffix=
":"
label-width=
"120px"
>
<el-form-item
label=
"事件ID"
>
{{
data
.
id
}}
</el-form-item>
<el-form-item
label=
"事件英文名称"
>
{{
data
.
english_name
}}
</el-form-item>
<el-form-item
label=
"事件名称"
>
{{
data
.
name
}}
</el-form-item>
<el-form-item
label=
"所属连接"
>
{{
data
.
connection_name
}}
</el-form-item>
<el-form-item
label=
"状态"
>
{{
data
.
status_name
}}
</el-form-item>
</el-form>
<div
style=
"display: flex; justify-content: center"
>
<el-form
label-suffix=
":"
label-width=
"120px"
>
<el-form-item
label=
"事件ID"
>
{{
data
.
id
}}
</el-form-item>
<el-form-item
label=
"事件英文名称"
>
{{
data
.
english_name
}}
</el-form-item>
<el-form-item
label=
"事件名称"
>
{{
data
.
name
}}
</el-form-item>
<el-form-item
label=
"所属连接"
>
{{
data
.
connection_name
}}
</el-form-item>
<el-form-item
label=
"状态"
>
{{
data
.
status_name
}}
</el-form-item>
<el-form-item
label=
"更新人"
>
{{
data
.
updated_operator_name
}}
</el-form-item>
<el-form-item
label=
"更新时间"
>
{{
data
.
updated_time
}}
</el-form-item>
</el-form>
</div>
<template
#
footer
>
<el-row
justify=
"center"
>
<el-button
round
auto-insert-space
@
click=
"$emit('update:modelValue', false)"
>
关闭
</el-button>
...
...
src/modules/metadata/event/types.ts
浏览文件 @
7afc9c57
...
...
@@ -6,6 +6,8 @@ export interface EventProp {
status
:
string
connection_name
:
string
status_name
:
string
updated_operator_name
:
string
updated_time
:
string
}
export
interface
ConnectionOptionProp
{
type_name
:
string
;
id
:
string
}
...
...
src/modules/metadata/user/components/ViewDialog.vue
浏览文件 @
7afc9c57
...
...
@@ -8,26 +8,34 @@ defineProps<Props>()
<
template
>
<el-dialog
title=
"查看用户属性"
:close-on-click-modal=
"false"
width=
"600px"
>
<el-form
label-suffix=
":"
label-width=
"110px"
>
<el-form-item
label=
"属性ID"
>
{{
data
.
id
}}
</el-form-item>
<el-form-item
label=
"属性英文名称"
>
{{
data
.
english_name
}}
</el-form-item>
<el-form-item
label=
"属性名称"
>
{{
data
.
name
}}
</el-form-item>
<el-form-item
label=
"属性字段类型"
>
{{
data
.
type_name
}}
</el-form-item>
<el-form-item
label=
"属性字段格式"
>
{{
data
.
format
}}
</el-form-item>
<el-form-item
label=
"状态"
>
{{
data
.
status_name
}}
</el-form-item>
</el-form>
<div
style=
"display: flex; justify-content: center"
>
<el-form
label-suffix=
":"
label-width=
"110px"
>
<el-form-item
label=
"属性ID"
>
{{
data
.
id
}}
</el-form-item>
<el-form-item
label=
"属性英文名称"
>
{{
data
.
english_name
}}
</el-form-item>
<el-form-item
label=
"属性名称"
>
{{
data
.
name
}}
</el-form-item>
<el-form-item
label=
"属性字段类型"
>
{{
data
.
type_name
}}
</el-form-item>
<el-form-item
label=
"属性字段格式"
>
{{
data
.
format
}}
</el-form-item>
<el-form-item
label=
"状态"
>
{{
data
.
status_name
}}
</el-form-item>
<el-form-item
label=
"更新人"
>
{{
data
.
updated_operator_name
}}
</el-form-item>
<el-form-item
label=
"更新时间"
>
{{
data
.
updated_time
}}
</el-form-item>
</el-form>
</div>
<template
#
footer
>
<el-row
justify=
"center"
>
<el-button
round
auto-insert-space
@
click=
"$emit('update:modelValue', false)"
>
关闭
</el-button>
...
...
src/modules/metadata/user/types.ts
浏览文件 @
7afc9c57
...
...
@@ -7,4 +7,6 @@ export interface UserProp {
status
:
string
type_name
:
string
status_name
:
string
updated_operator_name
:
string
updated_time
:
string
}
src/modules/metadata/user/views/Index.vue
浏览文件 @
7afc9c57
...
...
@@ -49,8 +49,8 @@ const listOptions = computed(() => {
prop
:
'status_name'
,
computed
:
(
row
:
any
)
=>
{
return
row
.
row
.
status
===
'0'
?
`<span style="color:
#00ac27
">
${
row
.
row
.
status_name
}
</span>`
:
`<span style="color:
rgb(170, 2, 49)
">
${
row
.
row
.
status_name
}
</span>`
?
`<span style="color:
rgb(170, 2, 49)
">
${
row
.
row
.
status_name
}
</span>`
:
`<span style="color:
#00ac27
">
${
row
.
row
.
status_name
}
</span>`
}
},
{
label
:
'更新人'
,
prop
:
'updated_operator_name'
},
...
...
src/modules/user/components/UpdateDialog.vue
浏览文件 @
7afc9c57
...
...
@@ -26,10 +26,11 @@ const getConnectionsList = function () {
let
fieldsList
=
$ref
<
MemberFieldsProp
[]
>
([])
const
getFieldsList
=
function
()
{
getMemberFieldsList
().
then
((
res
:
{
data
:
MemberFieldsProp
[]
})
=>
{
fieldsList
=
res
.
data
.
map
(
item
=>
{
console
.
log
(
res
,
'res'
,
props
.
data
?.
fields
)
fieldsList
=
res
.
data
.
map
((
item
:
any
)
=>
{
item
.
value
=
''
if
(
props
.
data
)
{
item
.
value
=
JSON
.
parse
(
props
.
data
?.
fields
)
[
item
.
id
]
item
.
value
=
props
.
data
?.
fields
[
item
.
id
]
}
return
item
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论