Skip to content

Commit fc83c11

Browse files
committed
feat(datasource): datasource UI
1 parent 167aacb commit fc83c11

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

frontend/src/views/ds/form.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
22
<el-dialog
33
v-model="dialogVisible"
4-
:title="title"
4+
:title="dialogTitle"
55
width="600"
66
:destroy-on-close="true"
77
:close-on-click-modal="false"
88
@closed="close"
99
modal-class="add-datasource_dialog"
1010
>
11-
<template #header="{ title }">
11+
<template #header="">
1212
<div style="display: flex">
13-
<div style="margin-right: 24px">{{ title }}</div>
13+
<div style="margin-right: 24px">{{ dialogTitle }}</div>
1414
<el-steps
1515
v-show="isCreate"
1616
:active="active"
@@ -180,7 +180,7 @@ const excelUploadSuccess = ref(false);
180180
const tableListLoading = ref(true);
181181
const token = wsCache.get("user.token");
182182
const headers = ref<any>({ "X-SQLBOT-TOKEN": `Bearer ${token}` });
183-
const title = ref("");
183+
const dialogTitle = ref("");
184184
185185
const rules = reactive<FormRules>({
186186
name: [
@@ -223,7 +223,7 @@ const close = () => {
223223
const open = (item: any, editTable: boolean = false) => {
224224
isEditTable.value = false;
225225
if (item) {
226-
title.value = "Edit Datasource";
226+
dialogTitle.value = "Edit Datasource";
227227
isCreate.value = false;
228228
form.value.id = item.id;
229229
form.value.name = item.name;
@@ -245,7 +245,7 @@ const open = (item: any, editTable: boolean = false) => {
245245
}
246246
247247
if (editTable) {
248-
title.value = "Choose Tables";
248+
dialogTitle.value = "Choose Tables";
249249
active.value = 1;
250250
isEditTable.value = true;
251251
isCreate.value = false;
@@ -278,7 +278,7 @@ const open = (item: any, editTable: boolean = false) => {
278278
});
279279
}
280280
} else {
281-
title.value = "Add Datasource";
281+
dialogTitle.value = "Add Datasource";
282282
isCreate.value = true;
283283
isEditTable.value = false;
284284
checkList.value = [];

0 commit comments

Comments
 (0)