diff --git a/src/api/date/apidate.ts b/src/api/date/apidate.ts
index 6e9e997e6..7acd1155d 100644
--- a/src/api/date/apidate.ts
+++ b/src/api/date/apidate.ts
@@ -7,3 +7,10 @@ export function getOrPostDate(methodStr:string,data?: any) {
data: data
});
}
+export function postSaveData(data?: any) {
+ return request({
+ url: "/systemapi/dataCenter/postSaveData",
+ method: "POST",
+ data: data
+ });
+}
diff --git a/src/api/date/type.ts b/src/api/date/type.ts
index 2ea0cd302..045f4e09e 100644
--- a/src/api/date/type.ts
+++ b/src/api/date/type.ts
@@ -25,7 +25,7 @@ export const dataSourceTypes = [
},
{
value: '3',
- label: '暂时未知',
+ label: 'TIDB',
},
{
value: '4',
@@ -47,3 +47,21 @@ export const interfaceTypes = [
label: 'API',
}
]
+
+//数据源表单结构
+export interface dataBaseStruct {
+ databaseName?: string;
+ port?: number;
+ ipAddress?: string;
+ datasourceType?: number;
+ datasourceTypeName?: string;
+ dataType?: number;
+ dataTypeName?: string;
+ interfaceType?: number;
+ interfaceTypeName?: string;
+ author?: string;
+ account?: string;
+ password?: string;
+ id?: string;
+ redashDatasourceId?: number;
+}
diff --git a/src/views/date/editAssets.vue b/src/views/date/editAssets.vue
new file mode 100644
index 000000000..c031dd21f
--- /dev/null
+++ b/src/views/date/editAssets.vue
@@ -0,0 +1,246 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+