Skip to content

Commit 7331585

Browse files
committed
feat(workspace): workspace manage
1 parent da10a49 commit 7331585

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

frontend/src/components/layout/LayoutDsl.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const toWorkspace = () => {
3737
<Workspace :collapse="collapse"></Workspace>
3838
<Menu :collapse="collapse"></Menu>
3939
<div class="bottom">
40-
<div class="back-to_workspace" @click="toWorkspace">
40+
<div class="back-to_workspace" :class="collapse && 'collapse'" @click="toWorkspace">
4141
<el-icon size="16">
4242
<icon_moments_categories_outlined></icon_moments_categories_outlined>
4343
</el-icon>
@@ -97,6 +97,11 @@ const toWorkspace = () => {
9797
border-radius: 6px;
9898
height: 40px;
9999
cursor: pointer;
100+
101+
&:not(.collapse) {
102+
background: #1f23290a;
103+
border: 1px solid #d9dcdf;
104+
}
100105
&:hover {
101106
background-color: #1f23291a;
102107
}

frontend/src/views/ds/Card.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const props = withDefaults(
1313
name: string
1414
type: string
1515
typeName: string
16+
num: string
1617
description?: string
1718
id?: string
1819
}>(),
@@ -69,6 +70,7 @@ const onClickOutside = () => {
6970
<el-icon class="form-icon" size="16">
7071
<icon_form_outlined></icon_form_outlined>
7172
</el-icon>
73+
{{ num }}
7274
</div>
7375
<div click.stop class="methods">
7476
<el-button type="primary" style="margin-right: 8px" @click.stop="handleQuestion">

frontend/src/views/ds/Datasource.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { useI18n } from 'vue-i18n'
2121
2222
interface Datasource {
2323
name: string
24+
num: string
2425
type_name: string
2526
type: string
2627
img: string
@@ -274,6 +275,7 @@ const back = () => {
274275
:name="ele.name"
275276
:type="ele.type"
276277
:type-name="ele.type_name"
278+
:num="ele.num"
277279
:description="ele.description"
278280
@question="handleQuestion"
279281
@edit="handleEditDatasource(ele)"

frontend/src/views/system/model/Model.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ const submit = (item: any) => {
359359
360360
.card-content {
361361
display: flex;
362+
flex-wrap: wrap;
363+
max-height: calc(100% - 40px);
362364
}
363365
}
364366
</style>

0 commit comments

Comments
 (0)