diff --git a/frontend/src/api/system/datasource.js b/frontend/src/api/system/datasource.js index 8588a7fac0..647cb4445b 100644 --- a/frontend/src/api/system/datasource.js +++ b/frontend/src/api/system/datasource.js @@ -148,4 +148,11 @@ export function updateDriver(data) { }) } -export default { dsGrid, addDs, editDs, delDs, validateDs, listDatasource, getSchema } +export function getDatasourceDetail(id) { + return request({ + url: `/datasource/get/${id}`, + loading: true, + method: 'post', + }) +} +export default { getDatasourceDetail, dsGrid, addDs, editDs, delDs, validateDs, listDatasource, getSchema } diff --git a/frontend/src/icons/svg/data-reference.svg b/frontend/src/icons/svg/data-reference.svg new file mode 100644 index 0000000000..b294b7c599 --- /dev/null +++ b/frontend/src/icons/svg/data-reference.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/src/icons/svg/reference-field.svg b/frontend/src/icons/svg/reference-field.svg new file mode 100644 index 0000000000..b311d14227 --- /dev/null +++ b/frontend/src/icons/svg/reference-field.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/src/icons/svg/reference-play.svg b/frontend/src/icons/svg/reference-play.svg new file mode 100644 index 0000000000..5a706247bd --- /dev/null +++ b/frontend/src/icons/svg/reference-play.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/frontend/src/icons/svg/reference-setting.svg b/frontend/src/icons/svg/reference-setting.svg new file mode 100644 index 0000000000..74107b66d3 --- /dev/null +++ b/frontend/src/icons/svg/reference-setting.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/icons/svg/reference-table.svg b/frontend/src/icons/svg/reference-table.svg new file mode 100644 index 0000000000..96a9732884 --- /dev/null +++ b/frontend/src/icons/svg/reference-table.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 15b7c31d3c..c5923c6fdf 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -525,7 +525,10 @@ export default { convert_to_dimension: 'Convert to Dimension', left_to_edit: 'Select the data table on the left to edit', cannot_be_duplicate: 'The dataset name cannot be duplicate', - set_saved_successfully: 'Data set saved successfully' + set_saved_successfully: 'Data set saved successfully', + to_start_using: 'Browse the contents of your database, tables and columns. Choose a database to get started.', + to_run_query: 'Click to run query', + the_running_results: 'You can view the running results' }, detabs: { eidttitle: 'Edit Title', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index ed7a4863db..43e2b36f90 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -525,7 +525,10 @@ export default { convert_to_dimension: '轉換為維度', left_to_edit: '選中左側的資料表可進行編輯', cannot_be_duplicate: '數据集名稱不允許重複', - set_saved_successfully: '數据集保存成功' + set_saved_successfully: '數据集保存成功', + to_start_using: '瀏覽您的數据庫,表和列的內容。 選擇一個數据庫即可開始使用。', + to_run_query: '點擊運行査詢', + the_running_results: '即可查看運行結果' }, detabs: { eidttitle: '編輯標題', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 2179467cf2..f511e030c8 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -523,7 +523,10 @@ export default { convert_to_dimension: '转换为维度', left_to_edit: '选中左侧的数据表可进行编辑', cannot_be_duplicate: '数据集名称不允许重复', - set_saved_successfully: '数据集保存成功' + set_saved_successfully: '数据集保存成功', + to_start_using: '浏览您的数据库,表和列的内容。 选择一个数据库即可开始使用。', + to_run_query: '点击运行查询', + the_running_results: '即可查看运行结果' }, detabs: { eidttitle: '编辑标题', diff --git a/frontend/src/views/dataset/add/AddApi.vue b/frontend/src/views/dataset/add/AddApi.vue index 9c3c4e9ba9..8160b47e20 100644 --- a/frontend/src/views/dataset/add/AddApi.vue +++ b/frontend/src/views/dataset/add/AddApi.vue @@ -32,7 +32,6 @@ clearable />
- -
@@ -379,6 +377,7 @@ export default { display: flex; height: 100%; position: relative; + width: 100%; .arrow-right { position: absolute; diff --git a/frontend/src/views/dataset/add/AddDB.vue b/frontend/src/views/dataset/add/AddDB.vue index e89180b5dd..06d5c82607 100644 --- a/frontend/src/views/dataset/add/AddDB.vue +++ b/frontend/src/views/dataset/add/AddDB.vue @@ -33,7 +33,6 @@ clearable />
- -
@@ -282,14 +280,6 @@ export default { }, methods: { nameExsitValidator(activeIndex) { - if ( - !this.nameList || - this.nameList.length === 0 || - !this.checkDatasetName.includes(this.tableData[activeIndex].datasetName) - ) { - this.tableData[activeIndex].nameExsit = false - return - } this.tableData[activeIndex].nameExsit = this.nameList .concat(this.checkDatasetName) @@ -300,6 +290,8 @@ export default { this.tableData.forEach((ele, index) => { if (this.checkDatasetName.includes(ele.datasetName)) { this.nameExsitValidator(index) + } else { + ele.nameExsit = false; } }) }, @@ -402,6 +394,8 @@ export default { display: flex; height: 100%; position: relative; + width: 100%; + .arrow-right { position: absolute; diff --git a/frontend/src/views/dataset/add/AddExcel.vue b/frontend/src/views/dataset/add/AddExcel.vue index 0326710de0..7e29c5f224 100644 --- a/frontend/src/views/dataset/add/AddExcel.vue +++ b/frontend/src/views/dataset/add/AddExcel.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/views/system/datasource/DsConfiguration.vue b/frontend/src/views/system/datasource/DsConfiguration.vue index 96dc0f218c..7738935aa2 100644 --- a/frontend/src/views/system/datasource/DsConfiguration.vue +++ b/frontend/src/views/system/datasource/DsConfiguration.vue @@ -11,81 +11,91 @@ > @@ -94,7 +104,11 @@ :label="$t('datasource.host')" prop="configuration.host" > - + - + {{ $t("datasource.oracle_sid") }} + >{{ $t('datasource.oracle_sid') }} - {{ $t("datasource.oracle_service_name") }} + {{ $t('datasource.oracle_service_name') }} @@ -164,7 +182,7 @@ >

- {{ $t("datasource.kerbers_info") }} + {{ $t('datasource.kerbers_info') }}

@@ -183,7 +201,11 @@ " :label="$t('datasource.user_name')" > - + - + - + - + {{ $t("datasource.priority") + >{{ $t('datasource.priority') }} @@ -369,7 +403,7 @@ type="number" :min="0" > - + @@ -408,7 +442,7 @@ :rules="rule" >
- {{ $t("datasource.base_info") }} + {{ $t('datasource.base_info') }}
@@ -439,7 +473,7 @@
- {{ $t("datasource.req_param") }} + {{ $t('datasource.req_param') }}
@@ -462,7 +496,7 @@ :rules="rule" >
- {{ $t("datasource.column_info") }} + {{ $t('datasource.column_info') }}
+ \ No newline at end of file diff --git a/frontend/src/views/system/datasource/DsTree.vue b/frontend/src/views/system/datasource/DsTree.vue index fcb2d15f25..ac396184f0 100644 --- a/frontend/src/views/system/datasource/DsTree.vue +++ b/frontend/src/views/system/datasource/DsTree.vue @@ -246,7 +246,6 @@ import { import { ApplicationContext } from "@/utils/ApplicationContext"; import deTextarea from "@/components/deCustomCm/deTextarea.vue"; import msgCfm from "@/components/msgCfm"; - export default { name: "DsTree", mixins: [msgCfm], @@ -406,7 +405,6 @@ export default { } if (!(element.type in types)) { types[element.type] = []; - // newArr.push(...element, ...{ children: types[element.type] }) newArr.push({ id: element.type, name: element.typeDesc, @@ -415,7 +413,6 @@ export default { }); } types[element.type].push(element); - // newArr.children.push({ id: element.id, label: element.name }) } return newArr; }, @@ -449,8 +446,8 @@ export default { }, addDb({ type }) { this.$router.push({ - name: "datasource-form", - params: { type }, + path: "/ds-form", + query: { type }, }); }, addFolderWithType(data) { @@ -460,8 +457,8 @@ export default { this.editDriver = true; } else { this.$router.push({ - name: "datasource-form", - params: { type: data.id }, + path: "/ds-form", + query: { type: data.id }, }); } }, @@ -547,10 +544,13 @@ export default { }, switchMain(component, componentParam, tData, dsTypes) { if (component === "DsForm") { + const { id, type, showModel } = componentParam; this.$router.push({ - name: "datasource-form", - params: { - ...componentParam, + path: "/ds-form", + query: { + id, + type, + showModel, msgNodeId: this.msgNodeId, }, }); @@ -608,7 +608,6 @@ export default { .custom-tree-container { margin-top: 16px; } - .custom-tree-node { flex: 1; display: flex; @@ -618,7 +617,6 @@ export default { padding-right: 8px; width: 100%; } - .custom-tree-node-list { flex: 1; display: flex; @@ -627,33 +625,27 @@ export default { font-size: 14px; padding: 0 8px; width: calc(100% - 40px); - .child { /*display: none;*/ visibility: hidden; } - &:hover .child { /*display: inline;*/ visibility: visible; } } - .tree-list ::v-deep .el-tree-node__expand-icon.is-leaf { display: none; } - .tree-style { padding: 16px 24px; height: 100%; overflow-y: auto; - .title-text { line-height: 26px; color: #1f2329; margin-bottom: 16px; } - .title-operate { text-align: right; i { @@ -670,7 +662,6 @@ export default { display: flex; justify-content: space-between; flex-wrap: wrap; - .db-card { height: 193px; width: 270px; @@ -694,7 +685,6 @@ export default { padding: 8px 12px; border-top: 1px solid rgba(#1f2329, 0.15); } - &:hover { box-shadow: 0px 6px 24px rgba(31, 35, 41, 0.08); } diff --git a/frontend/src/views/system/datasource/dsTable.vue b/frontend/src/views/system/datasource/dsTable.vue index d6c1b4260b..3a1db9d51c 100644 --- a/frontend/src/views/system/datasource/dsTable.vue +++ b/frontend/src/views/system/datasource/dsTable.vue @@ -211,13 +211,11 @@ export default { line-height: 24px; color: var(--deTextPrimary, #1f2329); } - .table-container { height: calc(100% - 50px); } - .el-table__fixed-right::before { background: transparent; } } - + \ No newline at end of file diff --git a/frontend/src/views/system/datasource/form.vue b/frontend/src/views/system/datasource/form.vue index 1fa82629f4..0eec277ed7 100644 --- a/frontend/src/views/system/datasource/form.vue +++ b/frontend/src/views/system/datasource/form.vue @@ -4,10 +4,8 @@ \ No newline at end of file diff --git a/frontend/src/views/system/task/filterUserRecord.vue b/frontend/src/views/system/task/filterUserRecord.vue index b7ec0f0c78..3788b12815 100644 --- a/frontend/src/views/system/task/filterUserRecord.vue +++ b/frontend/src/views/system/task/filterUserRecord.vue @@ -200,6 +200,7 @@ export default { this.selectDatasets = []; this.datasetCahe = []; this.selectDatasetsCahe = []; + this.$refs.datasetTreeRef.filter(); this.$emit("search", [], []); }, clearOneFilter(index) { @@ -211,6 +212,9 @@ export default { } else { this[ele] = []; } + if (ele === 'activeDataset') { + this.$refs.datasetTreeRef.filter(); + } }); }, statusChange(value, type) { diff --git a/frontend/src/views/system/task/form.vue b/frontend/src/views/system/task/form.vue index 00e62591cc..1743dd271d 100644 --- a/frontend/src/views/system/task/form.vue +++ b/frontend/src/views/system/task/form.vue @@ -42,7 +42,7 @@