Skip to content

Commit c520290

Browse files
committed
assetManage modelCenter and warehouseDesign update to 1.2.0
1 parent e71d256 commit c520290

File tree

269 files changed

+26964
-596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

269 files changed

+26964
-596
lines changed

web/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ VUE_APP_HOST=
22
VUE_APP_MN_CONFIG_PREFIX=
33
VUE_APP_MN_CONFIG_SOCKET=/ws/api/entrance/connect
44
NODE_ENV=pro
5-
VUE_APP_VERSION=v1.0.1
5+
VUE_APP_VERSION=v1.2.0

web/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dataspherestudio",
3-
"version": "1.0.1",
3+
"version": "1.2.0",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",
@@ -29,8 +29,10 @@
2929
]
3030
},
3131
"dependencies": {
32+
"@antv/g6": "^4.5.3",
3233
"axios": "0.19.2",
3334
"babel-polyfill": "6.26.0",
35+
"clipboard": "^2.0.8",
3436
"core-js": "2.6.11",
3537
"dexie": "2.0.4",
3638
"dt-sql-parser": "1.2.1",

web/src/apps/apiServices/module/apiServices/index.vue

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
</h3>
77
<Row class="search-bar">
88
<Col span="5" class="search-item">
9-
<span class="lable">{{$t("message.apiServices.label.name")}}: </span>
10-
<Input v-model="searchName" class="input" :placeholder="$t('message.apiServices.placeholder.enterName')"></Input>
9+
<span class="lable">{{$t("message.apiServices.label.name")}}: </span>
10+
<Input v-model="searchName" class="input" :placeholder="$t('message.apiServices.placeholder.enterName')"></Input>
1111
</Col>
1212
<Col span="5" class="search-item">
13-
<span class="lable">{{$t("message.apiServices.label.status")}}:</span>
14-
<Select v-model="searchStatus" clearable class="input">
15-
<Option value="1">{{$t('message.apiServices.enable')}}</Option>
16-
<Option value="0">{{$t('message.apiServices.disable')}}</Option>
17-
</Select>
13+
<span class="lable">{{$t("message.apiServices.label.status")}}:</span>
14+
<Select v-model="searchStatus" clearable class="input">
15+
<Option value="1">{{$t('message.apiServices.enable')}}</Option>
16+
<Option value="0">{{$t('message.apiServices.disable')}}</Option>
17+
</Select>
1818
</Col>
1919
<Col span="5" class="search-item">
20-
<span class="lable">{{$t("message.apiServices.label.submitter")}}:</span>
21-
<Input v-model="searchCommitter" class="input" :placeholder="$t('message.apiServices.placeholder.inputSubmitter')"></Input>
20+
<span class="lable">{{$t("message.apiServices.label.submitter")}}:</span>
21+
<Input v-model="searchCommitter" class="input" :placeholder="$t('message.apiServices.placeholder.inputSubmitter')"></Input>
2222
</Col>
2323
<Col span="5">
24-
<Button class="search" type="primary" @click="getApiData">{{$t("message.apiServices.label.find")}}</Button>
24+
<Button class="search" type="primary" @click="getApiData">{{$t("message.apiServices.label.find")}}</Button>
2525
</Col>
2626
</Row>
2727
<div class="workspace-header-right">
@@ -60,18 +60,18 @@
6060
v-for="(item, index) in pageDatalist"
6161
:key="item.id + `${index}`"
6262
>
63-
<!-- 卡片 -->
64-
<apiCard
65-
:title="item"
66-
:desc="item.description"
67-
:disabled="item.status === 0 || item.status === 2"
68-
:status="getStatusButtonTextAndColor(item.status).status"
69-
:button="getStatusButtonTextAndColor(item.status).button"
70-
@onButton="holderButton(item)" >
71-
<template slot="dropdown" v-if="item.creator === username && item.status !== 2">
72-
<dop :dropdownList="getDropdownList(item, index)" @commonAction="commonAction(item, arguments, index)"></dop>
73-
</template>
74-
</apiCard>
63+
<!-- 卡片 -->
64+
<apiCard
65+
:title="item"
66+
:desc="item.description"
67+
:disabled="item.status === 0 || item.status === 2"
68+
:status="getStatusButtonTextAndColor(item.status).status"
69+
:button="getStatusButtonTextAndColor(item.status).button"
70+
@onButton="holderButton(item)" >
71+
<template slot="dropdown" v-if="item.creator === username && item.status !== 2">
72+
<dop :dropdownList="getDropdownList(item, index)" @commonAction="commonAction(item, arguments, index)"></dop>
73+
</template>
74+
</apiCard>
7575
</Col>
7676
</Row>
7777
</template>

web/src/apps/apiServices/module/servicesMangement/component/APIInfo.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div>
33
<Row>
44
<Col span="24" v-for="(item, index) in dataList" :key="index">
5-
<div class="contetn" :title="item.value">
6-
<span class="label">{{ item.label }}</span>
7-
<span class="content-item">{{ item.value }}</span>
8-
</div>
5+
<div class="contetn" :title="item.value">
6+
<span class="label">{{ item.label }}</span>
7+
<span class="content-item">{{ item.value }}</span>
8+
</div>
99
</Col>
1010
</Row>
1111
<slot></slot>
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*!
2+
* Copyright 2019 WeBank
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
@import '@/common/style/variables.scss';
19+
20+
.console-page{
21+
position: $relative;
22+
width: $percent-all;
23+
height: $percent-all;
24+
display: flex;
25+
flex-direction: column;
26+
background: $background-color-base;
27+
padding: 20px;
28+
overflow: hidden;
29+
30+
.console-page-content-head {
31+
display: flex;
32+
justify-content: space-between;
33+
34+
.console-page-content-title {
35+
font-size: $font-size-large;
36+
font-weight: bold;
37+
}
38+
}
39+
40+
.console-page-content-body {
41+
display: flex;
42+
height: calc(100% - 68px);
43+
.content-body-side-nav {
44+
width: 200px;
45+
46+
.content-body-card {
47+
padding: 10px 0 10px;
48+
}
49+
}
50+
.content-body-side-right {
51+
flex: 1;
52+
margin-left: 20px;
53+
background: $body-background;
54+
border-radius: $border-radius-small;
55+
padding: 10px;
56+
overflow: auto;
57+
.content-body-side-right-title {
58+
height: 30px;
59+
border-bottom: $border-width-base $border-style-base $border-color-split;
60+
margin-bottom: 10px
61+
}
62+
.content-body-side-right-content {
63+
overflow: auto;
64+
}
65+
66+
}
67+
}
68+
69+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
const Clipboard = require('clipboard');
2+
3+
if (!Clipboard) {
4+
throw new Error('you should npm install `clipboard` --save at first ');
5+
}
6+
7+
export default {
8+
bind(el, binding) {
9+
if (binding.arg === 'success') {
10+
el._v_clipboard_success = binding.value;
11+
} else if (binding.arg === 'error') {
12+
el._v_clipboard_error = binding.value;
13+
} else {
14+
const clipboard = new Clipboard(el, {
15+
text() { return binding.value; },
16+
action() { return binding.arg === 'cut' ? 'cut' : 'copy'; }
17+
});
18+
clipboard.on('success', (e) => {
19+
const callback = el._v_clipboard_success;
20+
callback && callback(e) // eslint-disable-line
21+
});
22+
clipboard.on('error', (e) => {
23+
const callback = el._v_clipboard_error;
24+
callback && callback(e) // eslint-disable-line
25+
});
26+
el._v_clipboard = clipboard;
27+
}
28+
},
29+
update(el, binding) {
30+
if (binding.arg === 'success') {
31+
el._v_clipboard_success = binding.value;
32+
} else if (binding.arg === 'error') {
33+
el._v_clipboard_error = binding.value;
34+
} else {
35+
el._v_clipboard.text = function () { return binding.value; };
36+
el._v_clipboard.action = function () { return binding.arg === 'cut' ? 'cut' : 'copy'; };
37+
}
38+
},
39+
unbind(el, binding) {
40+
if (binding.arg === 'success') {
41+
delete el._v_clipboard_success;
42+
} else if (binding.arg === 'error') {
43+
delete el._v_clipboard_error;
44+
} else {
45+
el._v_clipboard.destroy();
46+
delete el._v_clipboard;
47+
}
48+
}
49+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Clipboard from './clipboard';
2+
3+
const install = (Vue) => {
4+
Vue.directive('Clipboard', Clipboard);
5+
};
6+
7+
if (window.Vue) {
8+
window.clipboard = Clipboard;
9+
Vue.use(install); // eslint-disable-line
10+
}
11+
12+
Clipboard.install = install;
13+
export default Clipboard;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"message": {
3+
"dataAssetManage": {
4+
"dataAssetManage": "Data Governance",
5+
"dataAssets": "Data Assets",
6+
"dataOverview": "Data Overview",
7+
"dataAssetsIndex": "Data Assets Index",
8+
"overallMeasurement": "Overall measurement",
9+
"menu": "Menu",
10+
"pleaseEnterATableName": "Please enter a table name / description to search the database table",
11+
"search": "Search"
12+
}
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"message": {
3+
"dataAssetManage": {
4+
"dataAssetManage": "数据治理",
5+
"dataAssets": "数据资产",
6+
"dataOverview": "数据总览",
7+
"dataAssetsIndex": "数据资产目录",
8+
"overallMeasurement": "总体计量",
9+
"menu": "目录",
10+
"pleaseEnterATableName": "请输入表名/描述搜索数据库表",
11+
"search": "搜索"
12+
}
13+
}
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// event-bus.js
2+
import Vue from 'vue'
3+
export const EventBus = new Vue()

0 commit comments

Comments
 (0)